[Soot-list] Add Expression works strange.
Roman Petriev
vvpiroman at gmail.com
Tue Feb 3 16:38:30 EST 2015
Hello everybody!
I have code:
Local intLocal = Jimple.v().newLocal("myInt", IntType.v());
body.getLocals().add(intLocal);
AssignStmt as2 = Jimple.v().newAssignStmt(intLocal,
Jimple.v().newAddExpr(intLocal, IntConstant.v(500)));
units.add(as2);
So I want to increase local variable on 500.
In byte code after transformation I see:
iinc_w #5, 1
Why 1 instead of 500? Where I mistake?
Thanks for any help.
Best regards,
Roman.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20150204/6dfba4ed/attachment.html
More information about the Soot-list
mailing list