]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_paramodulation/foSubst.ml
freescale porting
[helm.git] / helm / software / components / ng_paramodulation / foSubst.ml
index 5cb84e1c938d1ff20b359bc738f7f0b713cfe87f..2d63d34afca2372e1c49f9dcea9c1f44959b17b7 100644 (file)
       varlist
   ;;
 
+  let rec reloc_subst subst = function
+    | (Terms.Leaf _) as t -> t
+    | Terms.Var i -> 
+        (try
+           List.assoc i subst
+         with
+             Not_found -> assert false)
+    | (Terms.Node l) ->
+       Terms.Node (List.map (fun t -> reloc_subst subst t) l)
+;;
+
   let rec apply_subst subst = function
     | (Terms.Leaf _) as t -> t
     | Terms.Var i ->