Browse Source

fix in recently introduced isSinkState

tempestpy_adaptions
Sebastian Junges 5 years ago
parent
commit
92b384c17c
  1. 2
      src/storm/models/sparse/Model.cpp

2
src/storm/models/sparse/Model.cpp

@ -417,7 +417,7 @@ namespace storm {
bool Model<ValueType, RewardModelType>::isSinkState(uint64_t state) const {
for (auto const& entry : this->getTransitionMatrix().getRowGroup(state)) {
if (entry.getColumn() != state) { return false; }
if (storm::utility::isOne(entry.getValue())) { return false; }
if (!storm::utility::isOne(entry.getValue())) { return false; }
}
return true;
}

Loading…
Cancel
Save