diff options
Diffstat (limited to 'src/expr/node.cpp')
-rw-r--r-- | src/expr/node.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/expr/node.cpp b/src/expr/node.cpp index f3115b17e..644570b24 100644 --- a/src/expr/node.cpp +++ b/src/expr/node.cpp @@ -133,7 +133,7 @@ static void indent(ostream & o, int indent){ o << ' '; } -void Node::printAst(ostream & o, int ind) const{ +void Node::printAst(ostream & o, int ind) const { indent(o, ind); o << '('; o << getKind(); @@ -143,17 +143,19 @@ void Node::printAst(ostream & o, int ind) const{ }else if(getNumChildren() >= 1){ for(Node::iterator child = begin(); child != end(); ++child){ o << endl; - (*child).printAst(o, ind+1); + (*child).printAst(o, ind + 1); } o << endl; indent(o, ind); } o << ')'; } - -void Node::debugPrint(){ + +void Node::debugPrint() { +#ifndef CVC4_MUZZLE printAst(Warning(), 0); Warning().flush(); +#endif /* ! CVC4_MUZZLE */ } }/* CVC4 namespace */ |