-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/compile: "in prove, detect loops with negative increments" breaks blackfriday tests #26116
Comments
I dug into this. The bug comes while compiling this loop in
Note that the I don't understand what precisely is going wrong in |
I looked at this some more and I think I understand what's going on, but fixing it is way above my head. A self-contained repro:
I believe the problem is that we aren't checking that Separately, while reading the code I noticed that we never set |
Certainly the induction variable conclusion is wrong (compile with
The upper limit is wrong. It's treating |
Change https://golang.org/cl/121940 mentions this issue: |
CL 104041 (commit 6d379ad) breaks a test in blackfriday:
I haven't looked at all at what exactly is happening, sorry.
CC @dr2chase @rasky @aclements
The text was updated successfully, but these errors were encountered: