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