-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Fix AsmMethodSource assignReadOps(...) always false #472
Conversation
…ctionality. Now redundant jimple statements are removed.
...soot.java.bytecode/src/main/java/de/upb/swt/soot/java/bytecode/frontend/AsmMethodSource.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that it removes the array index indirection is nice as well - thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue of redundant statements does not seem to be fully resolved. Some redundant statements persist, but they do not appear when using the latest version of Soot.
.../src/test/java/de/upb/swt/soot/test/java/bytecode/minimaltestsuite/java6/AutoboxingTest.java
Show resolved
Hide resolved
...rc/test/java/de/upb/swt/soot/test/java/bytecode/minimaltestsuite/java6/GenTypeParamTest.java
Show resolved
Hide resolved
.../src/test/java/de/upb/swt/soot/test/java/bytecode/minimaltestsuite/java6/ReflectionTest.java
Show resolved
Hide resolved
...c/test/java/de/upb/swt/soot/test/java/bytecode/minimaltestsuite/java6/UncheckedCastTest.java
Show resolved
Hide resolved
@Momo-Not-Emo to achieve the described effect you need to enable the In Soot the |
Fixed an if condition in the AsmMethodSource class that always evaluated to false and created redundant jimple statements.
Also updated the test cases to account for the removal of the redundant jimple statements.
See old Soot PR #1834