[Soot-list] get real Value from ValueBox/Value

Richard L. Halpert richard.halpert at mail.mcgill.ca
Thu Sep 24 14:47:30 EDT 2009


Olaf,
In the general case, the value of 'a' is not known until RUNTIME.  In this
particular case, you could use a constant propagation or def-use analysis to
determine that 'a' will be equal to 41.  I believe the tutorials on the soot
website explain how to do this sort of thing.

-Richard

On Thu, Sep 24, 2009 at 7:40 AM, Olaf Neugebauer <
olaf.neugebauer at tu-dortmund.de> wrote:

> Hello,
>
> is there a easy way to get the real values of a valuebox?
> Here is my program in jimple:
>
> a = 41;
> virtualinvoke
> this.<de.tudortmund.cs.ls12.oneugebauer.SimpleLocalizeApp.TestClass:
> void setVersion(int)>(a);
>
> with getInvokeExpr().getArgBox on the jimplestmt i only got a reference
> to a.
> Is it possible to get the value(41) from the virtualinvoke stmt?
>
> Regards,
> Olaf
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20090924/7269f5b0/attachment.html 


More information about the Soot-list mailing list