adding automaton translation pass to list of executed passes

This commit is contained in:
Antoine Grimod 2022-12-16 00:02:48 +01:00
parent b4ae058bf6
commit 1b3af051b3
3 changed files with 6 additions and 2 deletions

View File

@ -25,7 +25,7 @@ let exec_passes ast main_fn verbose debug passes f =
let _ =
(** Usage and argument parsing. *)
let default_passes = ["pre2vars"; "linearization"; "equations_ordering"] in
let default_passes = ["pre2vars"; "automata_translation"; "linearization"; "equations_ordering"] in
let sanity_passes = ["chkvar_init_unicity"; "check_typing"] in
let usage_msg =
"Usage: main [-passes p1,...,pn] [-ast] [-verbose] [-debug] \
@ -67,6 +67,7 @@ let _ =
[
("pre2vars", Passes.pre2vars);
("chkvar_init_unicity", Passes.chkvar_init_unicity);
("automata_translation", Passes.automata_translation_pass);
("linearization", Passes.pass_linearization);
("equations_ordering", Passes.pass_eq_reordering);
("check_typing", Passes.pass_typing);

View File

@ -426,3 +426,7 @@ let automata_trans_pass debug (node:t_node) : t_node option=
n_automata = node.n_automata;
}
let automata_translation_pass verbose debug main_fn =
node_pass (automata_trans_pass debug)

View File

@ -1,5 +1,4 @@
node diagonal_int (i: int) returns (o1, o2 : int);
var i: int;
let
(o1, o2) = (i, i);
tel