Debian Codegraph @

test/regress/cli/regress1/quantifiers/mutualrec2.cvc.smt2

raw
1 ; EXPECT: unsat
2 (set-logic ALL)
3 (set-option :incremental false)
4 (set-option :fmf-fun true)
5 (define-funs-rec ((iseven ((x Int)) Int) (isodd ((y Int)) Int) (fact ((x Int)) Int)) ((ite (= x 0) 1 (ite (= (isodd (- x 1)) 0) 1 0)) (ite (= y 0) 0 (ite (= (iseven (- y 1)) 0) 1 0)) (ite (= x 0) 1 (* x (fact (- x 1))))))
6 (declare-fun a () Int)
7 (declare-fun b () Int)
8 (declare-fun x () Int)
9 (declare-fun y () Int)
10 (declare-fun z () Int)
11 (assert (= 1 (isodd 4)))
12 (assert (= 0 (iseven 4)))
13 (assert (= 0 (isodd 3)))
14 (assert (= 1 (iseven 3)))
15 (assert (not (= 24 (fact 4))))
16 (check-sat)