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

Feature/Bug: Ensures clauses of bodiless functions should have reads checks #5822

Open
MikaelMayer opened this issue Oct 9, 2024 · 0 comments
Labels
difficulty: good-first-issue Good first issues part: verifier Translation from Dafny to Boogie (translator)

Comments

@MikaelMayer
Copy link
Member

trait A {
  var x: int
  function Test(): int
    ensures Test() == x
}

Is not giving any error, and it's impossible to implement such a trait. However, it might be extremely useful, especially in modeling situations when the trait isn't going to be implemented at all, to perform reads checks on the ensures clause.
Reads checks on ensures clauses aren't necessary when the function is provided with a body.

@MikaelMayer MikaelMayer added part: verifier Translation from Dafny to Boogie (translator) difficulty: good-first-issue Good first issues labels Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: good-first-issue Good first issues part: verifier Translation from Dafny to Boogie (translator)
Projects
None yet
Development

No branches or pull requests

1 participant