[Soot-list] Some variable names retained, and some not
Dhriti Khanna
dhritik at iiitd.ac.in
Mon Sep 30 08:23:41 EDT 2019
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20190930/0a8e90f3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Sample.jimple
Type: application/octet-stream
Size: 1223 bytes
Desc: not available
URL: <https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20190930/0a8e90f3/attachment.obj>
More information about the Soot-list
mailing list