Debian Codegraph @

test/regress/cli/regress0/ufdt/isaplanner-goal38.smt2

raw
1 ; COMMAND-LINE: --dt-stc-ind
2 ; EXPECT: unsat
3 (set-logic UFDT)
4 (declare-datatype Nat ((zero) (succ (pred Nat))))
5 (declare-datatype Lst ((nil) (cons (head Nat) (tail Lst))))
6 (declare-fun append (Lst Lst) Lst)
7 (assert (forall ((x Lst)) (= (append nil x) x)))
8 (assert (forall ((x Nat) (y Lst) (z Lst)) (= (append (cons x y) z) (cons x (append y z)))))
9 (declare-fun count (Nat Lst) Nat)
10 (assert (forall ((x Nat) (y Nat) (z Lst)) (= (count x (cons y z)) (ite (= x y) (succ (count x z)) (count x z)))))
11 (assert (not (forall ((n Nat) (x Lst)) (= (count n (append x (cons n nil))) (succ (count n x))))))
12 (check-sat)