[Soot-list] access to original variable names

Jasen Carrol jasencarro at yahoo.com
Fri Jun 17 18:42:37 EDT 2005


Thanks Pat. Is that a command line option that you're
talking about (-p jb.use-original-names)? Because I'm
using the Soot API to create SootClasses rather than
the command line. So, I would like to know which Soot
Locals refer to the same Java variable by making some
API call.

-Vlad

--- Patrick LAM <plam at sable.mcgill.ca> wrote:

> Jasen Carrol wrote:
> > Hi,
> >
> > Is there any way to get the original variable name
> > when working with JimpleBody?
> 
> Yes, -p jb.use-original-names, I think, or something
> like that.
> 
> > For example, if I have the following Java code:
> >
> > ...
> > int x = 5;
> > int x = 10;
> > ...
> >
> > In this case, Soot will create two different
> > JimpleLocal's named "b0" and "b1" respectively. By
> > looking at the JimpleBody, I have no way of
> knowing
> > that "b0" and "b1" are actually the same java
> > variable.
> 
> 
> You meant i0 and i1, right?
> 
> In any case, if a variable is used in two different
> contexts, I believe
> that Soot will split the two disjoint contexts of
> the variable into two
> local variable names, because that makes the program
> much easier to
> analyze.
> 
> pat
> 
> 
> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Soot-list mailing list