diff options
author | Alex Auvolat <alex.auvolat@ansys.com> | 2014-06-17 14:34:40 +0200 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ansys.com> | 2014-06-17 14:34:40 +0200 |
commit | d57e3491720e912b4e2fd6c73f9d356901a42df5 (patch) | |
tree | bc0feb8577b162e3e735fa57c7b4b0d82be808ce /main.ml | |
parent | 860ad2752ef0544bc6874d895875a78f91db9084 (diff) | |
download | scade-analyzer-d57e3491720e912b4e2fd6c73f9d356901a42df5.tar.gz scade-analyzer-d57e3491720e912b4e2fd6c73f9d356901a42df5.zip |
Write transformation of program into logical formula.
Diffstat (limited to 'main.ml')
-rw-r--r-- | main.ml | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |