summaryrefslogtreecommitdiff
path: root/test/regress/regress1/sygus/dt-test-ns.sy
blob: 90fa57827f55164a6ac1fc687fb34e405af27b28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; EXPECT: unsat
; COMMAND-LINE: --lang=sygus2 --cegqi-si=all --sygus-out=status
(set-logic DTLIA)

(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 (and (= (head (f x)) x) (= (head (f x)) (+ 5 (head (tail (f x)))))))
(check-synth)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback