You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

9 lines
160 B

from z3 import *
p, q = Bools('p q')
s = Solver()
s.add(Not(q))
s.assert_and_track(q, "p1")
s.assert_and_track(p, "p2")
print(s.check())
print(s.unsat_core())