|
mCRL2
|
#include <ltsmin.h>
Public Types | |
| enum class | guard_evaluation_t { GUARD_FALSE = 0 , GUARD_TRUE = 1 , GUARD_MAYBE = 2 } |
| guard evaluations have ternary logic. A guard may not always rewrite to true or false More... | |
| using | ltsmin_state_type = int * |
| using | substitution_t = data::rewriter::substitution_type |
| using | datatype_index = std::size_t |
Public Member Functions | |
| std::size_t | process_parameter_count () const |
| Returns the number of process parameters of the LPS. | |
| std::size_t | group_count () const |
| Returns the number of available groups. This equals the number of action summands of the LPS. | |
| lps::specification | reduce_specification (const lps::specification &spec) |
| extracts all guards from the original specification and returns a new one with the guards removed. | |
| pins (const std::string &filename, const std::string &rewriter_strategy) | |
| Constructor. | |
| std::size_t | datatype_count () const |
| Returns the number of unique datatype maps. Note that the datatype map for action labels is included, so this number equals the number of different process parameter types + 1. | |
| pins_data_type & | data_type (std::size_t i) |
| Returns a reference to the datatype map with index i. | |
| const std::vector< std::size_t > & | read_group (std::size_t index) const |
| Indices of process parameters that influence event or next state of a summand by being read. | |
| const std::vector< std::size_t > & | write_group (std::size_t index) const |
| Indices of process parameters that influence event or next state of a summand by being written. | |
| const std::vector< std::size_t > & | update_group (std::size_t index) const |
| Indices of process parameters that influence event or next state of a summand by being read except from the guards. | |
| const std::vector< std::size_t > & | guard_parameters (std::size_t index) const |
| const std::vector< std::size_t > & | guard_info (std::size_t index) const |
| std::size_t | guard_count () const |
| const std::string & | guard_name (std::size_t index) |
| std::string | process_parameter_name (std::size_t i) const |
| Returns a human-readable, unique name for process parameter i. | |
| datatype_index | process_parameter_type (std::size_t i) const |
| Returns the datatype map index corresponding to process parameter i. | |
| std::size_t | edge_label_count () const |
| Returns the number of labels per edge. | |
| datatype_index | edge_label_type (std::size_t) const |
| Returns the datatype map index corresponding to edge label i. | |
| std::string | edge_label_name (std::size_t) const |
| Returns the name of the i-th action label (always "action"). | |
| void | get_initial_state (ltsmin_state_type &s) |
| Assigns the initial state to s. | |
| std::set< std::string > | summand_action_names (std::size_t i) const |
| Returns the names of the actions that appear in the summand with index i, with 0 <= i < group_count(). | |
| template<typename StateFunction > | |
| void | next_state_all (ltsmin_state_type const &src, StateFunction &f, ltsmin_state_type const &dest, int *const &labels) |
| Iterates over the 'next states' of state src, and invokes a callback function for each discovered state. | |
| template<typename StateFunction > | |
| void | next_state_long (ltsmin_state_type const &src, std::size_t group, StateFunction &f, ltsmin_state_type const &dest, int *const &labels) |
| template<typename StateFunction > | |
| void | update_long (ltsmin_state_type const &src, std::size_t group, StateFunction &f, ltsmin_state_type const &dest, int *const &labels) |
| template<typename StateFunction > | |
| void | _long (ltsmin_state_type const &src, std::size_t group, StateFunction &f, const ltsmin_state_type &dest, int *const &labels, generator_type *generator) |
| Iterates over the 'next states' of a particular summand of state src that are generated by a group of summands, and invokes a callback function for each discovered state. | |
| guard_evaluation_t | eval_guard_long (ltsmin_state_type const &src, std::size_t guard) |
| std::string | info () |
| Prints an overview of several relevant attributes. | |
Static Public Member Functions | |
| static lps::specification | load_specification (const std::string &filename) |
Protected Types | |
| using | generator_type = lps::explorer< false, false, lps::specification > |
Protected Member Functions | |
| pins_data_type & | action_label_type_map () |
| Returns the action data type. | |
| const pins_data_type & | action_label_type_map () const |
| Returns the action data type. | |
| pins_data_type & | state_type_map (std::size_t i) |
| Returns the data type of the i-th state parameter. | |
| const pins_data_type & | state_type_map (std::size_t i) const |
| Returns the data type of the i-th state parameter. | |
| const linear_process & | process () const |
| Returns the process of the LPS specification. | |
| const linear_process & | process_reduced () const |
| Returns the reduced process of the LPS specification, i.e. with conditions with guards removed. | |
| const data::data_specification & | data () const |
| Returns the data specification of the LPS specification. | |
| template<typename Iter > | |
| std::string | print_vector (Iter first, Iter last) const |
| template<typename Container > | |
| std::string | print_vector (const Container &c) const |
| void | initialize_read_write_groups () |
Protected Attributes | |
| std::size_t | m_group_count = 0UL |
| std::size_t | m_state_length = 0UL |
| std::vector< std::vector< std::size_t > > | m_read_group |
| std::vector< std::vector< std::size_t > > | m_write_group |
| std::vector< std::vector< std::size_t > > | m_update_group |
| lps::specification | m_specification |
| data::rewriter | m_rewriter |
| generator_type | m_generator |
| std::vector< data::variable > | m_parameters_list |
| std::vector< std::string > | m_process_parameter_names |
| utilities::indexed_set< atermpp::aterm > | m_guards |
| std::vector< std::vector< std::size_t > > | guard_parameters_list |
| std::vector< std::vector< std::size_t > > | m_guard_info |
| std::vector< std::string > | m_guard_names |
| lps::specification | m_specification_reduced |
| data::rewriter | m_rewriter_reduced |
| generator_type | m_generator_reduced |
| std::vector< pins_data_type * > | m_data_types |
| std::vector< std::unique_ptr< pins_data_type > > | m_unique_data_types |
| The unique type mappings; owns the data types that m_data_types refers to. | |
| std::vector< std::size_t > | m_unique_data_type_index |
| using mcrl2::lps::pins::datatype_index = std::size_t |
|
protected |
| using mcrl2::lps::pins::ltsmin_state_type = int* |
|
strong |
|
inline |
|
inline |
Iterates over the 'next states' of a particular summand of state src that are generated by a group of summands, and invokes a callback function for each discovered state.
StateFunction is a callback function that must provide the function operator() with the following interface: void operator()(ltsmin_state_type const& next_state, int* const& edge_labels, int group); where
| src | An LTSMin state. |
| group | the number of the summand. |
| f | A state function. |
| dest | A destination state, which is modified and passed to the callback. Must provide space for at least process_parameter_count() items. |
| labels | An array of labels, which is modified and passed to the callback. Must provide space for at least edge_label_count() items. |
| generator | The next state generator to use. |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
Returns a reference to the datatype map with index i.
|
inline |
|
inline |
|
inline |
Returns the name of the i-th action label (always "action").
|
inline |
Returns the datatype map index corresponding to edge label i.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlinestatic |
|
inline |
Iterates over the 'next states' of state src, and invokes a callback function for each discovered state.
StateFunction is a callback function that must provide the function operator() with the following interface: void operator()(ltsmin_state_type const& next_state, int* const& edge_labels, int group=-1); where
| src | An LTSMin state |
| f | A 'callback' function object |
| dest | A destination state, which is modified and passed to the callback. Must provide space for at least process_parameter_count() items. |
| labels | An array of labels, which is modified and passed to the callback. Must provide space for at least edge_label_count() items. |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
Returns the datatype map index corresponding to process parameter i.
|
inlineprotected |
|
inline |
Indices of process parameters that influence event or next state of a summand by being read.
| [in] | index | the selected summand |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inline |
Returns the names of the actions that appear in the summand with index i, with 0 <= i < group_count().
|
inline |
Indices of process parameters that influence event or next state of a summand by being read except from the guards.
| [in] | index | the selected summand |
|
inline |
|
inline |
Indices of process parameters that influence event or next state of a summand by being written.
| [in] | index | the selected summand |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |