This repository has been archived by the owner on May 18, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NF] Move general evaluation to separate phase.
- Added new module NFEvalConstants which evaluates constants and structural parameters after the flattening, instead of doing it during the typing which causes lots of issues. - Moved the construction of the function tree to after the evaluation and simplification phases, to avoid collecting functions that have been optimized out. - Fixed Ceval.evalCref so that subscripts are applied correctly. - Fixed EvalFunction so that it fails if an assertion is triggered, instead of returning the current value of the outputs. - Improved subscripting of if-expressions by subscripting the branches instead of the whole expression. - Added check that terminate is not used in a function context, and removed the handling of terminate in EvalFunction. Belonging to [master]: - #2690 - OpenModelica/OpenModelica-testsuite#1043
- Loading branch information
1 parent
6f85ead
commit 5468d69
Showing
26 changed files
with
1,640 additions
and
336 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.