Skip to content

Commit

Permalink
- Disable printing "Types.matchProp debug: match prop.". Saves about …
Browse files Browse the repository at this point in the history
…1m (20% total time) when trying to flatten double pendulum.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@4611 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Dec 1, 2009
1 parent 0a57d39 commit 92530c8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Compiler/Types.mo
Expand Up @@ -3577,15 +3577,13 @@ algorithm
Const c,c1,c2;
case (e,DAE.PROP(type_ = gt,constFlag = c1),DAE.PROP(type_ = et,constFlag = c2),printFailtrace)
equation
Debug.fprintln("types", "- Types.matchProp debug: match prop.");
(e_1,t_1) = matchType(e, gt, et, printFailtrace);
c = constAnd(c1, c2);
then
(e_1,DAE.PROP(t_1,c));
case (e,DAE.PROP_TUPLE(type_ = gt,tupleConst = c1),DAE.PROP_TUPLE(type_ = et,tupleConst = c2),printFailtrace)
local TupleConst c,c1,c2;
equation
Debug.fprintln("types", "- Types.matchProp debug: match prop tuple.");
(e_1,t_1) = matchType(e, gt, et, printFailtrace);
c = constTupleAnd(c1, c2);
then
Expand All @@ -3595,7 +3593,6 @@ algorithm
case (e,DAE.PROP_TUPLE(type_ = (gt as (DAE.T_TUPLE(_),_)),tupleConst = c1), DAE.PROP(type_ = (et as (DAE.T_METATUPLE(_),_)),constFlag = c2),printFailtrace)
local TupleConst c1; Const c_1;
equation
Debug.fprintln("types", "- Types.matchProp debug: match prop meta_tuple/tuple.");
true = RTOpts.acceptMetaModelicaGrammar();
(e_1,t_1) = matchType(e, gt, et, printFailtrace);
c_1 = propTupleAllConst(c1);
Expand Down

0 comments on commit 92530c8

Please sign in to comment.