3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-05 17:14:07 +00:00
z3/examples/maxsat/ex.smt
Nikolaj Bjorner 9f567a6215 fix example file to be smt2 format
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2017-11-29 19:38:47 -08:00

11 lines
247 B
Plaintext

(declare-const x Int)
(declare-const y Int)
(declare-const z Int)
(assert-soft (> x 0))
(assert-soft (<= x -1))
(assert-soft (or (> x 0) (< y 1)))
(assert-soft (> y 2))
(assert-soft (> y 3))
(assert-soft (<= y -1))
(assert (= z (+ x y)))