Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from z3 import *
- solver = z3.Solver()
- x = Int('x')
- def f(y):
- return y+y
- solver.add(x >= 0, x < 10, Exists(x, f(x) == 4) )
- print solver.check()
- print solver.model()
- sat
- [x = 0]
- sat
- [x = 2]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement