Closed tintinlam007 closed 4 years ago
(declare-const A ( BitVec 8)) (declare-const B ( BitVec 4)) (assert (= A #x01)) (assert (= A B)) (check-sat) (get-model)
z3 has got error because size of BitVec incompatible. How to transformat BitVec size? thank you~
Use the zero_extend or sign_extend operator as defined in smt-lib here: http://smtlib.cs.uiowa.edu/Logics/QF_BV.smt2
zero_extend
sign_extend
(declare-const A ( BitVec 8)) (declare-const B ( BitVec 4)) (assert (= A #x01)) (assert (= A B)) (check-sat) (get-model)
z3 has got error because size of BitVec incompatible. How to transformat BitVec size? thank you~