Ticket #2429: RemoveSimpleEquations.mo.patch
File RemoveSimpleEquations.mo.patch, 1.9 KB (added by , 11 years ago) |
---|
-
Compiler/BackEnd/RemoveSimpleEquations.mo
75 75 protected import Types; 76 76 protected import Util; 77 77 78 protected type EquationAttributes = tuple<DAE.ElementSource, Boolean> "eqnAttributes ";78 protected type EquationAttributes = tuple<DAE.ElementSource, Boolean> "eqnAttributes(source,differentiated)"; 79 79 80 80 protected 81 81 uniontype SimpleContainer … … 2001 2001 vsattr = Debug.bcallret5(replacable and replaceble1, addVarSetAttributes, v, negate, mark, simpleeqnsarr, vsattr, vsattr); 2002 2002 rows = List.removeOnTrue(r, intEq, iMT[i]); 2003 2003 _ = arrayUpdate(iMT, i, {}); 2004 (vars, eqnslst, shared, repl, vsattr) = traverseAliasTree(rows, i, exp 1, SOME(expcr), negate, SOME(DAE.RCONST(0.0)), mark, simpleeqnsarr, iMT, unreplacable, vars, eqnslst, shared, repl, vsattr);2004 (vars, eqnslst, shared, repl, vsattr) = traverseAliasTree(rows, i, exp, SOME(expcr), negate, SOME(DAE.RCONST(0.0)), mark, simpleeqnsarr, iMT, unreplacable, vars, eqnslst, shared, repl, vsattr); 2005 2005 then 2006 2006 (vars, eqnslst, shared, repl); 2007 2007 // time set … … 2021 2021 vsattr = addVarSetAttributes(v, negate, mark, simpleeqnsarr, EMPTYVARSETATTRIBUTES); 2022 2022 rows = List.removeOnTrue(r, intEq, iMT[i]); 2023 2023 _ = arrayUpdate(iMT, i, {}); 2024 (vars, eqnslst, shared, repl, vsattr) = traverseAliasTree(rows, i, exp 1, SOME(expcr), negate, SOME(dexp), mark, simpleeqnsarr, iMT, unreplacable, vars, eqnslst, shared, repl, vsattr);2024 (vars, eqnslst, shared, repl, vsattr) = traverseAliasTree(rows, i, exp, SOME(expcr), negate, SOME(dexp), mark, simpleeqnsarr, iMT, unreplacable, vars, eqnslst, shared, repl, vsattr); 2025 2025 then 2026 2026 (vars, eqnslst, shared, repl); 2027 2027 // constant set