Dose z3 find all satifiable models -
there constraints such x + y > 5 , x > 3 , y < 4, set of models x = 4 y= 3, given z3. dose z3 can give models incrementally, such set of models x=5,y = 2? thanks. regards
can tell me please happens this:
x,y = bools('x y') s = solver() s.add(or(x,y)) count = 0 while s.check() == sat , count <= 50: print s.model() s.add(or(x != s.model()[x], y != s.model()[y])) count = count + 1 print count
the output is:
[y = false, x = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] [y = true] 51
online here
Comments
Post a Comment