Browse Source

fixed the case where a maximal end componend decomposition is requested for an empty subsystem

Former-commit-id: 96ba0262ce
tempestpy_adaptions
TimQu 9 years ago
parent
commit
1a18ea3aec
  1. 4
      src/storage/MaximalEndComponentDecomposition.cpp

4
src/storage/MaximalEndComponentDecomposition.cpp

@ -65,7 +65,9 @@ namespace storm {
// Initialize the maximal end component list to be the full state space.
std::list<StateBlock> endComponentStateSets;
endComponentStateSets.emplace_back(subsystem.begin(), subsystem.end());
if(!subsystem.empty()) {
endComponentStateSets.emplace_back(subsystem.begin(), subsystem.end());
}
storm::storage::BitVector statesToCheck(numberOfStates);
// The iterator used here should really be a const_iterator.

Loading…
Cancel
Save