diff options
author | Enrico Tassi <enrico.tassi@inria.fr> | 2015-03-23 11:04:05 +0100 |
---|---|---|
committer | Enrico Tassi <enrico.tassi@inria.fr> | 2015-03-23 11:17:15 +0100 |
commit | 38708b54882cf5c9de205711b3a962a0febc2e8c (patch) | |
tree | 4e8a04a9735c23245853418728961fcf250c8c8c /checker/reduction.ml | |
parent | 26153f161da2aa85454aece95b7a6d8cd5d446cf (diff) |
coqchk: more prints when -debug
Diffstat (limited to 'checker/reduction.ml')
-rw-r--r-- | checker/reduction.ml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/checker/reduction.ml b/checker/reduction.ml index 185c6edfc..28fdb130e 100644 --- a/checker/reduction.ml +++ b/checker/reduction.ml @@ -169,7 +169,15 @@ let sort_cmp univ pb s0 s1 = (match pb with | CONV -> Univ.check_eq univ u1 u2 | CUMUL -> Univ.check_leq univ u1 u2) - then raise NotConvertible + then begin + if !Flags.debug then begin + let op = match pb with CONV -> "=" | CUMUL -> "<=" in + Printf.eprintf "cort_cmp: %s\n%!" Pp.(string_of_ppcmds + (str"Error: " ++ Univ.pr_uni u1 ++ str op ++ Univ.pr_uni u2 ++ str ":" ++ cut() + ++ Univ.pr_universes univ)) + end; + raise NotConvertible + end | (_, _) -> raise NotConvertible let rec no_arg_available = function |