Skip to content

fix: Improve ghost detection in comprehensions - #5041

Merged
keyboardDrummer merged 4 commits into
dafny-lang:masterfrom
RustanLeino:fix-comprehension-ghost-issues
Feb 2, 2024
Merged

keyboardDrummer merged 4 commits into
dafny-lang:masterfrom
RustanLeino:fix-comprehension-ghost-issues

Conversation

@RustanLeino

@RustanLeino RustanLeino commented Feb 1, 2024 •

Copy link
Copy Markdown
Collaborator

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
@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