|
@ -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; |
|
|
} |
|
|
} |
|
|