summaryrefslogtreecommitdiff
path: root/examples/api/smtlib/linear_arith.smt2
blob: ede655b0ecb66b97f7c5792df9c2d9c8e202a785 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(set-logic QF_LIRA)
(declare-const x Int)
(declare-const y Real)
(assert
    (and
        (>= x (* 3 y))
        (<= x y)
        (< (- 2) x)
    )
)
(push 1)
(echo "Checking entailement by asserting the negation")
(echo "Unsat == ENTAILED")
(assert (not (<= (- y x) (/ 2 3))))
(check-sat)
(pop 1)
(push 1)
(echo "Checking that the assertions are consistent")
(assert (= (- y x) (/ 2 3)))
(check-sat)
(pop 1)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback