| 1 |
; COMMAND-LINE: --sygus-out=status |
| 2 |
; EXPECT: feasible |
| 3 |
(set-logic ALL) |
| 4 |
(declare-fun f (Int) Int) |
| 5 |
|
| 6 |
(assert (forall ((x Int)) (= (f x) (ite (= x 0) 0 (+ (f (- x 1)) 1))))) |
| 7 |
|
| 8 |
(synth-fun g () Int) |
| 9 |
|
| 10 |
(constraint (= (f g) 5)) |
| 11 |
(check-synth) |