Skip to content

Commit

Permalink
- Get rid of annoying types.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9304 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Jun 16, 2011
1 parent eb8fd4c commit 08153c5
Show file tree
Hide file tree
Showing 10 changed files with 185 additions and 185 deletions.
18 changes: 9 additions & 9 deletions Compiler/FrontEnd/Algorithm.mo
Expand Up @@ -151,7 +151,7 @@ algorithm
DAE.Exp lhs,rhs;
DAE.Properties lprop,rprop,lhprop,rhprop;
DAE.ComponentRef cr;
tuple<DAE.TType, Option<Absyn.Path>> lt,rt;
DAE.Type lt,rt;
Absyn.Direction direction;

// assign to parameter in algorithm okay if record
Expand Down Expand Up @@ -334,7 +334,7 @@ algorithm
list<DAE.Properties> lprop,lhprops;
DAE.Exp rhs;
DAE.Properties rprop;
list<tuple<DAE.TType, Option<Absyn.Path>>> lhrtypes,tpl;
list<DAE.Type> lhrtypes,tpl;
list<DAE.TupleConst> clist;

case (lhs,lprop,rhs,rprop,initial_,source)
Expand Down Expand Up @@ -405,7 +405,7 @@ protected function getPropExpType "function: getPropExpType
input DAE.Properties p;
output DAE.ExpType t;
protected
tuple<DAE.TType, Option<Absyn.Path>> ty;
DAE.Type ty;
algorithm
ty := Types.getPropType(p);
t := getTypeExpType(ty);
Expand All @@ -419,7 +419,7 @@ protected function getTypeExpType "function: getTypeExpType
algorithm
outType:=
matchcontinue (inType)
local tuple<DAE.TType, Option<Absyn.Path>> t;
local DAE.Type t;
case ((DAE.T_INTEGER(varLstInt = _),_)) then DAE.ET_INT();
case ((DAE.T_REAL(varLstReal = _),_)) then DAE.ET_REAL();
case ((DAE.T_STRING(varLstString = _),_)) then DAE.ET_STRING();
Expand Down Expand Up @@ -457,7 +457,7 @@ algorithm
list<Statement> tb,fb;
list<tuple<DAE.Exp, DAE.Properties, list<Statement>>> eib;
Ident e_str,t_str;
tuple<DAE.TType, Option<Absyn.Path>> t;
DAE.Type t;
DAE.Properties prop;
case (DAE.BCONST(true),_,tb,eib,fb,source)
then tb;
Expand Down Expand Up @@ -495,7 +495,7 @@ algorithm
DAE.Exp e;
list<tuple<DAE.Exp, DAE.Properties, list<Statement>>> xs;
Ident e_str,t_str;
tuple<DAE.TType, Option<Absyn.Path>> t;
DAE.Type t;
case ({},{}) then DAE.NOELSE(); /* This removes empty else branches */
case ({},fb) then DAE.ELSE(fb);
case (((DAE.BCONST(true),DAE.PROP(type_ = t),b) :: xs),fb) then DAE.ELSE(b);
Expand Down Expand Up @@ -533,7 +533,7 @@ algorithm
DAE.ExpType et;
Ident i,e_str,t_str;
DAE.Exp e;
tuple<DAE.TType, Option<Absyn.Path>> t;
DAE.Type t;
list<Statement> stmts;
case (i,e,DAE.PROP(type_ = (DAE.T_ARRAY(arrayType = t),_)),stmts,source)
equation
Expand Down Expand Up @@ -566,7 +566,7 @@ algorithm
DAE.Exp e;
list<Statement> stmts;
Ident e_str,t_str;
tuple<DAE.TType, Option<Absyn.Path>> t;
DAE.Type t;
case (e,DAE.PROP(type_ = (DAE.T_BOOL(varLstBool = _),_)),stmts,source) then DAE.STMT_WHILE(e,stmts,source);
case (e,DAE.PROP(type_ = t),_,source)
equation
Expand Down Expand Up @@ -595,7 +595,7 @@ algorithm
list<Statement> stmts;
Option<Statement> elsew;
Ident e_str,t_str;
tuple<DAE.TType, Option<Absyn.Path>> t;
DAE.Type t;
case (e,DAE.PROP(type_ = (DAE.T_BOOL(varLstBool = _),_)),stmts,elsew,source) then DAE.STMT_WHEN(e,stmts,elsew,{},source);
case (e,DAE.PROP(type_ = (DAE.T_ARRAY(arrayType = (DAE.T_BOOL(varLstBool = _),_)),_)),stmts,elsew,source) then DAE.STMT_WHEN(e,stmts,elsew,{},source);
case (e,DAE.PROP(type_ = t),_,_,source)
Expand Down
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/Ceval.mo
Expand Up @@ -4605,7 +4605,7 @@ algorithm
(outCache,outValue,outInteractiveInteractiveSymbolTableOption) :=
matchcontinue (inCache,inEnv,inExp,inBoolean,inInteractiveInteractiveSymbolTableOption,inMsg)
local
tuple<DAE.TType, Option<Absyn.Path>> tp;
DAE.Type tp;
list<Integer> sizelst;
Values.Value v;
Env.Env env;
Expand Down Expand Up @@ -5087,7 +5087,7 @@ algorithm
local
DAE.ComponentRef cr_1,cr,e1;
list<DAE.Subscript> subsc;
tuple<DAE.TType, Option<Absyn.Path>> tp;
DAE.Type tp;
list<Integer> sizelst;
Values.Value res,v,e_val;
list<Env.Frame> env;
Expand Down
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/DAEDump.mo
Expand Up @@ -492,7 +492,7 @@ algorithm
SCode.Stream st;
SCode.Variability var;
Absyn.Direction dir;
tuple<DAE.TType, Option<Absyn.Path>> ty;
DAE.Type ty;
DAE.Exp exp,dim;
DAE.Attributes attr;

