Assert(d_partialModel.canBeReleased(v));
if(!d_tableau.isBasic(v)){
/* if it is not basic make it basic. */
- ArithVar b = ARITHVAR_SENTINEL;
- for(Tableau::ColIterator ci = d_tableau.colIterator(v); !ci.atEnd(); ++ci){
- const Tableau::Entry& e = *ci;
- b = d_tableau.rowIndexToBasic(e.getRowIndex());
- break;
- }
+ auto ci = d_tableau.colIterator(v);
+ Assert(!ci.atEnd());
+ ArithVar b = d_tableau.rowIndexToBasic((*ci).getRowIndex());
Assert(b != ARITHVAR_SENTINEL);
DeltaRational cp = d_partialModel.getAssignment(b);
if(d_partialModel.cmpAssignmentLowerBound(b) < 0){
d_cumulativeTimeUsed(0),
d_cumulativeResourceUsed(0),
d_thisCallResourceUsed(0),
+ d_thisCallResourceBudget(0),
d_statistics(new ResourceManager::Statistics(stats))
{
d_statistics->d_resourceUnitsUsed.set(d_cumulativeResourceUsed);