[Soot-list] JimpleLocal - Local Variable or was generated by Soot?

Patrick Lam plam at sable.mcgill.ca
Thu Jun 2 08:57:23 EDT 2011


On 06/02/11 08:48, Vasco Pessanha wrote:
> Hello,
>
> How can I know if a given JimpleLocal was generated by Soot or consists
> in a local variable of the method. Is it even possible?
> For example, if we have the source line "Main t = new Main();" we would
> generate something like:
>
> "$r0 = new testes.deptest.Main;
> specialinvoke $r0.<testes.deptest.Main: void <init>()>();
> t = $r0;"
>
> How can I know that "t" is a method's local variable and $r0 was
> generated by Soot?

The leading $ is a good hint (although not foolproof).

pat



More information about the Soot-list mailing list