}
void ConstraintValue::debugPrint() const {
- cout << *this << endl;
+ Message() << *this << endl;
}
void ValueCollection::push_into(std::vector<Constraint>& vec) const {
const SumPair& eq = d_trail[i].d_eq;
const Polynomial& proof = d_trail[i].d_proof;
- cout << "d_trail["<<i<<"].d_eq = " << eq.getNode() << endl;
- cout << "d_trail["<<i<<"].d_proof = " << proof.getNode() << endl;
+ Message() << "d_trail["<<i<<"].d_eq = " << eq.getNode() << endl;
+ Message() << "d_trail["<<i<<"].d_proof = " << proof.getNode() << endl;
}
void DioSolver::subAndReduceCurrentFByIndex(DioSolver::SubIndex subIndex){
if(verbose && numDifferencePivots > 0){
if(result == Result::UNSAT){
- cout << "diff order found unsat" << endl;
+ Message() << "diff order found unsat" << endl;
}else if(d_queue.empty()){
- cout << "diff order found model" << endl;
+ Message() << "diff order found model" << endl;
}else{
- cout << "diff order missed" << endl;
+ Message() << "diff order missed" << endl;
}
}
}
}
if(verbose){
if(result == Result::UNSAT){
- cout << "bland found unsat" << endl;
+ Message() << "bland found unsat" << endl;
}else if(d_queue.empty()){
- cout << "bland found model" << endl;
+ Message() << "bland found model" << endl;
}else{
- cout << "bland order missed" << endl;
+ Message() << "bland order missed" << endl;
}
}
}else{
if(verbose){
if(result == Result::UNSAT){
- cout << "restricted var order found unsat" << endl;
+ Message() << "restricted var order found unsat" << endl;
}else if(d_queue.empty()){
- cout << "restricted var order found model" << endl;
+ Message() << "restricted var order found model" << endl;
}else{
- cout << "restricted var order missed" << endl;
+ Message() << "restricted var order missed" << endl;
}
}
}
if(c->negationHasProof()){
Node conflict = ConstraintValue::explainConflict(c, c->getNegation());
- cout << "tears " << conflict << endl;
+ Message() << "tears " << conflict << endl;
Debug("arith::prop") << "propagate conflict" << conflict << endl;
d_out->conflict(conflict);
return;
ArithVar var = d_arithvarNodeMap.asArithVar(*i);
if(!d_partialModel.assignmentIsConsistent(var)){
d_partialModel.printModel(var);
- cerr << "Assignment is not consistent for " << var << *i << endl;
+ Warning() << "Assignment is not consistent for " << var << *i << endl;
return false;
}
}
if( check ) {
TypeNode lhsType = n[0].getType(check);
if (!lhsType.isReal()) {
- std::cout << lhsType << " : " << n[0] << std::endl;
+ Message() << lhsType << " : " << n[0] << std::endl;
throw TypeCheckingExceptionPrivate(n, "expecting an arithmetic term on the left-hand-side");
}
TypeNode rhsType = n[1].getType(check);
for( int i=0; i<(int)d_ith->d_op_triggers[op].size(); i++ ){
addedLemmas += d_ith->d_op_triggers[op][i]->addTerm( n );
}
- //std::cout << "Terms, added lemmas: " << addedLemmas << std::endl;
+ //Message() << "Terms, added lemmas: " << addedLemmas << std::endl;
d_quantEngine->flushLemmas( &d_quantEngine->getTheoryEngine()->getTheory( THEORY_QUANTIFIERS )->getOutputChannel() );
}
}
}
void SubstitutionMap::debugPrint() const {
- print(std::cout);
+ print(Message.getStream());
}
}/* CVC4::theory namespace */
TypeNode currentArgumentType = *argument_type_it;
if(!currentArgument.isSubtypeOf(currentArgumentType)) {
std::stringstream ss;
- ss << Expr::setlanguage(language::toOutputLanguage(Options::current()->inputLanguage))
- << "argument types is not a subtype of the function's argument type:\n"
+ ss << Expr::setlanguage(Options::current()->outputLanguage)
+ << "argument type is not a subtype of the function's argument type:\n"
<< "argument: " << *argument_it << "\n"
<< "has type: " << (*argument_it).getType() << "\n"
<< "not subtype: " << *argument_type_it;
if (!d_unconstrained.empty()) {
processUnconstrained();
- // d_substitutions.print(std::cout);
+ // d_substitutions.print(Message.getStream());
for (it = assertions.begin(); it != iend; ++it) {
(*it) = d_substitutions.apply(*it);
}