diff options
author | Son HO | 2024-06-18 08:33:09 +0200 |
---|---|---|
committer | GitHub | 2024-06-18 08:33:09 +0200 |
commit | 43a9fb0fa5a1c03a7cce575a052f0d4201189d1d (patch) | |
tree | c967637249ea1c9001983e09e1f04f17b8e0a1d4 /compiler/Extract.ml | |
parent | 76ab141814644a94bffc8497e5845436d86b1083 (diff) | |
parent | 878be6d051f2f920fdc6c90add8423fa6f489492 (diff) |
Merge pull request #246 from AeneasVerif/son/cleanup
Do some cleanup in the test files and the Lean backend
Diffstat (limited to '')
-rw-r--r-- | compiler/Extract.ml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/Extract.ml b/compiler/Extract.ml index 4acf3f99..b1adb936 100644 --- a/compiler/Extract.ml +++ b/compiler/Extract.ml @@ -1448,6 +1448,10 @@ let extract_fun_decl_gen (ctx : extraction_ctx) (fmt : F.formatter) (* Open two boxes for the definition, so that whenever possible it gets printed on * one line and indents are correct *) F.pp_open_hvbox fmt 0; + (* Print the attributes *) + if def.backend_attributes.reducible && backend () = Lean then ( + F.pp_print_string fmt "@[reducible]"; + F.pp_print_space fmt ()); F.pp_open_vbox fmt ctx.indent_incr; (* For HOL4: we may need to put parentheses around the definition *) let parenthesize = backend () = HOL4 && decl_is_not_last_from_group kind in |