summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorSon Ho2023-10-16 11:20:57 +0200
committerSon Ho2023-10-16 11:20:57 +0200
commit2ec2e374302c772ff2c6a26e39451b4e49e13a16 (patch)
treeda523de2f105f28c995ef8da01b320074b63f366 /compiler
parentcbb2d05e0db6bedf9d6844f29ee25b95429b994c (diff)
parent40ed38216499ea1bf58b8acbcd05b2cd97329830 (diff)
Merge branch 'main' into son_traits and fix some issues
Diffstat (limited to 'compiler')
-rw-r--r--compiler/Extract.ml7
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/Extract.ml b/compiler/Extract.ml
index b56d8c51..ac81d6f3 100644
--- a/compiler/Extract.ml
+++ b/compiler/Extract.ml
@@ -929,9 +929,12 @@ let mk_formatter (ctx : trans_ctx) (crate_name : string)
("(" ^ Z.to_string sv.PV.value
^ if !backend = Lean then ":Int" else "" ^ ")");
(match !backend with
- | Coq | Lean ->
- let iname = String.lowercase_ascii (int_name sv.PV.int_ty) in
+ | Coq ->
+ let iname = int_name sv.PV.int_ty in
F.pp_print_string fmt ("%" ^ iname)
+ | Lean ->
+ let iname = String.lowercase_ascii (int_name sv.PV.int_ty) in
+ F.pp_print_string fmt ("#" ^ iname)
| HOL4 -> ()
| _ -> raise (Failure "Unreachable"));
if print_brackets then F.pp_print_string fmt ")")