summaryrefslogtreecommitdiff
path: root/main.ml
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2014-05-07 17:41:06 +0200
committerAlex AUVOLAT <alex.auvolat@ens.fr>2014-05-07 17:41:06 +0200
commit9ccef2c0850b73bf3d92f26bfa0aeacf933e1d17 (patch)
tree0c8b4157db1cb8851d75dae6f8706103ba081091 /main.ml
parent73fa920959d22c084265fe847f4788564bf49700 (diff)
downloadSemVerif-Projet-9ccef2c0850b73bf3d92f26bfa0aeacf933e1d17.tar.gz
SemVerif-Projet-9ccef2c0850b73bf3d92f26bfa0aeacf933e1d17.zip
Restart anew ; done nonrelational stuff, interpret remains, intervals domain remains
Diffstat (limited to 'main.ml')
-rw-r--r--main.ml11
1 files changed, 4 insertions, 7 deletions
diff --git a/main.ml b/main.ml
index 91ac4b1..e09ac0e 100644
--- a/main.ml
+++ b/main.ml
@@ -12,18 +12,15 @@
*)
open Abstract_syntax_tree
-open Constant_domain
+
+module Env_dom = Nonrelational.NonRelational(Constant_domain.Constants)
+module Interp = Interpret.Make(Env_dom)
(* parse and print filename *)
let doit filename =
let prog = File_parser.parse_file filename in
Abstract_syntax_printer.print_prog Format.std_formatter prog;
- List.fold_left
- (fun s x -> match x with
- | AST_stat(stat, _) -> CD.interp_abs(stat) s
- | _ -> s)
- CD.top_ts
- (fst prog)
+ Interp.interpret prog
(* parses arguments to get filename *)
let main () =