Browse Source

Enabled output file, this time fo' real.

Former-commit-id: 64c17ea23e
main
dehnert 10 years ago
parent
commit
d63086d7e3
  1. 7
      src/stormParametric.cpp

7
src/stormParametric.cpp

@ -195,12 +195,17 @@ void check() {
constraintCollector(*dtmc); constraintCollector(*dtmc);
std::unique_ptr<storm::modelchecker::CheckResult> result = modelchecker.check(*formula); std::unique_ptr<storm::modelchecker::CheckResult> result = modelchecker.check(*formula);
ValueType valueFunction = result->asExplicitQuantitativeCheckResult<ValueType>()[*model->getInitialStates().begin()];
if (storm::settings::parametricSettings().exportResultToFile()) {
storm::utility::exportParametricMcResult(valueFunction, constraintCollector);
}
// Report the result. // Report the result.
STORM_PRINT_AND_LOG(std::endl << "Result (initial state): "); STORM_PRINT_AND_LOG(std::endl << "Result (initial state): ");
result->writeToStream(std::cout, model->getInitialStates()); result->writeToStream(std::cout, model->getInitialStates());
if (std::is_same<ValueType, storm::RationalFunction>::value) { if (std::is_same<ValueType, storm::RationalFunction>::value) {
printApproximateResult(result->asExplicitQuantitativeCheckResult<ValueType>()[*model->getInitialStates().begin()]);
printApproximateResult(valueFunction);
} }
std::cout << std::endl; std::cout << std::endl;
} }

Loading…
Cancel
Save