test/regress/cli/regress1/sygus/list-head-x.sy
raw| 1 | ; EXPECT: feasible |
| 2 | ; COMMAND-LINE: --lang=sygus2 --sygus-si=all --sygus-out=status |
| 3 | (set-logic ALL) |
| 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 (= (head (f x)) (+ x 7))) |
| 13 | (check-synth) |