Skip to content

Commit

Permalink
restore RedundantSlice pass before StatefulIntToBits.
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Feb 9, 2024
1 parent 5fadf91 commit fa7e2ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libASL/dis.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1461,6 +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.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 fa7e2ff

Please sign in to comment.