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
x/tools/cmd/guru: could pointsto analysis for unassigned interfaces be improved? #41370
Comments
Is this an ssa optimization to use a global untyped nil interface and avoid constructing it? If so, how do I go about finding out the rule for it? When
When
|
I realized I could build the naive SSA form using -N
I'm exploring the code and slowing getting there lol |
Okay, got it. All I had to do was add prog := ssautil.CreateProgram(lprog, ssa.GlobalDebug|ssa.NaiveForm) Now guru pointsto's message is a lot better (for my use):
I am still interested in being able to only partially enable ssa.NaiveForm, so that I don't miss other useful features of the non-naive form. |
/cc @golang/tools-team |
@siadat: We welcome any patches if you're interested in contributing, but |
Thank you for the replies! :) Is guru being replaced by something else? gopls comes to mind EDIT: okay, I found the implementation doc :) |
Regarding this issue: I'd love to help! :) Enabling ssa.NaiveForm in guru will change the output of the pointsto subcommand for inputs other than the one reported in this issue. (I can write an example if needed.) So, I think a good fix would follow one of these two approaches:
Let me know what you think :) |
What version of Go are you using?
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using?
go env
OutputWhat did you do?
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: