Skip to content
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

Incorrect spans on loop invariant #1348

Open
Lysxia opened this issue Feb 7, 2025 · 0 comments
Open

Incorrect spans on loop invariant #1348

Lysxia opened this issue Feb 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Lysxia
Copy link
Collaborator

Lysxia commented Feb 7, 2025

The two spans here are wrong (they point to the first invariant instead of the 6th and 7th)

{[@expl:loop invariant #6] [%#sheapsort_generic1] let c = 2 * UIntSize.to_int i + 1 in c < UIntSize.to_int end'
/\ UIntSize.to_int start <= parent'0 (UIntSize.to_int i)
-> le_log'0 (Seq.get (deep_model'0 v) c) (Seq.get (deep_model'0 v) (parent'0 (parent'0 c)))}
{[@expl:loop invariant #7] [%#sheapsort_generic1] let c = 2 * UIntSize.to_int i + 2 in c < UIntSize.to_int end'
/\ UIntSize.to_int start <= parent'0 (UIntSize.to_int i)
-> le_log'0 (Seq.get (deep_model'0 v) c) (Seq.get (deep_model'0 v) (parent'0 (parent'0 c)))}

@Lysxia Lysxia added the bug Something isn't working label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant