January 2011 Commit Log

Number of Commits:
167
Number of Active Developers:
12
perost 2011-01-31 20:18 Rev.: 7830

- Fixed extends so that imports are not inherited in SCodeLookup.
- Added error message for extends-clauses that depend on inherited elements.
- Added test case mofiles/InvalidExtends1 (disabled for now until SCodeFlatten
will be used).
- Fixed invalid use of extends in test mosfiles-nosim/FinalTests.

160 lines of code changed in 8 files:

perost 2011-01-31 13:58 Rev.: 7828

- Renamed SCodeFlatten.flatten to flattenProgram and added flattenClass.
- Added flattening of functions in Interactive (disabled by default).
- Renamed some functions in SCodeFlattenImports to be grammatically correct.
- Added fail as a builtin MetaModelica function in MetaModelicaBuiltin.
- Added missing declarations in test case parser/MetaModelicaMatchElse.

43 lines of code changed in 7 files:

perost 2011-01-31 12:00 Rev.: 7827

- Fixes for redeclare modifiers in components for SCodeFlatten.

63 lines of code changed in 1 file:

adeas31 2011-01-31 10:51 Rev.: 7826

- New OMEdit version (Fixed the crashing problem caused by switching from text view to diagram/icon view).

0 lines of code changed in 1 file:

sjoelund.se 2011-01-31 09:24 Rev.: 7825

- Removed loadFile of FrontEnd/ExpressionSolve as it is part of BackEnd

0 lines of code changed in 1 file:

sjoelund.se 2011-01-31 09:21 Rev.: 7824

- Removed old sources

0 lines of code changed in 1 file:

adeas31 2011-01-30 16:31 Rev.: 7822

- Fixed the a bug sent by Massimo Ceraolo thst crahses OMEdit. The reason is the shapes at the icon layer are referring to the diagram layer which means they are actually referring to a null pointer.
- There is no problem in Massimo's model. It was internal OMEdit bug (coding mistake).

34 lines of code changed in 2 files:

perost 2011-01-28 17:57 Rev.: 7819

- Propagated Absyn.Info from Absyn.ElementSpec to SCode.Element in SCodeUtil.
- Replaced print with proper error message in
SCodeEnv.checkUniqueQualifiedImport;

57 lines of code changed in 7 files:

AlexeyLebedev 2011-01-28 17:43 Rev.: 7818

Modified non-expaned array processing so that DAE.RANGE is not used anymore.

58 lines of code changed in 6 files:

sjoelund.se 2011-01-28 17:36 Rev.: 7817

- Added Absyn.Info for Absyn.IMPORT(...)

17 lines of code changed in 6 files:

sjoelund.se 2011-01-28 17:23 Rev.: 7816

- Removed some warnings about duplicate variable info being generated by not generating these anymore.

2 lines of code changed in 4 files:

perost 2011-01-28 17:01 Rev.: 7812

- Better comments and error messages in SCodeLookup.

90 lines of code changed in 2 files:

perost 2011-01-28 15:43 Rev.: 7810

- Implemented better support for match/matchcontinue expressions in
Absyn.traverseExpBidir.
- Fixed better error messages from SCodeLookup.lookupName.

243 lines of code changed in 4 files:

mohsen 2011-01-28 15:34 Rev.: 7809

spel correction DrControl, StateSpace.onb

63 lines of code changed in 1 file:

sjoelund.se 2011-01-28 13:04 Rev.: 7808

- Added printing of Absyn.Info when assertions happen in the simulation runtime, i.e.
+ e.g. [StringTest.mo:8:1-14:56:writable] Simulation call assert() at time 0.11 ...

2842 lines of code changed in 16 files:

perost 2011-01-28 13:01 Rev.: 7807

- Implemented better support for MetaModelica in SCodeFlatten.

161 lines of code changed in 7 files:

sjoelund.se 2011-01-28 11:56 Rev.: 7805

- Added a guard against algebraic types in the Modelica3 parser (list<...> only available with +g=MetaModelica)

18 lines of code changed in 2 files:

sjoelund.se 2011-01-28 11:33 Rev.: 7804

- Fixed codegen for some reductions
- ExpressionSimplify:
+ min/max({exp}) => exp
+ min/max({exp1,exp2}) => min/max(exp1,exp2)

58 lines of code changed in 11 files:

sjoelund.se 2011-01-27 22:04 Rev.: 7801

- Added Absyn.Info to Absyn.REDECLARE and updated SCodeUtil
- Fixed a bug in ExpressionSolve.mo

27 lines of code changed in 8 files:

harka011 2011-01-27 20:50 Rev.: 7800

Added an text shape and bitmap shape. Implemented functionality to the shapes, (change size, insert picture).

1004 lines of code changed in 15 files:

perost 2011-01-27 18:32 Rev.: 7799

- Changed SCode.COMPONENT to have an Absyn.Info instead of an Option<Absyn.Info>.
- Changed print to proper error message in SCodeEnv.avlTreeAdd2.
- Updated some test cases due to better error messages.

