mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-11 05:28:34 -05:00
feat(check-cc): add statistics
This commit is contained in:
parent
7d8589accd
commit
9ddce6a186
3 changed files with 7 additions and 1 deletions
|
|
@ -328,6 +328,7 @@ module type SOLVER_INTERNAL = sig
|
||||||
type solver = t
|
type solver = t
|
||||||
|
|
||||||
val tst : t -> term_state
|
val tst : t -> term_state
|
||||||
|
val stats : t -> Stat.t
|
||||||
|
|
||||||
(** {3 Literals}
|
(** {3 Literals}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -193,6 +193,7 @@ module Make(A : ARG)
|
||||||
|
|
||||||
let[@inline] cc (t:t) = Lazy.force t.cc
|
let[@inline] cc (t:t) = Lazy.force t.cc
|
||||||
let[@inline] tst t = t.tst
|
let[@inline] tst t = t.tst
|
||||||
|
let stats t = t.stat
|
||||||
|
|
||||||
let simplifier self = self.simp
|
let simplifier self = self.simp
|
||||||
let simp_t self (t:Term.t) : Term.t = Simplify.normalize self.simp t
|
let simp_t self (t:Term.t) : Term.t = Simplify.normalize self.simp t
|
||||||
|
|
|
||||||
|
|
@ -458,7 +458,11 @@ module Check_cc = struct
|
||||||
let theory =
|
let theory =
|
||||||
Solver.mk_theory ~name:"cc-check"
|
Solver.mk_theory ~name:"cc-check"
|
||||||
~create_and_setup:(fun si ->
|
~create_and_setup:(fun si ->
|
||||||
Solver.Solver_internal.on_cc_conflict si (check_conflict si))
|
let n_calls = Stat.mk_int (Solver.Solver_internal.stats si) "check-cc.call" in
|
||||||
|
Solver.Solver_internal.on_cc_conflict si
|
||||||
|
(fun c ->
|
||||||
|
Stat.incr n_calls;
|
||||||
|
check_conflict si c))
|
||||||
()
|
()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue