Files
LSL-PyOptimizer/lslopt
Sei Lisa 877d5fc10c Optimize -a == -b, !(a - b), !(a + b)
-a == -b  ->  a == b

If both a and b either are constants or have a minus sign, negate both.

!(a - b) can be optimized to a == b.

!(a + b) can be optimized to -a == b, relying on the first optimization to remove redundant minus signs.
2018-03-23 19:02:42 +01:00
..
2014-07-26 02:43:44 +02:00
2018-03-23 16:36:45 +01:00
2018-03-23 16:36:45 +01:00
2018-03-23 16:36:45 +01:00
2018-03-23 16:36:45 +01:00
2018-03-23 16:36:45 +01:00
2018-03-23 16:36:45 +01:00
2018-03-23 16:36:45 +01:00
2018-03-23 16:36:45 +01:00
2018-03-23 16:36:45 +01:00
2018-03-23 16:36:45 +01:00
2018-03-23 16:36:45 +01:00
2018-03-23 16:36:45 +01:00
2018-03-23 16:36:45 +01:00