Decompiler Control Flow Test Source

Program-Transformation.Org: The Program Transformation Wiki
This is another test from the paper "Decompiling Java Bytecode: Problems, Traps and Pitfalls", Figure 5. The source code is:
    public int foo(int i, int j) {
        while (true) {
            try
            {   while (i < j)
                    i = j++/i;
            }
            catch (RuntimeException re)
            {   i = 10;
                continue;
            }
            break;
        }
        return j;
    }

The while (true) and the continue seem to throw some decompilers.

-- MikeVanEmmerik - 13 Feb 2003