Suppose that a
is an integer of 8-bit of value 254
. If a
is a signed integer, it is actually considered -2
. In contrary, if a
is unsigned, it remains 254
.
I am trying to model this signed/unsigned integer problem with BitVector theory with Z3, but it seems BitVector doesnt allow this. Is this true? Then any idea on how to model this in Z3py?
Thanks so much.