CIFASIS / modelicacc

Modelica C Compiler implemented in C++ to develop and test novel algorithms for large scale models.
GNU General Public License v3.0
11 stars 9 forks source link

Generalize split operation in matching phase #32

Closed Kalashnikovni closed 3 years ago

Kalashnikovni commented 3 years ago

Add split support for multiple uses of the same variable with different indices, in the same equation. For e.g.

for i in 1:N-1 loop a[i] = x[i] + x[i - 1] end for;

Kalashnikovni commented 3 years ago

It's done by our current implementation. However, it doesn't comply with the assumption that the algorithm requires.