-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stockflows assume ternary+ operators can be expressed as distributive binary #79
Comments
Additional info: This is currently allowed to handle how Julia represents v = a + b + c + d * e * f * g
# becomes
tmp1 = a + b
tmp2 = tmp1 + c
tmp3 = d * e
tmp4 = tmp3 * f
tmp5 = tmp4 * g
v = tmp5 + tmp2 (or some such) (That is to say, we do often see functions with arity > 2: An easy solution might be to restrict when this kicks in to just specific functions, and reject anything else of arity > 2. |
Notice there are two f under op, when we're only applying it once.
As we don't currently expect any operands with arity > 2, not yet an issue.
The text was updated successfully, but these errors were encountered: