From: Alex Ozdemir Date: Mon, 16 Mar 2020 19:35:17 +0000 (-0700) Subject: clang-format X-Git-Tag: cvc5-1.0.0~3483 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d6b04a419b5b8032ac715d4318a907ae871209f6;p=cvc5.git clang-format --- diff --git a/src/theory/arith/constraint.cpp b/src/theory/arith/constraint.cpp index cdab772f8..11c6c15a7 100644 --- a/src/theory/arith/constraint.cpp +++ b/src/theory/arith/constraint.cpp @@ -503,8 +503,7 @@ bool Constraint::hasSimpleFarkasProof() const // For each antecdent ... AntecedentId i = getConstraintRule().d_antecedentEnd; - for (ConstraintCP a = d_database->getAntecedent(i); - a != NullConstraint; + for (ConstraintCP a = d_database->getAntecedent(i); a != NullConstraint; a = d_database->getAntecedent(--i)) { // ... that antecdent must be an assumption ... diff --git a/src/theory/arith/theory_arith_private.cpp b/src/theory/arith/theory_arith_private.cpp index 54bac3e26..4e2a5bba1 100644 --- a/src/theory/arith/theory_arith_private.cpp +++ b/src/theory/arith/theory_arith_private.cpp @@ -4954,7 +4954,9 @@ bool TheoryArithPrivate::rowImplicationCanBeApplied(RowIndex ridx, bool rowUp, C Assert(coeffs != RationalVectorPSentinel); Assert(conflictInFarkasCoefficientOrder.getNumChildren() == coeffs->size()); - if (std::all_of(explain.begin(), explain.end(), [](ConstraintCP c) { return c->isAssumption() || c->hasIntTightenProof(); })) + if (std::all_of(explain.begin(), explain.end(), [](ConstraintCP c) { + return c->isAssumption() || c->hasIntTightenProof(); + })) { d_containing.d_proofRecorder->saveFarkasCoefficients( conflictInFarkasCoefficientOrder, coeffs);