diff options
author | Alex Auvolat <alex.auvolat@ansys.com> | 2014-06-17 17:38:29 +0200 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ansys.com> | 2014-06-17 17:38:29 +0200 |
commit | 2b62d844cc81b60bcbdfc145097139995ea6f3a0 (patch) | |
tree | 8c34ecf12daf28569ac8a5364eb0438b9262308c /main.ml | |
parent | ce4f339ced19e2ff7d79c2c8ec5b3ee478d5d365 (diff) | |
download | scade-analyzer-2b62d844cc81b60bcbdfc145097139995ea6f3a0.tar.gz scade-analyzer-2b62d844cc81b60bcbdfc145097139995ea6f3a0.zip |
Some abstract interpretation does something now.
Diffstat (limited to 'main.ml')
-rw-r--r-- | main.ml | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -2,7 +2,7 @@ open Ast module Interpret = Interpret.I -module Abstract = Apron_domain.D +module AI = Abs_interp.I(Apron_domain.D) (* command line options *) let dump = ref false @@ -65,11 +65,7 @@ let () = let prog = Rename.rename_prog prog in if !dumprn then Ast_printer.print_prog Format.std_formatter prog; - let prog_f = Formula.eliminate_not (Transform.f_of_prog prog "test") in - Formula_printer.print_expr Format.std_formatter prog_f; - Format.printf "@."; - let prog_f_cl = Formula.conslist_of_f prog_f in - Formula_printer.print_conslist Format.std_formatter prog_f_cl; + let () = AI.do_prog prog "test" in if !vtest then do_test_interpret prog true else if !test then do_test_interpret prog false; |