Skip to content

Commit eeeb68e

Browse files
vwaurichOpenModelica-Hudson
authored andcommitted
- remove some debug output in eval funcs
1 parent 8da9012 commit eeeb68e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Compiler/BackEnd/EvaluateFunctions.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ algorithm
594594
singleOutputType = if not listEmpty(newOutputVars) then listHead(outputVarTypes) else singleOutputType;//if the function is evaluated completely
595595
attr1 = DAEUtil.replaceCallAttrType(attr1,singleOutputType);
596596
attr2 = if intEq(listLength(newOutputVars),1) then attr1 else attr2;
597-
DAEDump.dumpCallAttr(attr2);
597+
//DAEDump.dumpCallAttr(attr2);
598598

599599
exp2 = if List.hasOneElement(constComplexExps) and funcIsConst then listHead(constComplexExps) else DAE.TUPLE(constComplexExps); // either a single equation or a tuple equation
600600
exp = if funcIsConst then exp2 else rhsExpIn;

Compiler/BackEnd/RemoveSimpleEquations.mo

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,10 +1753,7 @@ algorithm
17531753
//exp2 = Ceval.cevalSimpleWithFunctionTreeReturnExp(exp, functions);
17541754
exp2 = EvaluateFunctions.evaluateConstantFunctionCallExp(exp,functions);
17551755
if not Expression.isConst(exp2) then
1756-
exp2 = exp;
1757-
else
1758-
print("exp1 "+ExpressionDump.printExpStr(exp)+" exp2 "+ExpressionDump.printExpStr(exp2)+"\n");
1759-
end if;
1756+
exp2 = exp; end if;
17601757
if Flags.isSet(Flags.DEBUG_ALIAS) then
17611758
BackendDump.debugStrCrefStrExpStr("Const Equation (through Ceval) ", cr, " = ", exp, " found.\n");
17621759
end if;

0 commit comments

Comments
 (0)