This repository was archived by the owner on May 18, 2019. It is now read-only.
Commit 117eefb
[NF] Variability fixes and other improvements.
- Replaced EquationScope, ClassScope and ExpOrigin with new ExpOrigin
bitfield.
- Removed Component.Attributes.DEFAULT and Class.Attributes.DEFAULT,
constants work equally well to save memory and simplifies the code.
- Set variables with no variability prefix and discrete type to be
discrete so e.g. pre() works correctly.
- Fixed variability of many builtin functions.
- Fixed variability of relations with regards to noEvent.
- Fixed variability of expressions in when-clauses.
- Fixed typing of noEvent.
- Added check that time, pre, edge and change isn't used in a
function context.
- Fixed handling of size on subscripted expressions.
- Moved handling of end to typing of subscripts, since the old handling
relied upon ExpOrigin being a uniontype with subscript information.
- Improved handling of end to generate appropriate size expressions when
the size of the dimension is unknown.
- Adapted the parenthesization algorithm from Dump to
NFExpression.toString to get rid of extraneous parentheses in error
messages.
- Fixed flattening of if-equations so the bodies of the branches aren't
in reverse order compared with the conditions (oops...).
Belonging to [master]:
- #2069
- OpenModelica/OpenModelica-testsuite#8011 parent 5cea0b5 commit 117eefb
File tree
17 files changed
+1157
-520
lines changed- Compiler
- NFFrontEnd
- Util
17 files changed
+1157
-520
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments