Skip to content

Commit

Permalink
run first slice elimination without variable information.
Browse files Browse the repository at this point in the history
this should avoid pessimising the main sequence of transformations.
it is still run with this information near the end.
  • Loading branch information
katrinafyi committed Feb 15, 2024
1 parent e3abd32 commit d2c37b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libASL/dis.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@ let dis_decode_entry (env: Eval.Env.t) ((lenv,globals): env) (decode: decode_cas
(* List.iter (fun (v,t) -> Printf.printf ("%s:%s\n") v (pp_type t)) varentries; *)
let stmts = flatten stmts [] in
let stmts' = Transforms.RemoveUnused.remove_unused globals @@ stmts in
let stmts' = Transforms.RedundantSlice.do_transform bindings stmts' in
let stmts' = Transforms.RedundantSlice.do_transform Bindings.empty stmts' in
let stmts' = Transforms.StatefulIntToBits.run stmts' in
let stmts' = Transforms.IntToBits.ints_to_bits stmts' in
let stmts' = Transforms.CommonSubExprElim.do_transform stmts' in
Expand Down

0 comments on commit d2c37b9

Please sign in to comment.