Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
AutomatonAbstractor.h
Go to the documentation of this file.
1#pragma once
2
4
6
8
10
12
13namespace storm {
14namespace jani {
15// Forward-declare concrete automaton class.
16class Automaton;
17} // namespace jani
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
28namespace jani {
29template<storm::dd::DdType DdType, typename ValueType>
31 public:
40 AutomatonAbstractor(storm::jani::Automaton const& automaton, AbstractionInformation<DdType>& abstractionInformation,
41 std::shared_ptr<storm::utility::solver::SmtSolverFactory> const& smtSolverFactory, bool useDecomposition,
42 bool addPredicatesForValidBlocks, bool debug);
43
48
54 void refine(std::vector<uint_fast64_t> const& predicates);
55
62 storm::expressions::Expression const& getGuard(uint64_t player1Choice) const;
63
67 uint64_t getNumberOfUpdates(uint64_t player1Choice) const;
68
73 std::map<storm::expressions::Variable, storm::expressions::Expression> getVariableUpdates(uint64_t player1Choice, uint64_t auxiliaryChoice) const;
74
78 std::set<storm::expressions::Variable> const& getAssignedVariables(uint64_t player1Choice) const;
79
86
94 BottomStateResult<DdType> getBottomStateTransitions(storm::dd::Bdd<DdType> const& reachableStates, uint_fast64_t numberOfPlayer2Variables);
95
102
107
113 std::vector<EdgeAbstractor<DdType, ValueType>> const& getEdges() const;
114
120 std::vector<EdgeAbstractor<DdType, ValueType>>& getEdges();
121
127 std::size_t getNumberOfEdges() const;
128
130
131 private:
137 AbstractionInformation<DdType> const& getAbstractionInformation() const;
138
139 // A factory that can be used to create new SMT solvers.
140 std::shared_ptr<storm::utility::solver::SmtSolverFactory> smtSolverFactory;
141
142 // The DD-related information.
143 std::reference_wrapper<AbstractionInformation<DdType> const> abstractionInformation;
144
145 // The abstract edge of the abstract automaton.
146 std::vector<EdgeAbstractor<DdType, ValueType>> edges;
147
148 // The concrete module this abstract automaton refers to.
149 std::reference_wrapper<storm::jani::Automaton const> automaton;
150
151 // If the automaton has more than one location, we need variables to encode that.
152 boost::optional<std::pair<storm::expressions::Variable, storm::expressions::Variable>> locationVariables;
153};
154} // namespace jani
155} // namespace abstraction
156} // namespace storm::gbar
std::set< storm::expressions::Variable > const & getAssignedVariables(uint64_t player1Choice) const
Retrieves the variables assigned by the given player 1 choice.
AutomatonAbstractor(AutomatonAbstractor &&)=default
AutomatonAbstractor & operator=(AutomatonAbstractor &&)=default
std::size_t getNumberOfEdges() const
Retrieves the number of abstract edges of this abstract automaton.
AutomatonAbstractor(AutomatonAbstractor const &)=default
BottomStateResult< DdType > getBottomStateTransitions(storm::dd::Bdd< DdType > const &reachableStates, uint_fast64_t numberOfPlayer2Variables)
Retrieves the transitions to bottom states of this automaton.
uint64_t getNumberOfUpdates(uint64_t player1Choice) const
Retrieves the number of updates of the specified player 1 choice.
GameBddResult< DdType > abstract()
Computes the abstraction of the module wrt.
storm::expressions::Expression const & getGuard(uint64_t player1Choice) const
Retrieves the guard of the given player 1 choice.
AutomatonAbstractor & operator=(AutomatonAbstractor const &)=default
storm::dd::Add< DdType, ValueType > getEdgeDecoratorAdd() const
Retrieves an ADD that maps the encodings of edges, source/target locations and their updates to their...
std::vector< EdgeAbstractor< DdType, ValueType > > const & getEdges() const
Retrieves the abstract edges of this abstract automton.
void refine(std::vector< uint_fast64_t > const &predicates)
Refines the abstract automaton with the given predicates.
storm::dd::Bdd< DdType > getInitialLocationsBdd() const
Retrieves a BDD that encodes all initial locations of this abstract automaton.
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.
LabParser.cpp.
Definition cli.cpp:18