X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fsoftware%2Fcomponents%2Fng_paramodulation%2Fsuperposition.ml;h=eca23e720dd9909f23ce10e2004ce6023d649470;hb=ea8676df3c47428157d0d544ec63c320ffa204be;hp=c1d5f8bdcffcd9ab3d7a2f226a278e0afe4c6440;hpb=772def9075b7b62870ebf4cecec6bcd37a549b1d;p=helm.git diff --git a/helm/software/components/ng_paramodulation/superposition.ml b/helm/software/components/ng_paramodulation/superposition.ml index c1d5f8bdc..eca23e720 100644 --- a/helm/software/components/ng_paramodulation/superposition.ml +++ b/helm/software/components/ng_paramodulation/superposition.ml @@ -98,14 +98,6 @@ module Superposition (B : Terms.Blob) = in aux bag pos ctx id t ;; - - let vars_of_term t = - let rec aux acc = function - | Terms.Leaf _ -> acc - | Terms.Var i -> if (List.mem i acc) then acc else i::acc - | Terms.Node l -> List.fold_left aux acc l - in aux [] t - ;; let build_clause bag filter rule t subst vl id id2 pos dir = let proof = Terms.Step(rule,id,id2,dir,pos,subst) in @@ -119,7 +111,7 @@ module Superposition (B : Terms.Blob) = | t -> Terms.Predicate t in let bag, uc = - Terms.add_to_bag (0, literal, vars_of_term t, proof) bag + Terms.add_to_bag (0, literal, Terms.vars_of_term t, proof) bag in Some (bag, uc) else