X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_paramodulation%2FfoUtils.ml;h=f56cccd89933b5dde4a4da6b434fb5b9c9312a39;hb=df1201e37d6f2631dc31ffc87b979a6c81180a3a;hp=76e9735be4c546a08fb029531842fc99cf47289f;hpb=a99b3bf44964a6a3d56d752efbdc2c962ce24d08;p=helm.git diff --git a/helm/software/components/ng_paramodulation/foUtils.ml b/helm/software/components/ng_paramodulation/foUtils.ml index 76e9735be..f56cccd89 100644 --- a/helm/software/components/ng_paramodulation/foUtils.ml +++ b/helm/software/components/ng_paramodulation/foUtils.ml @@ -27,7 +27,7 @@ let mk_id = ;; module Utils (B : Terms.Blob) = struct - module Subst = FoSubst.Subst(B) ;; + module Subst = FoSubst;; (*.Subst(B) ;;*) module Order = Orderings.Orderings(B) ;; let rec eq_foterm x y = @@ -136,4 +136,13 @@ module Utils (B : Terms.Blob) = struct let empty_bag = Terms.M.empty ;; + let mk_passive_clause cl = + (Order.compute_unit_clause_weight cl, cl) + ;; + + let compare_passive_clauses (w1,(id1,_,_,_)) (w2,(id2,_,_,_)) = + if w1 = w2 then id1 - id2 + else w1 - w2 + ;; + end