mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 03:05:31 -05:00
add basic test for th-cstor
This commit is contained in:
parent
e414112010
commit
f1fc429b5a
2 changed files with 9 additions and 0 deletions
|
|
@ -46,6 +46,9 @@ module Make(A : ARG) : S with module A = A = struct
|
|||
let on_new_term self _solver n (t:T.t) =
|
||||
match A.view_as_cstor t with
|
||||
| T_cstor (cstor,args) ->
|
||||
Log.debugf 20
|
||||
(fun k->k "(@[th-cstor.on-new-term@ %a@ :cstor %a@ @[:args@ (@[%a@])@]@]@])"
|
||||
T.pp t Fun.pp cstor (Util.pp_iarray T.pp) args);
|
||||
N_tbl.add self.cstors n {n; t; cstor; args};
|
||||
| _ -> ()
|
||||
|
||||
|
|
|
|||
6
tests/unsat/cstor1.smt2
Normal file
6
tests/unsat/cstor1.smt2
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
(set-info :status unsat)
|
||||
(declare-datatypes ((nat 0)) (((succ (pred nat)) (zero))))
|
||||
|
||||
(assert (= (succ (succ zero)) (succ zero)))
|
||||
(check-sat)
|
||||
Loading…
Add table
Reference in a new issue