summaryrefslogtreecommitdiff
path: root/main.ml
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ansys.com>2014-06-17 14:34:40 +0200
committerAlex Auvolat <alex.auvolat@ansys.com>2014-06-17 14:34:40 +0200
commitd57e3491720e912b4e2fd6c73f9d356901a42df5 (patch)
treebc0feb8577b162e3e735fa57c7b4b0d82be808ce /main.ml
parent860ad2752ef0544bc6874d895875a78f91db9084 (diff)
downloadscade-analyzer-d57e3491720e912b4e2fd6c73f9d356901a42df5.tar.gz
scade-analyzer-d57e3491720e912b4e2fd6c73f9d356901a42df5.zip
Write transformation of program into logical formula.
Diffstat (limited to 'main.ml')
-rw-r--r--main.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.ml b/main.ml
index 61755e3..08bfe91 100644
--- a/main.ml
+++ b/main.ml
@@ -63,6 +63,12 @@ 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;
+
if !vtest then do_test_interpret prog true
else if !test then do_test_interpret prog false;