Skip to content

Commit

Permalink
- Fixed a bug (hopefully correctly) where too many AddEvents were gen…
Browse files Browse the repository at this point in the history
…erated

- Implemented STMT_WHILE
- Implemented STMT_ASSERT
- Implemented STMT_WHEN
- Implemented LUNARY
- Implemented MATRIX
- Implemented special build-in functions promote and transpose


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@4706 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Rickard Lindberg committed Dec 16, 2009
1 parent 800f6d6 commit 3d2f535
Show file tree
Hide file tree
Showing 5 changed files with 3,198 additions and 634 deletions.
16 changes: 16 additions & 0 deletions Compiler/SimCode.mo
Expand Up @@ -90,6 +90,22 @@ algorithm
len := listLength(lst);
end listLengthOptionInt;

public
function listLengthMatrix1
input list<list<tuple<DAE.Exp,Boolean>>> lst;
output Integer len;
algorithm
len := listLength(lst);
end listLengthMatrix1;

public
function listLengthMatrix2
input list<tuple<DAE.Exp,Boolean>> lst;
output Integer len;
algorithm
len := listLength(lst);
end listLengthMatrix2;


/************** FUNCTIONS ***********/
/* a type to use for function return, parameters and variable declarations is based on Exp.Type */
Expand Down

0 comments on commit 3d2f535

Please sign in to comment.