mirror of
https://github.com/AdaCore/cvc5.git
synced 2026-02-12 12:32:16 -08:00
16 lines
232 B
Python
16 lines
232 B
Python
from cvc5.pythonic import *
|
|
|
|
slv = SolverFor('QF_LIRA')
|
|
|
|
x = Int('x')
|
|
y = Real('y')
|
|
|
|
slv += And(x >= 3 * y, x <= y, -2 < x)
|
|
slv.push()
|
|
print(slv.check(y-x <= 2/3))
|
|
slv.pop()
|
|
slv.push()
|
|
slv += y-x == 2/3
|
|
print(slv.check())
|
|
slv.pop()
|