diff --git a/src/generator/PrismNextStateGenerator.cpp b/src/generator/PrismNextStateGenerator.cpp index ad3ce3080..fac3be0f5 100644 --- a/src/generator/PrismNextStateGenerator.cpp +++ b/src/generator/PrismNextStateGenerator.cpp @@ -1,5 +1,7 @@ #include "src/generator/PrismNextStateGenerator.h" +#include + #include "src/utility/constants.h" #include "src/utility/macros.h" #include "src/exceptions/WrongFormatException.h" @@ -306,8 +308,9 @@ namespace storm { // As long as there is one feasible combination of commands, keep on expanding it. bool done = false; while (!done) { - std::unordered_map* currentTargetStates = new std::unordered_map(); - std::unordered_map* newTargetStates = new std::unordered_map(); + boost::container::flat_map* currentTargetStates = new boost::container::flat_map(); + boost::container::flat_map* newTargetStates = new boost::container::flat_map(); + currentTargetStates->emplace(state, storm::utility::one()); for (uint_fast64_t i = 0; i < iteratorList.size(); ++i) { @@ -327,7 +330,7 @@ namespace storm { if (i < iteratorList.size() - 1) { delete currentTargetStates; currentTargetStates = newTargetStates; - newTargetStates = new std::unordered_map(); + newTargetStates = new boost::container::flat_map(); } }