Browse Source

Small fixes

Former-commit-id: ee8ef605c3
tempestpy_adaptions
Mavo 9 years ago
parent
commit
28a49659db
  1. 2
      src/storage/dft/DFT.cpp
  2. 3
      src/storage/dft/DFTBuilder.cpp
  3. 2
      src/storage/dft/DFTBuilder.h

2
src/storage/dft/DFT.cpp

@ -551,7 +551,7 @@ namespace storm {
rewrite.push_back(isdElemId); rewrite.push_back(isdElemId);
} }
} }
if(rewrite.size() > 2 && rewrite.size() < e->children().size() - 1) {
if(rewrite.size() > 2 && rewrite.size() < children.size() - 1) {
return rewrite; return rewrite;
} }

3
src/storage/dft/DFTBuilder.cpp

@ -13,6 +13,9 @@
namespace storm { namespace storm {
namespace storage { namespace storage {
template<typename ValueType>
std::size_t DFTBuilder<ValueType>::mUniqueOffset = 0;
template<typename ValueType> template<typename ValueType>
DFT<ValueType> DFTBuilder<ValueType>::build() { DFT<ValueType> DFTBuilder<ValueType>::build() {
for(auto& elem : mChildNames) { for(auto& elem : mChildNames) {

2
src/storage/dft/DFTBuilder.h

@ -26,7 +26,7 @@ namespace storm {
private: private:
std::size_t mNextId = 0; std::size_t mNextId = 0;
std::size_t mUniqueOffset = 0;
static std::size_t mUniqueOffset;
std::string mTopLevelIdentifier; std::string mTopLevelIdentifier;
std::unordered_map<std::string, DFTElementPointer> mElements; std::unordered_map<std::string, DFTElementPointer> mElements;
std::unordered_map<DFTElementPointer, std::vector<std::string>> mChildNames; std::unordered_map<DFTElementPointer, std::vector<std::string>> mChildNames;

Loading…
Cancel
Save