Skip to content

Commit

Permalink
- faster Util.listSetDifference* functions.
Browse files Browse the repository at this point in the history
  Empty - B = Empty.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5767 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Jul 1, 2010
1 parent 898bad7 commit e47e9ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/Util.mo
Expand Up @@ -3619,6 +3619,7 @@ algorithm
list<Type_a> a,a_1,a_2,xs;
FuncTypeType_aType_aToBoolean cond;
Type_a x1;
case ({},_,cond) then {}; /* Empty - B = Empty */
case (a,{},cond) then a; /* A B */
case (a,(x1 :: xs),cond)
equation
Expand Down Expand Up @@ -3649,6 +3650,7 @@ algorithm
list<Type_a> a,a_1,a_2,xs;
Type_a x1;

case ({},_) then {}; /* Empty - B = Empty */
case (a,{}) then a; /* A B */
case (a,(x1 :: xs))
equation
Expand Down

0 comments on commit e47e9ef

Please sign in to comment.