| 1 |
; EXPECT: infeasible |
| 2 |
; COMMAND-LINE: --lang=sygus2 --sygus-out=status -q |
| 3 |
(set-logic ALL) |
| 4 |
(synth-fun inv-fn ((i Int) (x (Array Int Int)) (c Int)) Bool) |
| 5 |
|
| 6 |
(define-fun init-fn ((i Int) (x (Array Int Int)) (c Int)) Bool |
| 7 |
(and (= i 0) |
| 8 |
(= (select x 10) c))) |
| 9 |
|
| 10 |
(define-fun post-fn ((i Int) (x (Array Int Int))(c Int)) Bool |
| 11 |
(exists ((index Int)) (and (= (select x index) c) |
| 12 |
(forall ((index2 Int)) (=> (< index2 index) (not (= (select x index) c)))) |
| 13 |
))) |
| 14 |
|
| 15 |
(declare-var x (Array Int Int)) |
| 16 |
(declare-var x! (Array Int Int)) |
| 17 |
(declare-var i Int) |
| 18 |
(declare-var i! Int) |
| 19 |
(declare-var c Int) |
| 20 |
|
| 21 |
(constraint (=> (init-fn i x c) (inv-fn i x c))) |
| 22 |
(constraint (=> (inv-fn i x c) (post-fn i x c))) |
| 23 |
(check-synth) |