Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to coq/coq#18603 (print_rel_context takes evar map) #119

Merged
merged 1 commit into from
Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading