@@ -172,6 +172,7 @@ algorithm
172
172
173
173
// traverse the eqSystem for function calls
174
174
(eqLst, (shared , addEqs, _, changed)) := List . mapFold(eqLst, evalFunctions_findFuncs, (sharedIn, {}, 1 , changed));
175
+ eqLst := listReverse(eqLst);
175
176
eqLst := listAppend(eqLst, addEqs);
176
177
eqs := BackendEquation . listEquation(eqLst);
177
178
eqSysOut := BackendDAEUtil . setEqSystEqs(eqSysIn, eqs);
@@ -211,6 +212,7 @@ algorithm
211
212
addEqs = listAppend(addEqs1,addEqs);
212
213
addEqs = listAppend(addEqs2,addEqs);
213
214
eq = BackendDAE . EQUATION (lhsExp,rhsExp,source,attr);
215
+ // if changed then print("FROM EQ "+BackendDump.equationString(eqIn)+"\n");print("GOT EQ "+BackendDump.equationString(eq)+"\n"); end if;
214
216
then
215
217
(eq,(shared ,addEqs,idx+ 1 ,changed));
216
218
case (BackendDAE . ARRAY_EQUATION (),_)
@@ -240,6 +242,7 @@ algorithm
240
242
eq = if intEq(size,0 ) then BackendDAE . EQUATION (lhsExp,rhsExp,source,attr) else BackendDAE . COMPLEX_EQUATION (size,lhsExp,rhsExp,source,attr);
241
243
// since tuple=tuple is not supported, these equations are converted into a list of simple equations
242
244
(eq,addEqs) = convertTupleEquations(eq,addEqs);
245
+ // if changed then print("FROM EQ "+BackendDump.equationString(eqIn)+"\n");print("GOT EQ "+BackendDump.equationString(eq)+"\n"); end if;
243
246
then
244
247
(eq,(shared ,addEqs,idx+ 1 ,changed));
245
248
else
0 commit comments