Skip to content

Commit

Permalink
Coq: fix non-mutually recursive functions with measures
Browse files Browse the repository at this point in the history
  • Loading branch information
bacam committed Nov 14, 2023
1 parent 435ffd3 commit 3f8a320
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sail_coq_backend/pretty_print_coq.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2946,9 +2946,9 @@ let doc_funcl_init types_mod avoid_target_names effect_info mutrec rec_opt ?rec_
in
let intropp = match mutrec with NotMutrec -> intropp | FirstFn -> string "Fixpoint" | LaterFn -> string "with" in
let ctxt =
match mutrec with
| NotMutrec -> ctxt
| _ -> { ctxt with recursive_fns = Bindings.singleton id (List.length quantspp, 0, is_measured) }
match (rec_opt, mutrec) with
| Rec_aux (Rec_nonrec, _), NotMutrec -> ctxt
| _, _ -> { ctxt with recursive_fns = Bindings.singleton id (List.length quantspp, 0, is_measured) }
in
let _ =
match guard with
Expand Down

0 comments on commit 3f8a320

Please sign in to comment.