#include "expr/node.h"
#include "util/Assert.h"
+#include "util/output.h"
+
namespace CVC4 {
std::ostream& operator<<(std::ostream& out, const Expr& e) {
return d_em->mkExpr(ITE, *this, then_e, else_e);
}
+void Expr::printAst(std::ostream & o, int indent) const{
+ getNode().printAst(o,indent);
+}
+
+void Expr::debugPrint(){
+ printAst(Warning());
+ Warning().flush();
+}
+
+
} // End namespace CVC4
*/
ExprManager* getExprManager() const;
+ /**
+ * Very basic pretty printer for Expr.
+ * This is equivalent to calling e.getNode().printAst(...)
+ * @param o output stream to print to.
+ * @param indent number of spaces to indent the formula by.
+ */
+ void printAst(std::ostream & o, int indent = 0) const;
+
+private:
+
+ /**
+ * Pretty printer for use within gdb
+ * This is not intended to be used outside of gdb.
+ * This writes to the ostream Warning() and immediately flushes
+ * the ostream.
+ */
+ void debugPrint();
+
protected:
/**
bool isNull() const;
+ /**
+ * Very basic pretty printer for Node.
+ * @param o output stream to print to.
+ * @param indent number of spaces to indent the formula by.
+ */
void printAst(std::ostream & o, int indent = 0) const;
private:
+
+ /**
+ * Pretty printer for use within gdb
+ * This is not intended to be used outside of gdb.
+ * This writes to the ostream Warning() and immediately flushes
+ * the ostream.
+ */
void debugPrint();
};/* class Node */