Browse Source

Fixed typos

tempestpy_adaptions
Matthias Volk 5 years ago
parent
commit
49dac54e8b
  1. 1
      src/storm-dft-cli/storm-dft.cpp
  2. 4
      src/storm-dft/builder/ExplicitDFTModelBuilder.cpp
  3. 2
      src/storm-dft/storage/dft/DFT.cpp
  4. 3
      src/storm-dft/storage/dft/elements/BEExponential.h

1
src/storm-dft-cli/storm-dft.cpp

@ -87,6 +87,7 @@ void processOptions() {
// Apply transformations
// TODO transform later before actual analysis
dft = storm::api::applyTransformations(*dft, faultTreeSettings.isUniqueFailedBE(), true);
STORM_LOG_DEBUG(dft->getElementsString());
dft->setDynamicBehaviorInfo();

4
src/storm-dft/builder/ExplicitDFTModelBuilder.cpp

@ -59,14 +59,14 @@ namespace storm {
// Consider all children of the top level gate
std::vector<size_t> isubdft;
if (child->nrParents() > 1 || child->hasOutgoingDependencies()) {
STORM_LOG_TRACE("child " << child->name() << "does not allow modularisation.");
STORM_LOG_TRACE("child " << child->name() << " does not allow modularisation.");
isubdft.clear();
} else if (dft.isGate(child->id())) {
isubdft = dft.getGate(child->id())->independentSubDft(false);
} else {
STORM_LOG_ASSERT(dft.isBasicElement(child->id()), "Child is no BE.");
if(dft.getBasicElement(child->id())->hasIngoingDependencies()) {
STORM_LOG_TRACE("child " << child->name() << "does not allow modularisation.");
STORM_LOG_TRACE("child " << child->name() << " does not allow modularisation.");
isubdft.clear();
} else {
isubdft = {child->id()};

2
src/storm-dft/storage/dft/DFT.cpp

@ -416,7 +416,7 @@ namespace storm {
} else {
STORM_LOG_ASSERT(isBasicElement(child->id()), "Child is no BE.");
if (getBasicElement(child->id())->hasIngoingDependencies()) {
STORM_LOG_TRACE("child " << child->name() << "does not allow modularisation.");
STORM_LOG_TRACE("child " << child->name() << " does not allow modularisation.");
return {*this};
} else {
isubdft = {child->id()};

3
src/storm-dft/storage/dft/elements/BEExponential.h

@ -67,7 +67,8 @@ namespace storm {
}
bool canFail() const override {
return !storm::utility::isZero(this->activeFailureRate());
STORM_LOG_ASSERT(!storm::utility::isZero(this->activeFailureRate()), "BEExp should have failure rate > 0");
return true;
}
/*!

Loading…
Cancel
Save