From 2ced2254c30061598a3e30f19131122213f3c18b Mon Sep 17 00:00:00 2001 From: Thomas Bauereiss Date: Fri, 13 Oct 2017 15:46:53 +0100 Subject: Improve debugging output With -ddump_rewrite_ast, pretty-print Sail code after each rewriting step in addition to dumping the AST. --- src/rewriter.mli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rewriter.mli') diff --git a/src/rewriter.mli b/src/rewriter.mli index 4b667793..1c3e8fae 100644 --- a/src/rewriter.mli +++ b/src/rewriter.mli @@ -56,8 +56,8 @@ type 'a rewriters = { rewrite_exp : 'a rewriters -> 'a exp -> 'a exp; val rewrite_exp : tannot rewriters -> tannot exp -> tannot exp val rewrite_defs : tannot defs -> tannot defs -val rewrite_defs_ocaml : (tannot defs -> tannot defs) list (*Perform rewrites to exclude AST nodes not supported for ocaml out*) -val rewrite_defs_lem : (tannot defs -> tannot defs) list (*Perform rewrites to exclude AST nodes not supported for lem out*) +val rewrite_defs_ocaml : (string * (tannot defs -> tannot defs)) list (*Perform rewrites to exclude AST nodes not supported for ocaml out*) +val rewrite_defs_lem : (string * (tannot defs -> tannot defs)) list (*Perform rewrites to exclude AST nodes not supported for lem out*) (* the type of interpretations of pattern-matching expressions *) type ('a,'pat,'pat_aux,'fpat,'fpat_aux) pat_alg = -- cgit v1.2.3