Exemplo n.º 1
0
 public DebugVMInstruction getStartInstruction() {
   BasicBlock bb = this.get(0);
   while (bb.size() == 0) {
     bb = bb.getSingleSuccessor();
   }
   return bb.get(0);
 }
Exemplo n.º 2
0
 public List<DebugVMInstruction> serchInst(Expression e) {
   List<DebugVMInstruction> ilist = new ArrayList<DebugVMInstruction>();
   for (int i = 0; i < this.size(); i++) {
     BasicBlock bb = this.get(i);
     for (int j = 0; j < bb.size(); j++) {
       DebugVMInstruction inst = bb.get(j);
       if (inst.expr.equals(e)) {
         ilist.add(inst);
       }
     }
   }
   return ilist;
 }