no needless mangling
authorblanchet
Thu, 28 Jul 2011 16:32:39 +0200
changeset 44001 2b75760fa75e
parent 44000 ab4d8499815c
child 44002 ae53f1304ad5
no needless mangling
src/HOL/Tools/ATP/atp_translate.ML
--- a/src/HOL/Tools/ATP/atp_translate.ML	Thu Jul 28 15:15:26 2011 +0200
+++ b/src/HOL/Tools/ATP/atp_translate.ML	Thu Jul 28 16:32:39 2011 +0200
@@ -1699,7 +1699,9 @@
       let
         val (s, s') =
           `make_fixed_const @{const_name undefined}
-          |> mangled_const_name format type_enc [T]
+          |> (case type_arg_policy type_enc @{const_name undefined} of
+                Mangled_Type_Args _ => mangled_const_name format type_enc [T]
+              | _ => I)
       in
         Symtab.map_default (s, [])
                            (insert_type ctxt #3 (s', [T], T, false, 0, false))