289 lines of code changed in 18 files:

perost 2011-01-27 15:37 Rev.: 7793

- Added simple check for recursive short class definitions in SCodeFlatten, to
avoid stack overflows.

30 lines of code changed in 1 file:

wbraun 2011-01-27 15:27 Rev.: 7792

- correct a mistake from r7788

109 lines of code changed in 2 files:

Frenkel TUD 2011-01-27 14:30 Rev.: 7789

- bugfix for BUG-1409 introduced in 7745

7 lines of code changed in 1 file:

wbraun 2011-01-27 14:19 Rev.: 7788

- Bugfixes for generation of jacobian matrix
added testcase for that issue

2318 lines of code changed in 9 files:

sjoelund.se 2011-01-27 13:51 Rev.: 7787

- Added expression simplification for asub of ranges, e.g. (1:2:10)[2]=>3

233 lines of code changed in 6 files:

perost 2011-01-27 13:42 Rev.: 7786

- Changed SCodeFlatten.flatten so it uses the correct variables.
- Changed SCodeEnv.printEnvStr so it prints the whole environment instead of
only the last frame.
- Implemented support for derived classes in SCodeFlattenImports.

31 lines of code changed in 4 files:

sjoelund.se 2011-01-27 10:16 Rev.: 7785

- Added ceval of more arguments to scripting functions

510 lines of code changed in 2 files:

adrpo 2011-01-27 08:46 Rev.: 7784

- split SCodeFlatten.mo into several files:
SCodeEnv.mo
SCodeLookup.mo
SCodeFlattenImports.mo
SCodeFlattenExtends.mo
SCodeFlattenRedeclare.mo

4872 lines of code changed in 7 files:

perost 2011-01-26 17:32 Rev.: 7782

- Implemented redeclaration of variables in SCodeFlatten.

118 lines of code changed in 1 file:

perost 2011-01-26 16:07 Rev.: 7781

- Fixed small mistake in SCodeFlatten that caused compilation to fail.

1 lines of code changed in 1 file:

perost 2011-01-26 14:06 Rev.: 7778

SCodeFlatten fixes:
- Fixed path-merging bug when looking up through imports.
- Propagated Absyn.Info where needed and replaced some print-calls with proper
error messages.
- Added evaluation of conditional expression when lookup of a component fails.

334 lines of code changed in 3 files:

sjoelund.se 2011-01-26 10:49 Rev.: 7776

- Updated Absyn.Modification to store an EqMod instead of Option<Exp>. This also contains Absyn.Info.
- Moved more scripting functions from Interactive.mo to CevalScript.mo, and defined them in ModelicaBuiltin.mo
- Some of the scripting functions are defined in the builtin environment instead of special rules
- getEnvironmentVar now returns "" instead of "error"
- Removed MetaModelicaBuiltinImports.mo (defined in MetaModelica.mo as builtin instead of import X=Y)
- Added simplification of String()
- Fixed a bug in getTmpDir for RML

778 lines of code changed in 22 files:

perost 2011-01-25 18:08 Rev.: 7774

