# define Debug ::CVC4::__cvc4_true() ? ::CVC4::nullCvc4Stream : ::CVC4::DebugChannel
# define Warning ::CVC4::__cvc4_true() ? ::CVC4::nullCvc4Stream : ::CVC4::WarningChannel
# define WarningOnce ::CVC4::__cvc4_true() ? ::CVC4::nullCvc4Stream : ::CVC4::WarningChannel
-# define Message ::CVC4::__cvc4_true() ? ::CVC4::nullCvc4Stream : ::CVC4::MessageChannel
+#define CVC4Message \
+ ::CVC4::__cvc4_true() ? ::CVC4::nullCvc4Stream : ::CVC4::MessageChannel
# define Notice ::CVC4::__cvc4_true() ? ::CVC4::nullCvc4Stream : ::CVC4::NoticeChannel
# define Chat ::CVC4::__cvc4_true() ? ::CVC4::nullCvc4Stream : ::CVC4::ChatChannel
# define Trace ::CVC4::__cvc4_true() ? ::CVC4::nullCvc4Stream : ::CVC4::TraceChannel
# endif /* CVC4_DEBUG && CVC4_TRACING */
# define Warning (! ::CVC4::WarningChannel.isOn()) ? ::CVC4::nullCvc4Stream : ::CVC4::WarningChannel
# define WarningOnce (! ::CVC4::WarningChannel.isOn() || ! ::CVC4::WarningChannel.warnOnce(__FILE__,__LINE__)) ? ::CVC4::nullCvc4Stream : ::CVC4::WarningChannel
-# define Message (! ::CVC4::MessageChannel.isOn()) ? ::CVC4::nullCvc4Stream : ::CVC4::MessageChannel
+#define CVC4Message \
+ (!::CVC4::MessageChannel.isOn()) ? ::CVC4::nullCvc4Stream \
+ : ::CVC4::MessageChannel
# define Notice (! ::CVC4::NoticeChannel.isOn()) ? ::CVC4::nullCvc4Stream : ::CVC4::NoticeChannel
# define Chat (! ::CVC4::ChatChannel.isOn()) ? ::CVC4::nullCvc4Stream : ::CVC4::ChatChannel
# ifdef CVC4_TRACING
InteractiveShell shell(pExecutor->getSolver(),
pExecutor->getSymbolManager());
if(opts.getInteractivePrompt()) {
- Message() << Configuration::getPackageName()
- << " " << Configuration::getVersionString();
+ CVC4Message() << Configuration::getPackageName() << " "
+ << Configuration::getVersionString();
if(Configuration::isGitBuild()) {
- Message() << " [" << Configuration::getGitId() << "]";
+ CVC4Message() << " [" << Configuration::getGitId() << "]";
}
- Message() << (Configuration::isDebugBuild() ? " DEBUG" : "")
- << " assertions:"
- << (Configuration::isAssertionBuild() ? "on" : "off")
- << endl << endl;
- Message() << Configuration::copyright() << endl;
+ CVC4Message() << (Configuration::isDebugBuild() ? " DEBUG" : "")
+ << " assertions:"
+ << (Configuration::isAssertionBuild() ? "on" : "off")
+ << endl
+ << endl;
+ CVC4Message() << Configuration::copyright() << endl;
}
while(true) {
struct JavaPrinter {
template <class T>
JavaPrinter operator+(const T& t) const {
- Message() << t;
+ CVC4Message() << t;
return JavaPrinter();
}
};/* struct JavaPrinter */
* to the call-by-value semantics of C. All that's left to
* do is print the newline.
*/
- void println(JavaPrinter) { Message() << std::endl; }
+ void println(JavaPrinter) { CVC4Message() << std::endl; }
} out;
} System;
| DBG_TOK
( ( str[s] | IDENTIFIER { s = AntlrInput::tokenText($IDENTIFIER); } )
{ Debug.on(s); Trace.on(s); }
- | { Message() << "Please specify what to debug." << std::endl; }
+ | { CVC4Message() << "Please specify what to debug." << std::endl; }
)
| TRACE_TOK
( ( str[s] | IDENTIFIER { s = AntlrInput::tokenText($IDENTIFIER); } )
{ Trace.on(s); }
- | { Message() << "Please specify something to trace." << std::endl; }
+ | { CVC4Message() << "Please specify something to trace." << std::endl; }
)
| UNTRACE_TOK
( ( str[s] | IDENTIFIER { s = AntlrInput::tokenText($IDENTIFIER); } )
{ Trace.off(s); }
- | { Message() << "Please specify something to untrace." << std::endl; }
+ | { CVC4Message() << "Please specify something to untrace." << std::endl; }
)
| HELP_TOK
( ( str[s] | IDENTIFIER { s = AntlrInput::tokenText($IDENTIFIER); } )
- { Message() << "No help available for `" << s << "'." << std::endl; }
- | { Message() << "Please use --help at the command line for help."
+ { CVC4Message() << "No help available for `" << s << "'." << std::endl; }
+ | { CVC4Message() << "Please use --help at the command line for help."
<< std::endl; }
)
if (!d_unconstrained.empty())
{
processUnconstrained();
- // d_substitutions.print(Message.getStream());
+ // d_substitutions.print(CVC4Message.getStream());
for (size_t i = 0, asize = assertions.size(); i < asize; ++i)
{
Node a = assertions[i];
if(Warning.getStreamPointer() == getManagedOstream()){
Warning.setStream(&null_os);
}
- if(Message.getStreamPointer() == getManagedOstream()){
- Message.setStream(&null_os);
+ if (CVC4Message.getStreamPointer() == getManagedOstream())
+ {
+ CVC4Message.setStream(&null_os);
}
if(Notice.getStreamPointer() == getManagedOstream()){
Notice.setStream(&null_os);
Trace.getStream() << expr::ExprSetDepth(depth);
Notice.getStream() << expr::ExprSetDepth(depth);
Chat.getStream() << expr::ExprSetDepth(depth);
- Message.getStream() << expr::ExprSetDepth(depth);
+ CVC4Message.getStream() << expr::ExprSetDepth(depth);
Warning.getStream() << expr::ExprSetDepth(depth);
// intentionally exclude Dump stream from this list
}
Trace.getStream() << expr::ExprDag(dag);
Notice.getStream() << expr::ExprDag(dag);
Chat.getStream() << expr::ExprDag(dag);
- Message.getStream() << expr::ExprDag(dag);
+ CVC4Message.getStream() << expr::ExprDag(dag);
Warning.getStream() << expr::ExprDag(dag);
Dump.getStream() << expr::ExprDag(dag);
}
Trace.getStream() << Command::printsuccess(value);
Notice.getStream() << Command::printsuccess(value);
Chat.getStream() << Command::printsuccess(value);
- Message.getStream() << Command::printsuccess(value);
+ CVC4Message.getStream() << Command::printsuccess(value);
Warning.getStream() << Command::printsuccess(value);
*options::out() << Command::printsuccess(value);
}
class MessageOstreamUpdate : public OstreamUpdate {
public:
- std::ostream& get() override { return Message.getStream(); }
- void set(std::ostream* setTo) override { Message.setStream(setTo); }
+ std::ostream& get() override { return CVC4Message.getStream(); }
+ void set(std::ostream* setTo) override { CVC4Message.setStream(setTo); }
}; /* class MessageOstreamUpdate */
class NoticeOstreamUpdate : public OstreamUpdate {
for(ArithVariables::var_iterator vi = d_vars.var_begin(), vi_end = d_vars.var_end(); vi != vi_end; ++vi){
ArithVar v = *vi;
- if(s_verbosity >= 2){
- //Message() << v << " ";
- //d_vars.printModel(v, Message());
+ if (s_verbosity >= 2)
+ {
+ // CVC4Message() << v << " ";
+ // d_vars.printModel(v, CVC4Message());
}
int type;
for(ArithVariables::var_iterator vi = d_vars.var_begin(), vi_end = d_vars.var_end(); vi != vi_end; ++vi){
ArithVar v = *vi;
- if(s_verbosity >= 2){
- Message() << v << " ";
- d_vars.printModel(v, Message());
+ if (s_verbosity >= 2)
+ {
+ CVC4Message() << v << " ";
+ d_vars.printModel(v, CVC4Message());
}
int type;
int dir = guessDir(r);
if(len >= rowLengthReq){
- if(s_verbosity >= 1){
- Message() << "high row " << r << " " << len << " " << avgRowLength << " " << dir<< endl;
- d_vars.printModel(r, Message());
+ if (s_verbosity >= 1)
+ {
+ CVC4Message() << "high row " << r << " " << len << " " << avgRowLength
+ << " " << dir << endl;
+ d_vars.printModel(r, CVC4Message());
}
ret.push_back(ArithRatPair(r, Rational(dir)));
}
double ubScore = double(bc.upperBoundCount()) / maxCount;
double lbScore = double(bc.lowerBoundCount()) / maxCount;
if(ubScore >= .9 || lbScore >= .9){
- if(s_verbosity >= 1){
- Message() << "high col " << c << " " << bc << " " << ubScore << " " << lbScore << " " << dir << endl;
- d_vars.printModel(c, Message());
+ if (s_verbosity >= 1)
+ {
+ CVC4Message() << "high col " << c << " " << bc << " " << ubScore
+ << " " << lbScore << " " << dir << endl;
+ d_vars.printModel(c, CVC4Message());
}
ret.push_back(ArithRatPair(c, Rational(c)));
}
int status = isAux ? glp_get_row_stat(prob, glpk_index)
: glp_get_col_stat(prob, glpk_index);
- if(s_verbosity >= 2){
- Message() << "assignment " << vi << endl;
+ if (s_verbosity >= 2)
+ {
+ CVC4Message() << "assignment " << vi << endl;
}
bool useDefaultAssignment = false;
switch(status){
case GLP_BS:
- //Message() << "basic" << endl;
+ // CVC4Message() << "basic" << endl;
newBasis.add(vi);
useDefaultAssignment = true;
break;
case GLP_NL:
case GLP_NS:
if(!mip){
- if(s_verbosity >= 2){ Message() << "non-basic lb" << endl; }
+ if (s_verbosity >= 2)
+ {
+ CVC4Message() << "non-basic lb" << endl;
+ }
newValues.set(vi, d_vars.getLowerBound(vi));
}else{// intentionally fall through otherwise
useDefaultAssignment = true;
break;
case GLP_NU:
if(!mip){
- if(s_verbosity >= 2){ Message() << "non-basic ub" << endl; }
+ if (s_verbosity >= 2)
+ {
+ CVC4Message() << "non-basic ub" << endl;
+ }
newValues.set(vi, d_vars.getUpperBound(vi));
}else {// intentionally fall through otherwise
useDefaultAssignment = true;
}
if(useDefaultAssignment){
- if(s_verbosity >= 2){ Message() << "non-basic other" << endl; }
+ if (s_verbosity >= 2)
+ {
+ CVC4Message() << "non-basic other" << endl;
+ }
double newAssign;
if(mip){
}
const DeltaRational& oldAssign = d_vars.getAssignment(vi);
-
- if(d_vars.hasLowerBound(vi) &&
- roughlyEqual(newAssign, d_vars.getLowerBound(vi).approx(SMALL_FIXED_DELTA))){
- //Message() << " to lb" << endl;
+ if (d_vars.hasLowerBound(vi)
+ && roughlyEqual(newAssign,
+ d_vars.getLowerBound(vi).approx(SMALL_FIXED_DELTA)))
+ {
+ // CVC4Message() << " to lb" << endl;
newValues.set(vi, d_vars.getLowerBound(vi));
- }else if(d_vars.hasUpperBound(vi) &&
- roughlyEqual(newAssign, d_vars.getUpperBound(vi).approx(SMALL_FIXED_DELTA))){
+ }
+ else if (d_vars.hasUpperBound(vi)
+ && roughlyEqual(
+ newAssign,
+ d_vars.getUpperBound(vi).approx(SMALL_FIXED_DELTA)))
+ {
newValues.set(vi, d_vars.getUpperBound(vi));
- // Message() << " to ub" << endl;
- }else{
-
+ // CVC4Message() << " to ub" << endl;
+ }
+ else
+ {
double rounded = round(newAssign);
- if(roughlyEqual(newAssign, rounded)){
- // Message() << "roughly equal " << rounded << " " << newAssign << " " << oldAssign << endl;
+ if (roughlyEqual(newAssign, rounded))
+ {
+ // CVC4Message() << "roughly equal " << rounded << " " << newAssign <<
+ // " " << oldAssign << endl;
newAssign = rounded;
- }else{
- // Message() << "not roughly equal " << rounded << " " << newAssign << " " << oldAssign << endl;
+ }
+ else
+ {
+ // CVC4Message() << "not roughly equal " << rounded << " " <<
+ // newAssign << " " << oldAssign << endl;
}
DeltaRational proposal;
proposal = d_vars.getAssignment(vi);
}
- if(roughlyEqual(newAssign, oldAssign.approx(SMALL_FIXED_DELTA))){
- // Message() << " to prev value" << newAssign << " " << oldAssign << endl;
+ if (roughlyEqual(newAssign, oldAssign.approx(SMALL_FIXED_DELTA)))
+ {
+ // CVC4Message() << " to prev value" << newAssign << " " << oldAssign
+ // << endl;
proposal = d_vars.getAssignment(vi);
}
-
- if(d_vars.strictlyLessThanLowerBound(vi, proposal)){
- //Message() << " round to lb " << d_vars.getLowerBound(vi) << endl;
+ if (d_vars.strictlyLessThanLowerBound(vi, proposal))
+ {
+ // CVC4Message() << " round to lb " << d_vars.getLowerBound(vi) <<
+ // endl;
proposal = d_vars.getLowerBound(vi);
- }else if(d_vars.strictlyGreaterThanUpperBound(vi, proposal)){
- //Message() << " round to ub " << d_vars.getUpperBound(vi) << endl;
+ }
+ else if (d_vars.strictlyGreaterThanUpperBound(vi, proposal))
+ {
+ // CVC4Message() << " round to ub " << d_vars.getUpperBound(vi) <<
+ // endl;
proposal = d_vars.getUpperBound(vi);
- }else{
- //Message() << " use proposal" << proposal << " " << oldAssign << endl;
+ }
+ else
+ {
+ // CVC4Message() << " use proposal" << proposal << " " << oldAssign
+ // << endl;
}
newValues.set(vi, proposal);
}
Assert(toAdd != ARITHVAR_SENTINEL);
Trace("arith::forceNewBasis") << toRemove << " " << toAdd << endl;
- //Message() << toRemove << " " << toAdd << endl;
+ // CVC4Message() << toRemove << " " << toAdd << endl;
d_linEq.pivotAndUpdate(toRemove, toAdd, newValues[toRemove]);
Trace("arith::forceNewBasis") << needsToBeAdded.size() << "to go" << endl;
- //Message() << needsToBeAdded.size() << "to go" << endl;
+ // CVC4Message() << needsToBeAdded.size() << "to go" << endl;
needsToBeAdded.remove(toAdd);
bool conflict = processSignals();
return o;
}
-void Constraint::debugPrint() const {
- Message() << *this << endl;
-}
-
+void Constraint::debugPrint() const { CVC4Message() << *this << endl; }
ValueCollection::ValueCollection()
: d_lowerBound(NullConstraint),
const SumPair& eq = d_trail[i].d_eq;
const Polynomial& proof = d_trail[i].d_proof;
- Message() << "d_trail["<<i<<"].d_eq = " << eq.getNode() << endl;
- Message() << "d_trail["<<i<<"].d_proof = " << proof.getNode() << endl;
+ CVC4Message() << "d_trail[" << i << "].d_eq = " << eq.getNode() << endl;
+ CVC4Message() << "d_trail[" << i << "].d_proof = " << proof.getNode() << endl;
}
void DioSolver::subAndReduceCurrentFByIndex(DioSolver::SubIndex subIndex){
}
}
- if(verbose && numDifferencePivots > 0){
- if(result == Result::UNSAT){
- Message() << "diff order found unsat" << endl;
- }else if(d_errorSet.errorEmpty()){
- Message() << "diff order found model" << endl;
- }else{
- Message() << "diff order missed" << endl;
+ if (verbose && numDifferencePivots > 0)
+ {
+ if (result == Result::UNSAT)
+ {
+ CVC4Message() << "diff order found unsat" << endl;
+ }
+ else if (d_errorSet.errorEmpty())
+ {
+ CVC4Message() << "diff order found model" << endl;
+ }
+ else
+ {
+ CVC4Message() << "diff order missed" << endl;
}
}
}
if(searchForFeasibleSolution(options::arithStandardCheckVarOrderPivots())){
result = Result::UNSAT;
}
- if(verbose){
- if(result == Result::UNSAT){
- Message() << "restricted var order found unsat" << endl;
- }else if(d_errorSet.errorEmpty()){
- Message() << "restricted var order found model" << endl;
- }else{
- Message() << "restricted var order missed" << endl;
+ if (verbose)
+ {
+ if (result == Result::UNSAT)
+ {
+ CVC4Message() << "restricted var order found unsat" << endl;
+ }
+ else if (d_errorSet.errorEmpty())
+ {
+ CVC4Message() << "restricted var order found model" << endl;
+ }
+ else
+ {
+ CVC4Message() << "restricted var order missed" << endl;
}
}
}
if(d_errorSet.errorEmpty() && !d_errorSet.moreSignals()){
Debug("arith::findModel") << "fcFindModel("<< instance <<") trivial" << endl;
Assert(d_conflictVariables.empty());
- //if(verbose){ Message() << "fcFindModel("<< instance <<") trivial" << endl; }
+ //if (verbose)
+ //{
+ // CVC4Message() << "fcFindModel(" << instance << ") trivial" << endl;
+ //}
return Result::SAT;
}
if(initialProcessSignals()){
d_conflictVariables.purge();
- if(verbose){ Message() << "fcFindModel("<< instance <<") early conflict" << endl; }
+ if (verbose)
+ {
+ CVC4Message() << "fcFindModel(" << instance << ") early conflict" << endl;
+ }
Debug("arith::findModel") << "fcFindModel("<< instance <<") early conflict" << endl;
Assert(d_conflictVariables.empty());
return Result::UNSAT;
}else if(d_errorSet.errorEmpty()){
- //if(verbose){ Message() << "fcFindModel("<< instance <<") fixed itself" << endl; }
+ //if (verbose)
+ //{
+ // CVC4Message() << "fcFindModel(" << instance << ") fixed itself" << endl;
+ //}
Debug("arith::findModel") << "fcFindModel("<< instance <<") fixed itself" << endl;
if (verbose) Assert(!d_errorSet.moreSignals());
Assert(d_conflictVariables.empty());
if(result == Result::UNSAT){
++(d_statistics.d_fcFoundUnsat);
- if(verbose){ Message() << "fc found unsat";}
+ if (verbose)
+ {
+ CVC4Message() << "fc found unsat";
+ }
}else if(d_errorSet.errorEmpty()){
++(d_statistics.d_fcFoundSat);
- if(verbose){ Message() << "fc found model"; }
+ if (verbose)
+ {
+ CVC4Message() << "fc found model";
+ }
}else{
++(d_statistics.d_fcMissed);
- if(verbose){ Message() << "fc missed"; }
+ if (verbose)
+ {
+ CVC4Message() << "fc missed";
+ }
}
}
- if(verbose){
- Message() << "(" << instance << ") pivots " << d_pivots << endl;
+ if (verbose)
+ {
+ CVC4Message() << "(" << instance << ") pivots " << d_pivots << endl;
}
Assert(!d_errorSet.moreSignals());
}
if(degenerate(w) && selected.describesPivot()){
ArithVar leaving = selected.leaving();
- Message()
- << "degenerate " << leaving
- << ", atBounds " << d_linEq.basicsAtBounds(selected)
- << ", len " << d_tableau.basicRowLength(leaving)
- << ", bc " << d_linEq.debugBasicAtBoundCount(leaving)
- << endl;
+ CVC4Message() << "degenerate " << leaving << ", atBounds "
+ << d_linEq.basicsAtBounds(selected) << ", len "
+ << d_tableau.basicRowLength(leaving) << ", bc "
+ << d_linEq.debugBasicAtBoundCount(leaving) << endl;
}
}
}
}
- if(verbose){
- Message() << "conflict variable " << selected << endl;
- Message() << ss.str();
+ if (verbose)
+ {
+ CVC4Message() << "conflict variable " << selected << endl;
+ CVC4Message() << ss.str();
}
if(Debug.isOn("error")){ d_errorSet.debugPrint(Debug("error")); }
Assert(d_focusSize == d_errorSet.focusSize());
Assert(d_errorSize == d_errorSet.errorSize());
- if(verbose){
- debugDualLike(w, Message(), instance, prevFocusSize, prevErrorSize);
+ if (verbose)
+ {
+ debugDualLike(w, CVC4Message(), instance, prevFocusSize, prevErrorSize);
}
Assert(debugDualLike(
w, Debug("dualLike"), instance, prevFocusSize, prevErrorSize));
Assert(toAdd != ARITHVAR_SENTINEL);
Trace("arith::forceNewBasis") << toRemove << " " << toAdd << endl;
- Message() << toRemove << " " << toAdd << endl;
+ CVC4Message() << toRemove << " " << toAdd << endl;
d_tableau.pivot(toRemove, toAdd, d_trackCallback);
d_basicVariableUpdates(toAdd);
Trace("arith::forceNewBasis") << needsToBeAdded.size() << "to go" << endl;
- Message() << needsToBeAdded.size() << "to go" << endl;
+ CVC4Message() << needsToBeAdded.size() << "to go" << endl;
needsToBeAdded.remove(toAdd);
}
}
if(initialProcessSignals()){
d_conflictVariables.purge();
- if(verbose){ Message() << "fcFindModel("<< instance <<") early conflict" << endl; }
+ if (verbose)
+ {
+ CVC4Message() << "fcFindModel(" << instance << ") early conflict" << endl;
+ }
Debug("soi::findModel") << "fcFindModel("<< instance <<") early conflict" << endl;
Assert(d_conflictVariables.empty());
return Result::UNSAT;
if(result == Result::UNSAT){
++(d_statistics.d_soiFoundUnsat);
- if(verbose){ Message() << "fc found unsat";}
+ if (verbose)
+ {
+ CVC4Message() << "fc found unsat";
+ }
}else if(d_errorSet.errorEmpty()){
++(d_statistics.d_soiFoundSat);
- if(verbose){ Message() << "fc found model"; }
+ if (verbose)
+ {
+ CVC4Message() << "fc found model";
+ }
}else{
++(d_statistics.d_soiMissed);
- if(verbose){ Message() << "fc missed"; }
+ if (verbose)
+ {
+ CVC4Message() << "fc missed";
+ }
}
}
- if(verbose){
- Message() << "(" << instance << ") pivots " << d_pivots << endl;
+ if (verbose)
+ {
+ CVC4Message() << "(" << instance << ") pivots " << d_pivots << endl;
}
Assert(!d_errorSet.moreSignals());
}
if(degenerate(w) && selected.describesPivot()){
ArithVar leaving = selected.leaving();
- Message()
- << "degenerate " << leaving
- << ", atBounds " << d_linEq.basicsAtBounds(selected)
- << ", len " << d_tableau.basicRowLength(leaving)
- << ", bc " << d_linEq.debugBasicAtBoundCount(leaving)
- << endl;
+ CVC4Message() << "degenerate " << leaving << ", atBounds "
+ << d_linEq.basicsAtBounds(selected) << ", len "
+ << d_tableau.basicRowLength(leaving) << ", bc "
+ << d_linEq.debugBasicAtBoundCount(leaving) << endl;
}
}
}
}
- if(verbose){
- Message() << "conflict variable " << selected << endl;
- Message() << ss.str();
+ if (verbose)
+ {
+ CVC4Message() << "conflict variable " << selected << endl;
+ CVC4Message() << ss.str();
}
if(Debug.isOn("error")){ d_errorSet.debugPrint(Debug("error")); }
Assert(d_errorSize == d_errorSet.errorSize());
- if(verbose){
- debugSOI(w, Message(), instance);
+ if (verbose)
+ {
+ debugSOI(w, CVC4Message(), instance);
}
Assert(debugSOI(w, Debug("dualLike"), instance));
}
// int maxDepth =
// d_likelyIntegerInfeasible ? 1 : options::arithMaxBranchDepth();
-
// if(d_likelyIntegerInfeasible){
// d_qflraStatus = d_attemptSolSimplex.attempt(relaxSolution);
// }else{
// mipRes = approxSolver->solveMIP(true);
// }
// d_errorSet.reduceToSignals();
-// //Message() << "here" << endl;
+// //CVC4Message() << "here" << endl;
// if(mipRes == ApproximateSimplex::ApproxSat){
// mipSolution = approxSolver->extractMIP();
// d_qflraStatus = d_attemptSolSimplex.attempt(mipSolution);
// }
// }
// options::arithStandardCheckVarOrderPivots.set(pass2Limit);
-// if(d_qflraStatus != Result::UNSAT){ d_qflraStatus = simplex.findModel(false); }
-// //Message() << "done" << endl;
+// if(d_qflraStatus != Result::UNSAT){ d_qflraStatus =
+// simplex.findModel(false); }
+// //CVC4Message() << "done" << endl;
// }
// break;
// case ApproximateSimplex::ApproxUnsat:
// {
-// ApproximateSimplex::Solution sol = approxSolver->extractRelaxation();
+// ApproximateSimplex::Solution sol =
+// approxSolver->extractRelaxation();
// d_qflraStatus = d_attemptSolSimplex.attempt(sol);
// options::arithStandardCheckVarOrderPivots.set(pass2Limit);
// }else{
// if(d_qflraStatus == Result::SAT_UNKNOWN){
-// //Message() << "got sat unknown" << endl;
+// //CVC4Message() << "got sat unknown" << endl;
// vector<ArithVar> toCut = cutAllBounded();
// if(toCut.size() > 0){
// //branchVector(toCut);
// emmittedConflictOrSplit = true;
// }else{
-// //Message() << "splitting" << endl;
+// //CVC4Message() << "splitting" << endl;
// d_qflraStatus = simplex.findModel(noPivotLimit);
// }
Node ev = d_quant_models[f].evaluate(fmfmc, inst);
if (ev == d_true)
{
- Message() << "WARNING: instantiation was true! " << f << " "
- << mcond[i] << std::endl;
+ CVC4Message() << "WARNING: instantiation was true! " << f << " "
+ << mcond[i] << std::endl;
AlwaysAssert(false);
}
else
{
Node f = qa.d_fundef_f;
if( d_fun_defs.find( f )!=d_fun_defs.end() ){
- Message() << "Cannot define function " << f << " more than once." << std::endl;
+ CVC4Message() << "Cannot define function " << f << " more than once."
+ << std::endl;
AlwaysAssert(false);
}
d_fun_defs[f] = true;
}
}
-void SubstitutionMap::debugPrint() const {
- print(Message.getStream());
-}
+void SubstitutionMap::debugPrint() const { print(CVC4Message.getStream()); }
}/* CVC4::theory namespace */
}else{
Trace("uf-ss-warn") << "Split on unknown literal : " << ss << std::endl;
}
- if( ss==b_t ){
- Message() << "Bad split " << s << std::endl;
+ if (ss == b_t)
+ {
+ CVC4Message() << "Bad split " << s << std::endl;
AlwaysAssert(false);
}
}
for( std::map< TypeNode, SortModel* >::iterator it = d_rep_model.begin(); it != d_rep_model.end(); ++it ){
if( !it->second->hasCardinalityAsserted() ){
Trace("uf-ss-warn") << "WARNING: Assert " << n << " as a decision before cardinality for " << it->first << "." << std::endl;
- //Message() << "Error: constraint asserted before cardinality for " << it->first << std::endl;
- //Unimplemented();
+ // CVC4Message() << "Error: constraint asserted before cardinality
+ // for " << it->first << std::endl; Unimplemented();
}
}
}
Debug.on("foo");
Debug("foo") << "testing3";
- Message() << "a message";
+ CVC4Message() << "a message";
Warning() << "bad warning!";
Chat() << "chatty";
Notice() << "note";
TS_ASSERT( !( Debug.isOn("foo") ) );
TS_ASSERT( !( Trace.isOn("foo") ) );
TS_ASSERT( !( Warning.isOn() ) );
- TS_ASSERT( !( Message.isOn() ) );
+ TS_ASSERT(!(CVC4Message.isOn()));
TS_ASSERT( !( Notice.isOn() ) );
TS_ASSERT( !( Chat.isOn() ) );
cout << "warning" << std::endl;
Warning() << failure() << endl;
cout << "message" << std::endl;
- Message() << failure() << endl;
+ CVC4Message() << failure() << endl;
cout << "notice" << std::endl;
Notice() << failure() << endl;
cout << "chat" << std::endl;
TS_ASSERT_EQUALS(d_chatStream.str(), string());
d_chatStream.str("");
- Message() << "baz foo";
+ CVC4Message() << "baz foo";
TS_ASSERT_EQUALS(d_messageStream.str(), string());
d_messageStream.str("");
TS_ASSERT_EQUALS(d_chatStream.str(), string("baz foo"));
d_chatStream.str("");
- Message() << "baz foo";
+ CVC4Message() << "baz foo";
TS_ASSERT_EQUALS(d_messageStream.str(), string("baz foo"));
d_messageStream.str("");