Skip to content

Commit

Permalink
Enable const folding for mul asm (#1127)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross committed Feb 10, 2022
1 parent 90a33fc commit 59600ae
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Assembly/Symbolic.v
Expand Up @@ -1137,8 +1137,6 @@ Qed.
Definition consts_commutative :=
fun e => match e with
ExprApp (o, args) =>
(* note: removing the next line makes tests fail *)
if (match o with mul _ => true | _ => false end) then e else
if commutative o then
let csts_exprs := List.partition isCst args in
if associative o
Expand All @@ -1154,7 +1152,6 @@ Proof using Type.
step.
destruct e; trivial.
destruct n.
destruct (match o with mul _ => true | _ => false end); trivial.
destruct commutative eqn:?; trivial.
inversion H; clear H; subst.
epose proof Permutation_partition l isCst.
Expand Down

0 comments on commit 59600ae

Please sign in to comment.