private int evaluateCost(BasicBlock bb){
  int result=0;
  for (Enumeration<Instruction> e=bb.forwardRealInstrEnumerator(); e.hasMoreElements(); ) {
    Instruction s=e.nextElement();
    if (!s.isBranch())     result++;
  }
  return result;
}

private int evaluateCost ( BasicBlock bb ) { int result = 0 ; for ( Enumeration < Instruction > e = bb . forwardRealInstrEnumerator ( ) ; e . hasMoreElements ( ) ; ) { Instruction s = e . nextElement ( ) ; if ( ! s . isBranch ( ) ) result ++ ; } return result ; }
evaluates the cost of a basic block , in number of real instructions excluding branches .
