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

Verification issue #458

Open
Laurence-Hallo opened this issue Feb 5, 2024 · 0 comments
Open

Verification issue #458

Laurence-Hallo opened this issue Feb 5, 2024 · 0 comments

Comments

@Laurence-Hallo
Copy link

Failing code

method Caller() {
  var s, m := MaxSum(1928, 1);
  assert s == 1929;
  assert m == 1928;
}

method MaxSum(x : int, y : int) returns(s : int, m : int)
  ensures s == x + y
  ensures m >= x && m >= y
  ensures m == x || m == y
{
  s := x + y;


  m := if y > x then y else x;
}

Steps to reproduce the issue

  • Dafny version: 4.4.0.0
  • Dafny VSCode extension version: 3.2.2
  • Move line 13 a line down with enter

Expected behavior

Verified

Actual behavior

Keeps on resolving without an end until hitting the time limit.

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

No branches or pull requests

1 participant