diff --git a/src/storm-dft/modelchecker/dft/DFTModelChecker.cpp b/src/storm-dft/modelchecker/dft/DFTModelChecker.cpp index 3fbf9cdd0..fef4a5d7c 100644 --- a/src/storm-dft/modelchecker/dft/DFTModelChecker.cpp +++ b/src/storm-dft/modelchecker/dft/DFTModelChecker.cpp @@ -262,7 +262,9 @@ namespace storm { } } - //composedModel->printModelInformationToStream(std::cout); + if (printInfo) { + composedModel->printModelInformationToStream(std::cout); + } return composedModel; } else { // No composition was possible @@ -283,7 +285,9 @@ namespace storm { allowDCForRelevantEvents); builder.buildModel(0, 0.0); std::shared_ptr> model = builder.getModel(); - //model->printModelInformationToStream(std::cout); + if (printInfo) { + model->printModelInformationToStream(std::cout); + } explorationTimer.stop(); STORM_LOG_THROW(model->isOfType(storm::models::ModelType::Ctmc), storm::exceptions::NotSupportedException, @@ -351,9 +355,18 @@ namespace storm { STORM_LOG_DEBUG("Getting model for lower bound..."); model = builder.getModelApproximation(true, !probabilityFormula); // We only output the info from the lower bound as the info for the upper bound is the same - //model->printModelInformationToStream(std::cout); + if (printInfo) { + model->printModelInformationToStream(std::cout); + } buildingTimer.stop(); + auto ioSettings = storm::settings::getModule(); + if (ioSettings.isExportExplicitSet()) { + std::vector parameterNames; + // TODO fill parameter names + storm::api::exportSparseModelAsDrn(model, ioSettings.getExportExplicitFilename(), parameterNames); + } + // Check lower bounds newResult = checkModel(model, {property}); STORM_LOG_ASSERT(newResult.size() == 1, "Wrong size for result vector."); @@ -381,7 +394,7 @@ namespace storm { "Under-approximation " << approxResult.first << " is greater than over-approximation " << approxResult.second); - //STORM_LOG_INFO("Result after iteration " << iteration << ": (" << std::setprecision(10) << approxResult.first << ", " << approxResult.second << ")"); + STORM_LOG_DEBUG("Result after iteration " << iteration << ": (" << std::setprecision(10) << approxResult.first << ", " << approxResult.second << ")"); totalTimer.stop(); printTimings(); totalTimer.start();