Storm 2.0.0.3
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
AbstractModelChecker.cpp
Go to the documentation of this file.
2
3#include <boost/core/typeinfo.hpp>
4
8#include "storm/dd/Add.h"
34
35namespace storm {
36namespace modelchecker {
37
38template<typename ModelType>
40 return std::string(boost::core::demangled_name(BOOST_CORE_TYPEID(*this)));
41}
42
43template<typename ModelType>
45 Environment env;
46 return this->check(env, checkTask);
48
49template<typename ModelType>
51 storm::logic::Formula const& formula = checkTask.getFormula();
52 STORM_LOG_THROW(this->canHandle(checkTask), storm::exceptions::InvalidArgumentException,
53 "The model checker (" << getClassName() << ") is not able to check the formula '" << formula << "'.");
54 if (formula.isStateFormula()) {
55 return this->checkStateFormula(env, checkTask.substituteFormula(formula.asStateFormula()));
56 }
57 STORM_LOG_THROW(false, storm::exceptions::InvalidArgumentException, "The given formula '" << formula << "' is invalid.");
58}
59
60template<typename ModelType>
63 storm::logic::Formula const& formula = checkTask.getFormula();
65 if (formula.isStateFormula() || formula.hasQualitativeResult()) {
66 return this->computeStateFormulaProbabilities(env, checkTask.substituteFormula(formula));
67 }
68
69 if (formula.isHOAPathFormula()) {
70 return this->computeHOAPathProbabilities(env, checkTask.substituteFormula(formula.asHOAPathFormula()));
71 } else if (formula.isConditionalProbabilityFormula()) {
72 return this->computeConditionalProbabilities(env, checkTask.substituteFormula(formula.asConditionalFormula()));
73 } else if (formula.info(false).containsComplexPathFormula()) {
74 // we need to do LTL model checking
75 return this->computeLTLProbabilities(env, checkTask.substituteFormula(formula.asPathFormula()));
76 } else if (formula.isBoundedUntilFormula()) {
77 return this->computeBoundedUntilProbabilities(env, checkTask.substituteFormula(formula.asBoundedUntilFormula()));
78 } else if (formula.isReachabilityProbabilityFormula()) {
79 return this->computeReachabilityProbabilities(env, checkTask.substituteFormula(formula.asReachabilityProbabilityFormula()));
80 } else if (formula.isGloballyFormula()) {
81 return this->computeGloballyProbabilities(env, checkTask.substituteFormula(formula.asGloballyFormula()));
82 } else if (formula.isUntilFormula()) {
83 return this->computeUntilProbabilities(env, checkTask.substituteFormula(formula.asUntilFormula()));
84 } else if (formula.isNextFormula()) {
85 return this->computeNextProbabilities(env, checkTask.substituteFormula(formula.asNextFormula()));
86 }
87 STORM_LOG_THROW(false, storm::exceptions::InvalidArgumentException, "The given formula '" << formula << "' is invalid.");
89
90template<typename ModelType>
93 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
94 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
95}
97template<typename ModelType>
100 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
101 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
103
104template<typename ModelType>
107 storm::logic::EventuallyFormula const& pathFormula = checkTask.getFormula();
109 return this->computeUntilProbabilities(env, checkTask.substituteFormula(newFormula));
111
112template<typename ModelType>
115 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
116 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
119template<typename ModelType>
122 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
123 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
125
126template<typename ModelType>
129 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
130 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
131}
133template<typename ModelType>
136 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "This model checker does not support the formula: " << checkTask.getFormula() << ".");
137}
139template<typename ModelType>
142 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "This model checker does not support the formula: " << checkTask.getFormula() << ".");
143}
144
145template<typename ModelType>
147 Environment const& env, CheckTask<storm::logic::Formula, SolutionType> const& checkTask) {
148 // recurse
149 std::unique_ptr<CheckResult> resultPointer = this->check(env, checkTask.getFormula());
150 if (resultPointer->isExplicitQualitativeCheckResult()) {
151 STORM_LOG_ASSERT(ModelType::Representation == storm::models::ModelRepresentation::Sparse, "Unexpected model type.");
152 return std::make_unique<ExplicitQuantitativeCheckResult<SolutionType>>(resultPointer->template asExplicitQualitativeCheckResult<SolutionType>());
153 } else {
154 STORM_LOG_ASSERT(resultPointer->isSymbolicQualitativeCheckResult(), "Unexpected result type.");
155 STORM_LOG_ASSERT(ModelType::Representation != storm::models::ModelRepresentation::Sparse, "Unexpected model type.");
156 if constexpr (ModelType::Representation != storm::models::ModelRepresentation::Sparse) {
158 auto const& qualRes = resultPointer->asSymbolicQualitativeCheckResult<ddType>();
159 return std::make_unique<SymbolicQuantitativeCheckResult<ddType, SolutionType>>(qualRes);
160 } else {
161 STORM_LOG_THROW_UNCONDITIONALLY(storm::exceptions::UnexpectedException, "Unexpected symbolic check result for a sparse model.");
162 }
163 }
164}
165
166template<typename ModelType>
167std::unique_ptr<CheckResult> AbstractModelChecker<ModelType>::computeRewards(Environment const& env,
169 storm::logic::Formula const& rewardFormula = checkTask.getFormula();
170 if (rewardFormula.isCumulativeRewardFormula()) {
171 return this->computeCumulativeRewards(env, checkTask.substituteFormula(rewardFormula.asCumulativeRewardFormula()));
172 } else if (rewardFormula.isDiscountedCumulativeRewardFormula()) {
174 } else if (rewardFormula.isInstantaneousRewardFormula()) {
175 return this->computeInstantaneousRewards(env, checkTask.substituteFormula(rewardFormula.asInstantaneousRewardFormula()));
176 } else if (rewardFormula.isReachabilityRewardFormula()) {
177 return this->computeReachabilityRewards(env, checkTask.substituteFormula(rewardFormula.asReachabilityRewardFormula()));
178 } else if (rewardFormula.isTotalRewardFormula()) {
179 return this->computeTotalRewards(env, checkTask.substituteFormula(rewardFormula.asTotalRewardFormula()));
180 } else if (rewardFormula.isDiscountedTotalRewardFormula()) {
181 return this->computeDiscountedTotalRewards(env, checkTask.substituteFormula(rewardFormula.asDiscountedTotalRewardFormula()));
182 } else if (rewardFormula.isLongRunAverageRewardFormula()) {
183 return this->computeLongRunAverageRewards(env, checkTask.substituteFormula(rewardFormula.asLongRunAverageRewardFormula()));
184 } else if (rewardFormula.isConditionalRewardFormula()) {
185 return this->computeConditionalRewards(env, checkTask.substituteFormula(rewardFormula.asConditionalFormula()));
186 }
187 STORM_LOG_THROW(false, storm::exceptions::InvalidArgumentException, "The given formula '" << rewardFormula << "' is invalid.");
188}
189
190template<typename ModelType>
193 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
194 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
195}
196
197template<typename ModelType>
200 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
201 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
202}
203
204template<typename ModelType>
207 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
208 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
209}
210
211template<typename ModelType>
214 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
215 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
216}
217
218template<typename ModelType>
221 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
222 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
223}
224
225template<typename ModelType>
228 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
229 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
230}
231
232template<typename ModelType>
235 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
236 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
237}
238
239template<typename ModelType>
242 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
243 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
244}
245
246template<typename ModelType>
249 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
250 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
251}
252
253template<typename ModelType>
254std::unique_ptr<CheckResult> AbstractModelChecker<ModelType>::computeTimes(Environment const& env,
256 storm::logic::Formula const& timeFormula = checkTask.getFormula();
257 if (timeFormula.isReachabilityTimeFormula()) {
258 return this->computeReachabilityTimes(env, checkTask.substituteFormula(timeFormula.asReachabilityTimeFormula()));
259 }
260 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
261 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
262}
263
264template<typename ModelType>
267 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
268 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
269}
270
271template<typename ModelType>
274 storm::logic::StateFormula const& stateFormula = checkTask.getFormula();
275 if (stateFormula.isBinaryBooleanStateFormula()) {
276 return this->checkBinaryBooleanStateFormula(env, checkTask.substituteFormula(stateFormula.asBinaryBooleanStateFormula()));
277 } else if (stateFormula.isUnaryBooleanStateFormula()) {
278 return this->checkUnaryBooleanStateFormula(env, checkTask.substituteFormula(stateFormula.asUnaryBooleanStateFormula()));
279 } else if (stateFormula.isBooleanLiteralFormula()) {
280 return this->checkBooleanLiteralFormula(env, checkTask.substituteFormula(stateFormula.asBooleanLiteralFormula()));
281 } else if (stateFormula.isProbabilityOperatorFormula()) {
282 return this->checkProbabilityOperatorFormula(env, checkTask.substituteFormula(stateFormula.asProbabilityOperatorFormula()));
283 } else if (stateFormula.isRewardOperatorFormula()) {
284 return this->checkRewardOperatorFormula(env, checkTask.substituteFormula(stateFormula.asRewardOperatorFormula()));
285 } else if (stateFormula.isTimeOperatorFormula()) {
286 return this->checkTimeOperatorFormula(env, checkTask.substituteFormula(stateFormula.asTimeOperatorFormula()));
287 } else if (stateFormula.isLongRunAverageOperatorFormula()) {
289 } else if (stateFormula.isAtomicExpressionFormula()) {
290 return this->checkAtomicExpressionFormula(env, checkTask.substituteFormula(stateFormula.asAtomicExpressionFormula()));
291 } else if (stateFormula.isAtomicLabelFormula()) {
292 return this->checkAtomicLabelFormula(env, checkTask.substituteFormula(stateFormula.asAtomicLabelFormula()));
293 } else if (stateFormula.isGameFormula()) {
294 return this->checkGameFormula(env, checkTask.substituteFormula(stateFormula.asGameFormula()));
295 } else if (stateFormula.isMultiObjectiveFormula()) {
296 auto const& mof = stateFormula.asMultiObjectiveFormula();
297 if (mof.isLexicographic()) {
298 return this->checkLexObjectiveFormula(env, checkTask.substituteFormula(mof));
299 } else {
300 STORM_LOG_ASSERT(mof.isTradeoff(), "Unexpected multi-objective formula type.");
301 return this->checkMultiObjectiveFormula(env, checkTask.substituteFormula(mof));
302 }
303 } else if (stateFormula.isQuantileFormula()) {
304 return this->checkQuantileFormula(env, checkTask.substituteFormula(stateFormula.asQuantileFormula()));
305 }
306 STORM_LOG_THROW(false, storm::exceptions::InvalidArgumentException, "The given formula '" << stateFormula << "' is invalid.");
307}
308
309template<typename ModelType>
312 storm::logic::AtomicExpressionFormula const& stateFormula = checkTask.getFormula();
313 std::stringstream stream;
314 stream << stateFormula.getExpression();
315 return this->checkAtomicLabelFormula(env, checkTask.substituteFormula(storm::logic::AtomicLabelFormula(stream.str())));
316}
317
318template<typename ModelType>
321 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
322 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
323}
324
325template<typename ModelType>
328 storm::logic::BinaryBooleanStateFormula const& stateFormula = checkTask.getFormula();
330 storm::exceptions::InvalidArgumentException, "The given formula is invalid.");
331
332 std::unique_ptr<CheckResult> leftResult =
333 this->check(env, checkTask.template substituteFormula<storm::logic::Formula>(stateFormula.getLeftSubformula().asStateFormula()));
334 std::unique_ptr<CheckResult> rightResult =
335 this->check(env, checkTask.template substituteFormula<storm::logic::Formula>(stateFormula.getRightSubformula().asStateFormula()));
336
337 STORM_LOG_THROW(leftResult->isQualitative() && rightResult->isQualitative(), storm::exceptions::InternalTypeErrorException,
338 "Expected qualitative results.");
339
340 if (stateFormula.isAnd()) {
341 leftResult->asQualitativeCheckResult() &= rightResult->asQualitativeCheckResult();
342 } else if (stateFormula.isOr()) {
343 leftResult->asQualitativeCheckResult() |= rightResult->asQualitativeCheckResult();
344 } else {
345 STORM_LOG_THROW(false, storm::exceptions::InvalidArgumentException, "The given formula '" << stateFormula << "' is invalid.");
346 }
347
348 return leftResult;
349}
350
351template<typename ModelType>
354 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
355 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
356}
357
358template<typename ModelType>
361 storm::logic::ProbabilityOperatorFormula const& stateFormula = checkTask.getFormula();
362 std::unique_ptr<CheckResult> result = this->computeProbabilities(env, checkTask.substituteFormula(stateFormula.getSubformula()));
363
364 if (checkTask.isBoundSet()) {
365 STORM_LOG_THROW(result->isQuantitative(), storm::exceptions::InvalidOperationException,
366 "Unable to perform comparison operation on non-quantitative result.");
367 return result->asQuantitativeCheckResult<SolutionType>().compareAgainstBound(checkTask.getBoundComparisonType(), checkTask.getBoundThreshold());
368 } else {
369 return result;
370 }
371}
372
373template<typename ModelType>
376 storm::logic::RewardOperatorFormula const& stateFormula = checkTask.getFormula();
377 std::unique_ptr<CheckResult> result = this->computeRewards(env, checkTask.substituteFormula(stateFormula.getSubformula()));
378
379 if (checkTask.isBoundSet()) {
380 STORM_LOG_THROW(result->isQuantitative(), storm::exceptions::InvalidOperationException,
381 "Unable to perform comparison operation on non-quantitative result.");
382 return result->asQuantitativeCheckResult<SolutionType>().compareAgainstBound(checkTask.getBoundComparisonType(), checkTask.getBoundThreshold());
383 } else {
384 return result;
385 }
386}
387
388template<typename ModelType>
391 storm::logic::TimeOperatorFormula const& stateFormula = checkTask.getFormula();
392 STORM_LOG_THROW(stateFormula.getSubformula().isReachabilityTimeFormula(), storm::exceptions::InvalidArgumentException, "The given formula is invalid.");
393
394 std::unique_ptr<CheckResult> result = this->computeTimes(env, checkTask.substituteFormula(stateFormula.getSubformula()));
395
396 if (checkTask.isBoundSet()) {
397 STORM_LOG_THROW(result->isQuantitative(), storm::exceptions::InvalidOperationException,
398 "Unable to perform comparison operation on non-quantitative result.");
399 return result->asQuantitativeCheckResult<SolutionType>().compareAgainstBound(checkTask.getBoundComparisonType(), checkTask.getBoundThreshold());
400 } else {
401 return result;
402 }
403}
404
405template<typename ModelType>
408 storm::logic::LongRunAverageOperatorFormula const& stateFormula = checkTask.getFormula();
409 STORM_LOG_THROW(stateFormula.getSubformula().isStateFormula(), storm::exceptions::InvalidArgumentException, "The given formula is invalid.");
410
411 std::unique_ptr<CheckResult> result =
413
414 if (checkTask.isBoundSet()) {
415 STORM_LOG_THROW(result->isQuantitative(), storm::exceptions::InvalidOperationException,
416 "Unable to perform comparison operation on non-quantitative result.");
417 return result->asQuantitativeCheckResult<SolutionType>().compareAgainstBound(checkTask.getBoundComparisonType(), checkTask.getBoundThreshold());
418 } else {
419 return result;
420 }
421}
422
423template<typename ModelType>
426 storm::logic::UnaryBooleanStateFormula const& stateFormula = checkTask.getFormula();
427 std::unique_ptr<CheckResult> subResult = this->check(env, checkTask.template substituteFormula<storm::logic::Formula>(stateFormula.getSubformula()));
428 STORM_LOG_THROW(subResult->isQualitative(), storm::exceptions::InternalTypeErrorException, "Expected qualitative result.");
429 if (stateFormula.isNot()) {
430 subResult->asQualitativeCheckResult().complement();
431 } else {
432 STORM_LOG_THROW(false, storm::exceptions::InvalidArgumentException, "The given formula '" << stateFormula << "' is invalid.");
433 }
434 return subResult;
435}
436
437template<typename ModelType>
440 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
441 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
442}
443
444template<typename ModelType>
447 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
448 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
449}
450
451template<typename ModelType>
454 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
455 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
456}
457
458template<typename ModelType>
461 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException,
462 "This model checker (" << getClassName() << ") does not support the formula: " << checkTask.getFormula() << ".");
463}
464
466// Explicitly instantiate the template class.
468// Sparse
476
479
482
490
497
501
505
506// DD
531} // namespace modelchecker
532} // namespace storm
storm::expressions::Expression const & getExpression() const
Formula const & getRightSubformula() const
Formula const & getLeftSubformula() const
TotalRewardFormula & asTotalRewardFormula()
Definition Formula.cpp:467
HOAPathFormula & asHOAPathFormula()
Definition Formula.cpp:331
virtual bool isUnaryBooleanStateFormula() const
Definition Formula.cpp:54
RewardOperatorFormula & asRewardOperatorFormula()
Definition Formula.cpp:514
virtual bool isDiscountedCumulativeRewardFormula() const
Definition Formula.cpp:162
virtual bool isReachabilityRewardFormula() const
Definition Formula.cpp:170
virtual bool isGloballyFormula() const
Definition Formula.cpp:110
GameFormula & asGameFormula()
Definition Formula.cpp:403
virtual bool isBooleanLiteralFormula() const
Definition Formula.cpp:66
virtual bool isMultiObjectiveFormula() const
Definition Formula.cpp:34
UntilFormula & asUntilFormula()
Definition Formula.cpp:339
virtual bool isBinaryBooleanStateFormula() const
Definition Formula.cpp:50
virtual bool isNextFormula() const
Definition Formula.cpp:146
BoundedUntilFormula & asBoundedUntilFormula()
Definition Formula.cpp:363
virtual bool isInstantaneousRewardFormula() const
Definition Formula.cpp:166
static std::shared_ptr< Formula const > getTrueFormula()
Definition Formula.cpp:227
virtual bool isReachabilityTimeFormula() const
Definition Formula.cpp:186
LongRunAverageOperatorFormula & asLongRunAverageOperatorFormula()
Definition Formula.cpp:443
virtual bool isQuantileFormula() const
Definition Formula.cpp:38
virtual bool isReachabilityProbabilityFormula() const
Definition Formula.cpp:106
LongRunAverageRewardFormula & asLongRunAverageRewardFormula()
Definition Formula.cpp:498
BinaryBooleanStateFormula & asBinaryBooleanStateFormula()
Definition Formula.cpp:291
virtual bool isProbabilityOperatorFormula() const
Definition Formula.cpp:194
virtual bool isCumulativeRewardFormula() const
Definition Formula.cpp:158
ProbabilityOperatorFormula & asProbabilityOperatorFormula()
Definition Formula.cpp:506
DiscountedCumulativeRewardFormula & asDiscountedCumulativeRewardFormula()
Definition Formula.cpp:475
BooleanLiteralFormula & asBooleanLiteralFormula()
Definition Formula.cpp:307
ConditionalFormula & asConditionalFormula()
Definition Formula.cpp:283
EventuallyFormula & asReachabilityTimeFormula()
Definition Formula.cpp:395
GloballyFormula & asGloballyFormula()
Definition Formula.cpp:411
AtomicExpressionFormula & asAtomicExpressionFormula()
Definition Formula.cpp:315
DiscountedTotalRewardFormula & asDiscountedTotalRewardFormula()
Definition Formula.cpp:483
UnaryBooleanStateFormula & asUnaryBooleanStateFormula()
Definition Formula.cpp:299
StateFormula & asStateFormula()
Definition Formula.cpp:243
virtual bool isGameFormula() const
Definition Formula.cpp:190
virtual bool isUntilFormula() const
Definition Formula.cpp:86
QuantileFormula & asQuantileFormula()
Definition Formula.cpp:259
virtual bool isRewardOperatorFormula() const
Definition Formula.cpp:198
virtual bool isLongRunAverageRewardFormula() const
Definition Formula.cpp:174
PathFormula & asPathFormula()
Definition Formula.cpp:235
TimeOperatorFormula & asTimeOperatorFormula()
Definition Formula.cpp:451
InstantaneousRewardFormula & asInstantaneousRewardFormula()
Definition Formula.cpp:490
virtual bool isLongRunAverageOperatorFormula() const
Definition Formula.cpp:150
virtual bool isBoundedUntilFormula() const
Definition Formula.cpp:90
NextFormula & asNextFormula()
Definition Formula.cpp:435
EventuallyFormula & asReachabilityRewardFormula()
Definition Formula.cpp:379
virtual bool isHOAPathFormula() const
Definition Formula.cpp:114
virtual bool isDiscountedTotalRewardFormula() const
Definition Formula.cpp:182
virtual bool isConditionalRewardFormula() const
Definition Formula.cpp:130
virtual bool isTimeOperatorFormula() const
Definition Formula.cpp:154
virtual bool isStateFormula() const
Definition Formula.cpp:30
MultiObjectiveFormula & asMultiObjectiveFormula()
Definition Formula.cpp:251
virtual bool isTotalRewardFormula() const
Definition Formula.cpp:178
AtomicLabelFormula & asAtomicLabelFormula()
Definition Formula.cpp:323
CumulativeRewardFormula & asCumulativeRewardFormula()
Definition Formula.cpp:459
EventuallyFormula & asReachabilityProbabilityFormula()
Definition Formula.cpp:387
virtual bool isConditionalProbabilityFormula() const
Definition Formula.cpp:126
virtual bool isAtomicLabelFormula() const
Definition Formula.cpp:82
std::shared_ptr< Formula const > asSharedPointer()
Definition Formula.cpp:601
virtual bool isAtomicExpressionFormula() const
Definition Formula.cpp:78
virtual bool hasQualitativeResult() const
Definition Formula.cpp:210
FormulaInformation info(bool recurseIntoOperators=true) const
Definition Formula.cpp:223
Formula const & getSubformula() const
Formula const & getSubformula() const
virtual std::unique_ptr< CheckResult > computeProbabilities(Environment const &env, CheckTask< storm::logic::Formula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeCumulativeRewards(Environment const &env, CheckTask< storm::logic::CumulativeRewardFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeDiscountedCumulativeRewards(Environment const &env, CheckTask< storm::logic::DiscountedCumulativeRewardFormula, SolutionType > const &checkTask)
typename GetSolutionType< ValueType, void >::type SolutionType
virtual std::unique_ptr< CheckResult > computeGloballyProbabilities(Environment const &env, CheckTask< storm::logic::GloballyFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > checkLongRunAverageOperatorFormula(Environment const &env, CheckTask< storm::logic::LongRunAverageOperatorFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > check(Environment const &env, CheckTask< storm::logic::Formula, SolutionType > const &checkTask)
Checks the provided formula.
virtual bool canHandle(CheckTask< storm::logic::Formula, SolutionType > const &checkTask) const =0
Determines whether the model checker can handle the given verification task.
virtual std::unique_ptr< CheckResult > computeLTLProbabilities(Environment const &env, CheckTask< storm::logic::PathFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > checkRewardOperatorFormula(Environment const &env, CheckTask< storm::logic::RewardOperatorFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > checkAtomicLabelFormula(Environment const &env, CheckTask< storm::logic::AtomicLabelFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > checkQuantileFormula(Environment const &env, CheckTask< storm::logic::QuantileFormula, SolutionType > const &checkTask)
std::unique_ptr< CheckResult > computeStateFormulaProbabilities(Environment const &env, CheckTask< storm::logic::Formula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > checkUnaryBooleanStateFormula(Environment const &env, CheckTask< storm::logic::UnaryBooleanStateFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > checkProbabilityOperatorFormula(Environment const &env, CheckTask< storm::logic::ProbabilityOperatorFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeTimes(Environment const &env, CheckTask< storm::logic::Formula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeConditionalRewards(Environment const &env, CheckTask< storm::logic::ConditionalFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > checkGameFormula(Environment const &env, CheckTask< storm::logic::GameFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > checkTimeOperatorFormula(Environment const &env, CheckTask< storm::logic::TimeOperatorFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > checkStateFormula(Environment const &env, CheckTask< storm::logic::StateFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeReachabilityRewards(Environment const &env, CheckTask< storm::logic::EventuallyFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > checkBinaryBooleanStateFormula(Environment const &env, CheckTask< storm::logic::BinaryBooleanStateFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeLongRunAverageProbabilities(Environment const &env, CheckTask< storm::logic::StateFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeUntilProbabilities(Environment const &env, CheckTask< storm::logic::UntilFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > checkLexObjectiveFormula(Environment const &env, CheckTask< storm::logic::MultiObjectiveFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeLongRunAverageRewards(Environment const &env, CheckTask< storm::logic::LongRunAverageRewardFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeHOAPathProbabilities(Environment const &env, CheckTask< storm::logic::HOAPathFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > checkMultiObjectiveFormula(Environment const &env, CheckTask< storm::logic::MultiObjectiveFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeReachabilityProbabilities(Environment const &env, CheckTask< storm::logic::EventuallyFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeConditionalProbabilities(Environment const &env, CheckTask< storm::logic::ConditionalFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > checkBooleanLiteralFormula(Environment const &env, CheckTask< storm::logic::BooleanLiteralFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeRewards(Environment const &env, CheckTask< storm::logic::Formula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeInstantaneousRewards(Environment const &env, CheckTask< storm::logic::InstantaneousRewardFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeNextProbabilities(Environment const &env, CheckTask< storm::logic::NextFormula, SolutionType > const &checkTask)
virtual std::string getClassName() const
Returns the name of the model checker class (e.g., for display in error messages).
virtual std::unique_ptr< CheckResult > computeReachabilityTimes(Environment const &env, CheckTask< storm::logic::EventuallyFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > checkAtomicExpressionFormula(Environment const &env, CheckTask< storm::logic::AtomicExpressionFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeTotalRewards(Environment const &env, CheckTask< storm::logic::TotalRewardFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeBoundedUntilProbabilities(Environment const &env, CheckTask< storm::logic::BoundedUntilFormula, SolutionType > const &checkTask)
virtual std::unique_ptr< CheckResult > computeDiscountedTotalRewards(Environment const &env, CheckTask< storm::logic::DiscountedTotalRewardFormula, 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
ValueType getBoundThreshold() const
Retrieves the value of the bound (if set).
Definition CheckTask.h:228
storm::logic::ComparisonType const & getBoundComparisonType() const
Retrieves the comparison type of the bound (if set).
Definition CheckTask.h:237
CheckTask< NewFormulaType, ValueType > substituteFormula(NewFormulaType const &newFormula) const
Copies the check task from the source while replacing the formula with the new one.
Definition CheckTask.h:54
FormulaType const & getFormula() const
Retrieves the formula from this task.
Definition CheckTask.h:142
#define STORM_LOG_THROW_UNCONDITIONALLY(exception, message)
Definition macros.h:48
#define STORM_LOG_ASSERT(cond, message)
Definition macros.h:9
#define STORM_LOG_THROW(cond, exception, message)
Definition macros.h:39
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)
The contract of a DD backend.
static const storm::dd::DdType ddType