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

fix: Fix CanCall assumptions for loop invariants #1813

Merged
merged 5 commits into from
Feb 17, 2022

Conversation

RustanLeino
Copy link
Collaborator

The CanCall assumptions generated at the end of a loop body (to support the expressions in the loop invariant to be proved) were not generated correctly. In particular, when there are multiple invariant declarations, the CanCall assumptions were not given the right antecedents. (See issue #1812 for more details.)

Fixes #1812

cpitclaudel
cpitclaudel previously approved these changes Feb 11, 2022
Copy link
Member

@cpitclaudel cpitclaudel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving since the code looks good; left a comment.

cpitclaudel
cpitclaudel previously approved these changes Feb 15, 2022
@RustanLeino RustanLeino merged commit d740dc8 into dafny-lang:master Feb 17, 2022
@RustanLeino RustanLeino deleted the issue-1812 branch February 17, 2022 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CanCall for loop invariant applied incorrectly
2 participants