Skip to content

Commit 5165884

Browse files
[Janitor mode] Fix whitespace
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25803 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent ad1232f commit 5165884

File tree

9 files changed

+34
-34
lines changed

9 files changed

+34
-34
lines changed

Compiler/BackEnd/BackendVarTransform.mo

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2635,12 +2635,12 @@ protected function replaceEquationAttributes
26352635
algorithm
26362636
eqAttrOut := matchcontinue(eqAttrIn,repl)
26372637
local
2638-
Boolean differentiated;
2639-
BackendDAE.EquationKind kind;
2640-
Integer subPartitionIndex;
2641-
BackendDAE.LoopInfo loopInfo;
2642-
DAE.Exp startIt, endIt;
2643-
list<BackendDAE.IterCref> crefs;
2638+
Boolean differentiated;
2639+
BackendDAE.EquationKind kind;
2640+
Integer subPartitionIndex;
2641+
BackendDAE.LoopInfo loopInfo;
2642+
DAE.Exp startIt, endIt;
2643+
list<BackendDAE.IterCref> crefs;
26442644
case(BackendDAE.EQUATION_ATTRIBUTES(differentiated=differentiated, kind=kind,subPartitionIndex=subPartitionIndex, loopInfo=BackendDAE.LOOP(startIt=startIt,endIt=endIt,crefs=crefs)),_)
26452645
equation
26462646
crefs = List.map1(crefs,replaceIterationCrefs,repl);

Compiler/FrontEnd/Expression.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4939,7 +4939,7 @@ algorithm
49394939
case DAE.PATTERN() equation
49404940
(e, ext_arg) = inFunc(inExp, inExtArg);
49414941
then (e, ext_arg);
4942-
4942+
49434943
// SUM expressions
49444944
case DAE.SUM(ty=tp, iterator=e1, startIt=e2, endIt=e3, body=e4) equation
49454945
(e1_1, ext_arg) = traverseExpBottomUp(e1, inFunc, inExtArg);
@@ -4949,7 +4949,7 @@ algorithm
49494949
e = if referenceEq(e1, e1_1) and referenceEq(e2, e2_1) and referenceEq(e3, e3_1) and referenceEq(e4, e4_1)then inExp else DAE.SUM(tp,e1_1, e2_1, e3_1,e4_1);
49504950
(e, ext_arg) = inFunc(e, ext_arg);
49514951
then (e, ext_arg);
4952-
4952+
49534953
// Why don't we call inFunc() for these expressions?
49544954
case DAE.CODE() then (inExp, inExtArg);
49554955

@@ -5373,7 +5373,7 @@ algorithm
53735373
(e3_1,ext_arg_3) = traverseExpTopDown(e3, rel, ext_arg_2);
53745374
(e4_1,ext_arg_4) = traverseExpTopDown(e4, rel, ext_arg_3);
53755375
then (DAE.SUM(tp,e1_1,e2_1,e3_1,e4_1),ext_arg_3);
5376-
5376+
53775377
else
53785378
equation
53795379
str = ExpressionDump.printExpStr(inExp);

Compiler/SimCode/SerializeModelInfo.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,8 +681,8 @@ algorithm
681681
File.write(file, "\"],\"source\":");
682682
serializeSource(file,eq.source,withOperations);
683683
File.write(file, "}");
684-
then true;
685-
684+
then true;
685+
686686
else
687687
equation
688688
Error.addInternalError("serializeEquation failed: " + anyString(eq), sourceInfo());

Compiler/SimCode/SimCode.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ uniontype SimEqSystem
426426
Option<SimEqSystem> elseWhen;
427427
DAE.ElementSource source;
428428
end SES_WHEN;
429-
429+
430430
record SES_FOR_LOOP
431431
Integer index;
432432
DAE.Exp iter;
@@ -436,7 +436,7 @@ uniontype SimEqSystem
436436
DAE.Exp exp;
437437
DAE.ElementSource source;
438438
end SES_FOR_LOOP;
439-
439+
440440
end SimEqSystem;
441441

442442
uniontype StateSet

Compiler/SimCode/SimCodeUtil.mo

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,7 @@ algorithm
16341634
if Flags.isSet(Flags.VECTORIZE) then
16351635
dlow = BackendDAEUtil.mapEqSystem(dlow, Vectorization.rollOutArrays);
16361636
end if;
1637-
1637+
16381638
modelInfo = createModelInfo(class_, dlow, functions, {}, numStateSets, fileDir);
16391639
modelInfo = addTempVars(tempvars, modelInfo);
16401640

