test/regress/cli/regress1/quantifiers/recfact.cvc.smt2
raw| 1 | ; EXPECT: unsat |
| 2 | ;; Unsat core checking with proofs at one point had issues for |
| 3 | ;; this benchmark due to cycle detection in LazyCDProofChain |
| 4 | (set-logic ALL) |
| 5 | (set-option :incremental false) |
| 6 | (set-option :fmf-fun true) |
| 7 | (declare-fun x () Int) |
| 8 | (define-fun-rec fact ((x Int)) Int (ite (> x 0) (* x (fact (- x 1))) 1)) |
| 9 | (assert (= (fact 0) 2)) |
| 10 | (assert (= x (fact 3))) |
| 11 | (check-sat) |