summaryrefslogtreecommitdiff
path: root/test/regress/regress1/sygus/double.sy
blob: 0ba8222780459baedf053b49cbcd6b67c7d5d640 (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
25
26
; EXPECT: unsat
; COMMAND-LINE: --lang=sygus2 --sygus-out=status

(set-logic SLIA)
(declare-datatype Ex ((Ex2 (ex Int))))

(synth-fun double ((x1 Ex)) Int
	((ntInt Int) (ntEx Ex))
	(
		(ntInt Int
			(
				(ex ntEx)
				(+ ntInt ntInt)
			)
		)
		(ntEx Ex
			( 
				x1
				(Ex2 ntInt)
			)
		)
	)
)
(constraint (= (double (Ex2 1)) 2))
(constraint (= (double (Ex2 4)) 8))
(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback