|
mCRL2
|
Replace each constant data application c by a fresh variable v, and add extend the substitution sigma with the assignment v := r(c). This can be used in rewriting, to avoid that c is rewritten by the rewriter multiple times. More...
#include <replace_constants_by_variables.h>
Public Types | |
| using | super = Builder< replace_constants_by_variables_builder< Builder > > |
Public Member Functions | |
| bool | is_constant (const data::data_expression &x) const |
| replace_constants_by_variables_builder (const data::rewriter &r_, data::mutable_indexed_substitution<> &sigma_) | |
| template<class T > | |
| void | apply (T &result, const data::application &x) |
Public Attributes | |
| data::set_identifier_generator | id_generator |
| std::unordered_map< data::data_expression, data::variable > | substitutions |
| const data::rewriter & | r |
| data::mutable_indexed_substitution & | sigma |
Replace each constant data application c by a fresh variable v, and add extend the substitution sigma with the assignment v := r(c). This can be used in rewriting, to avoid that c is rewritten by the rewriter multiple times.
Definition at line 25 of file replace_constants_by_variables.h.
| using mcrl2::data::detail::replace_constants_by_variables_builder< Builder >::super = Builder<replace_constants_by_variables_builder<Builder> > |
Definition at line 27 of file replace_constants_by_variables.h.
|
inline |
Definition at line 41 of file replace_constants_by_variables.h.
|
inline |
Definition at line 46 of file replace_constants_by_variables.h.
|
inline |
Definition at line 36 of file replace_constants_by_variables.h.
| data::set_identifier_generator mcrl2::data::detail::replace_constants_by_variables_builder< Builder >::id_generator |
Definition at line 31 of file replace_constants_by_variables.h.
| const data::rewriter& mcrl2::data::detail::replace_constants_by_variables_builder< Builder >::r |
Definition at line 33 of file replace_constants_by_variables.h.
| data::mutable_indexed_substitution& mcrl2::data::detail::replace_constants_by_variables_builder< Builder >::sigma |
Definition at line 34 of file replace_constants_by_variables.h.
| std::unordered_map<data::data_expression, data::variable> mcrl2::data::detail::replace_constants_by_variables_builder< Builder >::substitutions |
Definition at line 32 of file replace_constants_by_variables.h.