This is another test from the paper [[http://www.sable.mcgill.ca/publications/papers/#cc2002-2 "Decompiling Java Bytecode: Problems, Traps and Pitfalls"]], Figure 5. The source code as adapted to C# is:
using System; class Foo { public static int foo(int i, int j) { while (true) { try { while (i < j) i = j++/i; } catch (Exception e) { i = 10; continue; } break; } return j; } public static void Main(String[] args) { foo(2, 3); } }The =while (true)= and the =continue= seem to throw some decompilers. -- Main.MikeVanEmmerik - 07 Mar 2003