| 1 |
; EXPECT: feasible |
| 2 |
; COMMAND-LINE: --lang=sygus2 --sygus-inv-templ=post --sygus-out=status |
| 3 |
(set-logic LIA) |
| 4 |
|
| 5 |
(synth-inv inv-f ((x Int) (y Int))) |
| 6 |
|
| 7 |
(define-fun pre-f ((x Int) (y Int)) Bool |
| 8 |
(and (and (>= x 0) |
| 9 |
(and (<= x 2) |
| 10 |
(<= y 2))) (>= y 0))) |
| 11 |
|
| 12 |
(define-fun trans-f ((x Int) (y Int) (x! Int) (y! Int)) Bool |
| 13 |
(and (= x! (+ x 2)) (= y! (+ y 2)))) |
| 14 |
|
| 15 |
(define-fun post-f ((x Int) (y Int)) Bool |
| 16 |
(not (and (= x 4) (= y 0)))) |
| 17 |
|
| 18 |
(inv-constraint inv-f pre-f trans-f post-f) |
| 19 |
|
| 20 |
(check-synth) |