Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Inst.addCachedEnv moved to Env.addCachedEnv (is more natural to be …
…in Env) - Static.transformModificationsToNamedArguments (does what the long name say) - Lookup.lookupType2 reordered cases - Codegen - generate modelica_integer and integer for enumeration type. testsuite/mosfiles/Enum8.mos will fail because of this. To be fixed later. - more comments in Inst - Exp.crefEqual was checking for equality: + by comparing idents/subscripts by using equality(n1, n2) instead of true = stringEqual(n1, n2) + as a last resort (last case) by *converting* the crefs into strings and doing string comparison on them??!! + I changed all equality(n1, n2) into true = stringEqual(n1, n2) and improved the last case to handle stringified crefs better: CREF_QUAL(x, CREF_IDENT(y)) will be equal to CREF_IDENT(x.y). - Inst.isInnerOuterMatch now compares the last indents from crefs before doing the Exp.crefEqual. - Inst.propagateAttributes is now walking the DAE once - Changed the walking the DAE two times: innerVars = DAEUtil.getAllMatchingElements(inDae,DAEUtil.isInnerVar); outerVars = DAEUtil.getAllMatchingElements(inDae,DAEUtil.isOuterVar); To walking the DAE once: (innerVars,outerVars) = DAEUtil.findAllMatchingElements( inDae,DAEUtil.isInnerVar,DAEUtil.isOuterVar); - Inst.instClassIn and Inst.partialInstClassIn are now cached (only one input/result for now) + this needs to be developed more as the cache should be cleared after instantiation of the top class is done. git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@4686 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
Showing
7 changed files
with
1,523 additions
and
541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.