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

Consistency checks to forbid inhale-exhale-assertions in function preconditions and predicate bodies #828

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcoeilers
Copy link
Contributor

This PR adds consistency checks that forbid inhale-exhale assertions in predicate bodies and in function preconditions. Currently, Silicon raises an internal error when it encounters these (see viperproject/silicon#271), whereas Carbon just accepts them.

I think the semantics is at the very least completely unclear and probably doesn't make sense at all, which is why this PR forbids this situation for now. However, this obviously needs to be discussed first, so this PR should not be merged before it's been discussed in a Viper meeting.

@marcoeilers marcoeilers marked this pull request as draft December 29, 2024 04:32
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

Successfully merging this pull request may close these issues.

1 participant