let add_to_bag bag (_,lit,vl,proof) =
let id = mk_id () in
let clause = (id, lit, vl, proof) in
- let bag = Terms.M.add id clause bag in
+ let bag = Terms.M.add id (clause,false) bag in
bag, clause
;;
(Order.compute_unit_clause_weight cl, cl)
;;
- let compare_passive_clauses (w1,(id1,_,_,_)) (w2,(id2,_,_,_)) =
+ let mk_passive_goal g =
+ (Order.compute_unit_clause_weight g, g)
+ ;;
+
+ let compare_passive_clauses_weight (w1,(id1,_,_,_)) (w2,(id2,_,_,_)) =
if w1 = w2 then id1 - id2
else w1 - w2
;;
+ let compare_passive_clauses_age (_,(id1,_,_,_)) (_,(id2,_,_,_)) =
+ id1 - id2
+ ;;
+
end