ethereum / hevm

symbolic EVM evaluator
https://hevm.dev
GNU Affero General Public License v3.0
235 stars 48 forks source link

Use associativity both `Mul` and `Add` to make it easier to compare equivalent `Expr`-s #408

Closed msooseth closed 1 year ago

msooseth commented 1 year ago

Need rewrite rule:

(a*b)*c => a*(b*c)

(and also for +). This will help us with deciding equality & further simplification at the Expr level.

Original observation by @zoep

msooseth commented 1 year ago

This is addressed by #413