Browse Source

added a missing assertion

tempestpy_adaptions
TimQu 7 years ago
parent
commit
3c65a4a10a
  1. 1
      src/storm/solver/NativeLinearEquationSolver.cpp

1
src/storm/solver/NativeLinearEquationSolver.cpp

@ -617,6 +617,7 @@ namespace storm {
upperValueBound = lowerValueBound; upperValueBound = lowerValueBound;
ValueType largestStayProb = *probIt; ValueType largestStayProb = *probIt;
for (; valIt != valIte; ++valIt, ++probIt) { for (; valIt != valIte; ++valIt, ++probIt) {
STORM_LOG_ASSERT(!storm::utility::isOne(*probIt), "Did not expect staying-probability 1 at this point.");
ValueType currentBound = *valIt / (storm::utility::one<ValueType>() - *probIt); ValueType currentBound = *valIt / (storm::utility::one<ValueType>() - *probIt);
lowerValueBound = std::min(lowerValueBound, currentBound); lowerValueBound = std::min(lowerValueBound, currentBound);
upperValueBound = std::max(upperValueBound, currentBound); upperValueBound = std::max(upperValueBound, currentBound);

Loading…
Cancel
Save