This commit is contained in:
Simon Cruanes 2021-09-01 09:00:39 -04:00
parent 521340a23f
commit 85c00ecfa2
No known key found for this signature in database
GPG key ID: 4AC01D0849AA62B6

View file

@ -1658,25 +1658,6 @@ module Make(Plugin : PLUGIN)
(Format.pp_print_list (Atom.debug store)) !core); (Format.pp_print_list (Atom.debug store)) !core);
!core !core
(*
module Clause_gc = struct
type state = {
solver: solver;
dirty_atoms: Atom.V
}
end
*)
(* FIXME: also handle clause pools.
- pools should probably have a "needs_gc" flag instead of doing GC
themselves
- each pool GC's itself by moving clauses into self.clauses_dead
- then all dead clauses are detached (+ dirty atoms marked),
we clean dirty atoms' watchlists, and finally remove clause.
*)
(* GC: remove some learnt clauses. (* GC: remove some learnt clauses.
This works even during the proof with a non empty trail. *) This works even during the proof with a non empty trail. *)
let reduce_clause_db (self:t) : unit = let reduce_clause_db (self:t) : unit =
@ -1871,8 +1852,6 @@ module Make(Plugin : PLUGIN)
reduce_clause_db st; reduce_clause_db st;
); );
(* TODO: do a GC for all clause pools that need it *)
pick_branch_lit st pick_branch_lit st
done done