Browse Source

Fixed bug with iterator

Former-commit-id: f7248a57c1
tempestpy_adaptions
Mavo 8 years ago
parent
commit
876b147aa8
  1. 3
      src/builder/ExplicitDFTModelBuilderApprox.cpp

3
src/builder/ExplicitDFTModelBuilderApprox.cpp

@ -153,7 +153,8 @@ namespace storm {
auto iterSkipped = skippedStates.begin(); auto iterSkipped = skippedStates.begin();
size_t skippedBefore = 0; size_t skippedBefore = 0;
for (size_t i = 0; i < indexRemapping.size(); ++i) { for (size_t i = 0; i < indexRemapping.size(); ++i) {
while (iterSkipped->first <= i) {
while (iterSkipped != skippedStates.end() && iterSkipped->first <= i) {
STORM_LOG_ASSERT(iterSkipped->first < indexRemapping.size(), "Skipped is too high.");
++skippedBefore; ++skippedBefore;
++iterSkipped; ++iterSkipped;
} }

Loading…
Cancel
Save