JimpleBody ab = (JimpleBody)Jimple.v().newBody(m2);
ab.importBodyContentsFrom(m.getActiveBody());
m2.setActiveBody(ab);
- //Local loc = Jimple.v().newLocal("tmpRef" + (tfr++), getParent(sc).getType());
- //ab.getLocals().add(loc);
+ Local loc = Jimple.v().newLocal("tmpRef" + (tfr++), getParent(sc).getType());
+ ab.getLocals().add(loc);
// FIXME: insert assignment to this
for(Iterator z = ab.getLocals().iterator(); z.hasNext();) {
if (is.getRightOp() instanceof ThisRef) {
left.setType(IntType.v());
is.getRightOpBox().setValue(Jimple.v().newParameterRef(IntType.v(), m.getParameterCount()));
- break;
}
}
- /*
+
for(Iterator i = s.getUseAndDefBoxes().iterator(); i.hasNext();) {
Object o = i.next();
if (o instanceof ValueBox) {
}
}
}
- */
+
}
sc.removeMethod(m);