Expand Down
8 changes: 4 additions & 4 deletions Compiler/FrontEnd/Env.mo
Expand Up @@ -624,7 +624,7 @@ public function extendFrameT "function: extendFrameT
algorithm
outEnv := matchcontinue (inEnv,inIdent,inType)
local
list<tuple<DAE.TType, Option<Absyn.Path>>> tps;
list<DAE.Type> tps;
AvlTree httypes_1,httypes;
AvlTree ht;
Option<Ident> sid;
Expand All @@ -634,7 +634,7 @@ algorithm
tuple<list<DAE.ComponentRef>,DAE.ComponentRef> crs;
SCode.Encapsulated encflag;
Ident n;
tuple<DAE.TType, Option<Absyn.Path>> t;
DAE.Type t;
list<SCode.Element> defineUnits;

case ((FRAME(sid,st,ht,httypes,imps,crs,encflag,defineUnits) :: fs),n,t)
Expand Down Expand Up @@ -1127,14 +1127,14 @@ algorithm
Ident s,elt_str,tp_str,var_str,frame_str,bind_str,res,n,lenstr;
DAE.Var tv;
SCode.Variability var;
tuple<DAE.TType, Option<Absyn.Path>> tp;
DAE.Type tp;
DAE.Binding bind,bnd;
SCode.Element elt;
InstStatus i;
Frame compframe;
Env env;
Integer len;
list<tuple<DAE.TType, Option<Absyn.Path>>> lst;
list<DAE.Type> lst;
Absyn.Import imp;

case ((n,VAR(instantiated = (tv as DAE.TYPES_VAR(attributes = DAE.ATTR(variability = var),ty = tp,binding = bind)),declaration = SOME((elt,_)),instStatus = i,env = (compframe :: _))))
Expand Down

0 comments on commit 08153c5

Please sign in to comment.