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