Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 6952465

Browse files
rfrankeOpenModelica-Hudson
authored andcommitted
Convert BackendDAE.FOR_EQUATION to SimCode.SES_FOR_LOOP (simplified)
Belonging to [master]: - #2692 - OpenModelica/OpenModelica-testsuite#1044
1 parent d2c673d commit 6952465

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Compiler/SimCode/SimCodeUtil.mo

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,6 +2109,11 @@ algorithm
21092109
then
21102110
({SimCode.SES_SIMPLE_ASSIGN(iuniqueEqIndex, cr, e2, source, eqAttr)}, iuniqueEqIndex + 1, itempvars);
21112111

2112+
// for equation that may result from -d=-nfScalarize and is assumed solved
2113+
case BackendDAE.FOR_EQUATION(iter = varexp, start = e1, stop = e2, left = DAE.CREF(componentRef = cr), right = right, source = source, attr = eqAttr)
2114+
then
2115+
({SimCode.SES_FOR_LOOP(iuniqueEqIndex, varexp, e1, e2, cr, right, source, eqAttr)}, iuniqueEqIndex + 1, itempvars);
2116+
21122117
// solved equation
21132118
case BackendDAE.SOLVED_EQUATION(exp=e2, source=source, attr=eqAttr)
21142119
algorithm

0 commit comments

Comments
 (0)