Skip to content

Commit a897969

Browse files
committed
- small fix to make omc MetaModelica filter happy.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7446 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent f169544 commit a897969

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Compiler/BackEnd/SimCode.mo

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6307,9 +6307,11 @@ algorithm
63076307
Boolean tup,builtin_;
63086308
DAE.ExpType exty;
63096309
DAE.InlineType inty;
6310+
63106311
case ({},_,_,_) then ("",{});
6311-
//expand sample conditions with helpindex
6312-
case ((e as DAE.CALL(path = name as Absyn.IDENT("sample"),expLst=args_,tuple_=tup,builtin=builtin_, ty=exty, inlineType=inty) :: el),i,helpVarIndex, false)
6312+
6313+
//expand sample conditions with helpindex
6314+
case ((e as DAE.CALL(path = name as Absyn.IDENT("sample"),expLst=args_,tuple_=tup,builtin=builtin_, ty=exty, inlineType=inty)) :: el,i,helpVarIndex, false)
63136315
equation
63146316
i_str = intString(i);
63156317
helpVarIndexStr = intString(helpVarIndex);
@@ -6324,8 +6326,8 @@ algorithm
63246326
res_1 = stringAppend(res, resx);
63256327
then
63266328
(res_1,(helpInfo :: helpVarInfoList));
6327-
//expand sample conditions with helpindex
6328-
case ((e as DAE.CALL(path = name as Absyn.IDENT("sample"),expLst=args_,tuple_=tup,builtin=builtin_, ty=exty, inlineType=inty) :: el),i,helpVarIndex, true)
6329+
//expand sample conditions with helpindex
6330+
case ((e as DAE.CALL(path = name as Absyn.IDENT("sample"),expLst=args_,tuple_=tup,builtin=builtin_, ty=exty, inlineType=inty)) :: el,i,helpVarIndex, true)
63296331
equation
63306332
i_str = intString(i);
63316333
helpVarIndexStr = intString(helpVarIndex);
@@ -6340,6 +6342,7 @@ algorithm
63406342
res_1 = stringAppend(res, resx);
63416343
then
63426344
(res_1,(helpInfo :: helpVarInfoList));
6345+
63436346
case ((e :: el),i,helpVarIndex, false)
63446347
equation
63456348
i_str = intString(i);
@@ -6356,6 +6359,7 @@ algorithm
63566359
res_1 = stringAppend(res, resx);
63576360
then
63586361
(res_1,(helpInfo :: helpVarInfoList));
6362+
63596363
case ((e :: el),i,helpVarIndex, true)
63606364
equation
63616365
i_str = intString(i);
@@ -6372,6 +6376,7 @@ algorithm
63726376
res_1 = stringAppend(res, resx);
63736377
then
63746378
(res_1,(helpInfo :: helpVarInfoList));
6379+
63756380
case (_,_,_,_)
63766381
equation
63776382
print("-build_when_condition_checks3 failed.\n");

0 commit comments

Comments
 (0)