- Added spliceFunction as a builtin function, since it's used in Modelica.Fluid
(it's probably a Dymola builtin function).

11 lines of code changed in 1 file:

perost 2011-01-25 16:50 Rev.: 7771

- Fixed bug in SCodeFlatten.qualifyRedeclare where the merged path was incorrect.

5 lines of code changed in 1 file:

perost 2011-01-25 15:55 Rev.: 7770

- More redeclare fixes in SCodeFlatten.

289 lines of code changed in 1 file:

adrpo 2011-01-25 14:48 Rev.: 7768

- builds of clients using VS
- small changes to make VS compile some files.

5 lines of code changed in 6 files:

sjoelund.se 2011-01-25 14:32 Rev.: 7767

#1399
- Removed set/getClassNamesForSimulation from Interactive.mo
- Moved strictRMLCheck() API call to CevalScript from Interactive

41 lines of code changed in 3 files:

sjoelund.se 2011-01-25 13:06 Rev.: 7766

#1399
- Added some CevalScript functions to ModelicaBuiltin.mo
- This means we now get vectorized builtin operator, and ExpressionSimplify
- CevalScript still does not Ceval the inputs
+ loadFile(intString(1)+".mo") might not work
+ loadFile("a" + ".mo") will now work
+ loadFile({"a.mo","b.mo","c.mo"}) works
+ setCompilerFlags("singleFlag") now works as the function is vectorized instead of taking an array of strings as input

298 lines of code changed in 13 files:

adeas31 2011-01-24 19:17 Rev.: 7763

Changed the about text.

67 lines of code changed in 6 files:

sjoelund.se 2011-01-24 19:13 Rev.: 7762

- When converting from match to switch, (x as _) is treated as _ to determine if a column of patterns are WILD or not
- Also, the last case is excused from this check as it may be a default case

45 lines of code changed in 1 file:

adeas31 2011-01-24 18:50 Rev.: 7761

another try to remove tabs form the file.

576 lines of code changed in 1 file:

adeas31 2011-01-24 18:35 Rev.: 7760

removed tabs form the file

573 lines of code changed in 1 file:

adeas31 2011-01-24 15:03 Rev.: 7757

Fixed the cells cut & copy bug.

2 lines of code changed in 1 file:

sjoelund.se 2011-01-24 11:54 Rev.: 7752

- Added support for a "default" case when doing the match->switch translation
- intString now checks for numbers 0-9 and returns the literal directly, based on the fact that most (99.9995%) intString calls use these numbers (see below)

checkEngineV6_analytic:
$ grep intString log | sort -g -k2 | uniq -c
509518 intString: 1
346782 intString: 2
348622 intString: 3
620 intString: 4
1 intString: 7
1 intString: 13
1 intString: 62
1 intString: 228
1 intString: 7058
2 intString: 9491

35 lines of code changed in 2 files:

lochel 2011-01-23 21:33 Rev.: 7750

fixed handling of known variables for symbolic jacobian

184 lines of code changed in 1 file:

sjoelund.se 2011-01-23 15:46 Rev.: 7749

- Added match->switch conversion for integers.
- There are very few cases using this, but they are used for lookup and the performance increase seems good

45 lines of code changed in 4 files:

Frenkel TUD 2011-01-22 19:36 Rev.: 7748

- bugfix for r7745

1 lines of code changed in 1 file:

sjoelund.se 2011-01-22 08:26 Rev.: 7747

- More inline calls

36 lines of code changed in 15 files:

sjoelund.se 2011-01-21 19:43 Rev.: 7746

- Cleaned up boxptr-functions for record constructors

912 lines of code changed in 2 files:

Frenkel TUD 2011-01-21 19:43 Rev.: 7745

- perform remove simple equations also for removed equations
- check if there are inputs insight the parameter equation candidate

18 lines of code changed in 1 file:

sjoelund.se 2011-01-21 17:52 Rev.: 7743

- Generate if-expressions as (cond ? tb : fb) in C-code if pre-exp of tb and fb is empty (less temporaries is always nice)

1763 lines of code changed in 3 files:

sjoelund.se 2011-01-21 17:50 Rev.: 7742

- Moved elabType of "complex" types that have a regular base type (no longer uses a slot in the memory)

2 lines of code changed in 1 file:

sjoelund.se 2011-01-21 12:33 Rev.: 7739

- Added inlining of Util.if_

1 lines of code changed in 1 file:

AlexeyLebedev 2011-01-21 12:28 Rev.: 7738

Improvement in non-expanded array processing; new testcase.

85 lines of code changed in 3 files:

sjoelund.se 2011-01-21 11:49 Rev.: 7736

- Fixed inlining of function pointers that do not return boxed data
- Added expression simplification for "if cond then true else false => cond" and "if cond then false else true => not cond"
- This found more simple equations in mosfiles-nosim/Model{1,2}.mos

114 lines of code changed in 8 files:

sjoelund.se 2011-01-21 07:12 Rev.: 7735

- Annotated a few functions with __OpenModelica_EarlyInline
- A NEW (r204+) OMDev or MetaModelica/RML is needed for this (older RML version do not parse annotations in regular functions):
OMDEV: http://www.ida.liu.se/~adrpo/omc/omdev/mingw/
Debian/Ubuntu Linux: apt-get update && apt-get upgrade rml-mmc
OSX: port update && port upgrade rml-mmc
- Also fixed a bug where inlined call expressions were not boxed
- TODO: Propagate the inline annotation of functions in crefs that are pointers to a specific function

91 lines of code changed in 9 files:

wbraun 2011-01-20 22:47 Rev.: 7734

- Bugfixes for ZeroCrossing in algorithm for loop
- correct ident in simulation_events.{h,cpp} and solver_main.cpp
- add testcase for ZeroCross in for loop and adjusted some other testcases

2679 lines of code changed in 25 files:

adrpo 2011-01-20 18:20 Rev.: 7731

- added by mistake

0 lines of code changed in 1 file:

sjoelund.se 2011-01-20 13:53 Rev.: 7727

- Updated the Ubuntu compilation cheat sheet

5 lines of code changed in 1 file:

sjoelund.se 2011-01-20 13:50 Rev.: 7726

- Removed more Builtin.isXXX functions (Modelica.Math.min/max/cross/transpose do not even exist!)

18 lines of code changed in 3 files:

perost 2011-01-20 13:28 Rev.: 7725

- Fixed handling of redeclares in variable modifications and extends clauses in
SCodeFlatten lookup.
- Ported optimizations from Env for the AVL tree to SCodeFlatten.

552 lines of code changed in 1 file:

sjoelund.se 2011-01-20 10:08 Rev.: 7723

- Removed some Builtin.isXXX functions that should not be used (pattern-matching is a lot faster and we no longer need it in order to look for sin or Modelica.Math.sin)

393 lines of code changed in 6 files:

sjoelund.se 2011-01-20 00:00 Rev.: 7722

- Known external "C" calls are now treated as external "builtin"
- That is, Modelica.Math.sin becomes a call to sin because it is calling the same C function we know that the builtin function is calling
- This finds more functions than just Modelica.Math.sin (some of the testcases mapped their own external "C" function to C)
- We should also be able to change Derive.mo to do pattern-matching against "sin" now, instead of calling Builtin.isSin

1735 lines of code changed in 193 files:

sjoelund.se 2011-01-19 18:07 Rev.: 7720

#1397
- Declaring for example Modelica.Math.sin as external "builtin" now works as expected
- The compiler will treat this as a call to the builtin function sin()
- This means Derive.mo and Ceval.mo will work properly without dynamically loading the function or requiring special rules that check for MyPackage.sin or sin
- Added testcase ExternalFunctionBuiltin.mo

38 lines of code changed in 3 files:

sjoelund.se 2011-01-19 15:59 Rev.: 7719

- -mt now generates profiling information for nonlinear, linear and mixed systems
- meta_modelica_string_lit.{c,h} is now in svn instead of generated by sh (the script has problems supporting multiple platforms)

3310 lines of code changed in 19 files:

wbraun 2011-01-19 15:15 Rev.: 7718

- modified comments for findZeroCrossing

49 lines of code changed in 1 file:

sjoelund.se 2011-01-19 12:51 Rev.: 7715

- Fix Dynload sending boxed reals on OMDEV

4 lines of code changed in 1 file:

sjoelund.se 2011-01-19 11:34 Rev.: 7713

Changed impl. of boxed reals for OMDEV

10 lines of code changed in 4 files:

sjoelund.se 2011-01-19 08:40 Rev.: 7712

- Fix meta_modelica_gen_string_lit.sh for Windows

1 lines of code changed in 1 file:

wbraun 2011-01-19 05:56 Rev.: 7711

- added index DAE.Relation that are ZeroCrossings(for models e.g. CheckEvents.mo)
therefore rewrited BackendCreate.findZeroCrossing and adjusted simulation_runtime and
Compiler/*.mo files
-> all testcases from mosfiles works also with dassl2

5391 lines of code changed in 37 files:

sjoelund.se 2011-01-18 18:26 Rev.: 7710

- Use failtrace when generating Template files, but only display the log if susan fails (because the failtrace is huge even if Susan succeeds)

5 lines of code changed in 1 file:

perost 2011-01-18 10:19 Rev.: 7708

- Fixed bug in SCodeFlatten where for-equations didn't create a new scope.
- Implemented support for class extends in the SCodeFlatten lookup.

104 lines of code changed in 1 file:

sjoelund.se 2011-01-17 21:56 Rev.: 7707

- Made valueEq faster by not comparing the names of uniontypes (only the index), as well as comparing the headers of boxed types directly instead of checking if lhs and rhs are both list or option, etc...
- This made checkEngineV6_analytic ~10% faster for the bootstrapped OMC

7 lines of code changed in 1 file:

sjoelund.se 2011-01-17 11:53 Rev.: 7705

- Started using System.stringHashDjb2Mod instead of intMod(stringHashDjb2 for most hashtable functions
- Tested using a hashtable instead of linear search for Types.elabType, but this seemed slower

228 lines of code changed in 22 files:

sjoelund.se 2011-01-16 22:02 Rev.: 7704

- Added support for converting cases with matching distinct strings (that also have distinct hashes) into a switch-case over their hash
- Only matches elabBuiltinHandler for now since there are problems with escaped strings

60 lines of code changed in 11 files:

sjoelund.se 2011-01-16 14:24 Rev.: 7703

- Added optimization that converts match-expressions (for-loop searching for matching pattern) to switch (jumps to the correct case at once)
- Works for records
- Seems to be broken for strings so I disabled it (it uses string hashing, and DAE.SCONST is a bit weird at times so it needs more debugging)

3036 lines of code changed in 19 files:

sjoelund.se 2011-01-15 21:21 Rev.: 7702

- Display "no classes loaded" instead of instantiating builtin class OpenModelica when calling OMC from commandline

5 lines of code changed in 1 file:

sjoelund.se 2011-01-15 20:56 Rev.: 7701

- Don't disable ceval of builtin functions when +d=rml is activated

82 lines of code changed in 8 files:

sjoelund.se 2011-01-15 18:28 Rev.: 7700

- Split setsEqual into multiple functions

45 lines of code changed in 1 file:

sjoelund.se 2011-01-15 11:21 Rev.: 7699

- Rewrote crefPrefixOf, crefEqualNoStringCompare and setsEqual using match instead of matchcontinue (~20% speedup of checkEngineV6_analytic for bootstrapped OMC)

72 lines of code changed in 3 files:

sjoelund.se 2011-01-14 21:02 Rev.: 7698

- Removed DAE.ExpType from DAE.LIST/CONS
- Added some expression simplifications for MetaModelica (cons, listReverse, listAppend)

117 lines of code changed in 16 files:

perost 2011-01-14 14:34 Rev.: 7697

- Fixed Static.makeASUBArrayAdressing so that it doesn't create unnecessary
ASUBs.
- Added test case ArrayIndex2 that tests indexing of arrays with arrays.

161 lines of code changed in 4 files:

sjoelund.se 2011-01-14 07:27 Rev.: 7696

- Changed malloc.h to stdlib.h since malloc.h does not exist on OSX

1 lines of code changed in 1 file:

sjoelund.se 2011-01-13 23:46 Rev.: 7695

- Removed some useless stuff from Builtin.mo

17 lines of code changed in 2 files:

sjoelund.se 2011-01-13 23:00 Rev.: 7694

- Avoid gcc warning about malloc being implicitly defined

1 lines of code changed in 1 file:

azazi 2011-01-13 17:53 Rev.: 7693

Fix by Martin to replace spaces with _ from Username in windows.
User Name will be changed to User_Name.

1 lines of code changed in 1 file:

perost 2011-01-13 15:49 Rev.: 7691

- Fixed lookup of builtin functions and variables in SCodeFlatten.
- Fixed lookup bugs in SCodeFlatten.
- Split SCode.traverseEEquationExps into traverseEEquations and
traverseEEquationExps to be able to correctly handle for-equations in
SCodeFlatten.
- Added traversal function Absyn.traverseExpBidir, that can traverse an
Absyn.Exp both top-down and bottom-up.
- Added more builtin function to ModelicaBuiltin.mo.
- Fixed test case interactive/interactive_api_param so that it uses valid
Modelica.

1019 lines of code changed in 5 files:

sjoelund.se 2011-01-13 14:39 Rev.: 7690

- Use initialized data in rtclock.c on Windows/OSX

4 lines of code changed in 1 file:

sjoelund.se 2011-01-13 14:19 Rev.: 7688

#1402
- Added checkpoint/rollback of error messages for if-expressions when they are used like combitables (condition is a parameter expression and one branch is invalid)

103 lines of code changed in 5 files:

syeas460 2011-01-13 14:05 Rev.: 7687

- Added the missing omniORB 4.1.4 libs.

0 lines of code changed in 893 files:

syeas460 2011-01-13 13:25 Rev.: 7686

- Added the omniORB 4.1.4 compiled with mingw.
- Added the PSD's used for OMEdit icons.

538014 lines of code changed in 1463 files:

sjoelund.se 2011-01-12 22:37 Rev.: 7684

- Changed envCache from array<Option<>> to Option<array<>>
- Instead of using OptManager for every cacheGet/cacheAdd, we now check if the option is SOME() or NONE() (it's set during creation of the cache)

27 lines of code changed in 1 file:

sjoelund.se 2011-01-12 16:54 Rev.: 7683

- Added support for expanding the number of RT clocks during runtime

32 lines of code changed in 3 files:

sjoelund.se 2011-01-12 15:31 Rev.: 7682

- Fix some gcc warnings for mmc_mk_bcon, etc

4 lines of code changed in 2 files:

sjoelund.se 2011-01-12 15:28 Rev.: 7681

- Added function names array in the simulation runtime
- These are output with -mt on a simulation file (in addition to execution count and time of each function for every timestep)

2410 lines of code changed in 14 files:

sjoelund.se 2011-01-12 11:46 Rev.: 7680

Fix rtclock compilation on OMDEV

2 lines of code changed in 1 file:

sjoelund.se 2011-01-12 11:39 Rev.: 7679

- Moved rtclock from Compiler/runtime to c_runtime
- Started using the rt clock to do time measurements in simulations

375 lines of code changed in 17 files:

syeas460 2011-01-12 00:55 Rev.: 7678

- Completed task 9.
- added one more wish.

0 lines of code changed in 1 file:

syeas460 2011-01-12 00:53 Rev.: 7677

- Added the View Documentation button in the StatusBar of models.

24 lines of code changed in 9 files:

sjoelund.se 2011-01-11 13:48 Rev.: 7676

- Added the tests for doing compiling bootstrapped C-files separate.
- The file does not link due to referencing previously unused external functions

47 lines of code changed in 3 files:

sjoelund.se 2011-01-11 12:46 Rev.: 7675

- Added file missing in last commit

12 lines of code changed in 1 file:

sjoelund.se 2011-01-11 12:45 Rev.: 7674

- Made the pointers to intAdd, etc functions part of the C runtime
- They are now either function pointers or inlined; SimCode was updated to ignore builtin function pointers

2370 lines of code changed in 22 files:

sjoelund.se 2011-01-10 22:58 Rev.: 7673

- Started implementation of generateSeparateCode() API call
- Generates code for all loaded packages at the moment
- Fixed OMC source code where this new API call found errors (Main.main only found errors in functions that were actually used by the compiler)

11970 lines of code changed in 30 files:

sjoelund.se 2011-01-10 17:50 Rev.: 7672

- Added support for inlining code that has function pointers as input

25255 lines of code changed in 9 files:

sjoelund.se 2011-01-10 13:19 Rev.: 7671

- Started removing pattern inputs that are never used (OMC dead code):
case (1,_) ... case (2,_) => case 1 ... case 2
- We have a lot of these because of RML forces us to put all inputs of the function as the inputs of a match-expression
- This makes more match-expressions simplify into if-expressions
- Made all packages encapsulated (and fixed Susan so it outputs encapsulated packages)
- This should make dependency analysis on OMC work better

407 lines of code changed in 105 files:

syeas460 2011-01-10 11:49 Rev.: 7670

Completed task 16 & 20.

0 lines of code changed in 1 file:

lochel 2011-01-10 11:44 Rev.: 7669

test?

0 lines of code changed in 1 file:

sjoelund.se 2011-01-09 22:08 Rev.: 7668

- Enabled expression simplification for assignment statements
- Added simplification for 1-input match-expression with a single true and false pattern and no body (result is an if-exp)

24 lines of code changed in 6 files:

sjoelund.se 2011-01-09 19:37 Rev.: 7667

- Tabs to spaces

49824 lines of code changed in 234 files:

sjoelund.se 2011-01-09 17:37 Rev.: 7666

- Reverting tab changes to Template/*.mo as Susan needs them

1162 lines of code changed in 6 files:

azazi 2011-01-08 13:37 Rev.: 7665

Working copy for setstartvalues function

0 lines of code changed in 1 file:

azazi 2011-01-08 13:09 Rev.: 7664

Added code for initialize and setstartvalues function.

99 lines of code changed in 1 file:

sjoelund.se 2011-01-07 14:00 Rev.: 7663

- Minor fix in generated code (deinitializeDataStruc would try to free output vars if input vars was requested; but the code is only used when everything is requested so no bug could be triggered before)

2 lines of code changed in 1 file:

sjoelund.se 2011-01-07 10:33 Rev.: 7662

- Replaced tab characters with 2 spaces (mostly in C sources since Eclipse/MDT usually manages to avoid using tabs)
$ svn diff Compiler/ | grep ^- | grep -v ^--- | wc -l
4771
$ svn diff c_runtime/ | grep ^- | grep -v ^--- | wc -l
13365
$ svn diff OMNotebook/ | grep ^- | grep -v ^--- | wc -l
17341
$ svn diff OMShell/ | grep ^- | grep -v ^--- | wc -l
582

36088 lines of code changed in 432 files:

sjoelund.se 2011-01-07 09:53 Rev.: 7661

- The last unused local declarations have been removed (had to split some lines, fix tabs, etc in order for the script to find some of these)

75 lines of code changed in 19 files:

sjoelund.se 2011-01-07 07:53 Rev.: 7660

- Removed more unused local declarations

63 lines of code changed in 27 files:

sjoelund.se 2011-01-07 07:18 Rev.: 7659

- Removed ~30 more unused local declarations

10 lines of code changed in 14 files:

sjoelund.se 2011-01-06 23:48 Rev.: 7658

- Removed a few hundred more local declarations

100 lines of code changed in 48 files:

sjoelund.se 2011-01-06 23:15 Rev.: 7657

- Removed another ~1800 local declarations

89 lines of code changed in 63 files:

sjoelund.se 2011-01-06 22:28 Rev.: 7656

- Removed another 1014 local declarations

655 lines of code changed in 59 files:

sjoelund.se 2011-01-06 21:47 Rev.: 7655

- Removed 138 more unused variables

87 lines of code changed in 25 files:

sjoelund.se 2011-01-06 21:38 Rev.: 7654

- Removed 1213 unused variables (automatically, using testsuite/bootstrapping/refactor-mc-to-m.sh)

884 lines of code changed in 58 files:

sjoelund.se 2011-01-06 21:07 Rev.: 7653

- Added debug flag to disable moving the last statement of a match case into the result expression

8 lines of code changed in 1 file:

sjoelund.se 2011-01-06 20:24 Rev.: 7652

- Added debug flag to not remove as-bindings from case patterns if they are unused

20 lines of code changed in 1 file:

sjoelund.se 2011-01-06 19:38 Rev.: 7651

- Ran the automatic matchcontinue to match script
- OMC now detects empty cases at the end of the case list and safely converts to match anyway
- The script disables the rest of the dead code elimination since it's not safe to convert these without also removing cases in the middle of the cases

119 lines of code changed in 17 files:

sjoelund.se 2011-01-06 18:47 Rev.: 7650

- Added pattern simplification (mostly tuples that do not match against anything; they can be replaced with a single wildcard pattern)

44 lines of code changed in 1 file:

sjoelund.se 2011-01-06 17:33 Rev.: 7649

- Removes as-bindings that bind local variables (these never have any effect; the compiler finds 1927 such instances)
- Also, fixed a bug in traverseExp for DAE.ASUB

48 lines of code changed in 5 files:

sjoelund.se 2011-01-06 15:58 Rev.: 7648

- Changed DAE.STMT_ASSIGN_PATTERN into the regular STMT_ASSIGN
- Added DAE.Exp.PATTERN (so we can traverse a DAE and collect all variable refernces; including DAE.Pattern.PAT_AS)
- Started detection of unused local variables; around 6000 were found

436 lines of code changed in 21 files:

sjoelund.se 2011-01-06 09:28 Rev.: 7647

- OpenModelicaBootstrappingHeader.h now uses constants for records without fields

235 lines of code changed in 3 files:

sjoelund.se 2011-01-06 07:37 Rev.: 7646

- Added Absyn.Info to each case in a match-expression
- Started dead code elimination in match-expressions (removing empty, failing cases)
- This can detect that more matchcontinue expressions can be translated to match (it's not safe to refactor all of these without first removing the dead code)

111 lines of code changed in 7 files:

sjoelund.se 2011-01-05 21:32 Rev.: 7645

- Use Static.makeBuiltinCall in more places

157 lines of code changed in 2 files:

sjoelund.se 2011-01-05 21:02 Rev.: 7644

- Makefile dependencies (same as last commit; forgot OMDev)

1 lines of code changed in 1 file:

sjoelund.se 2011-01-05 20:58 Rev.: 7643

- Some more Makefile dependencies

8 lines of code changed in 3 files:

sjoelund.se 2011-01-05 20:54 Rev.: 7642

- Changed a few testcases from mos to mo

212 lines of code changed in 7 files:

sjoelund.se 2011-01-05 20:24 Rev.: 7641

- Increased the size of the types memory array

4 lines of code changed in 1 file:

sjoelund.se 2011-01-05 00:14 Rev.: 7640

- Added some constant string literals to the runtime
- Codegen and mk_scon now both use the same literals for 1-length strings
- Some more matchcontinue to match

346 lines of code changed in 15 files:

syeas460 2011-01-04 21:50 Rev.: 7639

Removed the testing Message Box added.

0 lines of code changed in 1 file:

syeas460 2011-01-04 20:46 Rev.: 7638

testing the temp path

1 lines of code changed in 1 file:

syeas460 2011-01-04 20:28 Rev.: 7637

- The Corba IOR file was not picked up on MAC OSX because the path for temp directory is hard coded. Using QDir::tempPath() now to get the temp directory path.

1 lines of code changed in 1 file:

syeas460 2011-01-04 19:34 Rev.: 7636

Fixes for bug #1395
- Added the key bindings for OMEdit.

31 lines of code changed in 4 files:

sjoelund.se 2011-01-04 18:02 Rev.: 7635

- Automatic translation of matchcontinue to match (1448 hits)
- testsuite/bootstrapping/refactor-mc-to-m.sh is the script that can perform this refactoring automatically

2933 lines of code changed in 71 files:

sjoelund.se 2011-01-04 15:53 Rev.: 7633

- +g=MetaModelica now enables makes all strings boxed in the runtime
- This breaks MatchCaseInteractive2.mos (and Uniontype7.mos); regular records used as input of dynamically loaded files crash
- checkEngineV6_analytic now works (using only 7GB of virtual memory)
- + some matchcontinue->match

2001 lines of code changed in 26 files:

sjoelund.se 2011-01-03 15:09 Rev.: 7632

- Added codegen support for "case ... then fn()", where fn() has multiple outputs
- Added simplification for match expressions: (cr1,...,crn) = exp; then (cr1,...,crn); => then exp;
- GCC should handle this, but if we need to do special optimizations for tail recursion in the future, we need to be able to access the last expression of a case quickly

329 lines of code changed in 8 files:

sjoelund.se 2011-01-03 11:23 Rev.: 7631

- Added pretty-printing of the cases in match-expressions (which used to be ignored)

117 lines of code changed in 11 files:

sjoelund.se 2011-01-03 09:35 Rev.: 7628

- Removed instantiateModel command from checkEngineV6_analytic.mos

0 lines of code changed in 1 file:

sjoelund.se 2011-01-03 08:41 Rev.: 7627

- Improved BackendDAEUtil.treeGet slightly for bootstrapping (more efficient, but not tail-recursive)
- Made BackendDAECreate.lower tail-recursive

55 lines of code changed in 2 files:

sjoelund.se 2011-01-02 22:59 Rev.: 7625

- DAEUtil: Stopped using matchcontinue in addComponentType,traverseDAE2,transformIfEqToExpr

188 lines of code changed in 1 file:

sjoelund.se 2011-01-02 19:18 Rev.: 7624

- BackendDAECreate: Add start-binding as eq-binding of parameters without binding.

36 lines of code changed in 3 files:

sjoelund.se 2011-01-02 16:33 Rev.: 7623

- Fixed SimCodeTest using bootstrapped omc (force grammar in the test so it's not shared when loading the shared object)
- Plus some matchcontinue to match, and less listAppend in some functions

47 lines of code changed in 8 files:

sjoelund.se 2011-01-02 13:45 Rev.: 7622

- Changed printimpl.c from having static "global" variables since they got unpredictable behaviour when dynamically loading bootstrapping examples in the bootstrapped omc.
- Now, all copies will share the _same_ print buffer, which means using Dynload.mo to run a function may change the internal state of the compiler (mainly print buffers).
- Debug flags, etc are not shared though (I think). We don't test these much anyway.

24 lines of code changed in 7 files:

sjoelund.se 2011-01-02 11:57 Rev.: 7621

- Some matchcontinue to match

43 lines of code changed in 5 files:

sjoelund.se 2011-01-02 09:42 Rev.: 7620

- Removed the DAEUtil.getAllExps functions (use DAEUtil.traverse* instead)

4 lines of code changed in 1 file:

sjoelund.se 2011-01-01 23:50 Rev.: 7619

- SimCode.getCalledFunctionsInFunction now uses a HashTable; this is a lot faster for large functions

44 lines of code changed in 2 files:

sjoelund.se 2011-01-01 22:33 Rev.: 7618

- Use true = listMember instead of _ = Util.listGetMember

22 lines of code changed in 5 files:

sjoelund.se 2011-01-01 21:53 Rev.: 7617

- Fix System.setVariableFilter

2 lines of code changed in 1 file:

sjoelund.se 2011-01-01 21:09 Rev.: 7616

- Fix order of tokens for the system() error messages

2 lines of code changed in 1 file:

sjoelund.se 2011-01-01 20:12 Rev.: 7615

- Added optimization:
If a case in a matchcontinue expression is followed by a (list of) cases that
do not have overlapping patterns with the first one, an optimization can be made.
If we match against the first pattern, we can jump a few positions in the loop!

For example:
matchcontinue i,j
case (1,_) then (); // (1) => skip (2),(3) if this pattern matches
case (2,_) then (); // (2) => skip (3),(4) if this pattern matches
case (3,_) then (); // (3) => skip (4),(5) if this pattern matches
case (1,_) then (); // (4) => skip (5),(6) if this pattern matches
case (2,_) then (); // (5) => skip (6) if this pattern matches
case (3,_) then (); // (6)
case (_,2) then (); // (7) => skip (8),(9) if this pattern matches
case (1,1) then (); // (8) => skip (9) if this pattern matches
case (2,1) then (); // (9) => skip (10) if this pattern matches
case (1,_) then (); // (10)
end matchcontinue;

298 lines of code changed in 5 files:

sjoelund.se 2011-01-01 18:38 Rev.: 7614

- Fixed continue->match optimization for uniontype patterns
- Added a testcase for this

73 lines of code changed in 3 files:

sjoelund.se 2011-01-01 17:43 Rev.: 7613

- Rewrite of Lookup.lookupMetarecordsRecursive, using HashTable instead of linear search in a list

63 lines of code changed in 2 files:

sjoelund.se 2011-01-01 16:43 Rev.: 7612

- Improved mmc_alloc_bytes (still no GC, but does allocation in 512MB chunks instead of many small calls)
- This is a big performance improvement for bootstrapping:
Before: == Total: 20 out of 1365 failed, 32.05 minutes (single thread)
After: == Total: 17 out of 1365 failed, 27.88 minutes (single thread)

26 lines of code changed in 2 files:

sjoelund.se 2011-01-01 14:57 Rev.: 7611

- Added an optimization doing automatic matchcontinue->match translation if it is safe to do so.
- This made 5 more tests run in the 300 second limit I set for bootstrapped OMC testcases
- Now only 20 tests fail for bootstrapped OMC (8 tests fail for regular OMC)

112 lines of code changed in 5 files:

sjoelund.se 2011-01-01 12:48 Rev.: 7610

- More match less continue

9 lines of code changed in 2 files:

sjoelund.se 2011-01-01 12:09 Rev.: 7609

- More match, less continue

27 lines of code changed in 2 files:

sjoelund.se 2011-01-01 11:22 Rev.: 7608

#1396
- Use vfork/execl instead of system for the System.systemCall implementation on Linux
- This does not sometimes spin in an endless loop using bootstrapped omc

22 lines of code changed in 1 file:

sjoelund.se 2011-01-01 10:10 Rev.: 7607

- Performance improvement for valueEq on strings

5 lines of code changed in 1 file:

sjoelund.se 2011-01-01 08:34 Rev.: 7606

- Rewrote listAppend without using listReverse (using 1 malloc instead of 2*n)

48 lines of code changed in 2 files:

December 2010 »

Generated by StatSVN 0.7.0