Skip to content

Changes

Summary

  1. [NB] add handling of edge() and change() operators (#12469) (details)
  2. Fix connecting potentially present variables (#12474) (details)
  3. Fix names of records in Base Modelica (#12475) (details)
  4. [NB] support shared literals (#12472) (details)
Commit dbd5472a287f17bfccf123e30ab426b5fcd22ff3 by noreply
[NB] add handling of edge() and change() operators (#12469)

- edge(d) becomes d and not pre(d)
  - change(d) becomes d <> pre(d)
  - also handled for negated crefs inside the calls
The file was modified OMCompiler/Compiler/NBackEnd/Modules/2_Pre/NBDetectStates.mo (diff)
Commit 2769ed3b0c9096729578778a29ae33ccacd62500 by noreply
Fix connecting potentially present variables (#12474)

- Assume that connectors are compatible if either of the connector
  elements are missing an associated model, in which case they're
  probably a potentially present variable in an expandable connector.

Fixes #12471
The file was modified OMEdit/OMEditLIB/Modeling/Model.cpp (diff)
Commit add1c8e338c4f02eee4b7ff08911130353e80f42 by noreply
Fix names of records in Base Modelica (#12475)

- Keep the node type from the original node when instantiating a record
  for dumping to Base Modelica, since it contains information needed to
  get the correct name of the record.

Fixes #12422
The file was addedtestsuite/openmodelica/basemodelica/Record3.mo
The file was modified testsuite/openmodelica/basemodelica/Makefile (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFRecord.mo (diff)
Commit 9d4e03d9e5452b1e771cf9dbcc0af7c15bf84661 by noreply
[NB] support shared literals (#12472)

* [NB] support shared literals

* [NF] move shared literal to the end

- new record to the end of uniontype to not mess with bootstrapping headers
The file was modified OMCompiler/Compiler/NFFrontEnd/NFExpression.mo (diff)
The file was modified OMCompiler/Compiler/SimCode/SimCodeFunctionUtil.mo (diff)
The file was modified OMCompiler/Compiler/NFFrontEnd/NFFlatten.mo (diff)
The file was modified OMCompiler/Compiler/NSimCode/NSimStrongComponent.mo (diff)
The file was modified OMCompiler/Compiler/NSimCode/NSimCode.mo (diff)