[root]/testsuite/flattening/modelica/enums
Author | Changes | Lines of Code | Lines per Change |
---|---|---|---|
Totals | 154 (100.0%) | 1198 (100.0%) | 7.7 |
alash325 | 76 (49.4%) | 807 (67.4%) | 10.6 |
perost | 25 (16.2%) | 241 (20.1%) | 9.6 |
hudson | 27 (17.5%) | 97 (8.1%) | 3.5 |
sjoelund.se | 15 (9.7%) | 30 (2.5%) | 2.0 |
adrpo | 9 (5.8%) | 19 (1.6%) | 2.1 |
vitalij | 1 (0.6%) | 3 (0.3%) | 3.0 |
lochel | 1 (0.6%) | 1 (0.1%) | 1.0 |
- Improved deduction of implicit iteration ranges in for-loops.
- Added ALG_ASSERT, ALG_TERMINATE and ALG_REINIT to SCode.Statement,
to mimic how SCode.EEquation is structured.
- Various code cleanup.
1 lines of code changed in 1 file:
Re-add check for duplicate names in enumeration
11 lines of code changed in 2 files:
Use lookupType instead of lookupClass to handle DIM_ENUM/DIM_BOOLEAN
1 lines of code changed in 1 file:
Fix for #2898:
- Made the compiler less sensitive to errors in unused models.
1 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)
2 lines of code changed in 1 file:
Fix for #2806:
- Remove input/output from variables which are not at top-level or inside a
top-level connector.
12 lines of code changed in 1 file:
- Actual commit of stuff that should have been committed in r21937 (accidentally
only committed testsuite in that commit).
1 lines of code changed in 1 file:
- expected output
1 lines of code changed in 1 file:
Fixes for #2779:
- Restructured subscript elaboration to provide more helpful error messages.
- Added error checking for index out of bounds in connect.
- Fixed various cref typing issues and got rid of the +correctCrefTypes flag.
1 lines of code changed in 1 file:
- added rule
- x*x = x^2
motivation: simplification for derivations as for expression evaluation
3 lines of code changed in 1 file:
[Janitor mode] Fix whitespace
89 lines of code changed in 22 files:
[Janitor mode] Set auto-props
1 lines of code changed in 1 file:
- Preserve enum literals in Static.elabCrefSlice.
61 lines of code changed in 2 files:
- add ModelicaBuiltin.mo and MetaModelicaBuiltin.mo directly to the
initial environment in Builtin.initialEnv and NFSCodeEnv.buildInitialEnv
- this way we avoid translating them and adding them to SCode.Program again
- also, as a bonus we get saveTotalSCode to NOT display any classes from the
builtin environment
0 lines of code changed in 1 file:
- Analyse derived type dimensions in SCodeDependency.
23 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
10 lines of code changed in 4 files:
- at least these models started to work:
Modelica.Electrical.Digital.Examples.RAM
ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_A
some models in: ModelicaCompliance.Redeclare.ConstrainingType.*
- prefix dimension expressions in types as they are used inside backend and codegen
[TODO -> do it everywhere, currently only in one case in InstSection.makeAssignment]
- ceval the subscripts that you can, don't fail on first one that you can't
- fix some errors in CheckModel.statementOutputs
- apply and merge modifiers from the constraining type
- add error message if you cannot lower algorithms and there is no other message
1 lines of code changed in 1 file:
[Janitor mode] Set auto-props
1 lines of code changed in 1 file:
- Fixed propagation of file info for duplicate enumeration literals error.
23 lines of code changed in 2 files:
- Fixed punctuation of error messages.
2 lines of code changed in 1 file:
[Janitor mode] Fix tabs
2 lines of code changed in 1 file:
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
4 lines of code changed in 2 files:
[Janitor mode] Fix tabs
4 lines of code changed in 2 files:
Fix eol-style
2 lines of code changed in 2 files:
- Reverted r15866, since it broke some testcases.
10 lines of code changed in 4 files:
Fix for #2159:
- Only consider components in modifiers when sorting elements during instantiation.
10 lines of code changed in 4 files:
- Don't replace enum dimensions with integers when checking the binding type.
23 lines of code changed in 2 files:
- Forgot to baseline new test.
20 lines of code changed in 1 file:
- Preserve the comment for the flattened class in the flattened output.
- Don't translate enumeration literals to integers when simplifying asubs.
53 lines of code changed in 2 files:
"StateSelect =" to "stateSelect ="
1 lines of code changed in 1 file:
Fix tests
5 lines of code changed in 3 files:
Always use full pathnames for file info of parsed files
5 lines of code changed in 3 files:
- Fix line-endings
1 lines of code changed in 1 file:
- revert changes to templates:
Compiler/Template/CodegenC.tpl
Compiler/Template/ExpressionDumpTpl.tpl
as things started to break for no apparent reason!
- revert changes to tests.
3 lines of code changed in 1 file:
- expected output
- remove the merging of modifiers in SCodeAnalyseRedeclare.mo for now as it seems to have some issues with the AVM models.
3 lines of code changed in 1 file:
- Moved mofiles to flattening/modelica + grouping them based on language feature tests + update Makefile for modelica asserts(just to check if it works)
806 lines of code changed in 19 files:
- expandable,streams,records ,and redeclare directory from testsuite are moved to ./flattening/modelica plus updated the corresponding Make file
0 lines of code changed in 19 files:
-deleted ./flattening/modelica
1 lines of code changed in 19 files:
- Moved mofiles and record test files to testsuite/flattening/modelica
0 lines of code changed in 19 files: