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 | |
typedef Builder< replace_constants_by_variables_builder< Builder > > | super |
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 28 of file replace_constants_by_variables.h.
typedef Builder<replace_constants_by_variables_builder<Builder> > mcrl2::data::detail::replace_constants_by_variables_builder< Builder >::super |
Definition at line 30 of file replace_constants_by_variables.h.
|
inline |
Definition at line 44 of file replace_constants_by_variables.h.
|
inline |
Definition at line 49 of file replace_constants_by_variables.h.
|
inline |
Definition at line 39 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 34 of file replace_constants_by_variables.h.
const data::rewriter& mcrl2::data::detail::replace_constants_by_variables_builder< Builder >::r |
Definition at line 36 of file replace_constants_by_variables.h.
data::mutable_indexed_substitution& mcrl2::data::detail::replace_constants_by_variables_builder< Builder >::sigma |
Definition at line 37 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 35 of file replace_constants_by_variables.h.