diff --git a/src/builder/ExplicitDFTModelBuilder.cpp b/src/builder/ExplicitDFTModelBuilder.cpp index b561bb716..c0c596b02 100644 --- a/src/builder/ExplicitDFTModelBuilder.cpp +++ b/src/builder/ExplicitDFTModelBuilder.cpp @@ -1,6 +1,7 @@ #include "src/builder/ExplicitDFTModelBuilder.h" #include #include +#include namespace storm { namespace builder { @@ -74,7 +75,7 @@ namespace storm { template void ExplicitDFTModelBuilder::exploreStates(std::queue>& stateQueue, storm::storage::SparseMatrixBuilder& transitionMatrixBuilder) { - std::vector> outgoingTransitions; + std::map outgoingTransitions; while (!stateQueue.empty()) { // Initialization @@ -149,7 +150,8 @@ namespace storm { // Set transition ValueType prob = nextBE.first->activeFailureRate(); - outgoingTransitions.push_back(std::make_pair(it->getId(), prob)); + auto resultInsert = outgoingTransitions.insert(std::make_pair(it->getId(), prob)); + assert(resultInsert.second); sum += prob; } // end while failing BE