X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=matitaB%2Fcomponents%2Fng_paramodulation%2Fparamod.ml;h=a1ec9bc14caad983ee84a5f80a8467ef88f65ac4;hb=647504aa72b84eb49be8177b88a9254174e84d4b;hp=33f802f7f036caf9152d65de93a4c3cabce55842;hpb=97e59118f8cc0d98c51c0d41e8e7704344666cdb;p=helm.git diff --git a/matitaB/components/ng_paramodulation/paramod.ml b/matitaB/components/ng_paramodulation/paramod.ml index 33f802f7f..a1ec9bc14 100644 --- a/matitaB/components/ng_paramodulation/paramod.ml +++ b/matitaB/components/ng_paramodulation/paramod.ml @@ -30,6 +30,7 @@ module type Paramod = type bag = t Terms.bag * int type state val empty_state : state + val size_of_state : state -> int*int val bag_of_state : state -> bag val replace_bag: state -> bag -> state val mk_passive : bag -> input * input -> bag * t Terms.unit_clause @@ -223,7 +224,7 @@ module Paramod (B : Orderings.Blob) = struct let initialize_goal (bag,maxvar,actives,passives,_,_) t = let (bag,maxvar), g = mk_unit_clause bag maxvar t in let g_passives = g_passive_empty_set in - (* if the goal is not an equation we returns an empty + (* if the goal is not an equation we return an empty passive set *) let g_passives = if Terms.is_eq_clause g then add_passive_goal g_passives g @@ -336,6 +337,8 @@ module Paramod (B : Orderings.Blob) = struct add_passive_goals g_passives new_goals ;; + let size_of_state (_,_,(a,_),p,_,_) = List.length a, passive_set_cardinal p;; + let debug_status (_,_,actives,passives,g_actives,g_passives) = lazy ((Printf.sprintf "Number of active goals : %d\n"