Skip to content
Snippets Groups Projects
Commit 6ab6d6de authored by BRUN Lelio's avatar BRUN Lelio
Browse files

move asserts eqs at the end to respect dependencies

parent d4870b2f
No related branches found
No related tags found
No related merge requests found
......@@ -595,7 +595,7 @@ let translate_decl nd sch =
* VSet.pp locals
* VSet.pp inout_vars
* ; *)
let equations = assert_instrs @ sorted_eqs in
let equations = sorted_eqs @ assert_instrs in
let mems = get_memories env equations in
(* Removing computed memories from locals. We also removed unused
variables. *)
......
......@@ -359,7 +359,7 @@ and pp_expr_annot fmt expr_ann =
let pp_asserts fmt asserts =
match asserts with
| _ :: _ ->
fprintf fmt "(* Asserts definitions *)@ ";
fprintf fmt "@;@;(* Asserts definitions *)@;";
pp_print_list
(fun fmt assert_ ->
let expr = assert_.assert_expr in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment