diff options
| author | Brian Campbell | 2017-11-14 12:33:14 +0000 |
|---|---|---|
| committer | Brian Campbell | 2017-11-14 12:33:14 +0000 |
| commit | 7dc2a9aa2e140eb4475da65e73be5952c0d5c26e (patch) | |
| tree | 25ad519094acd4be8321fb65328f61b949c6345a /src/process_file.ml | |
| parent | 29eb3472dfb65f39f558baff4c56688f03016592 (diff) | |
Automatic analysis for monomorphisation
Diffstat (limited to 'src/process_file.ml')
| -rw-r--r-- | src/process_file.ml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/process_file.ml b/src/process_file.ml index 5d362af2..ab18f3ad 100644 --- a/src/process_file.ml +++ b/src/process_file.ml @@ -119,9 +119,12 @@ let check_ast (defs : unit Ast.defs) : Type_check.tannot Ast.defs * Type_check.E (ast, env) let opt_ddump_raw_mono_ast = ref false +let opt_dmono_analysis = ref 0 +let opt_auto_mono = ref false -let monomorphise_ast locs ast = - let ast = Monomorphise.monomorphise (!opt_lem_mwords) locs ast in +let monomorphise_ast locs type_env ast = + let ast = Monomorphise.monomorphise (!opt_lem_mwords) (!opt_auto_mono) (!opt_dmono_analysis) + locs type_env ast in let () = if !opt_ddump_raw_mono_ast then Pretty_print.pp_defs stdout ast else () in let ienv = Type_check.Env.no_casts Type_check.initial_env in Type_check.check ienv ast |
