let ppcontext ?sep subst context = fst (ppcontext' ?sep subst context)
-let ppmetasenv ?(sep = "\n") metasenv subst =
+let ppmetasenv ?(sep = "\n") subst metasenv =
String.concat sep
(List.map
(fun (i, c, t) ->
let fppsubst ppf subst = fpp_gen ppf (ppsubst subst)
let fppterm ppf term = fpp_gen ppf (CicPp.ppterm term)
-let fppmetasenv ppf metasenv = fpp_gen ppf (ppmetasenv metasenv [])
+let fppmetasenv ppf metasenv = fpp_gen ppf (ppmetasenv [] metasenv)
val ppcontext: ?sep: string -> Cic.substitution -> Cic.context -> string
val ppterm_in_context:
Cic.substitution -> Cic.term -> (Cic.name option) list -> string
-val ppmetasenv: ?sep: string -> Cic.metasenv -> Cic.substitution -> string
+val ppmetasenv: ?sep: string -> Cic.substitution -> Cic.metasenv -> string
(** {2 Format-like pretty printers}
* As above with prototypes suitable for toplevel/ocamldebug printers. No
debug_print (Printf.sprintf "hetype=%s\nhetype'=%s\nmetasenv=%s\nsubst=%s"
(CicPp.ppterm hetype)
(CicPp.ppterm hetype')
- (CicMetaSubst.ppmetasenv metasenv [])
+ (CicMetaSubst.ppmetasenv [] metasenv)
(CicMetaSubst.ppsubst subst));
raise exn
(CicMetaSubst.ppterm subst term)
(CicMetaSubst.ppterm [] term)
(CicMetaSubst.ppcontext subst context)
- (CicMetaSubst.ppmetasenv metasenv subst)
+ (CicMetaSubst.ppmetasenv subst metasenv)
(CicMetaSubst.ppsubst subst) msg) in
raise (AssertFailure msg);;
CicPp.ppterm ty_t2
with _ -> "MALFORMED")
(CicMetaSubst.ppcontext subst context)
- (CicMetaSubst.ppmetasenv metasenv subst)
+ (CicMetaSubst.ppmetasenv subst metasenv)
(CicMetaSubst.ppsubst subst) msg
in
try