diff --git a/src/storm-pars-cli/storm-pars.cpp b/src/storm-pars-cli/storm-pars.cpp index 8a8c9fa6a..8546f81d1 100644 --- a/src/storm-pars-cli/storm-pars.cpp +++ b/src/storm-pars-cli/storm-pars.cpp @@ -165,7 +165,8 @@ namespace storm { auto parametricSettings = storm::settings::getModule(); if (parametricSettings.exportResultToFile() && model->isOfType(storm::models::ModelType::Dtmc)) { auto dtmc = model->template as>(); - storm::api::exportParametricResultToFile(boost::make_optional(result->asExplicitQuantitativeCheckResult()[*model->getInitialStates().begin()]),storm::analysis::ConstraintCollector(*dtmc), parametricSettings.exportResultPath()); + boost::optional rationalFunction = result->asExplicitQuantitativeCheckResult()[*model->getInitialStates().begin()]; + storm::api::exportParametricResultToFile(rationalFunction, storm::analysis::ConstraintCollector(*dtmc), parametricSettings.exportResultPath()); } }); }