You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found an issue with the IF THEN ELSE optimization that was implemented for #102. When the optimization is applied, the code gen failed to preserve the parentheses, which are sometimes critical.
Example that demonstrates the problem:
constant = 1 ~~|
a = IF THEN ELSE(constant, b + c, d - e) * 10 ~~|
In this case, SDE currently generates incorrect code:
_a = _b + _c * 10;
It should instead preserve the parentheses:
_a = (_b + _c) * 10;
The text was updated successfully, but these errors were encountered:
I found an issue with the
IF THEN ELSE
optimization that was implemented for #102. When the optimization is applied, the code gen failed to preserve the parentheses, which are sometimes critical.Example that demonstrates the problem:
In this case, SDE currently generates incorrect code:
It should instead preserve the parentheses:
The text was updated successfully, but these errors were encountered: