From: Claudio Sacerdoti Coen Date: Fri, 9 Feb 2007 16:18:37 +0000 (+0000) Subject: Avoid generating invalid names with "'" in the middle of them. X-Git-Tag: 0.4.95@7852~601 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=c17c9e41a88339260e15a5206878f85558666fbb;p=helm.git Avoid generating invalid names with "'" in the middle of them. --- diff --git a/components/cic_proof_checking/freshNamesGenerator.ml b/components/cic_proof_checking/freshNamesGenerator.ml index 4838623c2..3cfda02df 100755 --- a/components/cic_proof_checking/freshNamesGenerator.ml +++ b/components/cic_proof_checking/freshNamesGenerator.ml @@ -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