public void resetBasicBlockMap(){
  basicBlockMap=new BasicBlock[getMaxBasicBlockNumber() + 1];
  for (Enumeration<BasicBlock> bbEnum=cfg.basicBlocks(); bbEnum.hasMoreElements(); ) {
    BasicBlock block=bbEnum.nextElement();
    basicBlockMap[block.getNumber()]=block;
  }
}

public void resetBasicBlockMap ( ) { basicBlockMap = new BasicBlock [ getMaxBasicBlockNumber ( ) + 1 ] ; for ( Enumeration < BasicBlock > bbEnum = cfg . basicBlocks ( ) ; bbEnum . hasMoreElements ( ) ; ) { BasicBlock block = bbEnum . nextElement ( ) ; basicBlockMap [ block . getNumber ( ) ] = block ; } }
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 ? ) .
