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

Opaque constant gives an incorrect missing {:axiom} warning #5306

Closed
keyboardDrummer opened this issue Apr 8, 2024 · 0 comments · Fixed by #5307
Closed

Opaque constant gives an incorrect missing {:axiom} warning #5306

keyboardDrummer opened this issue Apr 8, 2024 · 0 comments · Fixed by #5307
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: verifier Translation from Dafny to Boogie (translator)

Comments

@keyboardDrummer
Copy link
Member

type Even = x: int | x % 2 == 0
opaque const {:axiom} ten: Even := 10
@keyboardDrummer keyboardDrummer added kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: verifier Translation from Dafny to Boogie (translator) labels Apr 8, 2024
keyboardDrummer added a commit that referenced this issue Apr 9, 2024
Fixes #5306

### Description
- Fix incorrect missing {:axiom} warning message that occurred when
having an opaque constant for a subset type.

### How has this been tested?
- Added a CLI test

<small>By submitting this pull request, I confirm that my contribution
is made under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

1 participant