28 if (input.
model && input.
model.get().isJaniModel()) {
30 if (ioSettings.isExportJaniDotSet()) {
44 STORM_PRINT(
"Time for computation: " << *watch <<
".\n");
51template<
typename ModelType>
52 requires(!std::derived_from<ModelType, storm::models::sparse::Model<double>>)
54 STORM_LOG_THROW(
false, storm::exceptions::NotSupportedException,
"Counterexample generation is not supported for this data-type.");
57template<
typename ModelType>
58 requires(std::derived_from<ModelType, storm::models::sparse::Model<double>>)
60 using ValueType =
typename ModelType::ValueType;
62 for (
auto& rewModel : sparseModel->getRewardModels()) {
63 rewModel.second.reduceToStateBasedRewards(sparseModel->getTransitionMatrix(),
true);
67 storm::exceptions::NotSupportedException,
"Counterexample is currently only supported for discrete-time models.");
70 if (counterexampleSettings.isMinimalCommandSetGenerationSet()) {
71 bool useMilp = counterexampleSettings.isUseMilpBasedMinimalCommandSetGenerationSet();
75 for (
auto const& property : input.
properties) {
76 std::shared_ptr<storm::counterexamples::Counterexample> counterexample;
81 "Counterexample generation using MILP is currently only supported for MDPs.");
84 property.getRawFormula(), counterexampleSettings.isUseSchedulerCutsSet());
87 storm::exceptions::NotSupportedException,
88 "Counterexample generation using MaxSAT is currently only supported for discrete-time models.");
93 property.getRawFormula(), maxSmtOptions);
102 }
else if (counterexampleSettings.isShortestPathGenerationSet()) {
103 for (
auto const& property : input.
properties) {
104 std::shared_ptr<storm::counterexamples::Counterexample> counterexample;
108 "Counterexample generation using shortest paths is currently only supported for DTMCs.");
110 property.getRawFormula(), counterexampleSettings.getShortestPathMaxK());
115 STORM_LOG_THROW(
false, storm::exceptions::NotSupportedException,
"The selected counterexample formalism is unsupported.");
119template<
typename ValueType>
122 if (result->isQuantitative()) {
134 STORM_LOG_THROW(
false, storm::exceptions::NotSupportedException,
"Outputting states is not supported.");
139 STORM_LOG_THROW(
false, storm::exceptions::InvalidArgumentException,
"Filter type only defined for qualitative results.");
142 STORM_LOG_THROW(
false, storm::exceptions::InvalidArgumentException,
"Unhandled filter type.");
144 auto const aggregate = result->asQuantitativeCheckResult<ValueType>().aggregate(ft);
145 auto const printSide = [](std::optional<storm::utility::ExtendedValueType<ValueType>>
const& value,
bool approximate) {
150 }
else if (approximate) {
157 bool const approximates =
159 printSide(aggregate.value,
false);
162 printSide(aggregate.value,
true);
166 if (aggregate.hasLower() && aggregate.hasUpper() && *aggregate.lower == *aggregate.upper) {
168 }
else if (aggregate.hasLower() || aggregate.hasUpper()) {
170 printSide(aggregate.lower,
false);
172 printSide(aggregate.upper,
false);
176 printSide(aggregate.lower,
true);
178 printSide(aggregate.upper,
true);
184 }
else if (result->isExplicitCertificateCheckResult()) {
194 STORM_PRINT(result->asQualitativeCheckResult().existsTrue());
197 STORM_PRINT(result->asQualitativeCheckResult().forallTrue());
200 STORM_PRINT(result->asQualitativeCheckResult().count());
204 STORM_LOG_THROW(
false, storm::exceptions::NotSupportedException,
"Outputting states is not supported.");
210 STORM_LOG_THROW(
false, storm::exceptions::InvalidArgumentException,
"Filter type only defined for quantitative results.");
216template<
typename ValueType>
221 std::stringstream ss;
222 ss <<
"'" << filterStatesFormula <<
"'";
224 <<
" (for " << (filterStatesFormula.isInitialFormula() ?
"initial" : ss.str()) <<
" states): ");
227 STORM_PRINT(
"Time for model checking: " << *watch <<
".\n");
230 STORM_LOG_ERROR(
"Property is unsupported by selected engine/settings.\n");
234template<
typename ValueType>
240using VerificationCallbackType = std::function<std::unique_ptr<storm::modelchecker::CheckResult>(std::shared_ptr<storm::logic::Formula const>
const& formula,
241 std::shared_ptr<storm::logic::Formula const>
const& states)>;
245 void operator()(std::unique_ptr<storm::modelchecker::CheckResult>
const&) {
256template<
typename ValueType>
257std::unique_ptr<storm::modelchecker::CheckResult>
verifyProperty(std::shared_ptr<storm::logic::Formula const>
const& formula,
258 std::shared_ptr<storm::logic::Formula const>
const& statesFilter,
264 STORM_LOG_ASSERT(!transformationSettings.isChainEliminationSet() && !transformationSettings.isToNondeterministicModelSet(),
265 "Unsupported transformation has been invoked.");
266 return verificationCallback(formula, statesFilter);
269 STORM_LOG_WARN(
"Property is not preserved by elimination of non-markovian states.");
270 }
else if (transformationSettings.isToDiscreteTimeModelSet()) {
273 if (transformedFormula && transformedStatesFilter) {
275 return verificationCallback(transformedFormula, transformedStatesFilter);
277 STORM_LOG_WARN(
"Property is not preserved by transformation to discrete time model.");
281 return verificationCallback(formula, statesFilter);
295template<
typename ValueType>
299 for (
auto const& property : properties) {
302 auto result =
verifyProperty<ValueType>(property.getRawFormula(), property.getFilter().getStatesFormula(), verificationCallback);
305 postprocessingCallback(result);
320template<
typename ValueType>
321void computeStateValues(std::string
const& description, std::function<std::unique_ptr<storm::modelchecker::CheckResult>()>
const& computationCallback,
326 STORM_PRINT(
"\nComputing " << description <<
" ...\n");
327 std::unique_ptr<storm::modelchecker::CheckResult> result;
329 result = computationCallback();
340 postprocessingCallback(result);
345 for (uint64_t propertyIndex = 0; propertyIndex < properties.size(); ++propertyIndex) {
346 auto const&
property = properties[propertyIndex];
348 if (!property.getRawFormula()->hasQualitativeResult()) {
350 <<
"' can not be used for filtering states as it does not have a qualitative result.");
357 if (propertyFilter) {
359 std::unique_ptr<storm::modelchecker::CheckResult> filteredResult = result->clone();
360 filteredResult->filter(propertyFilter->asQualitativeCheckResult());
361 postprocessingCallback(filteredResult);
363 propertyIndex == properties.size() - 1 ? &watch :
nullptr);
370 std::string
const& constraintsString) {
371 std::vector<storm::expressions::Expression> constraints;
373 std::vector<std::string> constraintsAsStrings;
374 boost::split(constraintsAsStrings, constraintsString, boost::is_any_of(
","));
377 std::unordered_map<std::string, storm::expressions::Expression> variableMapping;
378 for (
auto const& variableTypePair : expressionManager) {
379 variableMapping[variableTypePair.first.getName()] = variableTypePair.first;
383 for (
auto const& constraintString : constraintsAsStrings) {
384 if (constraintString.empty()) {
389 STORM_LOG_TRACE(
"Adding special (user-provided) constraint " << constraint <<
".");
390 constraints.emplace_back(constraint);
398 std::vector<std::vector<storm::expressions::Expression>> injectedRefinementPredicates;
401 std::unordered_map<std::string, storm::expressions::Expression> variableMapping;
402 for (
auto const& variableTypePair : expressionManager) {
403 variableMapping[variableTypePair.first.getName()] = variableTypePair.first;
407 std::vector<std::string> predicateGroupsAsStrings;
408 boost::split(predicateGroupsAsStrings, refinementPredicatesString, boost::is_any_of(
";"));
410 if (!predicateGroupsAsStrings.empty()) {
411 for (
auto const& predicateGroupString : predicateGroupsAsStrings) {
412 if (predicateGroupString.empty()) {
416 std::vector<std::string> predicatesAsStrings;
417 boost::split(predicatesAsStrings, predicateGroupString, boost::is_any_of(
":"));
419 if (!predicatesAsStrings.empty()) {
420 injectedRefinementPredicates.emplace_back();
421 for (
auto const& predicateString : predicatesAsStrings) {
423 STORM_LOG_TRACE(
"Adding special (user-provided) refinement predicate " << predicateString <<
".");
424 injectedRefinementPredicates.back().emplace_back(predicate);
427 STORM_LOG_THROW(!injectedRefinementPredicates.back().empty(), storm::exceptions::InvalidArgumentException,
428 "Expecting non-empty list of predicates to inject for each (mentioned) refinement step.");
431 std::reverse(injectedRefinementPredicates.back().begin(), injectedRefinementPredicates.back().end());
436 std::reverse(injectedRefinementPredicates.begin(), injectedRefinementPredicates.end());
439 return injectedRefinementPredicates;
446 if (expressionManager !=
nullptr) {
451 options.
restrictToValidBlocks =
settings.getValidBlockMode() == storm::settings::modules::AbstractionSettings::ValidBlockMode::BlockEnumeration;
471template<storm::dd::DdType DdType,
typename ValueType>
477 std::shared_ptr<storm::logic::Formula const>
const& states) {
478 STORM_LOG_THROW(states->isInitialFormula(), storm::exceptions::NotSupportedException,
"Abstraction-refinement can only filter initial states.");
484template<
typename ValueType>
487 STORM_LOG_THROW((std::is_same<ValueType, double>::value), storm::exceptions::NotSupportedException,
488 "Exploration does not support other data-types than floating points.");
490 input, [&input, &mpi](std::shared_ptr<storm::logic::Formula const>
const& formula, std::shared_ptr<storm::logic::Formula const>
const& states) {
491 STORM_LOG_THROW(states->isInitialFormula(), storm::exceptions::NotSupportedException,
"Exploration can only filter initial states.");
496template<
typename ValueType>
503 std::shared_ptr<storm::logic::Formula const>
const& formula, std::shared_ptr<storm::logic::Formula const>
const& states) {
504 auto createTask = [&ioSettings](
auto const& f,
bool onlyInitialStates) {
506 STORM_LOG_THROW(ioSettings.isUncertaintyResolutionModeSet(), storm::exceptions::InvalidSettingsException,
507 "Uncertainty resolution mode required for uncertain (interval) models.");
514 bool const filterForInitialStates = states->isInitialFormula();
515 auto task = createTask(formula, filterForInitialStates);
516 if (ioSettings.isExportSchedulerSet()) {
517 task.setProduceSchedulers(
true);
519 if (produceCertificate) {
520 task.setProduceCertificate(
true);
522 std::unique_ptr<storm::modelchecker::CheckResult> result =
525 std::unique_ptr<storm::modelchecker::CheckResult> filter;
526 if (filterForInitialStates) {
528 filter = std::make_unique<storm::modelchecker::ExplicitQualitativeCheckResult<SolutionType>>(sparseModel->getInitialStates());
529 }
else if (!states->isTrueFormula()) {
532 if (result && filter) {
533 result->filter(filter->asQualitativeCheckResult());
537 uint64_t exportCount = 0;
538 auto postprocessingCallback = [&sparseModel, &ioSettings, &input, &exportCount](std::unique_ptr<storm::modelchecker::CheckResult>
const& result) {
540 if (result->isExplicitCertificateCheckResult()) {
544 bool const valid = result->template asExplicitCertificateCheckResult<ValueType>().checkValidity(*sparseModel);
551 STORM_LOG_WARN_COND(!ioSettings.isExportSchedulerSet() || result->hasScheduler(),
"Scheduler requested but could not be generated.");
552 if (ioSettings.isExportSchedulerSet() && result->hasScheduler()) {
553 std::filesystem::path schedulerExportPath = ioSettings.getExportSchedulerFilename();
554 if (exportCount > 0) {
555 STORM_LOG_WARN(
"Prepending " << exportCount <<
" to scheduler file name for this property because there are multiple properties.");
556 schedulerExportPath.replace_filename(std::to_string(exportCount) + schedulerExportPath.filename().string());
561 "No information of state valuations available. The scheduler output will use internal state ids. You might be "
562 "interested in building the model with state valuations using --buildstateval.");
564 sparseModel->hasChoiceLabeling() || sparseModel->hasChoiceOrigins(),
565 "No symbolic choice information is available. The scheduler output will use internal choice ids. You might be interested in "
566 "building the model with choice labels or choice origins using --buildchoicelab or --buildchoiceorig.");
568 "Only partial choice information is available. You might want to build the model with choice origins using "
569 "--buildchoicelab or --buildchoiceorig.");
571 if (result->isExplicitQuantitativeCheckResult()) {
573 STORM_LOG_THROW(
false, storm::exceptions::NotSupportedException,
"Scheduler export for interval models is not supported.");
576 schedulerExportPath.string());
578 }
else if (result->isExplicitParetoCurveCheckResult()) {
580 STORM_LOG_THROW(
false, storm::exceptions::NotSupportedException,
"Scheduler export for models of this value type is not supported.");
582 auto const& paretoRes = result->template asExplicitParetoCurveCheckResult<ValueType>();
585 }
else if (result->isExplicitQualitativeCheckResult()) {
587 STORM_LOG_THROW(
false, storm::exceptions::NotSupportedException,
"Scheduler export for interval models is not supported.");
590 schedulerExportPath.string());
593 STORM_LOG_THROW(
false, storm::exceptions::NotSupportedException,
"Scheduler export not supported for this value type.");
598 if (ioSettings.isExportCheckResultSet()) {
600 STORM_LOG_THROW(
false, storm::exceptions::NotSupportedException,
"Result export for interval models is not supported.");
602 std::filesystem::path resultExportPath = ioSettings.getExportCheckResultFilename();
603 if (exportCount > 0) {
604 STORM_LOG_WARN(
"Prepending " << exportCount <<
" to result file name for this property because there are multiple properties.");
605 resultExportPath.replace_filename(std::to_string(exportCount) + resultExportPath.filename().string());
608 "No information of state valuations available. The result output will use internal state ids. You might be interested in "
609 "building the model with state valuations using --buildstateval.");
615 if (!(ioSettings.isComputeSteadyStateDistributionSet() || ioSettings.isComputeExpectedVisitingTimesSet())) {
618 if (ioSettings.isComputeSteadyStateDistributionSet()) {
620 STORM_LOG_THROW(
false, storm::exceptions::NotSupportedException,
"Computing steady state distribution is not supported for interval models.");
623 "steady-state probabilities",
625 verificationCallback, postprocessingCallback);
628 if (ioSettings.isComputeExpectedVisitingTimesSet()) {
630 STORM_LOG_THROW(
false, storm::exceptions::NotSupportedException,
"Computing expected visiting times is not supported for interval models.");
633 "expected visiting times",
635 verificationCallback, postprocessingCallback);
640template<storm::dd::DdType DdType,
typename ValueType>
644 input, [&symbolicModel, &mpi](std::shared_ptr<storm::logic::Formula const>
const& formula, std::shared_ptr<storm::logic::Formula const>
const& states) {
645 bool filterForInitialStates = states->isInitialFormula();
650 std::unique_ptr<storm::modelchecker::CheckResult> filter;
651 if (filterForInitialStates) {
652 filter = std::make_unique<storm::modelchecker::SymbolicQualitativeCheckResult<DdType>>(symbolicModel->getReachableStates(),
653 symbolicModel->getInitialStates());
654 }
else if (!states->isTrueFormula()) {
657 if (result && filter) {
658 result->filter(filter->asQualitativeCheckResult());
664template<storm::dd::DdType DdType,
typename ValueType>
668 input, [&symbolicModel, &mpi](std::shared_ptr<storm::logic::Formula const>
const& formula, std::shared_ptr<storm::logic::Formula const>
const& states) {
669 bool filterForInitialStates = states->isInitialFormula();
672 std::unique_ptr<storm::modelchecker::CheckResult> result =
675 std::unique_ptr<storm::modelchecker::CheckResult> filter;
676 if (filterForInitialStates) {
677 filter = std::make_unique<storm::modelchecker::SymbolicQualitativeCheckResult<DdType>>(symbolicModel->getReachableStates(),
678 symbolicModel->getInitialStates());
679 }
else if (!states->isTrueFormula()) {
682 if (result && filter) {
683 result->filter(filter->asQualitativeCheckResult());
689template<storm::dd::DdType DdType,
typename ValueType>
694 std::shared_ptr<storm::logic::Formula const>
const& states) {
695 STORM_LOG_THROW(states->isInitialFormula(), storm::exceptions::NotSupportedException,
"Abstraction-refinement can only filter initial states.");
701template<storm::dd::DdType DdType,
typename ValueType>
702typename std::enable_if<storm::dd::BackendTraits<DdType>::template supportsValueType<ValueType>,
void>::type
verifyModel(
714template<storm::dd::DdType DdType,
typename ValueType>
715typename std::enable_if<!storm::dd::BackendTraits<DdType>::template supportsValueType<ValueType>,
void>::type
verifySymbolicModel(
728 [&input, &mpi]<
storm::dd::DdType DD,
typename VT>() { verifyWithAbstractionRefinementEngine<DD, VT>(input, mpi); });
734 if (counterexampleSettings.isCounterexampleSet()) {
This class represents the base class of all exception classes.
virtual const char * what() const noexcept override
Retrieves the message associated with this exception.
This class is responsible for managing a set of typed variables and all expressions using these varia...
std::shared_ptr< storm::logic::Formula const > const & getStatesFormula() const
storm::modelchecker::FilterType getFilterType() const
std::shared_ptr< storm::logic::Formula const > getRawFormula() const
FilterExpression const & getFilter() const
storm::jani::Model const & asJaniModel() const
This class represents a discrete-time Markov chain.
This class represents a (discrete-time) Markov decision process.
Base class for all sparse models.
Base class for all symbolic models.
storm::expressions::Expression parseFromString(std::string const &expressionString, bool ignoreError=false) const
Parses an expression from the given string.
void setIdentifierMapping(qi::symbols< char, storm::expressions::Expression > const *identifiers_)
Sets an identifier mapping that is used to determine valid variables in the expression.
This class represents the settings for the abstraction procedures.
A class that provides convenience operations to display run times.
void stop()
Stop stopwatch and add measured time to total time.
#define STORM_LOG_WARN(message)
#define STORM_LOG_TRACE(message)
#define STORM_LOG_ERROR(message)
#define STORM_LOG_ASSERT(cond, message)
#define STORM_LOG_WARN_COND(cond, message)
#define STORM_LOG_THROW(cond, exception, message)
std::unique_ptr< storm::modelchecker::CheckResult > verifyWithHybridEngine(storm::Environment const &env, std::shared_ptr< storm::models::symbolic::Dtmc< DdType, ValueType > > const &dtmc, storm::modelchecker::CheckTask< storm::logic::Formula, ValueType > const &task)
void exportScheduler(std::shared_ptr< storm::models::sparse::Model< ValueType > > const &model, storm::storage::Scheduler< ValueType > const &scheduler, std::string const &filename)
storm::modelchecker::CheckTask< storm::logic::Formula, ValueType > createTask(std::shared_ptr< const storm::logic::Formula > const &formula, bool onlyInitialStatesRelevant=false)
std::shared_ptr< storm::counterexamples::Counterexample > computeHighLevelCounterexampleMaxSmt(storm::Environment const &env, storm::languages::SymbolicModelDescription const &symbolicModel, std::shared_ptr< storm::models::sparse::Model< double > > model, std::shared_ptr< storm::logic::Formula const > const &formula, storm::counterexamples::SMTMinimalLabelSetGenerator< double >::Options const &options)
void exportJaniModelAsDot(storm::jani::Model const &model, std::string const &filename)
std::unique_ptr< storm::modelchecker::CheckResult > computeExpectedVisitingTimesWithSparseEngine(storm::Environment const &env, std::shared_ptr< storm::models::sparse::Dtmc< ValueType > > const &dtmc)
std::unique_ptr< storm::modelchecker::CheckResult > verifyWithDdEngine(storm::Environment const &env, std::shared_ptr< storm::models::symbolic::Dtmc< DdType, ValueType > > const &dtmc, storm::modelchecker::CheckTask< storm::logic::Formula, ValueType > const &task)
std::shared_ptr< storm::logic::Formula const > checkAndTransformContinuousToDiscreteTimeFormula(storm::logic::Formula const &formula, std::string const &timeRewardName="_time")
std::shared_ptr< storm::counterexamples::Counterexample > computeHighLevelCounterexampleMilp(storm::Environment const &env, storm::languages::SymbolicModelDescription const &symbolicModel, std::shared_ptr< storm::models::sparse::Mdp< double > > mdp, std::shared_ptr< storm::logic::Formula const > const &formula, bool includeSchedulerCuts)
void exportCheckResultToJson(std::shared_ptr< storm::models::sparse::Model< ValueType > > const &model, std::unique_ptr< storm::modelchecker::CheckResult > const &checkResult, std::string const &filename)
std::shared_ptr< storm::counterexamples::Counterexample > computeKShortestPathCounterexample(std::shared_ptr< storm::models::sparse::Model< double > > model, std::shared_ptr< storm::logic::Formula const > const &formula, size_t maxK)
std::unique_ptr< storm::modelchecker::CheckResult > verifyWithExplorationEngine(storm::Environment const &env, storm::languages::SymbolicModelDescription const &model, storm::modelchecker::CheckTask< storm::logic::Formula, ValueType > const &task)
void exportParetoScheduler(std::shared_ptr< storm::models::sparse::Model< ValueType > > const &model, std::vector< PointType > const &points, std::vector< storm::storage::Scheduler< ValueType > > const &schedulers, std::string const &baseFilenameStr)
std::unique_ptr< storm::modelchecker::CheckResult > verifyWithSparseEngine(storm::Environment const &env, std::shared_ptr< storm::models::sparse::Dtmc< ValueType > > const &dtmc, storm::modelchecker::CheckTask< storm::logic::Formula, ValueType > const &task, bool preferEliminationChecker=false)
std::unique_ptr< storm::modelchecker::CheckResult > computeSteadyStateDistributionWithSparseEngine(storm::Environment const &env, std::shared_ptr< storm::models::sparse::Dtmc< ValueType > > const &dtmc)
void exportSymbolicInput(SymbolicInput const &input)
void verifyWithAbstractionRefinementEngine(SymbolicInput const &input, ModelProcessingInformation const &mpi)
void verifyModel(std::shared_ptr< storm::models::sparse::Model< ValueType > > const &sparseModel, SymbolicInput const &input, ModelProcessingInformation const &mpi)
auto castAndApply(std::shared_ptr< storm::models::ModelBase > const &model, auto const &callback)
void verifyWithExplorationEngine(SymbolicInput const &input, ModelProcessingInformation const &mpi)
std::enable_if<!storm::dd::BackendTraits< DdType >::templatesupportsValueType< ValueType >, void >::type verifySymbolicModel(std::shared_ptr< storm::models::ModelBase > const &, SymbolicInput const &, ModelProcessingInformation const &)
void printResult(std::unique_ptr< storm::modelchecker::CheckResult > const &result, storm::logic::Formula const &filterStatesFormula, storm::modelchecker::FilterType const &filterType, storm::utility::Stopwatch *watch=nullptr)
auto applyValueType(ModelProcessingInformation::ValueType vt, auto const &callback)
std::shared_ptr< storm::models::ModelBase > buildPreprocessExportModel(SymbolicInput const &input, ModelProcessingInformation const &mpi)
void verifyProperties(SymbolicInput const &input, VerificationCallbackType const &verificationCallback, PostprocessingCallbackType const &postprocessingCallback=PostprocessingIdentity())
Verifies all (potentially preprocessed) properties given in input.
std::vector< storm::expressions::Expression > parseConstraints(storm::expressions::ExpressionManager const &expressionManager, std::string const &constraintsString)
std::vector< std::vector< storm::expressions::Expression > > parseInjectedRefinementPredicates(storm::expressions::ExpressionManager const &expressionManager, std::string const &refinementPredicatesString)
void generateCounterexamples(std::shared_ptr< ModelType > const &, SymbolicInput const &, ModelProcessingInformation const &)
void verifyWithDdEngine(std::shared_ptr< storm::models::symbolic::Model< DdType, ValueType > > const &symbolicModel, SymbolicInput const &input, ModelProcessingInformation const &mpi)
std::function< std::unique_ptr< storm::modelchecker::CheckResult >(std::shared_ptr< storm::logic::Formula const > const &formula, std::shared_ptr< storm::logic::Formula const > const &states)> VerificationCallbackType
void printFilteredResult(std::unique_ptr< storm::modelchecker::CheckResult > const &result, storm::modelchecker::FilterType ft)
void computeStateValues(std::string const &description, std::function< std::unique_ptr< storm::modelchecker::CheckResult >()> const &computationCallback, SymbolicInput const &input, VerificationCallbackType const &verificationCallback, PostprocessingCallbackType const &postprocessingCallback=PostprocessingIdentity())
Computes values for each state (such as the steady-state probability distribution).
std::function< void(std::unique_ptr< storm::modelchecker::CheckResult > const &)> PostprocessingCallbackType
void printCounterexample(std::shared_ptr< storm::counterexamples::Counterexample > const &counterexample, storm::utility::Stopwatch *watch=nullptr)
void printModelCheckingProperty(storm::jani::Property const &property)
void verifyWithHybridEngine(std::shared_ptr< storm::models::symbolic::Model< DdType, ValueType > > const &symbolicModel, SymbolicInput const &input, ModelProcessingInformation const &mpi)
void printComputingCounterexample(storm::jani::Property const &property)
auto applyDdLibValueType(storm::dd::DdType dd, ModelProcessingInformation::ValueType vt, auto const &callback)
bool preferEliminationChecker()
Returns whether the settings request to prefer the dedicated elimination model checker.
void processInput(SymbolicInput const &input, ModelProcessingInformation const &mpi)
storm::gbar::api::AbstractionRefinementOptions getAbstractionRefinementOptions(storm::expressions::ExpressionManager const *expressionManager=nullptr)
std::unique_ptr< storm::modelchecker::CheckResult > verifyProperty(std::shared_ptr< storm::logic::Formula const > const &formula, std::shared_ptr< storm::logic::Formula const > const &statesFilter, VerificationCallbackType const &verificationCallback)
Verifies the given formula plus a filter formula to identify relevant states and warns the user in ca...
std::enable_if<!std::is_same< ValueType, storm::RationalFunction >::value, std::unique_ptr< storm::modelchecker::CheckResult > >::type verifyWithAbstractionRefinementEngine(storm::Environment const &env, storm::languages::SymbolicModelDescription const &model, storm::modelchecker::CheckTask< storm::logic::Formula, ValueType > const &task, AbstractionRefinementOptions const &options=AbstractionRefinementOptions())
storm::gbar::abstraction::AbstractionOptions AbstractionRefinementOptions
constexpr bool SupportsCertificates
Certificates can be computed for models with these value types.
std::string toString(FilterType ft)
SettingsType const & getModule()
Get module.
OptimizationDirection convert(OptimizationDirectionSetting s)
bool isTerminate()
Check whether the program should terminate (due to some abort signal).
bool isConstant(ValueType const &)
bool isInfinity(ValueType const &a)
TargetType convertNumber(SourceType const &number)
The contract of a DD backend.
constexpr bool IsIntervalType
Helper to check if a type is an interval.
typename detail::IntervalMetaProgrammingHelper< ValueType >::BaseType IntervalBaseType
Helper to access the type in which interval boundaries are stored.
#define STORM_PRINT_AND_LOG(message)
#define STORM_PRINT(message)
Define the macros that print information to stdout and optionally also log it.
static const bool IsExact
void operator()(std::unique_ptr< storm::modelchecker::CheckResult > const &)
bool useDynamicConstraints
bool useDecomposition
A flag indicating whether decomposition is to be used during the abstraction.
bool relativeTerminationCriterion
A flag indicating whether to use a relative termination criterion.
SolveMode solveMode
The mode with which to solve the abstractions.
bool restrictToValidBlocks
A flag indicating whether the abstractor restricts the initial states to valid blocks.
bool useInterpolation
A flag indicating whether interpolation is to be used to eliminate spurious pivot blocks.
ReuseMode reuseMode
The mode determining which results are reused.
bool fixPlayer1Strategy
A flag indicating whether player 1 strategies are to be fixed.
bool debug
A flag indicating whether debug mode is enabled.
std::vector< std::vector< storm::expressions::Expression > > injectedRefinementPredicates
Predicates that are injected (starting with the last one in this list) instead of the derived ones.
bool fixPlayer2Strategy
A flag indicating whether player 2 strategies are to be fixed.
bool addAllInitialExpressions
A flag indicating whether all initial expressions are added as initial predicates.
bool useEagerRefinement
A flag indicating whether to refine eagerly.
SplitMode splitMode
The mode that determines which predicates are split into atoms for the refinement.
bool rankRefinementPredicates
A flag indicating whether refinement predicates are to be ranked.
std::vector< storm::expressions::Expression > constraints
Additional constraints used by the abstraction.
bool addAllGuards
A flag indicating whether all guards are added as initial predicates.
bool restrictToRelevantStates
A flag indicating whether the abstractor restricts the abstraction to relevant states.
uint_fast64_t maximalNumberOfAbstractions
The maximal number of abstractions to perform until giving up on converging.
double precision
The precision used for detecting convergence.
PivotSelectionHeuristic pivotSelectionHeuristic
The heuristic to use for pivot block selection.