diff options
Diffstat (limited to 'src/theory/arith/soi_simplex.cpp')
-rw-r--r-- | src/theory/arith/soi_simplex.cpp | 47 |
1 files changed, 30 insertions, 17 deletions
diff --git a/src/theory/arith/soi_simplex.cpp b/src/theory/arith/soi_simplex.cpp index ecac3d749..3f2fca50f 100644 --- a/src/theory/arith/soi_simplex.cpp +++ b/src/theory/arith/soi_simplex.cpp @@ -121,7 +121,10 @@ Result::Sat SumOfInfeasibilitiesSPD::findModel(bool exactResult){ 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; @@ -152,17 +155,27 @@ Result::Sat SumOfInfeasibilitiesSPD::findModel(bool exactResult){ 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()); @@ -373,12 +386,10 @@ void SumOfInfeasibilitiesSPD::updateAndSignal(const UpdateInfo& selected, Witnes } 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; } } @@ -424,9 +435,10 @@ void SumOfInfeasibilitiesSPD::updateAndSignal(const UpdateInfo& selected, Witnes } } - 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")); } @@ -982,8 +994,9 @@ Result::Sat SumOfInfeasibilitiesSPD::sumOfInfeasibilities(){ Assert(d_errorSize == d_errorSet.errorSize()); - if(verbose){ - debugSOI(w, Message(), instance); + if (verbose) + { + debugSOI(w, CVC4Message(), instance); } Assert(debugSOI(w, Debug("dualLike"), instance)); } |