Label on SMT-LIB 2.0 assertions in z3
问题 Could you tell me how to name assertions in a z3 SMT-LIB 2.0 benchmark? I would prefer to use the standard syntax of SMT-LIB, but as z3 seems not to understand it, I'm just looking for one working with z3. The need is to get unsat cores with labels. Here is an example of benchmark I tested: (set-option enable-cores) (set-logic AUFLIA) (declare-fun x () Int) (declare-fun y () Int) (declare-fun z () Int) (assert (! (<= 0 x) :named hyp1)) (assert (! (<= 0 y) :named hyp2)) (assert (! (<= 0 z)