Storm 2.0.0.3
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
SparseMdpPrctlModelChecker.cpp
Go to the documentation of this file.
2
27#include "storm/utility/graph.h"
30
31namespace storm {
32namespace modelchecker {
33template<typename SparseMdpModelType>
35 : SparsePropositionalModelChecker<SparseMdpModelType>(model) {
36 // Intentionally left empty.
37}
38
39template<typename SparseMdpModelType>
41 bool* requiresSingleInitialState) {
42 storm::logic::Formula const& formula = checkTask.getFormula();
45 return true;
46 }
48 return true;
49 }
50 if (formula.isInFragment(
51 storm::logic::prctlstar().setBoundedUntilFormulasAllowed(true).setTimeOperatorsAllowed(true).setReachbilityTimeFormulasAllowed(true))) {
52 return true;
53 }
54 } else {
56 .setLongRunAverageRewardFormulasAllowed(true)
57 .setLongRunAverageProbabilitiesAllowed(true)
58 .setConditionalProbabilityFormulasAllowed(true)
59 .setOnlyEventuallyFormuluasInConditionalFormulasAllowed(true)
60 .setTotalRewardFormulasAllowed(true)
61 .setRewardBoundedUntilFormulasAllowed(true)
62 .setRewardBoundedCumulativeRewardFormulasAllowed(true)
63 .setMultiDimensionalBoundedUntilFormulasAllowed(true)
64 .setMultiDimensionalCumulativeRewardFormulasAllowed(true)
65 .setTimeOperatorsAllowed(true)
66 .setReachbilityTimeFormulasAllowed(true)
67 .setRewardAccumulationAllowed(true)
68 .setDiscountedTotalRewardFormulasAllowed(true)
69 .setDiscountedCumulativeRewardFormulasAllowed(true))) {
70 return true;
71 } else if (checkTask.isOnlyInitialStatesRelevantSet()) {
72 auto multiObjectiveFragment = storm::logic::multiObjective()
73 .setTimeAllowed(true)
84 auto lexObjectiveFragment = storm::logic::lexObjective()
96
97 if (formula.isInFragment(multiObjectiveFragment) || formula.isInFragment(storm::logic::quantiles()) || formula.isInFragment(lexObjectiveFragment)) {
98 if (requiresSingleInitialState) {
99 *requiresSingleInitialState = true;
100 }
101 return true;
102 }
103 }
104 }
105 return false;
106}
107
108template<typename SparseMdpModelType>
110 bool requiresSingleInitialState = false;
111 if (canHandleStatic(checkTask, &requiresSingleInitialState)) {
112 return !requiresSingleInitialState || this->getModel().getInitialStates().getNumberOfSetBits() == 1;
113 } else {
114 return false;
115 }
116}
117
118template<typename SparseMdpModelType>
121 storm::logic::BoundedUntilFormula const& pathFormula = checkTask.getFormula();
122 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
123 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
124 if (pathFormula.isMultiDimensional() || pathFormula.getTimeBoundReference().isRewardBound()) {
125 if constexpr (storm::IsIntervalType<ValueType>) {
126 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "We have not yet implemented multi dimensional bounded until with intervals.");
127 return nullptr;
128 } else {
129 STORM_LOG_THROW(checkTask.isOnlyInitialStatesRelevantSet(), storm::exceptions::InvalidOperationException,
130 "Checking non-trivial bounded until probabilities can only be computed for the initial states of the model.");
131 STORM_LOG_WARN_COND(!checkTask.isQualitativeSet(), "Checking non-trivial bounded until formulas is not optimized w.r.t. qualitative queries");
133 if (checkTask.isBoundSet()) {
134 opInfo.bound = checkTask.getBound();
135 }
136 auto formula = std::make_shared<storm::logic::ProbabilityOperatorFormula>(checkTask.getFormula().asSharedPointer(), opInfo);
139 env, checkTask.getOptimizationDirection(), rewardUnfolding, this->getModel().getInitialStates());
140 // The helper returns one value per initial state, in the order in which the bit vector selects them.
141 return std::unique_ptr<CheckResult>(
142 new ExplicitQuantitativeCheckResult<SolutionType>(this->getModel().getInitialStates(), std::move(numericResult)));
143 }
144 } else {
145 STORM_LOG_THROW(pathFormula.hasUpperBound(), storm::exceptions::InvalidPropertyException, "Formula needs to have (a single) upper step bound.");
146 STORM_LOG_THROW(pathFormula.hasIntegerLowerBound(), storm::exceptions::InvalidPropertyException, "Formula lower step bound must be discrete/integral.");
147 STORM_LOG_THROW(pathFormula.hasIntegerUpperBound(), storm::exceptions::InvalidPropertyException, "Formula needs to have discrete upper time bound.");
148 std::unique_ptr<CheckResult> leftResultPointer = this->check(env, pathFormula.getLeftSubformula());
149 std::unique_ptr<CheckResult> rightResultPointer = this->check(env, pathFormula.getRightSubformula());
150 ExplicitQualitativeCheckResult<SolutionType> const& leftResult = leftResultPointer->template asExplicitQualitativeCheckResult<SolutionType>();
151 ExplicitQualitativeCheckResult<SolutionType> const& rightResult = rightResultPointer->template asExplicitQualitativeCheckResult<SolutionType>();
153 std::vector<SolutionType> numericResult = helper.computeStepBoundedUntilProbabilities(
154 env, storm::solver::SolveGoal<ValueType, SolutionType>(this->getModel(), checkTask), this->getModel().getTransitionMatrix(),
155 this->getModel().getBackwardTransitions(), leftResult.getTruthValuesVector(), rightResult.getTruthValuesVector(),
156 pathFormula.getNonStrictLowerBound<uint64_t>(), pathFormula.getNonStrictUpperBound<uint64_t>(), checkTask.getHint());
157 auto result = std::make_unique<ExplicitQuantitativeCheckResult<SolutionType>>(std::move(numericResult));
158 result->setValuesExact();
159 return result;
160 }
161}
162
163template<typename SparseMdpModelType>
166 storm::logic::NextFormula const& pathFormula = checkTask.getFormula();
167 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
168 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
169 std::unique_ptr<CheckResult> subResultPointer = this->check(env, pathFormula.getSubformula());
170 ExplicitQualitativeCheckResult<SolutionType> const& subResult = subResultPointer->template asExplicitQualitativeCheckResult<SolutionType>();
172 env, checkTask.getOptimizationDirection(), checkTask.getUncertaintyResolutionMode(), this->getModel().getTransitionMatrix(),
173 subResult.getTruthValuesVector());
174 auto result = std::make_unique<ExplicitQuantitativeCheckResult<SolutionType>>(std::move(numericResult));
175 result->setValuesExact();
176 return result;
177}
178
179template<typename SparseMdpModelType>
182 storm::logic::UntilFormula const& pathFormula = checkTask.getFormula();
183 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
184 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
185 if constexpr (storm::IsIntervalType<ValueType>) {
186 STORM_LOG_THROW(this->getModel().getTransitionMatrix().isProbabilisticGraphPreserving(), storm::exceptions::InvalidSettingsException,
187 "Computing until probabilities on uncertain model requires graph-preservation.");
188 }
189 std::unique_ptr<CheckResult> leftResultPointer = this->check(env, pathFormula.getLeftSubformula());
190 std::unique_ptr<CheckResult> rightResultPointer = this->check(env, pathFormula.getRightSubformula());
191 ExplicitQualitativeCheckResult<SolutionType> const& leftResult = leftResultPointer->template asExplicitQualitativeCheckResult<SolutionType>();
192 ExplicitQualitativeCheckResult<SolutionType> const& rightResult = rightResultPointer->template asExplicitQualitativeCheckResult<SolutionType>();
193 if (checkTask.isProduceCertificateSet()) {
195 STORM_LOG_INFO("Computing reachability probabilities with certificate ...");
196 STORM_LOG_WARN_COND(!checkTask.isProduceSchedulersSet(), "Scheduler generation with certificates not implemented.");
197 std::optional<storm::storage::BitVector> constraintStates;
198 std::optional<std::string> constraintLabel;
199 if (!pathFormula.getLeftSubformula().isTrueFormula()) {
200 constraintStates = leftResult.getTruthValuesVector();
201 constraintLabel = pathFormula.getLeftSubformula().toString();
202 }
204 env, checkTask.getOptimizationDirection(), this->getModel().getTransitionMatrix(), rightResult.getTruthValuesVector(), constraintStates,
205 pathFormula.getRightSubformula().toString(), constraintLabel);
206 storm::storage::BitVector allStates(this->getModel().getNumberOfStates(), true);
207 return std::make_unique<ExplicitCertificateCheckResult<ValueType>>(std::move(certificate), std::move(allStates));
208 } else {
209 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "Certificates are not implemented for this value type.");
210 }
211 }
213 env, storm::solver::SolveGoal<ValueType, SolutionType>(this->getModel(), checkTask), this->getModel().getTransitionMatrix(),
214 this->getModel().getBackwardTransitions(), leftResult.getTruthValuesVector(), rightResult.getTruthValuesVector(), checkTask.isQualitativeSet(),
215 checkTask.isProduceSchedulersSet(), checkTask.getHint());
216 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<SolutionType>(std::move(ret.values)));
217 result->asExplicitQuantitativeCheckResult<SolutionType>().setBounds(std::move(ret.solutionBounds));
218 if (checkTask.isProduceSchedulersSet() && ret.scheduler) {
219 result->asExplicitQuantitativeCheckResult<SolutionType>().setScheduler(std::move(ret.scheduler));
220 }
221 return result;
222}
223
224template<typename SparseMdpModelType>
227 storm::logic::GloballyFormula const& pathFormula = checkTask.getFormula();
228 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
229 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
230 std::unique_ptr<CheckResult> subResultPointer = this->check(env, pathFormula.getSubformula());
231 ExplicitQualitativeCheckResult<SolutionType> const& subResult = subResultPointer->template asExplicitQualitativeCheckResult<SolutionType>();
233 env, storm::solver::SolveGoal<ValueType, SolutionType>(this->getModel(), checkTask), this->getModel().getTransitionMatrix(),
234 this->getModel().getBackwardTransitions(), subResult.getTruthValuesVector(), checkTask.isQualitativeSet(), checkTask.isProduceSchedulersSet());
235 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<SolutionType>(std::move(ret.values)));
236 result->asExplicitQuantitativeCheckResult<SolutionType>().setBounds(std::move(ret.solutionBounds));
237 if (checkTask.isProduceSchedulersSet() && ret.scheduler) {
238 result->asExplicitQuantitativeCheckResult<SolutionType>().setScheduler(std::move(ret.scheduler));
239 }
240 return result;
241}
242
243template<typename SparseMdpModelType>
246 if constexpr (storm::IsIntervalType<ValueType>) {
247 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "We have not yet implemented automata-props with intervals.");
248 } else {
249 storm::logic::HOAPathFormula const& pathFormula = checkTask.getFormula();
250
253
254 auto formulaChecker = [&](storm::logic::Formula const& formula) {
255 return this->check(env, formula)->template asExplicitQualitativeCheckResult<SolutionType>().getTruthValuesVector();
256 };
257 auto apSets = helper.computeApSets(pathFormula.getAPMapping(), formulaChecker);
258 std::vector<SolutionType> numericResult = helper.computeDAProductProbabilities(env, *pathFormula.readAutomaton(), apSets);
259
260 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<SolutionType>(std::move(numericResult)));
261 if (checkTask.isProduceSchedulersSet()) {
262 result->asExplicitQuantitativeCheckResult<SolutionType>().setScheduler(
263 std::make_unique<storm::storage::Scheduler<SolutionType>>(helper.extractScheduler(this->getModel())));
264 }
265
266 return result;
267 }
268}
269
270template<typename SparseMdpModelType>
273 if constexpr (storm::IsIntervalType<ValueType>) {
274 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "We have not yet implemented LTL with intervals.");
275 } else {
276 storm::logic::PathFormula const& pathFormula = checkTask.getFormula();
277
278 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
279 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
280
283
284 auto formulaChecker = [&](storm::logic::Formula const& formula) {
285 return this->check(env, formula)->template asExplicitQualitativeCheckResult<SolutionType>().getTruthValuesVector();
286 };
287 std::vector<SolutionType> numericResult = helper.computeLTLProbabilities(env, pathFormula, formulaChecker);
288
289 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<SolutionType>(std::move(numericResult)));
290 if (checkTask.isProduceSchedulersSet()) {
291 result->asExplicitQuantitativeCheckResult<SolutionType>().setScheduler(
292 std::make_unique<storm::storage::Scheduler<SolutionType>>(helper.extractScheduler(this->getModel())));
293 }
294
295 return result;
296 }
297}
298
299template<typename SparseMdpModelType>
302 storm::logic::ConditionalFormula const& conditionalFormula = checkTask.getFormula();
303 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
304 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
305 STORM_LOG_THROW(this->getModel().getInitialStates().hasUniqueSetBit(), storm::exceptions::InvalidPropertyException,
306 "Cannot compute conditional probabilities on MDPs with more than one initial state.");
307 STORM_LOG_THROW(checkTask.isOnlyInitialStatesRelevantSet(), storm::exceptions::InvalidPropertyException,
308 "Conditional probabilities can only be computed for the initial states of the model.");
309 STORM_LOG_THROW(conditionalFormula.getSubformula().isEventuallyFormula(), storm::exceptions::InvalidPropertyException,
310 "Illegal conditional probability formula.");
311 STORM_LOG_THROW(conditionalFormula.getConditionFormula().isEventuallyFormula(), storm::exceptions::InvalidPropertyException,
312 "Illegal conditional probability formula.");
313
314 std::unique_ptr<CheckResult> leftResultPointer = this->check(env, conditionalFormula.getSubformula().asEventuallyFormula().getSubformula());
315 std::unique_ptr<CheckResult> rightResultPointer = this->check(env, conditionalFormula.getConditionFormula().asEventuallyFormula().getSubformula());
316 ExplicitQualitativeCheckResult<SolutionType> const& leftResult = leftResultPointer->template asExplicitQualitativeCheckResult<SolutionType>();
317 ExplicitQualitativeCheckResult<SolutionType> const& rightResult = rightResultPointer->template asExplicitQualitativeCheckResult<SolutionType>();
318 if constexpr (storm::IsIntervalType<ValueType>) {
319 STORM_LOG_THROW(false, exceptions::NotSupportedException, "Conditional Probabilities are not supported with interval models.");
320 } else {
322 checkTask.isProduceSchedulersSet(), this->getModel().getTransitionMatrix(),
323 this->getModel().getBackwardTransitions(), leftResult.getTruthValuesVector(),
324 rightResult.getTruthValuesVector());
325 }
326}
327
328template<typename SparseMdpModelType>
331 storm::logic::CumulativeRewardFormula const& rewardPathFormula = checkTask.getFormula();
332 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
333 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
334 if (rewardPathFormula.isMultiDimensional() || rewardPathFormula.getTimeBoundReference().isRewardBound()) {
335 if constexpr (storm::IsIntervalType<ValueType>) {
336 STORM_LOG_THROW_UNCONDITIONALLY(storm::exceptions::NotImplementedException,
337 "We have not yet implemented multi-dimensional or reward-bounded cumulative rewards with intervals.");
338 } else {
339 STORM_LOG_THROW(checkTask.isOnlyInitialStatesRelevantSet(), storm::exceptions::InvalidOperationException,
340 "Checking reward bounded cumulative reward formulas can only be done for the initial states of the model.");
341 STORM_LOG_THROW(!checkTask.getFormula().hasRewardAccumulation(), storm::exceptions::InvalidOperationException,
342 "Checking reward bounded cumulative reward formulas is not supported if reward accumulations are given.");
343 STORM_LOG_WARN_COND(!checkTask.isQualitativeSet(), "Checking reward bounded until formulas is not optimized w.r.t. qualitative queries");
345 if (checkTask.isBoundSet()) {
346 opInfo.bound = checkTask.getBound();
347 }
348 auto formula = std::make_shared<storm::logic::RewardOperatorFormula>(checkTask.getFormula().asSharedPointer(), checkTask.getRewardModel(), opInfo);
351 env, checkTask.getOptimizationDirection(), rewardUnfolding, this->getModel().getInitialStates());
352 // The helper returns one value per initial state, in the order in which the bit vector selects them.
353 return std::unique_ptr<CheckResult>(
354 new ExplicitQuantitativeCheckResult<SolutionType>(this->getModel().getInitialStates(), std::move(numericResult)));
355 }
356 } else {
357 if constexpr (storm::IsIntervalType<ValueType>) {
358 STORM_LOG_THROW(checkTask.isUncertaintyResolutionModeSet(), storm::exceptions::InvalidSettingsException,
359 "Uncertainty resolution mode must be set for uncertain (interval) models.");
360 }
361 STORM_LOG_THROW(rewardPathFormula.hasIntegerBound(), storm::exceptions::InvalidPropertyException, "Formula needs to have a discrete time bound.");
362 auto rewardModel = storm::utility::createFilteredRewardModel(this->getModel(), checkTask);
364 env, storm::solver::SolveGoal<ValueType, SolutionType>(this->getModel(), checkTask), this->getModel().getTransitionMatrix(), rewardModel.get(),
365 rewardPathFormula.getNonStrictBound<uint64_t>());
366 auto result = std::make_unique<ExplicitQuantitativeCheckResult<SolutionType>>(std::move(numericResult));
367 result->setValuesExact();
368 return result;
369 }
370}
371
372template<>
375 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "Discounted properties are not implemented for interval models.");
376}
377
378template<>
381 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "Discounted properties are not implemented for interval models.");
382}
383
384template<typename SparseMdpModelType>
387 storm::logic::DiscountedCumulativeRewardFormula const& rewardPathFormula = checkTask.getFormula();
388 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
389 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
390 STORM_LOG_THROW(rewardPathFormula.hasIntegerBound(), storm::exceptions::InvalidPropertyException, "Formula needs to have a discrete time bound.");
391 auto rewardModel = storm::utility::createFilteredRewardModel(this->getModel(), checkTask);
393 env, storm::solver::SolveGoal<ValueType, SolutionType>(this->getModel(), checkTask), this->getModel().getTransitionMatrix(), rewardModel.get(),
394 rewardPathFormula.getNonStrictBound<uint64_t>(), rewardPathFormula.getDiscountFactor<ValueType>());
395 auto result = std::make_unique<ExplicitQuantitativeCheckResult<SolutionType>>(std::move(numericResult));
396 result->setValuesExact();
397 return result;
398}
399
400template<typename SparseMdpModelType>
403 storm::logic::InstantaneousRewardFormula const& rewardPathFormula = checkTask.getFormula();
404 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
405 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
406 STORM_LOG_THROW(rewardPathFormula.hasIntegerBound(), storm::exceptions::InvalidPropertyException, "Formula needs to have a discrete time bound.");
408 env, storm::solver::SolveGoal<ValueType, SolutionType>(this->getModel(), checkTask), this->getModel().getTransitionMatrix(),
409 checkTask.isRewardModelSet() ? this->getModel().getRewardModel(checkTask.getRewardModel()) : this->getModel().getRewardModel(""),
410 rewardPathFormula.getBound<uint64_t>());
411 auto result = std::make_unique<ExplicitQuantitativeCheckResult<SolutionType>>(std::move(numericResult));
412 result->setValuesExact();
413 return result;
414}
415
416template<typename SparseMdpModelType>
419 storm::logic::EventuallyFormula const& eventuallyFormula = checkTask.getFormula();
420 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
421 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
422 if constexpr (storm::IsIntervalType<ValueType>) {
423 STORM_LOG_THROW(this->getModel().getTransitionMatrix().isProbabilisticGraphPreserving(), storm::exceptions::InvalidSettingsException,
424 "Computing rewards on uncertain model requires graph-preservation.");
425 }
426 std::unique_ptr<CheckResult> subResultPointer = this->check(env, eventuallyFormula.getSubformula());
427 ExplicitQualitativeCheckResult<SolutionType> const& subResult = subResultPointer->template asExplicitQualitativeCheckResult<SolutionType>();
428 auto rewardModel = storm::utility::createFilteredRewardModel(this->getModel(), checkTask);
429 if (checkTask.isProduceCertificateSet()) {
431 STORM_LOG_INFO("Computing reachability rewards with certificate ...");
432 STORM_LOG_WARN_COND(!checkTask.isProduceSchedulersSet(), "Scheduler generation with certificates not implemented.");
434 env, checkTask.getOptimizationDirection(), this->getModel().getTransitionMatrix(), subResult.getTruthValuesVector(),
435 rewardModel.get().getTotalRewardVector(this->getModel().getTransitionMatrix()), eventuallyFormula.getSubformula().toString(),
436 checkTask.isRewardModelSet() ? checkTask.getRewardModel() : "");
437 storm::storage::BitVector allStates(this->getModel().getNumberOfStates(), true);
438 return std::make_unique<ExplicitCertificateCheckResult<ValueType>>(std::move(certificate), std::move(allStates));
439 } else {
440 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "Certificates are not implemented for this value type.");
441 }
442 }
444 env, storm::solver::SolveGoal<ValueType, SolutionType>(this->getModel(), checkTask), this->getModel().getTransitionMatrix(),
445 this->getModel().getBackwardTransitions(), rewardModel.get(), subResult.getTruthValuesVector(), checkTask.isQualitativeSet(),
446 checkTask.isProduceSchedulersSet(), checkTask.getHint());
447 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<SolutionType>(std::move(ret.values)));
448 result->asExplicitQuantitativeCheckResult<SolutionType>().setBounds(std::move(ret.solutionBounds));
449 if (checkTask.isProduceSchedulersSet() && ret.scheduler) {
450 result->asExplicitQuantitativeCheckResult<SolutionType>().setScheduler(std::move(ret.scheduler));
451 }
452 return result;
453}
454
455template<typename SparseMdpModelType>
458 storm::logic::EventuallyFormula const& eventuallyFormula = checkTask.getFormula();
459 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
460 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
461 if constexpr (storm::IsIntervalType<ValueType>) {
462 STORM_LOG_THROW(this->getModel().getTransitionMatrix().isProbabilisticGraphPreserving(), storm::exceptions::InvalidSettingsException,
463 "Computing reachability times on uncertain model requires graph-preservation.");
464 }
465 std::unique_ptr<CheckResult> subResultPointer = this->check(env, eventuallyFormula.getSubformula());
466 ExplicitQualitativeCheckResult<SolutionType> const& subResult = subResultPointer->template asExplicitQualitativeCheckResult<SolutionType>();
467 if (checkTask.isProduceCertificateSet()) {
469 STORM_LOG_INFO("Computing reachability times with certificate ...");
470 STORM_LOG_WARN_COND(!checkTask.isProduceSchedulersSet(), "Scheduler generation with certificates not implemented.");
472 env, checkTask.getOptimizationDirection(), this->getModel().getTransitionMatrix(), subResult.getTruthValuesVector(),
473 std::vector<ValueType>(this->getModel().getNumberOfChoices(), storm::utility::one<ValueType>()), eventuallyFormula.getSubformula().toString(),
474 "time");
475 storm::storage::BitVector allStates(this->getModel().getNumberOfStates(), true);
476 return std::make_unique<ExplicitCertificateCheckResult<ValueType>>(std::move(certificate), std::move(allStates));
477 } else {
478 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "Certificates are not implemented for this value type.");
479 }
480 }
482 env, storm::solver::SolveGoal<ValueType, SolutionType>(this->getModel(), checkTask), this->getModel().getTransitionMatrix(),
483 this->getModel().getBackwardTransitions(), subResult.getTruthValuesVector(), checkTask.isQualitativeSet(), checkTask.isProduceSchedulersSet(),
484 checkTask.getHint());
485 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<SolutionType>(std::move(ret.values)));
486 result->asExplicitQuantitativeCheckResult<SolutionType>().setBounds(std::move(ret.solutionBounds));
487 if (checkTask.isProduceSchedulersSet() && ret.scheduler) {
488 result->asExplicitQuantitativeCheckResult<SolutionType>().setScheduler(std::move(ret.scheduler));
489 }
490 return result;
491}
492
493template<typename SparseMdpModelType>
496 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
497 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
498 if constexpr (storm::IsIntervalType<ValueType>) {
499 STORM_LOG_THROW(this->getModel().getTransitionMatrix().isProbabilisticGraphPreserving(), storm::exceptions::InvalidSettingsException,
500 "Computing total rewards on uncertain model requires graph-preservation.");
501 }
502 auto rewardModel = storm::utility::createFilteredRewardModel(this->getModel(), checkTask);
504 env, storm::solver::SolveGoal<ValueType, SolutionType>(this->getModel(), checkTask), this->getModel().getTransitionMatrix(),
505 this->getModel().getBackwardTransitions(), rewardModel.get(), checkTask.isQualitativeSet(), checkTask.isProduceSchedulersSet(), checkTask.getHint());
506 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<SolutionType>(std::move(ret.values)));
507 result->asExplicitQuantitativeCheckResult<SolutionType>().setBounds(std::move(ret.solutionBounds));
508 if (checkTask.isProduceSchedulersSet() && ret.scheduler) {
509 result->asExplicitQuantitativeCheckResult<SolutionType>().setScheduler(std::move(ret.scheduler));
510 }
511 return result;
512}
513
514template<>
517 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "Discounted properties are not implemented for interval models.");
518}
519
520template<>
523 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "Discounted properties are not implemented for interval models.");
524}
525
526template<typename SparseMdpModelType>
529 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
530 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
531 auto rewardModel = storm::utility::createFilteredRewardModel(this->getModel(), checkTask);
532 storm::logic::DiscountedTotalRewardFormula const& rewardPathFormula = checkTask.getFormula();
533 auto discountFactor = rewardPathFormula.getDiscountFactor<ValueType>();
535 env, storm::solver::SolveGoal<ValueType, SolutionType>(this->getModel(), checkTask), this->getModel().getTransitionMatrix(),
536 this->getModel().getBackwardTransitions(), rewardModel.get(), checkTask.isQualitativeSet(), checkTask.isProduceSchedulersSet(), discountFactor,
537 checkTask.getHint());
538 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<SolutionType>(std::move(ret.values)));
539 result->asExplicitQuantitativeCheckResult<SolutionType>().setBounds(std::move(ret.solutionBounds));
540 if (checkTask.isProduceSchedulersSet() && ret.scheduler) {
541 result->asExplicitQuantitativeCheckResult<SolutionType>().setScheduler(std::move(ret.scheduler));
542 }
543 return result;
544}
545
546template<typename SparseMdpModelType>
549 if constexpr (storm::IsIntervalType<ValueType>) {
550 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "We have not yet implemented LRA probabilities with intervals.");
551 } else {
552 storm::logic::StateFormula const& stateFormula = checkTask.getFormula();
553 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
554 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
555 std::unique_ptr<CheckResult> subResultPointer = this->check(env, stateFormula);
556 ExplicitQualitativeCheckResult<SolutionType> const& subResult = subResultPointer->template asExplicitQualitativeCheckResult<SolutionType>();
557
560 auto values = helper.computeLongRunAverageProbabilities(env, subResult.getTruthValuesVector());
561
562 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<SolutionType>(std::move(values)));
563 if (checkTask.isProduceSchedulersSet()) {
564 result->asExplicitQuantitativeCheckResult<SolutionType>().setScheduler(
565 std::make_unique<storm::storage::Scheduler<SolutionType>>(helper.extractScheduler()));
566 }
567 return result;
568 }
569}
570
571template<typename SparseMdpModelType>
574 if constexpr (storm::IsIntervalType<ValueType>) {
575 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "We have not yet implemented lra with intervals.");
576 } else {
577 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
578 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
579 auto rewardModel = storm::utility::createFilteredRewardModel(this->getModel(), checkTask);
582 auto values = helper.computeLongRunAverageRewards(env, rewardModel.get());
583 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<SolutionType>(std::move(values)));
584 if (checkTask.isProduceSchedulersSet()) {
585 result->asExplicitQuantitativeCheckResult<SolutionType>().setScheduler(
586 std::make_unique<storm::storage::Scheduler<SolutionType>>(helper.extractScheduler()));
587 }
588 return result;
589 }
590}
591
592template<typename SparseMdpModelType>
595 if constexpr (storm::IsIntervalType<ValueType>) {
596 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "We have not yet implemented multi-objective with intervals.");
597 } else {
599 }
600}
601
602template<class SparseMdpModelType>
605 if constexpr (storm::IsIntervalType<ValueType>) {
606 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "We have not yet implemented lexicographic model checking with intervals.");
607 } else {
608 auto formulaChecker = [&](storm::logic::Formula const& formula) {
609 return this->check(env, formula)->template asExplicitQualitativeCheckResult<SolutionType>().getTruthValuesVector();
610 };
611 auto ret = lexicographic::check(env, this->getModel(), checkTask, formulaChecker);
612 std::unique_ptr<CheckResult> result(new LexicographicCheckResult<SolutionType>(ret.values, *this->getModel().getInitialStates().begin()));
613 return result;
614 }
615}
616
617template<typename SparseMdpModelType>
620 if constexpr (storm::IsIntervalType<ValueType>) {
621 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "We have not yet implemented quantile formulas with intervals.");
622 } else {
623 STORM_LOG_THROW(checkTask.isOnlyInitialStatesRelevantSet(), storm::exceptions::InvalidOperationException,
624 "Computing quantiles is only supported for the initial states of a model.");
625 STORM_LOG_THROW(this->getModel().getInitialStates().getNumberOfSetBits() == 1, storm::exceptions::InvalidOperationException,
626 "Quantiles not supported on models with multiple initial states.");
627 uint64_t initialState = *this->getModel().getInitialStates().begin();
628
630 auto res = qHelper.computeQuantile(env);
631
632 if (res.size() == 1 && res.front().size() == 1) {
633 return std::unique_ptr<CheckResult>(new ExplicitQuantitativeCheckResult<SolutionType>(initialState, std::move(res.front().front())));
634 } else {
635 return std::unique_ptr<CheckResult>(new ExplicitParetoCurveCheckResult<SolutionType>(initialState, std::move(res)));
636 }
637 }
638}
639
644} // namespace modelchecker
645} // namespace storm
Formula const & getRightSubformula() const
Formula const & getLeftSubformula() const
ValueType getNonStrictLowerBound(unsigned i=0) const
TimeBoundReference const & getTimeBoundReference(unsigned i=0) const
ValueType getNonStrictUpperBound(unsigned i=0) const
bool hasIntegerUpperBound(unsigned i=0) const
bool hasIntegerLowerBound(unsigned i=0) const
Formula const & getConditionFormula() const
Formula const & getSubformula() const
TimeBoundReference const & getTimeBoundReference() const
storm::expressions::Expression const & getDiscountFactor() const
storm::expressions::Expression const & getDiscountFactor() const
std::string toString() const
Definition Formula.cpp:617
virtual bool isTrueFormula() const
Definition Formula.cpp:70
EventuallyFormula & asEventuallyFormula()
Definition Formula.cpp:371
bool isInFragment(FragmentSpecification const &fragment) const
Definition Formula.cpp:218
virtual bool isEventuallyFormula() const
Definition Formula.cpp:102
FragmentSpecification & setStepBoundedUntilFormulasAllowed(bool newValue)
FragmentSpecification & setRewardBoundedCumulativeRewardFormulasAllowed(bool newValue)
FragmentSpecification & setRewardAccumulationAllowed(bool newValue)
FragmentSpecification & setMultiDimensionalBoundedUntilFormulasAllowed(bool newValue)
FragmentSpecification & setTimeBoundedUntilFormulasAllowed(bool newValue)
FragmentSpecification & setCumulativeRewardFormulasAllowed(bool newValue)
FragmentSpecification & setMultiDimensionalCumulativeRewardFormulasAllowed(bool newValue)
FragmentSpecification & setRewardBoundedUntilFormulasAllowed(bool newValue)
FragmentSpecification & setTimeBoundedCumulativeRewardFormulasAllowed(bool newValue)
FragmentSpecification & setHOAPathFormulasAllowed(bool newValue)
FragmentSpecification & setTimeAllowed(bool newValue)
FragmentSpecification & setStepBoundedCumulativeRewardFormulasAllowed(bool newValue)
const ap_to_formula_map & getAPMapping() const
std::shared_ptr< storm::automata::DeterministicAutomaton > readAutomaton() const
storm::expressions::Expression const & getBound() const
Formula const & getSubformula() const
virtual std::unique_ptr< CheckResult > check(Environment const &env, CheckTask< storm::logic::Formula, SolutionType > const &checkTask)
bool isBoundSet() const
Retrieves whether there is a bound with which the values for the states will be compared.
Definition CheckTask.h:221
bool isProduceCertificateSet() const
Retrieves whether certificate(s) are to be produced (if supported).
Definition CheckTask.h:295
bool isOptimizationDirectionSet() const
Retrieves whether an optimization direction was set.
Definition CheckTask.h:149
bool isRewardModelSet() const
Retrieves whether a reward model was set.
Definition CheckTask.h:192
bool isQualitativeSet() const
Retrieves whether the computation only needs to be performed qualitatively, because the values will o...
Definition CheckTask.h:259
std::string const & getRewardModel() const
Retrieves the reward model over which to perform the checking (if set).
Definition CheckTask.h:199
FormulaType const & getFormula() const
Retrieves the formula from this task.
Definition CheckTask.h:142
ModelCheckerHint const & getHint() const
Retrieves a hint that might contain information that speeds up the modelchecking process (if supporte...
Definition CheckTask.h:309
bool isUncertaintyResolutionModeSet() const
Returns whether the mode, which decides how the uncertainty will be resolved, is set.
Definition CheckTask.h:334
bool isProduceSchedulersSet() const
Retrieves whether scheduler(s) are to be produced (if supported).
Definition CheckTask.h:281
storm::logic::Bound const & getBound() const
Retrieves the bound (if set).
Definition CheckTask.h:244
storm::OptimizationDirection const & getOptimizationDirection() const
Retrieves the optimization direction (if set).
Definition CheckTask.h:156
bool isOnlyInitialStatesRelevantSet() const
Retrieves whether only the initial states are relevant in the computation.
Definition CheckTask.h:206
UncertaintyResolutionMode getUncertaintyResolutionMode() const
Retrieves the mode which decides how the uncertainty will be resolved.
Definition CheckTask.h:320
A qualitative check result over the states of a sparse model.
vector_type const & getTruthValuesVector() const
Retrieves the truth values, one per state this result is for.
A quantitative check result over the states of a sparse model.
virtual std::unique_ptr< CheckResult > computeLongRunAverageProbabilities(Environment const &env, CheckTask< storm::logic::StateFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeCumulativeRewards(Environment const &env, CheckTask< storm::logic::CumulativeRewardFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeLongRunAverageRewards(Environment const &env, CheckTask< storm::logic::LongRunAverageRewardFormula, SolutionType > const &checkTask) override
static bool canHandleStatic(CheckTask< storm::logic::Formula, SolutionType > const &checkTask, bool *requiresSingleInitialState=nullptr)
Returns false, if this task can certainly not be handled by this model checker (independent of the co...
virtual std::unique_ptr< CheckResult > checkMultiObjectiveFormula(Environment const &env, CheckTask< storm::logic::MultiObjectiveFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeReachabilityTimes(Environment const &env, CheckTask< storm::logic::EventuallyFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeDiscountedCumulativeRewards(Environment const &env, CheckTask< storm::logic::DiscountedCumulativeRewardFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeLTLProbabilities(Environment const &env, CheckTask< storm::logic::PathFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeGloballyProbabilities(Environment const &env, CheckTask< storm::logic::GloballyFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeUntilProbabilities(Environment const &env, CheckTask< storm::logic::UntilFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > checkQuantileFormula(Environment const &env, CheckTask< storm::logic::QuantileFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > checkLexObjectiveFormula(Environment const &env, CheckTask< storm::logic::MultiObjectiveFormula, SolutionType > const &checkTask) override
virtual bool canHandle(CheckTask< storm::logic::Formula, SolutionType > const &checkTask) const override
virtual std::unique_ptr< CheckResult > computeReachabilityRewards(Environment const &env, CheckTask< storm::logic::EventuallyFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeHOAPathProbabilities(Environment const &env, CheckTask< storm::logic::HOAPathFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeInstantaneousRewards(Environment const &env, CheckTask< storm::logic::InstantaneousRewardFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeConditionalProbabilities(Environment const &env, CheckTask< storm::logic::ConditionalFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeNextProbabilities(Environment const &env, CheckTask< storm::logic::NextFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeDiscountedTotalRewards(Environment const &env, CheckTask< storm::logic::DiscountedTotalRewardFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeTotalRewards(Environment const &env, CheckTask< storm::logic::TotalRewardFormula, SolutionType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeBoundedUntilProbabilities(Environment const &env, CheckTask< storm::logic::BoundedUntilFormula, SolutionType > const &checkTask) override
Helper class for LTL model checking.
static ExtendedReturnType computeDiscountedTotalRewards(Environment const &env, storm::solver::SolveGoal< ValueType, SolutionType > &&goal, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, storm::storage::SparseMatrix< ValueType > const &backwardTransitions, RewardModelType const &rewardModel, bool qualitative, bool produceScheduler, ValueType discountFactor, ModelCheckerHint const &hint=ModelCheckerHint())
static ExtendedReturnType computeReachabilityRewards(Environment const &env, storm::solver::SolveGoal< ValueType, SolutionType > &&goal, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, storm::storage::SparseMatrix< ValueType > const &backwardTransitions, RewardModelType const &rewardModel, storm::storage::BitVector const &targetStates, bool qualitative, bool produceScheduler, ModelCheckerHint const &hint=ModelCheckerHint())
static MDPSparseModelCheckingHelperReturnType< SolutionType > computeGloballyProbabilities(Environment const &env, storm::solver::SolveGoal< ValueType, SolutionType > &&goal, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, storm::storage::SparseMatrix< ValueType > const &backwardTransitions, storm::storage::BitVector const &psiStates, bool qualitative, bool produceScheduler, bool useMecBasedTechnique=false)
static ExtendedReturnType computeTotalRewards(Environment const &env, storm::solver::SolveGoal< ValueType, SolutionType > &&goal, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, storm::storage::SparseMatrix< ValueType > const &backwardTransitions, RewardModelType const &rewardModel, bool qualitative, bool produceScheduler, ModelCheckerHint const &hint=ModelCheckerHint())
static std::vector< SolutionType > computeNextProbabilities(Environment const &env, OptimizationDirection dir, UncertaintyResolutionMode uncertaintyResolutionMode, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, storm::storage::BitVector const &nextStates)
static ExtendedReturnType computeReachabilityTimes(Environment const &env, storm::solver::SolveGoal< ValueType, SolutionType > &&goal, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, storm::storage::SparseMatrix< ValueType > const &backwardTransitions, storm::storage::BitVector const &targetStates, bool qualitative, bool produceScheduler, ModelCheckerHint const &hint=ModelCheckerHint())
static std::vector< SolutionType > computeInstantaneousRewards(Environment const &env, storm::solver::SolveGoal< ValueType, SolutionType > &&goal, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, RewardModelType const &rewardModel, uint_fast64_t stepCount)
static MDPSparseModelCheckingHelperReturnType< SolutionType > computeUntilProbabilities(Environment const &env, storm::solver::SolveGoal< ValueType, SolutionType > &&goal, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, storm::storage::SparseMatrix< ValueType > const &backwardTransitions, storm::storage::BitVector const &phiStates, storm::storage::BitVector const &psiStates, bool qualitative, bool produceScheduler, ModelCheckerHint const &hint=ModelCheckerHint())
static std::vector< SolutionType > computeRewardBoundedValues(Environment const &env, OptimizationDirection dir, rewardbounded::MultiDimensionalRewardUnfolding< ValueType, true > &rewardUnfolding, storm::storage::BitVector const &initialStates)
static std::vector< SolutionType > computeCumulativeRewards(Environment const &env, storm::solver::SolveGoal< ValueType, SolutionType > &&goal, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, RewardModelType const &rewardModel, uint_fast64_t stepBound)
static std::vector< SolutionType > computeDiscountedCumulativeRewards(Environment const &env, storm::solver::SolveGoal< ValueType, SolutionType > &&goal, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, RewardModelType const &rewardModel, uint_fast64_t stepBound, ValueType discountFactor)
Helper class for model checking queries that depend on the long run behavior of the (nondeterministic...
std::vector< std::vector< storm::utility::ExtendedValueType< ValueType > > > computeQuantile(Environment const &env)
A bit vector that is internally represented as a vector of 64-bit values.
Definition BitVector.h:16
bool get(uint64_t index) const
Retrieves the truth value of the bit at the given index and performs a bound check.
This class defines which action is chosen in a particular state of a non-deterministic model.
Definition Scheduler.h:18
#define STORM_LOG_INFO(message)
Definition logging.h:34
#define STORM_LOG_THROW_UNCONDITIONALLY(exception, message)
Definition macros.h:48
#define STORM_LOG_WARN_COND(cond, message)
Definition macros.h:54
#define STORM_LOG_THROW(cond, exception, message)
Definition macros.h:39
FragmentSpecification prctlstar()
FragmentSpecification propositional()
FragmentSpecification lexObjective()
FragmentSpecification multiObjective()
FragmentSpecification reachability()
FragmentSpecification quantiles()
void setInformationFromCheckTaskNondeterministic(HelperType &helper, storm::modelchecker::CheckTask< FormulaType, typename ModelType::ValueType > const &checkTask, ModelType const &model)
Forwards relevant information stored in the given CheckTask to the given helper.
helper::MDPSparseModelCheckingHelperReturnType< ValueType > check(Environment const &env, SparseModelType const &model, CheckTask< storm::logic::MultiObjectiveFormula, ValueType > const &checkTask, CheckFormulaCallback const &formulaChecker)
check a lexicographic LTL-formula
std::unique_ptr< CheckResult > performMultiObjectiveModelChecking(Environment const &env, SparseModelType const &model, storm::logic::MultiObjectiveFormula const &formula, bool produceScheduler)
constexpr bool SupportsCertificates
Certificates can be computed for models with these value types.
Definition Certificate.h:27
std::unique_ptr< ReachabilityRewardCertificate< ValueType > > computeReachabilityRewardCertificate(storm::Environment const &env, std::optional< storm::OptimizationDirection > dir, storm::storage::SparseMatrix< ValueType > const &transitionProbabilityMatrix, storm::storage::BitVector targetStates, std::vector< ValueType > stateActionRewardVector, std::string targetLabel, std::string rewardModelName)
Computes a certificate for expected rewards accumulated until reaching the target states.
std::unique_ptr< CheckResult > computeConditionalProbabilities(Environment const &env, storm::solver::SolveGoal< ValueType, SolutionType > &&goal, bool produceSchedulers, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, storm::storage::SparseMatrix< ValueType > const &backwardTransitions, storm::storage::BitVector const &targetStates, storm::storage::BitVector const &conditionStates)
std::unique_ptr< ReachabilityProbabilityCertificate< ValueType > > computeReachabilityProbabilityCertificate(storm::Environment const &env, std::optional< storm::OptimizationDirection > dir, storm::storage::SparseMatrix< ValueType > const &transitionProbabilityMatrix, storm::storage::BitVector targetStates, std::optional< storm::storage::BitVector > constraintStates, std::string targetLabel, std::optional< std::string > constraintLabel)
Computes a certificate for reachability probabilities (or constrained reachability probabilities if c...
FilteredRewardModel< RewardModelType > createFilteredRewardModel(RewardModelType const &baseRewardModel, storm::logic::RewardAccumulation const &acc, bool isDiscreteTimeModel)
ValueType one()
Definition constants.cpp:21
The contract of a DD backend.
constexpr bool IsIntervalType
Helper to check if a type is an interval.
boost::optional< Bound > bound