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: Check well-definedness of forall-ensures #2606

Merged
merged 4 commits into from
Aug 19, 2022

Conversation

RustanLeino
Copy link
Collaborator

This PR adds the previously omitted well-definedness checks for the ensures clauses of forall statements.

Fixes #2605

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@@ -1022,12 +1022,18 @@ public partial class Translator {
TrStmt_CheckWellformed(s.Range, definedness, locals, etran, false);
definedness.Add(TrAssumeCmd(s.Range.tok, etran.TrExpr(s.Range)));

var ensuresDefinedness = new BoogieStmtListBuilder(this);
foreach (var ens in s.Ens) {
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer longer variable names: ensures[Clause] in this case.

@keyboardDrummer keyboardDrummer enabled auto-merge (squash) August 19, 2022 09:03
@keyboardDrummer keyboardDrummer merged commit cea5f12 into dafny-lang:master Aug 19, 2022
@RustanLeino RustanLeino deleted the issue-2605 branch October 10, 2022 16:58
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.

forall statement ensures clauses are missing well-formedness checks
2 participants