Storm 1.11.1.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
SparseInstantiationModelChecker.cpp
Go to the documentation of this file.
2
7
8namespace storm {
9namespace modelchecker {
10
11template<typename SparseModelType, typename ConstantType>
13 : parametricModel(parametricModel), instantiationsAreGraphPreserving(false) {
14 // Intentionally left empty
15}
16
17template<typename SparseModelType, typename ConstantType>
20 currentFormula = checkTask.getFormula().asSharedPointer();
21 currentCheckTask = std::make_unique<storm::modelchecker::CheckTask<storm::logic::Formula, ConstantType>>(
22 checkTask.substituteFormula(*currentFormula).template convertValueType<ConstantType>());
23}
24
25template<typename SparseModelType, typename ConstantType>
27 instantiationsAreGraphPreserving = value;
28}
29
30template<typename SparseModelType, typename ConstantType>
34
35template<typename SparseModelType, typename ConstantType>
37 return parametricModel;
38}
39
43
47
48} // namespace modelchecker
49} // namespace storm
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:52
FormulaType const & getFormula() const
Retrieves the formula from this task.
Definition CheckTask.h:140
Class to efficiently check a formula on a parametric model with different parameter instantiations.
SparseInstantiationModelChecker(SparseModelType const &parametricModel)
void specifyFormula(CheckTask< storm::logic::Formula, typename SparseModelType::ValueType > const &checkTask)