3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00
z3/python/example.py
Leonardo de Moura 3f9edad676 Z3Py extra files
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2012-10-02 08:24:25 -07:00

9 lines
122 B
Python

from z3 import *
x = Real('x')
y = Real('y')
s = Solver()
s.add(x + y > 5, x > 1, y > 1)
print s.check()
print s.model()