-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Bogus safety violation checking if a set is a subset of Nat. #2960
Conversation
5724d0d causes Apalache to report a proper error message: |
2fc1591
to
b2ca837
Compare
Hey Markus! The Apalache encoding was not designed to deal with infinite sets. The only exception (a hack?) was made for I have two thoughts about this:
|
@konnov This PR does not aim to extend the encoding. Instead, it ensures that Apalache throws an error when an infinite set is encountered in a context where it isn't properly handled. |
Ah, sorry, I missed that. Yes, this makes sense to add. Thanks a lot! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A safeguard would definitely help!
This is ready for review and merging. Although commits c69c355 and 830caa7 prevent any of the three encodings from reporting a bogus invariant violation for expressions like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense! Thanks for adding the safeguards
I cannot add an entry in |
What should that entry be? |
Oh, just one line describing the nature of the change, see https://github.com/apalache-mc/apalache/blob/main/CONTRIBUTING.md#how-to-record-a-change I guess, it should technically go into bug-fixes. |
Part of Github issue $2948 apalache-mc#2948
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes Github issue #2948
#2948