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

Function postconditions are not checked #26

Open
siddharth-krishna opened this issue Nov 2, 2018 · 2 comments
Open

Function postconditions are not checked #26

siddharth-krishna opened this issue Nov 2, 2018 · 2 comments
Labels

Comments

@siddharth-krishna
Copy link
Collaborator

This example passes:

pure function foo(x: Int) returns (y: Int)
  ensures y > x
{
  x - 2
}

Was there some reason why these checks are hard to do in general, or have we just not implemented the checks yet?

@wies
Copy link
Owner

wies commented Nov 2, 2018

For functions they are easy to implement, but for non-pure predicates it is a bit more involved. I was always hoping we could do it once and for all for both functions and predicates, but no one has risen to the occasion so far (including myself :-)

@siddharth-krishna
Copy link
Collaborator Author

Haha. It's not critical, I just thought we should have an issue to keep track of the fact that they're not checked.

@wies wies added the bug label Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants