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