]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_paramodulation/paramod.ml
some more functors and a nice higher-order all_positions iterator
[helm.git] / helm / software / components / ng_paramodulation / paramod.ml
index 0414de7e358ef95982845cb1b5d8fad61bc8f6c6..b1fc1c7048a5f9786b75415bac959f38335e0ac4 100644 (file)
@@ -7,17 +7,19 @@ let nparamod metasenv subst context t =
   in
   let module B = NCicBlob.NCicBlob(C) in
   let module Pp = Pp.Pp (B) in
-  let res,vars = B.embed t in
+  let res = B.embed t in
   let module FU = FoUnif.Founif(B) in
-  let test_unification vars = function
+  let module IDX = Index.Index(B) in
+  let module Sup = Superposition.Superposition(B) in
+  let test_unification _ = function
     | Terms.Node [_; _; lhs; rhs] ->
        prerr_endline "Unification test :";
        prerr_endline (Pp.pp_foterm lhs);
        prerr_endline (Pp.pp_foterm rhs);
-       FU.unification vars [] lhs rhs
+        FU.unification [] [] lhs rhs
     | _ -> assert false
   in
-  let subst,vars = test_unification vars res in
+  let subst,vars = test_unification [] res in
     prerr_endline "Result :";
     prerr_endline (Pp.pp_foterm res);
     prerr_endline "Substitution :";