Browse Source

Use isBasicElement() instead of type

tempestpy_adaptions
Matthias Volk 6 years ago
parent
commit
9c28ed990e
  1. 3
      src/storm-dft/modelchecker/dft/DFTASFChecker.cpp

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

@ -619,8 +619,7 @@ namespace storm {
// Count dependent events // Count dependent events
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);
if (element->type() == storm::storage::DFTElementType::BE_EXP ||
element->type() == storm::storage::DFTElementType::BE_CONST) {
if (element->isBasicElement()) {
auto be = std::static_pointer_cast<storm::storage::DFTBE<double> const>(element); auto be = std::static_pointer_cast<storm::storage::DFTBE<double> const>(element);
if (be->hasIngoingDependencies()) { if (be->hasIngoingDependencies()) {
++nrDepEvents; ++nrDepEvents;

Loading…
Cancel
Save