-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
bv2int and bv2nat #1252
Comments
Why is this surprising? BitVectors aren't signed. They are only treated in a signed manner by certain operators. I was going to suggest using It would be nice if the SMT-LIB standard actually defined functions to convert between Int and BitVector sorts but AFAIK they are not defined right now. I think renaming Making |
What @delcypher said, plus: |
Signed-off-by: Nikolaj Bjorner <[email protected]>
I guess the question is interoperation, and that bv2nat and bv2int have the same meaning, so could be alias. |
Hi,
The bitvector theory describes bv2nat, however Z3 implements bv2int. I was surprised to find out that this actually behaves like bv2nat (i.e. never produces negative numbers). Could it be renamed so that we (SPARK) don't have to generate different VCs for CVC4 and Z3?
Or, even better, support both?
The text was updated successfully, but these errors were encountered: