-
Notifications
You must be signed in to change notification settings - Fork 17
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 with dataset iterator processing #201
Conversation
Always use the points-to analysis.
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.
One suggestion
} | ||
} | ||
} | ||
processInstruction(ni, du, localPointerKeyNode, src, vn, sources, pointerAnalysis); |
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.
Maybe processInvokeInstruction
?
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.
Sorry for the delay. Yes, I also initially thought of that. But, then I decided to use method overloading:
private static boolean processInstruction(
SSAAbstractInvokeInstruction instruction,
...
In other words, the first parameter's type implicitly informs that an invoke instruction is being "processed." I can change it back if desired.
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.
My preference is to change the method name to processInvokeInstruction
for a bit more clarity (in my opinion). But it's up to you; you read this code a lot more than I do 🙂 Not a huge deal
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.
I think that this is a good suggestion, but I wonder if we change this one, how many other ones are in a similar boat :).
src
points-to variable to be added.