public class DomTreeTest extends TestCase {
private ClassPool pool = ClassPool.getDefault();
public void testDomtree() throws Exception {
ControlFlow cf = new ControlFlow(pool.get(DomTreeTest.class.getName()).getDeclaredMethod("test1"));
Block[] blocks = cf.basicBlocks();
// for (int i = 0; i < blocks.length; i++)
// System.out.println(i + ": " + blocks[i]);
testBlock(blocks[0], new int[] {}, new int[] { 11, 6 } );
testBlock(blocks[1], new int[] { 0 }, new int[] { 17, 11 } );
testBlock(blocks[2], new int[] { 0, 6 }, new int[] { 19, 17 });