]> matita.cs.unibo.it Git - helm.git/commitdiff
Avoid generating invalid names with "'" in the middle of them.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 9 Feb 2007 16:18:37 +0000 (16:18 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 9 Feb 2007 16:18:37 +0000 (16:18 +0000)
components/cic_proof_checking/freshNamesGenerator.ml

index 4838623c257bed1ad15eec199c5c66a2524c64fb..3cfda02dff123a649bf51005ed6a0c01647c275d 100755 (executable)
@@ -93,7 +93,7 @@ let mk_fresh_name ~subst metasenv context name ~typ =
         with CicTypeChecker.TypeCheckerFailure _ -> "H"
        )
     | C.Name name ->
-       Str.global_replace (Str.regexp "[0-9]*$") "" name
+       Str.global_replace (Str.regexp "[0-9']*$") "" name
   in
    let already_used name =
     List.exists (function Some (n,_) -> n=name | _ -> false) context