You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to Z3 and accidentally called BitVec(foo, 2**bar) instead of BitVec(foo, bar). Two observations:
Calling BitVec(foo, 2**32-1) crashes my Python kernel.
Using 2**32 - 2 or 2**32 results in two different error messages.
import z3
errs = set()
for i in range(66):
try:
z3.BitVec('foo', 2**i)
except Exception as e:
se = str(e)
if se not in errs:
errs.add(se)
print(f"{i} 2**{i} {e}")
print( z3.get_full_version() )
# 29 2**29 b'Overflow encountered when expanding vector'
# 32 2**32 b'bit-vector size must be greater than zero'
# Z3 4.13.3.0
The text was updated successfully, but these errors were encountered:
I am new to Z3 and accidentally called
BitVec(foo, 2**bar)
instead ofBitVec(foo, bar)
. Two observations:BitVec(foo, 2**32-1)
crashes my Python kernel.2**32 - 2
or2**32
results in two different error messages.The text was updated successfully, but these errors were encountered: