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
..
__init__.py Initial commit. Status so far: 2014-07-26 02:43:44 +02:00
lslbasefuncs.py Bump copyright year 2018-03-23 16:36:45 +01:00
lslcommon.py Bump copyright year 2018-03-23 16:36:45 +01:00
lsldeadcode.py Bump copyright year 2018-03-23 16:36:45 +01:00
lslextrafuncs.py Bump copyright year 2018-03-23 16:36:45 +01:00
lslfoldconst.py Optimize -a == -b, !(a - b), !(a + b) 2018-03-23 19:02:42 +01:00
lslfuncopt.py Bump copyright year 2018-03-23 16:36:45 +01:00
lslfuncs.py Bump copyright year 2018-03-23 16:36:45 +01:00
lsljson.py Bump copyright year 2018-03-23 16:36:45 +01:00
lsllastpass.py Bump copyright year 2018-03-23 16:36:45 +01:00
lslloadlib.py Bump copyright year 2018-03-23 16:36:45 +01:00
lsloptimizer.py Bump copyright year 2018-03-23 16:36:45 +01:00
lsloutput.py Bump copyright year 2018-03-23 16:36:45 +01:00
lslparse.py Bump copyright year 2018-03-23 16:36:45 +01:00
lslrenamer.py Bump copyright year 2018-03-23 16:36:45 +01:00