Debian Codegraph @

test/regress/cli/regress1/sygus/inv-example.sy

raw
1 ; EXPECT: feasible
2 ; COMMAND-LINE: --lang=sygus2 --sygus-out=status
3 (set-logic LIA)
4 (synth-inv inv-f ((x Int) (y Int) (b Bool)))
5 (define-fun pre-f ((x Int) (y Int) (b Bool)) Bool (and (and (>= x 5) (<= x 9)) (and (>= y 1) (<= y 3))))
6 (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)))))
7 (define-fun post-f ((x Int) (y Int) (b Bool)) Bool (<= y x))
8 (inv-constraint inv-f pre-f trans-f post-f)
9 (check-synth)