]> matita.cs.unibo.it Git - helm.git/commitdiff
Bug fixed: restriction of already restricted contexts was bugged (due to
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 4 Feb 2004 22:22:44 +0000 (22:22 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 4 Feb 2004 22:22:44 +0000 (22:22 +0000)
a missing "incr i").

helm/ocaml/cic_unification/cicMetaSubst.ml

index 637c346b06972b7dcc747ff4298414c2824e2899..acb942ec5f37b9c4000a7b72c57e79a424b457eb 100644 (file)
@@ -56,13 +56,15 @@ let rec force_does_not_occur subst to_be_restricted t =
        let l' =
          let i = ref 0 in
          List.map
-           (function
-             | None -> None
-             | Some t ->
-                 incr i;
+           (function t ->
+             incr i ;
+             match t with
+                None -> None
+              | Some t ->
                  try
                    Some (aux k t)
                  with Occur ->
+prerr_endline (Printf.sprintf "RESTRINGO (%d,%d)" n !i) ;
                    more_to_be_restricted := (n,!i) :: !more_to_be_restricted;
                    None)
            l