private static Iterator<Operand> iterateReturnValues(IR ir){
  ArrayList<Operand> returnValues=new ArrayList<Operand>();
  for (Enumeration<Instruction> e=ir.forwardInstrEnumerator(); e.hasMoreElements(); ) {
    Instruction s=e.nextElement();
    if (Return.conforms(s)) {
      returnValues.add(Return.getVal(s));
    }
  }
  return returnValues.iterator();
}

private static Iterator < Operand > iterateReturnValues ( IR ir ) { ArrayList < Operand > returnValues = new ArrayList < Operand > ( ) ; for ( Enumeration < Instruction > e = ir . forwardInstrEnumerator ( ) ; e . hasMoreElements ( ) ; ) { Instruction s = e . nextElement ( ) ; if ( Return . conforms ( s ) ) { returnValues . add ( Return . getVal ( s ) ) ; } } return returnValues . iterator ( ) ; }
todo : move this utility elsewhere
