summaryrefslogtreecommitdiff
path: root/test/regress/regress1/sygus/issue3654.sy
blob: 12949c55aa9d89dc4294e94c221e8753eb52cbb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
; EXPECT: unknown
; COMMAND-LINE: --sygus-out=status
(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)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback