public void start() { DepthFirstIterator iter = new DepthFirstIterator(program); for (; ; ) { Loop loop = null; try { loop = iter.next(Loop.class); } catch (NoSuchElementException e) { break; } analyzeLoop(loop); } }