Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20286 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Apr 28, 2014
1 parent 090bdf6 commit 91f6ff4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions Compiler/FrontEnd/Expression.mo
Expand Up @@ -4560,7 +4560,7 @@ public function traverseExpDerPreStart

NOTE: The user-provided function is not allowed to fail! If you want to
detect a failure, return NONE() in your user-provided datatype.

mahge : This function will not treat der(), pre() and start() as calls
but as unique ids. i.e. x is different from der(x) and given der(x) x will not
be extreacted as a unique id. Instead you get $DER.x. Same oes for pre and start.
Expand Down Expand Up @@ -5834,7 +5834,7 @@ algorithm
ocrefs := List.unique(extractCrefsFromExp(inExp));
end extractUniqueCrefsFromExp;

public function extractCrefsFromExpDerPreStart
public function extractCrefsFromExpDerPreStart
" author mahge: Same as extractCrefsFromExp except:
This function will not treat der(), pre() and start() as calls
but as unique ids. i.e. x is different from der(x) and given der(x) x will not
Expand Down Expand Up @@ -5863,11 +5863,11 @@ public function extractUniqueCrefsFromStatmentS
input list<DAE.Statement> inStmts;
output tuple<list<DAE.ComponentRef>,list<DAE.ComponentRef>> ocrefs;
protected
list<list<DAE.ComponentRef>> lhscreflstlst;
list<list<DAE.ComponentRef>> rhscreflstlst;
list<DAE.ComponentRef> orhscrefs;
list<DAE.ComponentRef> olhscrefs;
algorithm
list<list<DAE.ComponentRef>> lhscreflstlst;
list<list<DAE.ComponentRef>> rhscreflstlst;
list<DAE.ComponentRef> orhscrefs;
list<DAE.ComponentRef> olhscrefs;
algorithm
(lhscreflstlst,rhscreflstlst) := List.map_2(inStmts,extractCrefsStatment);
orhscrefs := List.unique(List.flatten(rhscreflstlst));
olhscrefs := List.unique(List.flatten(lhscreflstlst));
Expand All @@ -5881,25 +5881,25 @@ public function extractCrefsStatment
output list<DAE.ComponentRef> olcrefs;
output list<DAE.ComponentRef> orcrefs;
algorithm
(olcrefs,orcrefs) := match(inStmt)
(olcrefs,orcrefs) := match(inStmt)
local
Exp exp1,exp2;
case DAE.STMT_ASSERT(cond = exp1)
equation
orcrefs = extractCrefsFromExpDerPreStart(exp1);
then
({},orcrefs);

case DAE.STMT_ASSIGN(exp1 = exp1, exp = exp2)
equation
olcrefs = extractCrefsFromExpDerPreStart(exp1);
orcrefs = extractCrefsFromExpDerPreStart(exp2);
then
(olcrefs,orcrefs);

case _ then ({},{});
end match;

end match;
end extractCrefsStatment;

public function expHasCrefs "
Expand Down
2 changes: 1 addition & 1 deletion Compiler/Template/SimCodeTV.mo
Expand Up @@ -2467,7 +2467,7 @@ package List
input list<Type_a> inList;
output list<Type_a> outParts;
end restOrEmpty;

function isEmpty
replaceable type TypeVar subtypeof Any;
input list<TypeVar> inList;
Expand Down

0 comments on commit 91f6ff4

Please sign in to comment.