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

Malformed triggers #2593

Closed
RustanLeino opened this issue Aug 15, 2022 · 0 comments · Fixed by #2979
Closed

Malformed triggers #2593

RustanLeino opened this issue Aug 15, 2022 · 0 comments · Fixed by #2979
Assignees
Labels
crash Dafny crashes on this input, or generates malformed code that can not be executed kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: verifier Translation from Dafny to Boogie (translator)

Comments

@RustanLeino
Copy link
Collaborator

The following Dafny program has a old in a less-than-commendable, but legal, position:

predicate P(x: int)

lemma L()
  ensures forall y :: P(old(y))

Alas, the program causes Dafny to generate malformed Boogie code, because of the trigger Dafny generates for the quantifier.

% dafny test.dfy
test.dfy(5,28): Error: a matching pattern must be more than just a variable by itself: y#1
test.dfy(5,28): Error: a matching pattern must be more than just a variable by itself: y#1
2 name resolution errors detected in test__module.bpl

Additional trigger information:

Selected triggers: {old(y)}
Rejected triggers: {P(old(y))} (more specific than {old(y)})
@RustanLeino RustanLeino added part: verifier Translation from Dafny to Boogie (translator) crash Dafny crashes on this input, or generates malformed code that can not be executed labels Aug 15, 2022
@cpitclaudel cpitclaudel added the kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label label Sep 20, 2022
MikaelMayer added a commit that referenced this issue Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Dafny crashes on this input, or generates malformed code that can not be executed kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: verifier Translation from Dafny to Boogie (translator)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants