Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
ModuleAbstractor.h
Go to the documentation of this file.
1#pragma once
2
4
6
8
10
12
13namespace storm {
14namespace prism {
15// Forward-declare concrete module class.
16class Module;
17} // namespace prism
18} // namespace storm
19
20namespace storm::gbar {
21namespace abstraction {
22template<storm::dd::DdType DdType>
23class AbstractionInformation;
24
25template<storm::dd::DdType DdType>
26struct BottomStateResult;
27
28template<storm::dd::DdType DdType>
29struct GameBddResult;
30
31namespace prism {
32template<storm::dd::DdType DdType, typename ValueType>
34 public:
43 ModuleAbstractor(storm::prism::Module const& module, AbstractionInformation<DdType>& abstractionInformation,
44 std::shared_ptr<storm::utility::solver::SmtSolverFactory> const& smtSolverFactory, bool useDecomposition, bool addPredicatesForValidBlocks,
45 bool debug);
46
51
57 void refine(std::vector<uint_fast64_t> const& predicates);
58
65 storm::expressions::Expression const& getGuard(uint64_t player1Choice) const;
66
70 uint64_t getNumberOfUpdates(uint64_t player1Choice) const;
71
76 std::map<storm::expressions::Variable, storm::expressions::Expression> getVariableUpdates(uint64_t player1Choice, uint64_t auxiliaryChoice) const;
77
81 std::set<storm::expressions::Variable> const& getAssignedVariables(uint64_t player1Choice) const;
82
89
97 BottomStateResult<DdType> getBottomStateTransitions(storm::dd::Bdd<DdType> const& reachableStates, uint_fast64_t numberOfPlayer2Variables);
98
105
111 std::vector<CommandAbstractor<DdType, ValueType>> const& getCommands() const;
112
118 std::vector<CommandAbstractor<DdType, ValueType>>& getCommands();
119
121
122 private:
128 AbstractionInformation<DdType> const& getAbstractionInformation() const;
129
130 // A factory that can be used to create new SMT solvers.
131 std::shared_ptr<storm::utility::solver::SmtSolverFactory> smtSolverFactory;
132
133 // The DD-related information.
134 std::reference_wrapper<AbstractionInformation<DdType> const> abstractionInformation;
135
136 // The abstract commands of the abstract module.
137 std::vector<CommandAbstractor<DdType, ValueType>> commands;
138
139 // The concrete module this abstract module refers to.
140 std::reference_wrapper<storm::prism::Module const> module;
141};
142} // namespace prism
143} // namespace abstraction
144} // namespace storm::gbar
BottomStateResult< DdType > getBottomStateTransitions(storm::dd::Bdd< DdType > const &reachableStates, uint_fast64_t numberOfPlayer2Variables)
Retrieves the transitions to bottom states of this module.
std::map< storm::expressions::Variable, storm::expressions::Expression > getVariableUpdates(uint64_t player1Choice, uint64_t auxiliaryChoice) const
Retrieves a mapping from variables to expressions that define their updates wrt.
storm::dd::Add< DdType, ValueType > getCommandUpdateProbabilitiesAdd() const
Retrieves an ADD that maps the encodings of commands and their updates to their probabilities.
void refine(std::vector< uint_fast64_t > const &predicates)
Refines the abstract module with the given predicates.
ModuleAbstractor & operator=(ModuleAbstractor const &)=default
GameBddResult< DdType > abstract()
Computes the abstraction of the module wrt.
ModuleAbstractor(ModuleAbstractor &&)=default
ModuleAbstractor(ModuleAbstractor const &)=default
std::vector< CommandAbstractor< DdType, ValueType > > const & getCommands() const
Retrieves the abstract commands of this abstract module.
ModuleAbstractor & operator=(ModuleAbstractor &&)=default
storm::expressions::Expression const & getGuard(uint64_t player1Choice) const
Retrieves the guard of the given player 1 choice.
std::set< storm::expressions::Variable > const & getAssignedVariables(uint64_t player1Choice) const
Retrieves the variables assigned by the given player 1 choice.
uint64_t getNumberOfUpdates(uint64_t player1Choice) const
Retrieves the number of updates of the specified player 1 choice.
LabParser.cpp.
Definition cli.cpp:18