-
-
Notifications
You must be signed in to change notification settings - Fork 708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to get variable names after setting use-original-names:true #1262
Comments
We just received another such report over the Soot mailing list. @linghuiluo are you aware of any open limitations in that regard w.r.t. the current source-code frontend? |
I report it in Soot mailing list. The first loaded Triangle.java, the 2nd loaded Triangle.class. The different results (Triangle_java.dot and Triangle_calss.dot ) are generated. Triangle_calss.dot is visualized as Triangle_class.png, which is reasonable. Unfortunately, when i add "-p jb use-original-names:true" and run You can find all in res.zip |
I also have the same problem. I compiled the class to instrument this way: javac -g ClassToInstrument Then I iterate over Local variables l (body.getParameterLocals()), and if I do l.getName() I get the Soot name instead of the actual variable name. I am running the class like this: java -cp .:soot-with-dep.jar MyAnalysisClass -p jb use-original-names:true ClassToInstrument (<args[0] in MyAnalysisClass.Main>) MethodToInstrument (<args[1] in MyAnalysisClass.Main>) |
I use soot-3.3.0 to run a faint variable analysis. However, I can't get variable names after setting use-original-names:true.
Test Code
Generated Jimple for the
dummyTest()
method:The name
$stack1
should beme
.The text was updated successfully, but these errors were encountered: