summaryrefslogtreecommitdiff
path: root/src/theory/arith/linear_equality.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/theory/arith/linear_equality.cpp')
-rw-r--r--src/theory/arith/linear_equality.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/theory/arith/linear_equality.cpp b/src/theory/arith/linear_equality.cpp
index 7f729751b..8c7d22088 100644
--- a/src/theory/arith/linear_equality.cpp
+++ b/src/theory/arith/linear_equality.cpp
@@ -365,7 +365,6 @@ void LinearEqualityModule::debugCheckTracking(){
<< "computed " << computed
<< " tracking " << d_btracking[ridx] << endl;
Assert(computed == d_btracking[ridx]);
-
}
}
}
@@ -574,12 +573,10 @@ void LinearEqualityModule::propagateRow(ConstraintCPVec& into, RowIndex ridx, bo
Assert(sgn != 0);
bool selectUb = rowUp ? (sgn > 0) : (sgn < 0);
- Assert( nonbasic != v ||
- ( rowUp && a_ij.sgn() > 0 && c->isLowerBound()) ||
- ( rowUp && a_ij.sgn() < 0 && c->isUpperBound()) ||
- (!rowUp && a_ij.sgn() > 0 && c->isUpperBound()) ||
- (!rowUp && a_ij.sgn() < 0 && c->isLowerBound())
- );
+ Assert(nonbasic != v || (rowUp && a_ij.sgn() > 0 && c->isLowerBound())
+ || (rowUp && a_ij.sgn() < 0 && c->isUpperBound())
+ || (!rowUp && a_ij.sgn() > 0 && c->isUpperBound())
+ || (!rowUp && a_ij.sgn() < 0 && c->isLowerBound()));
if(Debug.isOn("arith::propagateRow")){
if(nonbasic == v){
@@ -743,7 +740,7 @@ ConstraintCP LinearEqualityModule::minimallyWeakConflict(bool aboveUpper, ArithV
fcs.addConstraint(c, coeff, adjustSgn);
if(basicVar == v){
- Assert(! c->negationHasProof() );
+ Assert(!c->negationHasProof());
fcs.makeLastConsequent();
}
}
@@ -1400,8 +1397,8 @@ void LinearEqualityModule::pop_block(BorderHeap& heap, int& brokenInBlock, int&
heap.pop_heap();
}else{
// does not belong to the block
- Assert((heap.direction() > 0) ?
- (blockValue < top.d_diff) : (blockValue > top.d_diff));
+ Assert((heap.direction() > 0) ? (blockValue < top.d_diff)
+ : (blockValue > top.d_diff));
break;
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback