Z3 can output the model and we can extract the values when the input is satisfiable.
Is there a way to obtain values for our model when we want unsatisfiability? (note: I'm using the c++ API)
Another way to see this question: when z3 proves that the equations return false, can we print a combination that lead to that unsat (false
) value?
s.add( x > 2)
ands.add(x < 2)
then a possible unsat model would be a model output such as(define-fun x () Int 0)
which satisfiesx < 2
– Anna K.