summaryrefslogtreecommitdiff
path: root/test/regress/regress0/sygus/dt-test-ns.sy
blob: ed17f4ff2b4b7e67e1eb926483805e8d3a95d4d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; EXPECT: unsat
; COMMAND-LINE: --cegqi-si --no-dump-synth
(set-logic LIA)

(declare-datatypes () ((List (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