test/regress/cli/regress1/sygus/double.sy
raw| 1 | ; EXPECT: feasible |
| 2 | ; COMMAND-LINE: --lang=sygus2 --sygus-out=status |
| 3 | |
| 4 | (set-logic SLIA) |
| 5 | (declare-datatype Ex ((Ex2 (ex Int)))) |
| 6 | |
| 7 | (synth-fun double ((x1 Ex)) Int |
| 8 | ((ntInt Int) (ntEx Ex)) |
| 9 | ( |
| 10 | (ntInt Int |
| 11 | ( |
| 12 | (ex ntEx) |
| 13 | (+ ntInt ntInt) |
| 14 | ) |
| 15 | ) |
| 16 | (ntEx Ex |
| 17 | ( |
| 18 | x1 |
| 19 | (Ex2 ntInt) |
| 20 | ) |
| 21 | ) |
| 22 | ) |
| 23 | ) |
| 24 | (constraint (= (double (Ex2 1)) 2)) |
| 25 | (constraint (= (double (Ex2 4)) 8)) |
| 26 | (check-synth) |