Browse Source

Added check if DFT transformation is needed

tempestpy_adaptions
Alexander Bork 6 years ago
parent
commit
1d505d2ee0
  1. 6
      src/storm-dft-cli/storm-dft.cpp

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

@ -57,8 +57,9 @@ void processOptions() {
} }
// Eliminate non-binary dependencies // Eliminate non-binary dependencies
dft = dftTransformator.transformBinaryFDEPs(*dft);
if (dft->getDependencies().size() > 0) {
dft = dftTransformator.transformBinaryFDEPs(*dft);
}
// Check well-formedness of DFT // Check well-formedness of DFT
std::stringstream stream; std::stringstream stream;
if (!dft->checkWellFormedness(stream)) { if (!dft->checkWellFormedness(stream)) {
@ -88,6 +89,7 @@ void processOptions() {
#ifdef STORM_HAVE_Z3 #ifdef STORM_HAVE_Z3
if (faultTreeSettings.solveWithSMT()) { if (faultTreeSettings.solveWithSMT()) {
dft = dftTransformator.transformUniqueFailedBe(*dft);
// Solve with SMT // Solve with SMT
STORM_LOG_DEBUG("Running DFT analysis with use of SMT"); STORM_LOG_DEBUG("Running DFT analysis with use of SMT");
storm::api::analyzeDFTSMT(*dft, true, debug.isTestSet()); storm::api::analyzeDFTSMT(*dft, true, debug.isTestSet());

Loading…
Cancel
Save