| 1 |
; COMMAND-LINE: --sygus-out=status --sygus-enum=smart --no-sygus-repair-const -q |
| 2 |
; EXPECT: fail |
| 3 |
(set-logic ALL) |
| 4 |
(define-fun clamp-int((x Int)) Int (ite (< 5 x) 5 (ite (< x 0) 0 x))) |
| 5 |
(synth-fun f |
| 6 |
((r Int)) Bool |
| 7 |
((B Bool) (fv_I Int) (I Int) (IClamp Int) (IConst Int)) |
| 8 |
( |
| 9 |
(B Bool ((Variable Bool) (> fv_I I))) |
| 10 |
(fv_I Int (r IClamp)) |
| 11 |
(I Int (IClamp)) |
| 12 |
(IClamp Int ((clamp-int IConst))) |
| 13 |
(IConst Int ((Constant Int))) |
| 14 |
) |
| 15 |
) |
| 16 |
(synth-fun int_const |
| 17 |
() Int |
| 18 |
((IConst Int)) |
| 19 |
( |
| 20 |
(IConst Int ((Constant Int))) |
| 21 |
) |
| 22 |
) |
| 23 |
(constraint (f 4)) |
| 24 |
(constraint (not (f 1))) |
| 25 |
; currently does not solve, due to overpruning from smart enumeration, however it is feasible. |
| 26 |
(check-synth) |