-
Notifications
You must be signed in to change notification settings - Fork 50
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
"Closure" error in pearlite #1215
Comments
Actually,
|
Ah, the |
Yes, the logic vcgenerator doesn't support closures. |
I had assumed that adding contracts to a logical function simply generate a proof obligation of the form |
the VC it generates is a bit more complex than this, but that is the principle, the issue though is what happens if your closure contains a recursive call? what if it contains an expression with preconditions etc.. the current vc is extremely conservative. |
YEah, but we should really do something (even if stupid) with every language construct, including closures. |
It look like the closure syntax is allowed in
pearlite!{}
blocks to defineMapping
s, but when trying to use it in aproof_assert!{}
I get an error from creusot.raises the error
Closure(path/to/file.rs)
The text was updated successfully, but these errors were encountered: