You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2019. It is now read-only.
output Dimension dim =INTEGER(n, Variability.CONSTANT);
111
+
end fromInteger;
112
+
107
113
function fromExpList
108
114
input list<Expression> expl;
109
-
output Dimension dim =INTEGER(listLength(expl));
115
+
output Dimension dim =INTEGER(listLength(expl), Variability.CONSTANT);
110
116
end fromExpList;
111
117
112
118
function toDAE
@@ -133,7 +139,7 @@ public
133
139
c := match (a, b)
134
140
case (UNKNOWN(),_) then UNKNOWN();
135
141
case (_,UNKNOWN()) then UNKNOWN();
136
-
case (INTEGER(),INTEGER()) then INTEGER(a.size+b.size);
142
+
case (INTEGER(),INTEGER()) then INTEGER(a.size+b.size, Prefixes.variabilityMax(a.var, b.var));
137
143
case (INTEGER(),EXP()) then EXP(Expression.BINARY(b.exp, Operator.OPERATOR(Type.INTEGER(), NFOperator.Op.ADD), Expression.INTEGER(a.size)), b.var);
138
144
case (EXP(),INTEGER()) then EXP(Expression.BINARY(a.exp, Operator.OPERATOR(Type.INTEGER(), NFOperator.Op.ADD), Expression.INTEGER(b.size)), a.var);
139
145
case (EXP(),EXP()) then EXP(Expression.BINARY(a.exp, Operator.OPERATOR(Type.INTEGER(), NFOperator.Op.ADD), b.exp), Prefixes.variabilityMax(a.var, b.var));
0 commit comments