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

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Thu Jun 2 09:51:47 EDT 2011


This is pretty foolproof actually. I am not aware of any Soot-internal
components that don't follow this convention.

Anyway, I don't think there's any other way to distinguish such
variables in Soot.

Eric

On 2 June 2011 15:13, Vasco Pessanha <coreanu_ at hotmail.com> wrote:
> LOOL Yes, I noticed that but I would prefer something more formal or, as you
> say, foolproof:P
>
> Anymore hints?
>
>> Date: Thu, 2 Jun 2011 08:57:23 -0400
>> From: plam at sable.mcgill.ca
>> To: soot-list at sable.mcgill.ca
>> Subject: Re: [Soot-list] JimpleLocal - Local Variable or was generated by
>> Soot?
>>
>> 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
>>
>> _______________________________________________
>> Soot-list mailing list
>> Soot-list at sable.mcgill.ca
>> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>



-- 
Dr. Eric Bodden, http://bodden.de/
Principal Investigator in Secure Services at CASED
Coordinator of the CASED Advisory Board of Study Affairs
PostDoc at Software Technology Group, Technische Universität Darmstadt
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt


More information about the Soot-list mailing list