Skip to content

Sim: Update eliminable variable expression

Jesse VanderWees requested to merge sim-elim-var-expr into master

Since Pymoca 0.4.1, expanding vectors is performed first if expand_mx is set as well. This means that the variable elimination should also handle trailing array indices, e.g. "a.b._c[1,2]" instead of just "a.b._c".

This commit mirrors commit 854d9605, where optimization was fixed.

Merge request reports