-
Notifications
You must be signed in to change notification settings - Fork 34
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
quint verify
converts big integers to MAX_INT
somewhere
#1055
quint verify
converts big integers to MAX_INT
somewhere
#1055
Comments
I suspect this is may be happening when deserializing into Apalache's version of the QuintIR. to be - @key("int") case class QuintInt(id: Int, value: Int) extends QuintEx {}
+ @key("int") case class QuintInt(id: Int, value: BigInt) extends QuintEx {}
object QuintInt {
implicit val rw: RW[QuintInt] = macroRW
} thanks to upickle's support for |
Wow, thanks for the pointer! This kind of deserialization looks highly optimistic on unpickle's end though. @shonfeder is there a way to make upickle throw instead of just truncating numbers? |
Well, I changed it to
The reason is that upickle expects fields that are deserialized to |
There's this PR on the upickle repo, but it seems it never made it in: |
Not fixed until we also patch the Quint side |
Here is a very simple example:
Run
quint verify
as follows (with the proper ritual of starting the Apalache server first):It's obvious that the translation has converted a big integer to i32 MAX_INT somewhere on the way.
The text was updated successfully, but these errors were encountered: