Sei Lisa
ec509b3840
Fix parenthesization of unary minus
...
The algorithm for adding parentheses around unary operators was not working properly. It converted a * (-b) * c into a * -b * c, which LSL handles as a * -(b * c).
Fix and add test cases for that. One of the test cases shows an example where the difference matters: 0 * (-1e20) * 1e20 should result in 0.0, but if wrongly parenthesized, it gives NaN, because 1e20*1e20 gives infinity due to float overflow, and minus infinity times 0 is indeterminate.
The addition of parentheses has been improved, but it still does not eliminate every redundant parenthesis.
Also fix the horrendous typo of using "operands" where it should be "operators".
2019-05-04 23:20:20 +02:00
..
2019-01-11 21:20:21 +01:00
2019-01-11 21:20:21 +01:00
2019-01-11 21:20:21 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-05-04 23:20:20 +02:00
2019-01-07 00:15:38 +01:00
2019-01-07 00:15:38 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-11 02:09:15 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-02-02 00:50:05 +01:00
2019-02-02 00:50:05 +01:00
2019-02-02 00:50:05 +01:00
2019-02-26 02:28:21 +01:00
2019-02-26 02:28:21 +01:00
2019-02-26 02:28:21 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-05-04 23:20:20 +02:00
2019-05-04 23:20:20 +02:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-01-04 20:27:36 +01:00
2019-05-01 04:28:58 +02:00
2019-05-01 04:28:58 +02:00
2019-05-01 04:28:58 +02:00