question: public void resetBasicBlockMap ( ) { basicBlockMap = new BasicBlock [ getMaxBasicBlockNumber ( ) + 1 ] ; for ( Enumeration < BasicBlock > bbEnum = cfg . basicBlocks ( ) ; bbEnum . hasMoreElements ( ) ; ) { BasicBlock block = bbEnum . nextElement ( ) ; basicBlockMap [ block . getNumber ( ) ] = block ; } }
target:  Recompute the basic block map, so can use getBasicBlock(int) to index into the basic blocks quickly. TODO: think about possibly keeping the basic block map up-to-date automatically (Use a hashtable, perhaps?).