From: denes Date: Fri, 10 Jul 2009 10:12:16 +0000 (+0000) Subject: Removed unused parameter of unification procedure (vars) X-Git-Tag: make_still_working~3702 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=eeffdf0672400325577c1df83e10ad700b223262;hp=b68e52f889215ce2c21c3d771f59b2d2057d53c1;p=helm.git Removed unused parameter of unification procedure (vars) --- diff --git a/helm/software/components/ng_paramodulation/foUnif.ml b/helm/software/components/ng_paramodulation/foUnif.ml index 427db4f95..cb3045c19 100644 --- a/helm/software/components/ng_paramodulation/foUnif.ml +++ b/helm/software/components/ng_paramodulation/foUnif.ml @@ -29,7 +29,7 @@ module Founif (B : Orderings.Blob) = struct module Subst = FoSubst module U = FoUtils.Utils(B) - let unification vars locked_vars t1 t2 = + let unification (* vars *) locked_vars t1 t2 = let rec occurs_check subst what where = match where with | Terms.Var i when i = what -> true diff --git a/helm/software/components/ng_paramodulation/foUnif.mli b/helm/software/components/ng_paramodulation/foUnif.mli index 87b57ae70..2371f2180 100644 --- a/helm/software/components/ng_paramodulation/foUnif.mli +++ b/helm/software/components/ng_paramodulation/foUnif.mli @@ -17,8 +17,8 @@ module Founif (B : Orderings.Blob) : sig val unification: - (* global varlist for both terms t1 and t2 *) - Terms.varlist -> + (* global varlist for both terms t1 and t2 (UNUSED) *) + (* Terms.varlist -> *) (* locked variables: if equal to FV(t2) we match t1 with t2*) Terms.varlist -> B.t Terms.foterm -> diff --git a/helm/software/components/ng_paramodulation/superposition.ml b/helm/software/components/ng_paramodulation/superposition.ml index f69de41f5..0a7c5cfcc 100644 --- a/helm/software/components/ng_paramodulation/superposition.ml +++ b/helm/software/components/ng_paramodulation/superposition.ml @@ -144,7 +144,7 @@ module Superposition (B : Orderings.Blob) = try let subst = prof_demod_u.HExtlib.profile - (Unif.unification (varlist@vl) varlist subterm) side + (Unif.unification (* (varlist@vl) *) varlist subterm) side in let side = prof_demod_s.HExtlib.profile @@ -289,7 +289,7 @@ module Superposition (B : Orderings.Blob) = let is_identity_clause ~unify = function | _, Terms.Equation (_,_,_,Terms.Eq), _, _ -> true | _, Terms.Equation (l,r,_,_), vl, proof when unify -> - (try ignore(Unif.unification vl [] l r); true + (try ignore(Unif.unification (* vl *) [] l r); true with FoUnif.UnificationFailure _ -> false) | _, Terms.Equation (_,_,_,_), _, _ -> false | _, Terms.Predicate _, _, _ -> assert false @@ -343,7 +343,7 @@ module Superposition (B : Orderings.Blob) = | [] -> None | (id2,dir,c,vl1)::tl -> try - let subst = Unif.unification (vl@vl1) locked_vars c t in + let subst = Unif.unification (* (vl@vl1) *) locked_vars c t in Some (id2, dir, subst) with FoUnif.UnificationFailure _ -> aux tl in @@ -374,7 +374,7 @@ module Superposition (B : Orderings.Blob) = let l = Subst.apply_subst subst l in let r = Subst.apply_subst subst r in try - let subst1 = Unif.unification vl [] l r in + let subst1 = Unif.unification (* vl *) [] l r in let lit = match lit with Terms.Predicate _ -> assert false | Terms.Equation (l,r,ty,o) -> @@ -627,7 +627,7 @@ module Superposition (B : Orderings.Blob) = let side, newside = if dir=Terms.Left2Right then l,r else r,l in try let subst = - Unif.unification (varlist@vl) [] subterm side + Unif.unification (* (varlist@vl)*) [] subterm side in if o = Terms.Incomparable then let side = Subst.apply_subst subst side in