X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=sidebyside;f=helm%2Fsoftware%2Fcomponents%2Fng_paramodulation%2FfoUtils.ml;h=ec76511d97c5c954f9039394a2f008a7146cf4dc;hb=4ae7d510a430a2a6929f973d36b993d528772d64;hp=76e9735be4c546a08fb029531842fc99cf47289f;hpb=a14157957532b731330492388ab32909b4147758;p=helm.git diff --git a/helm/software/components/ng_paramodulation/foUtils.ml b/helm/software/components/ng_paramodulation/foUtils.ml index 76e9735be..ec76511d9 100644 --- a/helm/software/components/ng_paramodulation/foUtils.ml +++ b/helm/software/components/ng_paramodulation/foUtils.ml @@ -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