Skip to content

Commit 9159c1a

Browse files
committed
Updated CevalFunction implementation:
- Fixed correct dimensions for function variables. - Added dependency analysis for function variables so that they are added to the environment in the right order. - Added function to convert all ASUBs to CREFs. - Implemented support for : and slices. - Implemented support for if, for and while statements. git-svn-id: https://openmodelica.org/svn/OpenModelica/branches/sjoelund-functiontree@6717 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 9ea111a commit 9159c1a

File tree

2 files changed

+517
-36
lines changed

2 files changed

+517
-36
lines changed

Compiler/Ceval.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,14 +1328,14 @@ algorithm
13281328
{});
13291329
func = Env.getCachedInstFunc(cache, funcpath);
13301330
newval = CevalFunction.evaluate(env, func, vallst);
1331-
print("CevalFunction worked!\n");
13321331
then
13331332
(cache, newval, st);*/
13341333

13351334
// adrpo: 2009-11-17 re-enable the Cevalfunc after dealing with record constructors!
13361335
case (cache,env,(e as DAE.CALL(path = funcpath,expLst = expl,builtin = builtin)),vallst,impl,st,dim,msg)
13371336
local Env.Cache garbageCache;
13381337
equation
1338+
//print("CevalFunction didn't work :(\n");
13391339
false = RTOpts.debugFlag("noevalfunc");
13401340
failure(cevalIsExternalObjectConstructor(cache,funcpath,env));
13411341
// make sure is NOT used for records !

0 commit comments

Comments
 (0)