Do we treat Coq int correctly?
lthms opened this issue · comments
The Coq int
type is unsigned, while on the contrary in OCaml, int
is signed and there is no such thing as uint
in OCaml.
Therefore, when we cast a int
term to a int
OCaml value, we may actually witness integer overflow somewhere.
Reported by @mbty-ssi, the following may be relevant: https://github.com/andrenth/ocaml-stdint
We were not, but this will be fixed elsewhere.