This repository was archived by the owner on May 18, 2019. It is now read-only.
Commit a1911e7
[NF] Function evaluation improvements for records.
- Build a record expression from the child nodes if a record output
doesn't have an explicit binding.
- Evaluate expressions in function outputs and local variables too
(currently in order of declaration, needs to be dependency sorted).
- Added check that the outputs are assigned a value when evaluation a
function (by adding Expression.EMPTY() and using it as the initial
value if an output has no binding).
- Always evaluate complex bindings on parameters, even if they aren't
structural, since they need to be split into their component values.
Belonging to [master]:
- #2414
- OpenModelica/OpenModelica-testsuite#9401 parent 60e8e0a commit a1911e7
File tree
5 files changed
+83
-9
lines changed- Compiler
- NFFrontEnd
- Util
5 files changed
+83
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
159 | 165 | | |
160 | 166 | | |
161 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
194 | 207 | | |
195 | 208 | | |
196 | 209 | | |
197 | | - | |
198 | 210 | | |
199 | | - | |
| 211 | + | |
200 | 212 | | |
201 | | - | |
202 | | - | |
| 213 | + | |
203 | 214 | | |
| 215 | + | |
204 | 216 | | |
205 | | - | |
206 | | - | |
207 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
208 | 243 | | |
209 | 244 | | |
210 | 245 | | |
| |||
255 | 290 | | |
256 | 291 | | |
257 | 292 | | |
| 293 | + | |
258 | 294 | | |
259 | 295 | | |
260 | 296 | | |
| 297 | + | |
261 | 298 | | |
262 | 299 | | |
263 | 300 | | |
264 | 301 | | |
265 | 302 | | |
266 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
267 | 306 | | |
268 | 307 | | |
269 | 308 | | |
| |||
272 | 311 | | |
273 | 312 | | |
274 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
275 | 330 | | |
276 | 331 | | |
277 | 332 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
195 | 198 | | |
196 | 199 | | |
197 | 200 | | |
| |||
976 | 979 | | |
977 | 980 | | |
978 | 981 | | |
| 982 | + | |
979 | 983 | | |
980 | 984 | | |
981 | 985 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
378 | 379 | | |
379 | 380 | | |
380 | 381 | | |
| 382 | + | |
381 | 383 | | |
382 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
383 | 389 | | |
384 | 390 | | |
385 | 391 | | |
386 | 392 | | |
387 | 393 | | |
388 | 394 | | |
389 | | - | |
| 395 | + | |
| 396 | + | |
390 | 397 | | |
391 | 398 | | |
392 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
| 798 | + | |
| 799 | + | |
798 | 800 | | |
799 | 801 | | |
800 | 802 | | |
| |||
0 commit comments