@@ -1418,7 +1418,7 @@ protected
14181418algorithm
14191419 (vars, varsLst) := inTpl;
14201420 varLst2 := BackendEquation . expressionVars(inExp, vars);
1421- varsLst := listAppend(varsLst, varLst2 );
1421+ varsLst := listAppend(varLst2, varsLst );
14221422 exp := inExp;
14231423 outTpl := (vars, varsLst);
14241424end varsCollector;
@@ -4151,7 +4151,7 @@ algorithm
41514151 lstall = List . map(row, Util . tuple21);
41524152 (_, lst, _) = List . intersection1OnTrue(lstall, lst, intEq);
41534153 _ = List . fold1(lst, markNegativ, rowmark, mark);
4154- row = listAppend(row, row1);
4154+ row = listAppend(row1,row );
41554155 then
41564156 (row,size);
41574157
@@ -4189,8 +4189,7 @@ algorithm
41894189 (row,size) = adjacencyRowEnhanced(inVariables, eqn, mark, rowmark, kvars, trytosolve);
41904190 lst = List . map(row,Util . tuple21);
41914191 lst = List . intersectionOnTrue(lst, inLstAllBranch,intEq);
4192- row = listAppend(row,iRow);
4193- then adjacencyRowEnhancedEqnLstIfBranches(rest, inVariables, mark, rowmark, kvars, trytosolve, (lst, row, size + iSize));
4192+ then adjacencyRowEnhancedEqnLstIfBranches(rest, inVariables, mark, rowmark, kvars, trytosolve, (lst, listAppend(row,iRow), size + iSize));
41944193 end match;
41954194end adjacencyRowEnhancedEqnLstIfBranches;
41964195
@@ -8482,8 +8481,8 @@ algorithm
84828481 then (vars,vidxs,{eq},{eidx});
84838482 case (BackendDAE . TORNSYSTEM (strictTearingSet = BackendDAE . TEARINGSET (residualequations= eidxs,tearingvars= vidxs, otherEqnVarTpl= otherEqnVarTpl)),_,_)
84848483 equation
8485- eidxs = listAppend(eidxs, List . map(otherEqnVarTpl,Util . tuple21));
8486- vidxs = listAppend(vidxs, List . flatten(List . map(otherEqnVarTpl,Util . tuple22)));
8484+ eidxs = listAppend(List . map(otherEqnVarTpl,Util . tuple21),eidxs );
8485+ vidxs = listAppend(List . flatten(List . map(otherEqnVarTpl,Util . tuple22)),vidxs );
84878486 vars = List . map1(vidxs,BackendVariable . getVarAtIndexFirst,varArr);
84888487 eqs = BackendEquation . getEqns(eidxs,eqArr);
84898488 then (vars,vidxs,eqs,eidxs);
0 commit comments