private String createEsilSequence(Iterable<Instruction> instructions,Predicate<Instruction> p){
  StringBuilder builder=new StringBuilder();
  for (  Instruction instr : instructions) {
    String esilCode=instr.getEsilCode();
    if (p.test(instr))     builder.append(esilCode + ",");
  }
  String instructionSeq=builder.toString();
  instructionSeq=instructionSeq.substring(0,instructionSeq.length() - 1);
  return instructionSeq;
}

private String createEsilSequence ( Iterable < Instruction > instructions , Predicate < Instruction > p ) { StringBuilder builder = new StringBuilder ( ) ; for ( Instruction instr : instructions ) { String esilCode = instr . getEsilCode ( ) ; if ( p . test ( instr ) ) builder . append ( esilCode + "," ) ; } String instructionSeq = builder . toString ( ) ; instructionSeq = instructionSeq . substring ( 0 , instructionSeq . length ( ) - 1 ) ; return instructionSeq ; }
create a flat string of esil instructions from an iterable of instructions , where an instruction is only included if it matches p .
