summaryrefslogtreecommitdiff
path: root/test/regress/regress1/sygus/list-head-x.sy
blob: f1c99a28f06730b2d502e94fc67101c540f07af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; EXPECT: unsat
; COMMAND-LINE: --lang=sygus2 --sygus-si=all --sygus-out=status
(set-logic ALL)

(declare-datatypes ((List 0)) (((cons (head Int) (tail List)) (nil))))

(synth-fun f ((x Int)) List)

(declare-var x Int)

(constraint ((_ is cons) (f x)))
(constraint (= (head (f x)) (+ x 7)))
(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback