diff options
author | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2015-01-25 18:05:10 +0100 |
---|---|---|
committer | Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr> | 2015-01-25 18:05:42 +0100 |
commit | 8434840413d7cef32ed83539a0c7ef4de13ec528 (patch) | |
tree | b6ea2152ef16ce0953b889b2c2ad93c364e61e19 /printing | |
parent | 4e515c483e41f0362bf1102f8e8ae071fdcf04f7 (diff) | |
parent | 3d6b9a7ab992559493b89e174549734dff401703 (diff) |
Merge branch 'v8.5' into trunk.
Diffstat (limited to 'printing')
-rw-r--r-- | printing/printer.ml | 10 | ||||
-rw-r--r-- | printing/printer.mli | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/printing/printer.ml b/printing/printer.ml index 3403fb9c3..8a2d6e7bd 100644 --- a/printing/printer.ml +++ b/printing/printer.ml @@ -446,6 +446,16 @@ let pr_evars_int sigma i evs = pr_evars_int_hd (fun i -> str "Existential " ++ i let pr_evars sigma evs = pr_evars_int_hd (fun i -> mt ()) sigma 1 (Evar.Map.bindings evs) +(* Display a list of evars given by their name, with a prefix *) +let pr_ne_evar_set hd tl sigma l = + if l != Evar.Set.empty then + let l = Evar.Set.fold (fun ev -> + Evar.Map.add ev (Evarutil.nf_evar_info sigma (Evd.find sigma ev))) + l Evar.Map.empty in + hd ++ pr_evars sigma l ++ tl + else + mt () + let default_pr_subgoal n sigma = let rec prrec p = function | [] -> error "No such goal." diff --git a/printing/printer.mli b/printing/printer.mli index 6b9c70815..42ed2b6d9 100644 --- a/printing/printer.mli +++ b/printing/printer.mli @@ -137,6 +137,8 @@ val pr_nth_open_subgoal : int -> std_ppcmds val pr_evar : evar_map -> (evar * evar_info) -> std_ppcmds val pr_evars_int : evar_map -> int -> evar_info Evar.Map.t -> std_ppcmds val pr_evars : evar_map -> evar_info Evar.Map.t -> std_ppcmds +val pr_ne_evar_set : std_ppcmds -> std_ppcmds -> evar_map -> + Evar.Set.t -> std_ppcmds val pr_prim_rule : prim_rule -> std_ppcmds |