Closed QDelta closed 2 years ago
You want integer->bitvector, which works on symbolic values.
(define-symbolic* b boolean?)
(integer->bitvector (if b 1 2) (bitvector 32))
You want integer->bitvector, which works on symbolic values.
(define-symbolic* b boolean?) (integer->bitvector (if b 1 2) (bitvector 32))
That's exactly what I want, thank you!
The following code will fail:
The error message:
The expected result:
I noticed that
bv
only accepts concrete values (real?
). Is there a solution or a workaround (like implementing abv
wrapper)? It may be difficult for me to just replace all integers with bitvectors.