Closed averycrespi closed 5 years ago
import a let b = 1 + (2 + a) export b
produces b=1+2+a, but should produce b=3+a.
b=1+2+a
b=3+a
Can add match case to optimizer. Need to handle both (2+a) and (a+2), as well as all other commutative operations.
(2+a)
(a+2)
Too difficult to integrate into the optimizer for now
produces
b=1+2+a
, but should produceb=3+a
.Can add match case to optimizer. Need to handle both
(2+a)
and(a+2)
, as well as all other commutative operations.