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

Frame and termination checks not subject to by-proof of method call #5734

Open
fabiomadge opened this issue Aug 29, 2024 · 0 comments · May be fixed by #5735
Open

Frame and termination checks not subject to by-proof of method call #5734

fabiomadge opened this issue Aug 29, 2024 · 0 comments · May be fixed by #5735
Labels
kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny part: verifier Translation from Dafny to Boogie (translator)

Comments

@fabiomadge
Copy link
Collaborator

Dafny version

4.8.0

Code to produce this issue

method M(x: int, y: int, s: set<object>, t: set<object>)
  requires y % 2 == 0
  modifies s
  decreases x
{
  M(y, x, t, t) by {
    assume x % 2 == 0; // to prove the precondition of the call
    assume t <= s; // to prove the modifies clause of the call
    assume 0 <= y < x; // to prove termination of the call
  }
}

Command to run and resulting output

No response

What happened?

This should verify

What type of operating system are you experiencing the problem on?

Mac

@fabiomadge fabiomadge added kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny part: verifier Translation from Dafny to Boogie (translator) and removed kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label labels Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny part: verifier Translation from Dafny to Boogie (translator)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant