summaryrefslogtreecommitdiff
path: root/src/process_file.ml
diff options
context:
space:
mode:
authorRobert Norton2018-01-29 15:48:40 +0000
committerRobert Norton2018-01-29 15:48:40 +0000
commit8406a2ec3aeab4ad573a126adb3393e7033d749b (patch)
treefcc43f55251e5b3359671f6111db227aed7f9082 /src/process_file.ml
parenta827c35deba4f3e06034c26ec09aed4b6b5fcd70 (diff)
parentb8a0efd0043a00447ca4f3aeea75a4e6e024d98b (diff)
Merge branch 'sail2' of https://bitbucket.org/Peter_Sewell/sail into sail2
Diffstat (limited to 'src/process_file.ml')
-rw-r--r--src/process_file.ml8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/process_file.ml b/src/process_file.ml
index cb8c8011..1ba8069f 100644
--- a/src/process_file.ml
+++ b/src/process_file.ml
@@ -196,12 +196,10 @@ let monomorphise_ast locs type_env ast =
debug_analysis = !opt_dmono_analysis;
rewrites = !opt_mono_rewrites;
rewrite_size_parameters = !Pretty_print_lem.opt_mwords;
- all_split_errors = !opt_dall_split_errors
+ all_split_errors = !opt_dall_split_errors;
+ dump_raw = !opt_ddump_raw_mono_ast
} in
- let ast = monomorphise opts locs type_env ast in
- let () = if !opt_ddump_raw_mono_ast then Pretty_print_sail.pp_defs stdout ast else () in
- let ienv = Type_check.Env.no_casts Type_check.initial_env in
- Type_check.check ienv ast
+ monomorphise opts locs type_env ast
let open_output_with_check file_name =
let (temp_file_name, o) = Filename.open_temp_file "ll_temp" "" in