summaryrefslogtreecommitdiff
path: root/test/regress/regress1/sygus/inv-example.sy
blob: bcc6c0aa8797fb58c8c33529976798f52cf9d7a1 (plain)
1
2
3
4
5
6
7
8
9
; EXPECT: unsat
; COMMAND-LINE: --lang=sygus2 --sygus-out=status
(set-logic LIA)
(synth-inv inv-f ((x Int) (y Int) (b Bool)))
(define-fun pre-f ((x Int) (y Int) (b Bool)) Bool (and (and (>= x 5) (<= x 9)) (and (>= y 1) (<= y 3))))
(define-fun trans-f ((x Int) (y Int) (b Bool) (x! Int) (y! Int) (b! Bool)) Bool (and (and (= b! b) (= y! x)) (ite b (= x! (+ x 10)) (= x! (+ x 12)))))
(define-fun post-f ((x Int) (y Int) (b Bool)) Bool (<= y x))
(inv-constraint inv-f pre-f trans-f post-f)
(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback