Fix commented debug output code

This commit is contained in:
Mathias Baumann 2019-03-12 19:46:52 +01:00
parent f95388011b
commit 6b60e90cde

View File

@ -196,13 +196,15 @@ ExpressionClasses::Id ExpressionClasses::tryToSimplify(Expression const& _expr)
if (auto match = rules.findFirstMatch(_expr, *this)) if (auto match = rules.findFirstMatch(_expr, *this))
{ {
// Debug info // Debug info
//cout << "Simplifying " << *_expr.item << "("; if (false)
//for (Id arg: _expr.arguments) {
// cout << fullDAGToString(arg) << ", "; cout << "Simplifying " << *_expr.item << "(";
//cout << ")" << endl; for (Id arg: _expr.arguments)
//cout << "with rule " << match->first.toString() << endl; cout << fullDAGToString(arg) << ", ";
//ExpressionTemplate t(match->second()); cout << ")" << endl;
//cout << "to " << match->second().toString() << endl; cout << "with rule " << match->pattern.toString() << endl;
cout << "to " << match->action().toString() << endl;
}
return rebuildExpression(ExpressionTemplate(match->action(), _expr.item->location())); return rebuildExpression(ExpressionTemplate(match->action(), _expr.item->location()));
} }