mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-09 04:35:35 -05:00
refactor mini-cc
This commit is contained in:
parent
35e5e30e93
commit
7ef673ca30
1 changed files with 5 additions and 5 deletions
|
|
@ -147,13 +147,14 @@ module Make(A: ARG) = struct
|
|||
self
|
||||
|
||||
let clear (self:t) : unit =
|
||||
let {ok=_; tbl; sig_tbl; pending=_; combine=_; true_; false_} = self in
|
||||
self.ok <- true;
|
||||
T_tbl.clear self.tbl;
|
||||
Sig_tbl.clear self.sig_tbl;
|
||||
self.pending <- [];
|
||||
self.combine <- [];
|
||||
T_tbl.add self.tbl self.true_.n_t self.true_;
|
||||
T_tbl.add self.tbl self.false_.n_t self.false_;
|
||||
T_tbl.clear tbl;
|
||||
Sig_tbl.clear sig_tbl;
|
||||
T_tbl.add tbl true_.n_t true_;
|
||||
T_tbl.add tbl false_.n_t false_;
|
||||
()
|
||||
|
||||
let sub_ t k : unit =
|
||||
|
|
@ -317,5 +318,4 @@ module Make(A: ARG) = struct
|
|||
|> Iter.filter Node.is_root
|
||||
|> Iter.map
|
||||
(fun n -> Node.iter_cls n |> Iter.map Node.term)
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue