namespace printer {
namespace ast {
-std::ostream& AstPrinter::toStream(std::ostream& out, TNode n,
+void AstPrinter::toStream(std::ostream& out, TNode n,
int toDepth, bool types) const {
// null
if(n.getKind() == kind::NULL_EXPR) {
out << "null";
- return out;
+ return;
}
// variable
n.getType().toStream(out, -1, false, language::output::LANG_AST);
}
- return out;
+ return;
}
out << '(' << n.getKind();
}
}
out << ')';
-
- return out;
}/* AstPrinter::toStream() */
}/* CVC4::printer::ast namespace */
class AstPrinter : public CVC4::Printer {
public:
- std::ostream& toStream(std::ostream& out, TNode n, int toDepth, bool types) const;
+ void toStream(std::ostream& out, TNode n, int toDepth, bool types) const;
};/* class AstPrinter */
}/* CVC4::printer::ast namespace */
namespace printer {
namespace cvc {
-std::ostream& CvcPrinter::toStream(std::ostream& out, TNode n,
- int toDepth, bool types) const {
- return n.toStream(out, toDepth, types, language::output::LANG_AST);
+void CvcPrinter::toStream(std::ostream& out, TNode n,
+ int toDepth, bool types) const {
+ n.toStream(out, toDepth, types, language::output::LANG_AST);
}/* CvcPrinter::toStream() */
}/* CVC4::printer::cvc namespace */
class CvcPrinter : public CVC4::Printer {
public:
- std::ostream& toStream(std::ostream& out, TNode n, int toDepth, bool types) const;
+ void toStream(std::ostream& out, TNode n, int toDepth, bool types) const;
};/* class CvcPrinter */
}/* CVC4::printer::cvc namespace */
}
/** Write a Node out to a stream with this Printer. */
- virtual std::ostream& toStream(std::ostream& out, TNode n,
- int toDepth, bool types) const = 0;
+ virtual void toStream(std::ostream& out, TNode n,
+ int toDepth, bool types) const = 0;
};/* class Printer */
}/* CVC4 namespace */
namespace printer {
namespace smt {
-std::ostream& SmtPrinter::toStream(std::ostream& out, TNode n,
- int toDepth, bool types) const {
- return n.toStream(out, toDepth, types, language::output::LANG_SMTLIB_V2);
+void SmtPrinter::toStream(std::ostream& out, TNode n,
+ int toDepth, bool types) const {
+ n.toStream(out, toDepth, types, language::output::LANG_SMTLIB_V2);
}/* SmtPrinter::toStream() */
}/* CVC4::printer::smt namespace */
class SmtPrinter : public CVC4::Printer {
public:
- std::ostream& toStream(std::ostream& out, TNode n, int toDepth, bool types) const;
+ void toStream(std::ostream& out, TNode n, int toDepth, bool types) const;
};/* class SmtPrinter */
}/* CVC4::printer::smt namespace */
void printBvParameterizedOp(std::ostream& out, TNode n);
-std::ostream& Smt2Printer::toStream(std::ostream& out, TNode n,
- int toDepth, bool types) const {
+void Smt2Printer::toStream(std::ostream& out, TNode n,
+ int toDepth, bool types) const {
// null
if(n.getKind() == kind::NULL_EXPR) {
out << "null";
- return out;
+ return;
}
// variable
n.getType().toStream(out, -1, false, language::output::LANG_SMTLIB_V2);
}
- return out;
+ return;
}
// constant
kind::metakind::NodeValueConstPrinter::toStream(out, n);
}
- return out;
+ return;
}
bool stillNeedToPrintParams = true;
}
}
out << ')';
-
- return out;
}/* Smt2Printer::toStream() */
void printBvParameterizedOp(std::ostream& out, TNode n) {
class Smt2Printer : public CVC4::Printer {
public:
- std::ostream& toStream(std::ostream& out, TNode n, int toDepth, bool types) const;
+ void toStream(std::ostream& out, TNode n, int toDepth, bool types) const;
};/* class Smt2Printer */
}/* CVC4::printer::smt2 namespace */