Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NF] Improve error checking of when-clauses.
- Moved the check of equations inside when-equations from Inst to Typing, to allow skipping the check if the when is clocked. - Mark lhs subscripts in when-equations as structural. - Added check that clocked when doesn't have an elsewhen. - Added check that non-clocked when doesn't have a clocked elsewhen. - Made clocked when illegal in algorithm. - Added new phase VerifyModel that checks for errors that can't be detected until after flattening and constant evaluation. It currently checks that each branch of a when-equation contains the same set of crefs. - Implemented BaseAvlSet.isEqual. - Renamed Expression.ClockKind.toString to toDebugString, and implemented new toString that doesn't leak implementation details. Belonging to [master]: - OpenModelica/OMCompiler#3001 - OpenModelica/OpenModelica-testsuite#1148
- Loading branch information
1 parent
e3fab53
commit ab4e3e6
Showing
8 changed files
with
347 additions
and
87 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
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.