summaryrefslogtreecommitdiff
path: root/src/sail.ml
diff options
context:
space:
mode:
authorAlasdair Armstrong2018-02-05 23:00:58 +0000
committerAlasdair Armstrong2018-02-05 23:00:58 +0000
commitfc5ad2e3930b06a8bd382639361b31bd7407f395 (patch)
tree9c4b5064cde7fa7fa0027c090e6b654549fbdb63 /src/sail.ml
parent17265a95407c62e78bb850c0e6ffb0876c85c5cb (diff)
parentbdfcb327ccf23982ae74549fc56ec3451c493ed5 (diff)
Merge changes to type_check.ml
Diffstat (limited to 'src/sail.ml')
-rw-r--r--src/sail.ml6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sail.ml b/src/sail.ml
index bbe26a0d..dac2f841 100644
--- a/src/sail.ml
+++ b/src/sail.ml
@@ -152,6 +152,9 @@ let options = Arg.align ([
( "-dall_split_errors",
Arg.Set Process_file.opt_dall_split_errors,
" display all case split errors from monomorphisation, rather than one");
+ ( "-dmono_continue",
+ Arg.Set Process_file.opt_dmono_continue,
+ " continue despite monomorphisation errors");
( "-verbose",
Arg.Set opt_print_verbose,
" (debug) pretty-print the input to standard output");
@@ -256,7 +259,8 @@ let main() =
(if !(opt_print_c)
then
let ast_c = rewrite_ast_c ast in
- C_backend.compile_ast type_envs ast_c
+ let ast_c, type_envs = Specialize.specialize ast_c type_envs in
+ C_backend.compile_ast (C_backend.initial_ctx type_envs) ast_c
else ());
(if !(opt_print_lem)
then let ast_lem = rewrite_ast_lem ast in