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

Carbon does not report an error when inhaling a not-well-formed postcondition (from a method call) #404

Open
tdardinier opened this issue Feb 9, 2022 · 0 comments

Comments

@tdardinier
Copy link
Contributor

Carbon reports an error for both m1 and m2 (postcondition not-well-formed), but it verifies the main method (because 1/0 has two different values):

method m1()
  ensures 1/0 == 1/1

method m2()
  ensures 1/0 == 2/1

method main()
{
  m1()
  m2()
  assert false
}

By comparison, Silicon reports an error when calling m1()

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