@@ -3930,15 +3930,15 @@ algorithm
39303930
//print("rhsExp 2:"+ExpressionDump.printExpStr(rhsExp)+"\n");
39313931
ses = SimCode.SES_SIMPLE_ASSIGN(iuniqueEqIndex,lhsCrefIn,rhsExp,source);
39323932
then (ses,iuniqueEqIndex+1);
3933-
3933+
39343934
case(BackendDAE.EQUATION(source=source,attr=BackendDAE.EQUATION_ATTRIBUTES(loopInfo=BackendDAE.LOOP(startIt=startIt,endIt=endIt,crefs=iterCrefs))),_,_,_)
39353935
equation
39363936
// is a for equation
39373937
iterator = DAE.CREF(ComponentReference.makeCrefIdent("i",DAE.T_INTEGER_DEFAULT,{}),DAE.T_INTEGER_DEFAULT);
39383938
(DAE.CREF(componentRef=cref),(_,iterCrefs)) = Expression.traverseExpTopDown(Expression.crefExp(lhsCrefIn),Vectorization.setIteratedSubscriptInCref,(iterator,iterCrefs));
39393939
(rhsExp,(_,iterCrefs)) = Expression.traverseExpTopDown(rhs,Vectorization.setIteratedSubscriptInCref,(iterator,iterCrefs));
39403940
then (SimCode.SES_FOR_LOOP(iuniqueEqIndex,iterator,startIt,endIt,cref,rhsExp,source),iuniqueEqIndex+1);
3941-
3941+
39423942
else
39433943
equation
39443944
print("makeSolvedSES_FOR_LOOP failed\n");
@@ -7916,7 +7916,7 @@ algorithm
79167916
s = s+ ComponentReference.printComponentRefStr(cref) + "=" + ExpressionDump.printExpStr(exp)+"[" +DAEDump.daeTypeStr(Expression.typeof(exp))+ "]\n";
79177917
s = s+"end for;";
79187918
then s;
7919-
7919+
79207920
else
79217921
equation
79227922
then "SOMETHING DIFFERENT\n";
@@ -12370,7 +12370,7 @@ algorithm
1237012370
case (SimCode.SES_WHEN(index, conditions, initialCall, left, right, elseWhen, source), _, a)
1237112371
/* TODO: Me */
1237212372
then (SimCode.SES_WHEN(index, conditions, initialCall, left, right, elseWhen, source), a);
12373-
12373+
1237412374
case (SimCode.SES_FOR_LOOP(), _, a)
1237512375
/* TODO: Me */
1237612376
then (eq, a);

Compiler/Template/DAEDumpTV.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,15 +1369,15 @@ package DAE
13691369
record PATTERN "(x,1,ROOT(a as _,false,_)) := rhs; MetaModelica extension"
13701370
Pattern pattern;
13711371
end PATTERN;
1372-
1372+
13731373
record SUM //i.e. accumulated sum over a range of array vars
13741374
Type ty;
13751375
Exp iterator;
13761376
Exp startIt;
13771377
Exp endIt;
13781378
Exp body;
13791379
end SUM;
1380-
1380+
13811381
end Exp;
13821382
end DAE;
13831383

Compiler/Template/ExpressionDumpTV.mo

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -416,13 +416,13 @@ package DAE
416416
record PATTERN
417417
Pattern pattern;
418418
end PATTERN;
419-
419+
420420
record SUM
421-
Type ty;
422-
Exp iterator;
423-
Exp startIt;
424-
Exp endIt;
425-
Exp body;
421+
Type ty;
422+
Exp iterator;
423+
Exp startIt;
424+
Exp endIt;
425+
Exp body;
426426
end SUM;
427427
end Exp;
428428

Compiler/Template/ExpressionDumpTpl.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ match exp
145145
let startStr = dumpExp(startIt,stringDelimiter)
146146
let endStr = dumpExp(endIt,stringDelimiter)
147147
'SIGMA[<%iterStr%>:<%startStr%>to<%endStr%>](<%bodyStr%>)'
148-
148+
149149
else errorMsg("ExpressionDumpTpl.dumpExp: Unknown expression.")
150150
end dumpExp;
151151

Compiler/Template/SimCodeTV.mo

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,13 +1377,13 @@ package DAE
13771377
record PATTERN
13781378
Pattern pattern;
13791379
end PATTERN;
1380-
record SUM
1381-
Type ty;
1382-
DAE.Exp iterator;
1383-
DAE.Exp startIt;
1384-
DAE.Exp endIt;
1385-
DAE.Exp body;
1386-
end SUM;
1380+
record SUM
1381+
Type ty;
1382+
DAE.Exp iterator;
1383+
DAE.Exp startIt;
1384+
DAE.Exp endIt;
1385+
DAE.Exp body;
1386+
end SUM;
13871387
end Exp;
13881388

13891389
uniontype CallAttributes

0 commit comments

Comments
 (0)