Chat.setStream(CVC4::null_os);
Message.setStream(CVC4::null_os);
Warning.setStream(CVC4::null_os);
+ Dump.setStream(CVC4::null_os);
} else {
if(options.verbosity < 2) {
Chat.setStream(CVC4::null_os);
Chat.getStream() << Expr::setlanguage(language);
Message.getStream() << Expr::setlanguage(language);
Warning.getStream() << Expr::setlanguage(language);
+ Dump.getStream() << Expr::setlanguage(options.outputLanguage)
+ << Expr::setdepth(-1)
+ << Expr::printtypes(false);
}
vector<Options> threadOptions;
void CnfStream::assertClause(TNode node, SatClause& c) {
Debug("cnf") << "Inserting into stream " << c << endl;
if(Dump.isOn("clauses")) {
- if(Message.isOn()) {
- if(c.size() == 1) {
- Message() << AssertCommand(BoolExpr(getNode(c[0]).toExpr())) << endl;
- } else {
- Assert(c.size() > 1);
- NodeBuilder<> b(kind::OR);
- for(int i = 0; i < c.size(); ++i) {
- b << getNode(c[i]);
- }
- Node n = b;
- Message() << AssertCommand(BoolExpr(n.toExpr())) << endl;
+ if(c.size() == 1) {
+ Dump("clauses") << AssertCommand(BoolExpr(getNode(c[0]).toExpr())) << endl;
+ } else {
+ Assert(c.size() > 1);
+ NodeBuilder<> b(kind::OR);
+ for(int i = 0; i < c.size(); ++i) {
+ b << getNode(c[i]);
}
+ Node n = b;
+ Dump("clauses") << AssertCommand(BoolExpr(n.toExpr())) << endl;
}
}
d_satSolver->addClause(c, d_removable);