Browse Source

Added assertion

tempestpy_adaptions
Matthias Volk 7 years ago
parent
commit
f675d60ccc
  1. 1
      src/storm-dft/modelchecker/dft/DFTASFChecker.cpp

1
src/storm-dft/modelchecker/dft/DFTASFChecker.cpp

@ -356,6 +356,7 @@ namespace storm {
// Encoding for gates // Encoding for gates
for (size_t i = 0; i < dft.nrElements(); ++i) { for (size_t i = 0; i < dft.nrElements(); ++i) {
std::shared_ptr<storm::storage::DFTElement<ValueType> const> element = dft.getElement(i); std::shared_ptr<storm::storage::DFTElement<ValueType> const> element = dft.getElement(i);
STORM_LOG_ASSERT(i == element->id(), "Id and index should match.");
// Get indices for gate children // Get indices for gate children
std::vector<uint64_t> childVarIndices; std::vector<uint64_t> childVarIndices;

Loading…
Cancel
Save