Skip to content

Commit

Permalink
Merge pull request #119 from SkySkimmer/temrops-use-evd
Browse files Browse the repository at this point in the history
Adapt to coq/coq#18603 (print_rel_context takes evar map)
  • Loading branch information
ppedrot authored Feb 4, 2024
2 parents a61b1b3 + a8b8529 commit 5b5ac50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/debug.ml
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ let debug_case_info flags ci =
nargs
(pp_info ci.ci_pp_info))

let debug_rel_context flags s env l =
let debug_rel_context flags s env sigma l =
if !debug_mode && List.exists (fun x -> List.mem x flags) debug_flag then
Feedback.msg_notice Pp.(str s ++ (Termops.Internal.print_rel_context (push_rel_context l env)))
Feedback.msg_notice Pp.(str s ++ (Termops.Internal.print_rel_context (push_rel_context l env) sigma))

let not_implemented ?(reason = "no reason") env evd t =
debug [`Not_implemented] (Printf.sprintf "not implemented (%s):" reason) env evd t;
Expand Down
2 changes: 1 addition & 1 deletion src/parametricity.ml
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ and weaken_unused_free_rels env_rc sigma term =
apply_substitution_rel_context k (List.tl sub) acc tl
in

debug_rel_context [`Fix] "env_rv = " Environ.empty_env (List.map toDecl env_rc);
debug_rel_context [`Fix] "env_rv = " Environ.empty_env sigma (List.map toDecl env_rc);
let set = collect_free_vars 1 (Termops.free_rels sigma term) env_rc in
let lst = Int.Set.fold (fun x acc -> x::acc) set [] in
let lst = List.sort compare lst in
Expand Down

0 comments on commit 5b5ac50

Please sign in to comment.