summaryrefslogtreecommitdiff
path: root/src/rewrites.mli
diff options
context:
space:
mode:
authorAlasdair Armstrong2019-07-16 18:57:46 +0100
committerAlasdair Armstrong2019-07-16 18:57:46 +0100
commitcd909e15b97739b10214023af04b2fbbb4d20cf7 (patch)
tree9a418c7cafa915c29e93242848a1411cbd8b8f7c /src/rewrites.mli
parent6d3a6edcd616621eb40420cfb16a34762a32c5c1 (diff)
parent170543faa031d90186e6b45612ed8374f1c25f7b (diff)
Merge remote-tracking branch 'origin/sail2' into separate_bv
Diffstat (limited to 'src/rewrites.mli')
-rw-r--r--src/rewrites.mli5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rewrites.mli b/src/rewrites.mli
index e30a4206..3b572d51 100644
--- a/src/rewrites.mli
+++ b/src/rewrites.mli
@@ -70,10 +70,11 @@ val move_loop_measures : 'a defs -> 'a defs
val rewrite_undefined : bool -> Env.t -> tannot defs -> tannot defs
(* Perform rewrites to create an AST supported for a specific target *)
-val rewrite_defs_target : string -> (string * (Env.t -> tannot defs -> tannot defs)) list
+val rewrite_defs_target : string -> (string * (Env.t -> tannot defs -> tannot defs * Env.t)) list
type rewriter =
| Basic_rewriter of (Env.t -> tannot defs -> tannot defs)
+ | Checking_rewriter of (Env.t -> tannot defs -> tannot defs * Env.t)
| Bool_rewriter of (bool -> rewriter)
| String_rewriter of (string -> rewriter)
| Literal_rewriter of ((lit -> bool) -> rewriter)
@@ -96,6 +97,6 @@ val opt_coq_warn_nonexhaustive : bool ref
(* This is a special rewriter pass that checks AST invariants without
actually doing any re-writing *)
-val rewrite_defs_check : (string * (Env.t -> tannot defs -> tannot defs)) list
+val rewrite_defs_check : (string * (Env.t -> tannot defs -> tannot defs * Env.t)) list
val simple_typ : typ -> typ