summaryrefslogtreecommitdiff
path: root/src/pretty_print_lem.ml
diff options
context:
space:
mode:
authorThomas Bauereiss2017-10-13 15:46:53 +0100
committerThomas Bauereiss2017-10-13 17:23:39 +0100
commit2ced2254c30061598a3e30f19131122213f3c18b (patch)
tree0bf3953156201d296830167692529f3e1c60e8b8 /src/pretty_print_lem.ml
parent31b19d42bba272eb358887ab31cb4e221c51060c (diff)
Improve debugging output
With -ddump_rewrite_ast, pretty-print Sail code after each rewriting step in addition to dumping the AST.
Diffstat (limited to 'src/pretty_print_lem.ml')
-rw-r--r--src/pretty_print_lem.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pretty_print_lem.ml b/src/pretty_print_lem.ml
index b97845fd..c74cceb9 100644
--- a/src/pretty_print_lem.ml
+++ b/src/pretty_print_lem.ml
@@ -1516,7 +1516,9 @@ let doc_dec_lem sequential (DEC_aux (reg, ((l, _) as annot))) =
let doc_spec_lem mwords (VS_aux (valspec,annot)) = empty
-let rec doc_def_lem sequential mwords def = match def with
+let rec doc_def_lem sequential mwords def =
+ (* let _ = Pretty_print_sail.pp_defs stderr (Defs [def]) in *)
+ match def with
| DEF_spec v_spec -> (doc_spec_lem mwords v_spec,empty)
| DEF_overload _ -> (empty,empty)
| DEF_type t_def -> (group (doc_typdef_lem sequential mwords t_def) ^/^ hardline,empty)