Get UNSAT Core using Z3 from .smt2 file -
i need unsat core z3. contents of .smt2 file are:
(set-option :produce-unsat-cores true) (set-logic qf_aufbv ) (declare-fun () (array (_ bitvec 32) (_ bitvec 8) ) ) ; constraints (! (assert (bvslt (concat (select (_ bv3 32) ) (concat (select (_ bv2 32) ) (concat (select (_ bv1 32) ) (select (_ bv0 32) ) ) ) ) (_ bv10 32) ) ) :named ?u0) (! (assert (bvslt (_ bv10 32) (concat (select (_ bv3 32) ) (concat (select (_ bv2 32) ) (concat (select (_ bv1 32) ) (select (_ bv0 32) ) ) ) ) ) ) :named ?u1) (check-sat) (get-unsat-core) (exit)
i getting following output when running z3:unsupported ; ! unsupported ; ! sat (error "line 11 column 15: unsat core not available")
new z3, can't understand happening here (i sure expression unsat).
thanks.
you use !
incorrectly. exclamation point used naming formulae (not asserts). see section 3.9.8 tutorial.
this should fix it: (assert (! (bvslt ...) :named ?u0))
.
Comments
Post a Comment