Debian Codegraph @

test/regress/cli/regress1/sygus/dt-test-ns.sy

raw
1 ; EXPECT: feasible
2 ; COMMAND-LINE: --lang=sygus2 --sygus-si=all --sygus-out=status
3 (set-logic DTLIA)
4
5 (declare-datatypes ((List 0)) (((cons (head Int) (tail List)) (nil))))
6
7 (synth-fun f ((x Int)) List)
8
9 (declare-var x Int)
10
11 (constraint ((_ is cons) (f x)))
12 (constraint (and (= (head (f x)) x) (= (head (f x)) (+ 5 (head (tail (f x)))))))
13 (check-synth)