Why Z3Py does not provide all possible solutions
I ran into a problem where Z3Py does not enumerate all possible solutions for the given Boolean clauses. I was wondering if anyone knows why this is happening. Here is the code I use for the Z3Py. There are 5 booleans: 1 2 3 4 and 5. from z3 import * a,b,c,d,e = Bools('1 2 3 4 5') solver = Solver() solver.add(Or(Not(a), Not(b))) solver.add(Or(Not(b), Not(c))) solver.add(Or(Not(c), Not(d))) solver.add(Or(Not(d), Not(e))) while solver.check() == sat: model = solver.model() block = [] for declaration in model: constant = declaration() block.append(constant != model[declaration]) solver.append(Or