summaryrefslogtreecommitdiff
path: root/main.ml
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2014-05-07 16:13:31 +0200
committerAlex AUVOLAT <alex.auvolat@ens.fr>2014-05-07 16:13:31 +0200
commit73fa920959d22c084265fe847f4788564bf49700 (patch)
tree9e99d91203b475ebe74fa0b484a86ada05caacf1 /main.ml
parentbcde99fbe99174a094f38fdda70ad69d65a423f4 (diff)
downloadSemVerif-Projet-73fa920959d22c084265fe847f4788564bf49700.tar.gz
SemVerif-Projet-73fa920959d22c084265fe847f4788564bf49700.zip
Achieve nothing.
Diffstat (limited to 'main.ml')
-rw-r--r--main.ml11
1 files changed, 9 insertions, 2 deletions
diff --git a/main.ml b/main.ml
index 2db911e..91ac4b1 100644
--- a/main.ml
+++ b/main.ml
@@ -11,12 +11,19 @@
You should modify this file to call your functions instead!
*)
+open Abstract_syntax_tree
+open Constant_domain
(* parse and print filename *)
let doit filename =
let prog = File_parser.parse_file filename in
- Abstract_syntax_printer.print_prog Format.std_formatter prog
-
+ 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)
(* parses arguments to get filename *)
let main () =