public Map<Instruction,Integer> numberInstructionsViaMap(){
  HashMap<Instruction,Integer> instructionNumbers=new HashMap<Instruction,Integer>();
  int num=0;
  for (Instruction instr=firstInstructionInCodeOrder(); instr != null; instr=instr.nextInstructionInCodeOrder(), num++) {
    instructionNumbers.put(instr,Integer.valueOf(num));
  }
  return instructionNumbers;
}

public Map < Instruction , Integer > numberInstructionsViaMap ( ) { HashMap < Instruction , Integer > instructionNumbers = new HashMap < Instruction , Integer > ( ) ; int num = 0 ; for ( Instruction instr = firstInstructionInCodeOrder ( ) ; instr != null ; instr = instr . nextInstructionInCodeOrder ( ) , num ++ ) { instructionNumbers . put ( instr , Integer . valueOf ( num ) ) ; } return instructionNumbers ; }
densely numbers all the instructions currently in this ir from 0 . . . numinstr - 1 .
