Files
LSL-PyOptimizer/unit_tests/regression.suite
Sei Lisa d70c914738 Fix wrong output leading to incorrect tokenization of minus signs
When the tree has a unary minus node (NEG) whose child is a product node (*), and the left operand of the product node starts with a minus sign but is not a NEG node, this produced at least two minus signs in sequence without any spaces.

Normally, OptSigns hides this problem, but when it is disabled, or when the left factor is a pre-decrement (--V) node, the problem is visible.

Fix by creating a function that detects all kinds of leading minus signs, and use it in place of the comparison with NEG.

Fixes #31. Reported by @KrsityKu, who also provided a repro.
2024-05-24 23:55:23 +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
2024-04-15 16:15:56 +02:00
2024-04-15 16:15:56 +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
2022-10-31 20:08:26 +01:00
2022-10-31 20:08:26 +01:00
2022-10-31 20:08:26 +01:00
2022-10-31 20:08:26 +01:00
2022-10-31 20:08:26 +01:00
2020-11-10 02:14: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
2024-04-20 20:11:01 +02:00
2024-04-20 20:11:01 +02:00
2024-05-24 20:28:26 +02:00
2024-05-24 20:28:26 +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-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