loda-lang / loda-cpp

Runtime and miner for the LODA language written in C++
https://loda-lang.org/
Apache License 2.0
21 stars 1 forks source link

Improve sum simplification #297

Closed ckrause closed 9 months ago

ckrause commented 9 months ago

This gets currently not simplified:

-a2(n-1)*a1(n-1)+a2(n-1)*a1(n-1)

This is because we currently expect exactly two children in https://github.com/loda-lang/loda-cpp/blob/main/src/form/expression_util.cpp#L15-L44