[Soot-list] Some variable names retained, and some not

Eric Bodden eric.bodden at uni-paderborn.de
Tue Oct 1 08:16:10 EDT 2019


Hi Dhriti.

This looks a bit odd. Just to make sure. Do you have the option "-p jb use-original-names:true” enabled?

Cheers
Eric

> On 30. Sep 2019, at 14:23, Dhriti Khanna <dhritik at iiitd.ac.in> wrote:
> 
> Hello,
> When I generate jimple file for the following code:
> 
> class Point {
>   int p;
> }
> 
> class Example {
>   int a;
>   String b;
>   Point point;
>   Example() {
> 
>   }
>   Example(int a) {
>   this.a = a;
>   }
> }
> 
> class Sample {
>   LinkedList<Example> allocationQueue;
>   Sample() {
>     allocationQueue = new LinkedList<Example>();
>   }
>   public void func(int a) throws InterruptedException {
>     int x;
>     x = a+10;
>     allocationQueue = new LinkedList<Example>();
>     Example example = new Example();
>     example.point = new Point();
>     Point p = example.point;
>     System.out.println(example);
>   }
> }
> 
> Why is it that some variable names are retained like Point 'p', and some not? In this case, 'example' is not retained. It is instead replaced with $stack6 as you can see in the jimple file attached.
> 
> -- 
> Regards
> Dhriti Khanna
> PhD Scholar
> IIIT Delhi
> <Sample.jimple>_______________________________________________
> Soot-list mailing list
> Soot-list at CS.McGill.CA
> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list



More information about the Soot-list mailing list