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

fix: Improve ghost detection in comprehensions #5041

Merged

Conversation

RustanLeino
Copy link
Collaborator

@RustanLeino RustanLeino commented Feb 1, 2024

Fixes #5033
Fixes #5034
Fixes #5035

This PR allows more expressions as compiled (from issues #5033 and #5034) and also adds some missing restrictions on uses of ghosts (#5035), all having to do with set/iset/map/imap comprehensions.

How has this been tested?

The tests from these Issues have been added to DiscoverBounds.dfy and DiscoverBoundsErrors.dfy.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@keyboardDrummer keyboardDrummer enabled auto-merge (squash) February 2, 2024 10:08
@keyboardDrummer keyboardDrummer merged commit 705f216 into dafny-lang:master Feb 2, 2024
20 checks passed
@RustanLeino RustanLeino deleted the fix-comprehension-ghost-issues branch February 2, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants