mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 03:05:31 -05:00
28 lines
1.1 KiB
Text
28 lines
1.1 KiB
Text
(set-info :smt-lib-version 2.6)
|
|
(set-logic QF_DT)
|
|
(set-info :source |
|
|
Generated by: Andrew Reynolds
|
|
Generated on: 2017-04-28
|
|
Generator: Random, converted to v2.6 by CVC4
|
|
Application: Regressions for datatypes decision procedure.
|
|
Target solver: CVC3
|
|
Publications: "An Abstract Decision Procedure for Satisfiability in the Theory of Inductive Data Types" by Clark Barrett, Igor Shikanian, and Cesare Tinelli, Journal on Satisfiability, Boolean Modeling and Computation 2007.
|
|
|)
|
|
(set-info :license "https://creativecommons.org/licenses/by/4.0/")
|
|
(set-info :category "random")
|
|
(set-info :status unsat)
|
|
|
|
|
|
(declare-datatypes ((nat 0)(list 0)(tree 0)) (((succ (pred nat)) (zero))
|
|
((cons (car tree) (cdr list)) (null))
|
|
((node (children list)) (leaf (data nat)))
|
|
))
|
|
(declare-fun x1 () nat)
|
|
(declare-fun x2 () list)
|
|
(declare-fun x3 () tree)
|
|
|
|
(assert (and (and (and (and (and (and (and (and (not ((_ is cons) x2)) (not ((_ is node) (car (cdr (cdr (cdr null))))))) (= null (cons (car x2) null))) (not ((_ is cons) null))) (= (node null) (leaf zero))) (not ((_ is zero) (data x3)))) ((_ is cons) null)) ((_ is zero) x1)) (not (= (pred zero) (data (leaf x1))))))
|
|
(check-sat)
|
|
(exit)
|
|
|
|
|