public void addInstruction(InstructionHandle handle) throws CFGBuilderException {
  int position=handle.getPosition();
  if (usedInstructionSet.get(position)) {
    throw new CFGBuilderException("Instruction " + handle + " visited in multiple subroutines");
  }
  instructionSet.set(position);
  usedInstructionSet.set(position);
}

public void addInstruction ( InstructionHandle handle ) throws CFGBuilderException { int position = handle . getPosition ( ) ; if ( usedInstructionSet . get ( position ) ) { throw new CFGBuilderException ( "Instruction " + handle + " visited in multiple subroutines" ) ; } instructionSet . set ( position ) ; usedInstructionSet . set ( position ) ; }
add an instruction to the subroutine . we keep track of which instructions are part of which subroutines . no instruction may be part of more than one subroutine .
