Apply patch from Daniel Schürmann: https://sourceforge.net/p/boomerang/bugs/78/
[boomerang.git] / boomerang / transformations / int_arith.t
blob4d66d5c734435bf5d91771984b9b90b8e995b331
1 a + b where (kind(a) == opIntConst) && (kind(b) == opIntConst) && (c == plus(a, b)) becomes c
2 a - b where (kind(a) == opIntConst) && (kind(b) == opIntConst) && (c == plus(a, neg(b))) becomes c
3 (-a) where (kind(a) == opIntConst) && (b == neg(a)) becomes b