]> matita.cs.unibo.it Git - helm.git/commitdiff
Bug fixed: the unwinding was not recursively performed. (a "t" should have been
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 29 Apr 2002 10:07:47 +0000 (10:07 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 29 Apr 2002 10:07:47 +0000 (10:07 +0000)
a "t'")

helm/ocaml/cic_unification/cicUnification.ml

index a01f9a9b8596bf76dda9745a3c4ebd0142551d47..ce7aa5280a46118ef14c5ceae312a0600132a956 100644 (file)
@@ -202,11 +202,11 @@ let unwind subst unwinded t =
                              try
                              let t = List.assoc i subst in
                                let t' = um_aux 0 t in
-                                unwinded := (i,t)::!unwinded ;
+                                unwinded := (i,t')::!unwinded ;
                                 S.lift k t'
                              with
                               Not_found ->
-                               (* not constrained variable, i.e. free in subst *)
+                               (* not constrained variable, i.e. free in subst*)
                                C.Meta i
                             in
                              frozen := saved_frozen ;
@@ -334,10 +334,6 @@ let apply_subst_reducing subst meta_to_reduce t =
 ;;
 
 (* UNWIND THE MGU INSIDE THE MGU *)
-(* let unwind mgu = 
-    let mark = Array.make (Array.length mgu) 0 in 
-    Array.iter (fun x -> let foo = unwind_meta mgu mark x in ()) mgu; mgu;; *)
-
 let unwind_subst subst =
   List.fold_left
    (fun unwinded (i,_) -> snd (unwind subst unwinded (Cic.Meta i))) [] subst