[root]/testsuite/flattening/modelica/records
Author | Changes | Lines of Code | Lines per Change |
---|---|---|---|
Totals | 253 (100.0%) | 3184 (100.0%) | 12.5 |
alash325 | 117 (46.2%) | 2248 (70.6%) | 19.2 |
sjoelund.se | 32 (12.6%) | 335 (10.5%) | 10.4 |
hudson | 39 (15.4%) | 202 (6.3%) | 5.1 |
mahge930 | 38 (15.0%) | 178 (5.6%) | 4.6 |
perost | 13 (5.1%) | 173 (5.4%) | 13.3 |
adrpo | 12 (4.7%) | 46 (1.4%) | 3.8 |
vitalij | 2 (0.8%) | 2 (0.1%) | 1.0 |
Fix for #3245:
- Fix code generation for assignment to record slices in functions.
54 lines of code changed in 2 files:
Fix parsing
3 lines of code changed in 1 file:
Fix bug: #2854 (do scope versioning also in the top scope, but not for builtin classes and builtin types)
- note that flattening/modelica/declarations/Constant12.mo is actually correct now,
see m:#1397, well, except for the fact that it should tell that A.y does not have a binding
5 lines of code changed in 1 file:
Merged branches/FFrontEnd into trunk/
Main changes:
- changed the environment to support both non-destructive and destructive updates
- Env.Cache -> FCore.Cache, Env.Env -> FCore.Graph
- FCore.Graph is not a list of Frames anymore is a stucture where the previous list is saved in component "scope"
- all Frames in the new FCore.Graph are FCore.Ref pointing to FCore.Node having different FCore.Data depending on what they are
- all FCore.Nodes have children (FCore.CAvlTree) which maps names to FCore.Ref (which is Array<FCore.Node>, size 1)
- FGraph.openScope pushes an already existing FCore.Ref (or a new one) on the scope list
- for all components having modifications the last class in the type path is renamed to include the
prefix, see FGraph.createVersionScope (this is done because we need unique names for redeclared functions,
records, etc and we need a unique type scope for that)
Example: A.B.C c -> A.B.C$c c
Bug fixes:
- calling function via component (multibody MSL 3.2.1 patch not needed anymore, will remove it in a next commit)
- #2837 array equations wrongly handled in RemoveSimpleEquations (used in ThermoPower and PowerSystems libraries, etc)
#2784, #2727, #2739 (missing modifiers combined with redeclare and unique function generation for redeclared functions)
#2835 - handle overconstrained connectors extending basic types (used in PowerSystems library)
- do not loose modifications on derived classes handled by InstExtends
- some error messages about missing components in Fluid library are gone
- for components of size 0 do not check if they are assigned before use in functions (residue in equalityConstraint)
31 lines of code changed in 4 files:
Fix for #2806:
- Remove input/output from variables which are not at top-level or inside a
top-level connector.
3 lines of code changed in 2 files:
added some simplify rules
2 lines of code changed in 2 files:
Various bugfixes and new features
- A new implementation for overloaded (binary) operators.
* Follows the specification more strictly and produces less fewer warnings for legal code
* matrix*matrix and matrix*vector uses reduction expressions to implement sum and array
* Checked that inlining of the generated functions works and produces simple expressions
* The code has been split into its own file since it is 2200 LOC and very few things in there actually depend on Static.mo (most of the remaining ones should be refactored)
- Implemented inlining of functions that assign to record members instead of call the record constructor in a single statement
- When evaluating function inputs to determine output array dimensions, keep the evaluated results
- Adding new preOptModule evaluateReplaceProtectedFinalEvaluateParameters which replaces evaluateReplaceFinalEvaluateParameters as a default module
* Causes problems for NPendulum.mos and PrismaticConstraint. They have different preOptModules set in the tests
- Added simulation flag `-abortSlowSimulation` used for the library tests in the testsuite
- EngineV6 now causes chattering behaviour. It was set to a Compilation test.
* The test will not spin thanks to the `-abortSlowSimulation` flag
- Improve elaboration, simplification, evaluation, and code generation for reductions
* Each operator now has unique indexes to avoid conflicts when replacing iterator crefs
* We can now simplify user-defined operators
* Added a new kind of mode for reductions: DAE.THREAD(), as opposed to the standard DAE.COMBINE()
- When we have multiple iterators, the default DAE.COMBINE() is used and iterates over all combinations of the expressions in the iterators. DAE.THREAD() instead assumes the arrays have equal length and folds over the reduction expression with the n-th expression in each iterator at a time. Used by operator overloading to implement element-wise and `sum` operations.
* This changes the DAE slightly
- Implemented DAE.FuncArg as a uniontype instead of tuple (DAE change)
- Some better simplification for ASUB (ranges and reductions)
- And some more things. Hopefully the major changes are all listed.
37 lines of code changed in 2 files:
[Janitor mode] Fix whitespace
175 lines of code changed in 29 files:
Improve error-message for type mismatch in function calls when there is only one candidate function
81 lines of code changed in 2 files:
- properly fix missing separators!
3 lines of code changed in 1 file:
- fix Makefile
1 lines of code changed in 1 file:
Fix for #2643:
- Remove default values on record members if the are given a binding by a
modifier.
33 lines of code changed in 2 files:
[Janitor mode] Set auto-props
1 lines of code changed in 1 file:
Fix for #2366 and #2640:
- Implemented evaluation of default arguments in function calls.
44 lines of code changed in 2 files:
[Janitor mode] Set auto-props
1 lines of code changed in 1 file:
Fix for #2616:
- Handle DAE.DEFINE in InstUtil.moveBindings.
34 lines of code changed in 2 files:
#2555
- Enforce casting of the value of a binding, in addition to the expression
70 lines of code changed in 2 files:
- expected results after revert of r17842
0 lines of code changed in 1 file:
Recommit r17828. Updated expected outputs.
1 lines of code changed in 1 file:
+ Revert parts of r17828 for now until tests are updated.
0 lines of code changed in 1 file:
[Janitor mode] Set auto-props
1 lines of code changed in 1 file:
+ Fix #2387. Handle Matrix Multiplication of record types according to spec.
111 lines of code changed in 2 files:
Fix for bug: #2346
- sort also the variable components for instantiation based on their bindings
- sort the DAE in the order it is defined in the Modelica file
4 lines of code changed in 2 files:
+ Handling arrays of records.
+ A new generic array structure to handle arrays of random types.
+ Underscores for qualified names too. e.g. _a._b. Needed for records like record R Integer int; end R;
+ recordArray[i].recordComponent works now. Deeper versions should also work.
- Multi-dimensional arrays of records need more support for default values. Right now default values handled only for one dimensional arrays of records.
8 lines of code changed in 2 files:
[Janitor mode] Fix tabs
14 lines of code changed in 2 files:
Revert r15962 (accidently replaced 8 spaces with 2 spaces; was supposed to be 1 tab to 2 spaces but text editors messed up the command)
Contact me if you have problems merging your working copy
9 lines of code changed in 4 files:
[Janitor mode] Fix tabs
9 lines of code changed in 4 files:
[Janitor mode] Set auto-props
1 lines of code changed in 1 file:
- Handle arrays of records inside records correctly in DAEDump.
2 lines of code changed in 2 files:
+ revert 15132
6 lines of code changed in 1 file:
+ Fix for operators access in classes which derive an operator record.
- Remove unnecessarily printed message to failtrace.
6 lines of code changed in 1 file:
Fix tests
6 lines of code changed in 1 file:
Always use full pathnames for file info of parsed files
6 lines of code changed in 1 file:
+ Handle protected elements too when evaluating records.
8 lines of code changed in 1 file:
+ Record constructors: get default values from the original record declaration. Not from an instance (possibly modified) of a record.
11 lines of code changed in 7 files:
+ reverting changes from r14841
11 lines of code changed in 7 files:
+ Record constructors: get default values from the original record declaration. Not from a [modified] instance of the record.
11 lines of code changed in 7 files:
- cleanup record construction.
- see what fails
2 lines of code changed in 2 files:
- more test fixing and moving tests to non working
i mostly broke tests with final components override message. i'll fix them later.
2 lines of code changed in 1 file:
- expected output.
0 lines of code changed in 1 file:
(12 more)