-
-
Notifications
You must be signed in to change notification settings - Fork 83
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 bug in removeDefLocalsOf, also lp issue #1118
fix bug in removeDefLocalsOf, also lp issue #1118
Conversation
…cannot-invoke-sootupcorejimplebasiclocalgetname-because-newlocal-is-null
…cannot-invoke-sootupcorejimplebasiclocalgetname-because-newlocal-is-null
List<Stmt> localOccurrences = new ArrayList<>(); | ||
for (Stmt stmt : stmts) { | ||
if (stmt.equivTo(removedStmt)) continue; | ||
List<Value> stmtUses = stmt.getUsesAndDefs().collect(Collectors.toList()); |
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.
Do you really want stmt.getUsesAndDefs()
? Shouldn't it be stmt.getUses()
?
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.
getUses only gives me only the right hand side values like b = virtualinvoke(a) but stmt.getUsesAndDefs() also gives me a = anything i.e definitions of a.
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.
If it's the uses AND defs that you want then we should rename this method/variables.
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.
Done
…cannot-invoke-sootupcorejimplebasiclocalgetname-because-newlocal-is-null
No description provided.