]> matita.cs.unibo.it Git - helm.git/blobdiff - matitaB/components/ng_paramodulation/paramod.ml
Typo in comment
[helm.git] / matitaB / components / ng_paramodulation / paramod.ml
index 33f802f7f036caf9152d65de93a4c3cabce55842..a1ec9bc14caad983ee84a5f80a8467ef88f65ac4 100644 (file)
@@ -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"