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