From (Z3: Is it possible to sum up a BitVec and a Real?) , I tried to convert an int to bitvec using
x = Int('x')
reg = BitVecRef(Z3_mk_int2bv(BitVecVal(x.ctx_ref(), 16, x)), x.ctx)
but I always get an error saying " 'Ast' object has no attribute 'ref' ", it seems this function can only convert integer to bitvec, is there any other way to convert Int to bitvec?
Also I know this function is treated as uninterpreted for now, do I need to recompile my local version from (bv-enable-int2bv-propagation option) ?
Thanks in advance!