mCRL2
Loading...
Searching...
No Matches
mcrl2::regular_formulas Namespace Reference

Namespaces

namespace  detail
 

Classes

struct  action_label_traverser
 \brief Traverser class More...
 
struct  add_data_expressions
 
struct  add_data_variable_binding
 Maintains a multiset of bound data variables during traversal. More...
 
struct  add_data_variable_builder_binding
 
struct  add_data_variable_traverser_binding
 
struct  add_regular_formula_expressions
 
struct  add_sort_expressions
 
struct  add_traverser_action_labels
 
struct  add_traverser_data_expressions
 
struct  add_traverser_identifier_strings
 
struct  add_traverser_regular_formula_expressions
 
struct  add_traverser_sort_expressions
 
struct  add_traverser_variables
 
struct  add_variables
 
class  alt
 \brief The alt operator for regular formulas More...
 
struct  data_expression_builder
 \brief Builder class More...
 
struct  data_expression_traverser
 \brief Traverser class More...
 
struct  identifier_string_traverser
 \brief Traverser class More...
 
class  regular_formula
 \brief A regular formula More...
 
struct  regular_formula_builder
 \brief Builder class More...
 
struct  regular_formula_builder_base
 Builder class for regular_formula_builder. Used as a base class for pbes_expression_builder. More...
 
struct  regular_formula_traverser
 \brief Traverser class More...
 
struct  regular_formula_traverser_base
 Traversal class for regular_formula_traverser. Used as a base class for pbes_expression_traverser. More...
 
class  seq
 \brief The seq operator for regular formulas More...
 
struct  sort_expression_builder
 \brief Builder class More...
 
struct  sort_expression_traverser
 \brief Traverser class More...
 
class  trans
 \brief The trans operator for regular formulas More...
 
class  trans_or_nil
 \brief The 'trans or nil' operator for regular formulas More...
 
class  untyped_regular_formula
 \brief An untyped regular formula or action formula More...
 
struct  variable_builder
 \brief Builder class More...
 
struct  variable_traverser
 \brief Traverser class More...
 

Typedefs

using regular_formula_list = atermpp::term_list< regular_formula >
 \brief list of regular_formulas
 
using regular_formula_vector = std::vector< regular_formula >
 \brief vector of regular_formulas
 

Functions

std::string pp (const regular_formulas::alt &x, bool arg0)
 
std::string pp (const regular_formulas::regular_formula &x, bool arg0)
 
std::string pp (const regular_formulas::seq &x, bool arg0)
 
std::string pp (const regular_formulas::trans &x, bool arg0)
 
std::string pp (const regular_formulas::trans_or_nil &x, bool arg0)
 
std::string pp (const regular_formulas::untyped_regular_formula &x, bool arg0)
 
template<typename ActionLabelContainer = std::vector<state_formulas::variable>, typename VariableContainer = std::vector<data::variable>>
regular_formula parse_regular_formula (const std::string &text, const data::data_specification &dataspec, const VariableContainer &variables, const ActionLabelContainer &actions)
 
regular_formula parse_regular_formula (const std::string &text, const lps::stochastic_specification &lpsspec)
 
constexpr int precedence (const seq &)
 
constexpr int precedence (const alt &)
 
constexpr int precedence (const trans &)
 
constexpr int precedence (const trans_or_nil &)
 
int precedence (const regular_formula &x)
 
bool is_left_associative (const seq &)
 
bool is_left_associative (const alt &)
 
bool is_left_associative (const regular_formula &x)
 
bool is_right_associative (const seq &)
 
bool is_right_associative (const alt &)
 
bool is_right_associative (const regular_formula &x)
 
template<typename T >
void pp (const T &t, std::ostream &out, bool precendence_aware)
 Prints the object t to a stream.
 
template<typename T >
std::string pp (const T &t, bool precendence_aware=true)
 Returns a string representation of the object t.
 
template<typename T , typename Substitution >
requires (!std::is_base_of_v<atermpp::aterm, T>)
void replace_sort_expressions (T &x, const Substitution &sigma, bool innermost)
 
template<typename T , typename Substitution >
requires std::is_base_of_v<atermpp::aterm, T>
T replace_sort_expressions (const T &x, const Substitution &sigma, bool innermost)
 
template<typename T , data::IsSubstitution Substitution>
requires (!std::is_base_of_v<atermpp::aterm, T>)
void replace_data_expressions (T &x, const Substitution &sigma, bool innermost)
 
template<typename T , data::IsSubstitution Substitution>
requires std::is_base_of_v<atermpp::aterm, T>
T replace_data_expressions (const T &x, const Substitution &sigma, bool innermost)
 
template<typename T , data::IsSubstitution Substitution>
requires (!std::is_base_of_v<atermpp::aterm, T>)
void replace_variables (T &x, const Substitution &sigma)
 
template<typename T , data::IsSubstitution Substitution>
requires std::is_base_of_v<atermpp::aterm, T>
T replace_variables (const T &x, const Substitution &sigma)
 
template<typename T , data::IsSubstitution Substitution>
requires (!std::is_base_of_v<atermpp::aterm, T>)
void replace_all_variables (T &x, const Substitution &sigma)
 
template<typename T , data::IsSubstitution Substitution>
requires std::is_base_of_v<atermpp::aterm, T>
T replace_all_variables (const T &x, const Substitution &sigma)
 
template<typename T , data::IsSubstitution Substitution>
requires (!std::is_base_of_v<atermpp::aterm, T>)
void replace_free_variables (T &x, const Substitution &sigma)
 
template<typename T , data::IsSubstitution Substitution>
requires std::is_base_of_v<atermpp::aterm, T>
T replace_free_variables (const T &x, const Substitution &sigma)
 
template<typename T , data::IsSubstitution Substitution, typename VariableContainer >
requires (!std::is_base_of_v<atermpp::aterm, T>)
void replace_free_variables (T &x, const Substitution &sigma, const VariableContainer &bound_variables)
 
template<typename T , data::IsSubstitution Substitution, typename VariableContainer >
requires std::is_base_of_v<atermpp::aterm, T>
T replace_free_variables (const T &x, const Substitution &sigma, const VariableContainer &bound_variables)
 
template<typename T , typename OutputIterator >
void find_all_variables (const T &x, OutputIterator o)
 Writes all variables that occur in an object to an output iterator.
 
template<typename T >
std::set< data::variable > find_all_variables (const T &x)
 Returns all variables that occur in an object.
 
template<typename T , typename OutputIterator >
void find_free_variables (const T &x, OutputIterator o)
 Writes all free variables that occur in an object to an output iterator.
 
template<typename T , typename OutputIterator , typename VariableContainer >
void find_free_variables_with_bound (const T &x, OutputIterator o, const VariableContainer &bound)
 Writes all free variables that occur in an object to an output iterator.
 
template<typename T >
std::set< data::variable > find_free_variables (const T &x)
 Returns all free variables that occur in an object.
 
template<typename T , typename VariableContainer >
std::set< data::variable > find_free_variables_with_bound (const T &x, VariableContainer const &bound)
 Returns all free variables that occur in an object.
 
template<typename T , typename OutputIterator >
void find_identifiers (const T &x, OutputIterator o)
 Writes all identifiers that occur in an object to an output iterator.
 
template<typename T >
std::set< core::identifier_string > find_identifiers (const T &x)
 Returns all identifiers that occur in an object.
 
template<typename T , typename OutputIterator >
void find_sort_expressions (const T &x, OutputIterator o)
 Writes all sort expressions that occur in an object to an output iterator.
 
template<typename T >
std::set< data::sort_expression > find_sort_expressions (const T &x)
 Returns all sort expressions that occur in an object.
 
template<typename T , typename OutputIterator >
void find_function_symbols (const T &x, OutputIterator o)
 Writes all function symbols that occur in an object to an output iterator.
 
template<typename T >
std::set< data::function_symbol > find_function_symbols (const T &x)
 Returns all function symbols that occur in an object.
 
template<typename T >
requires (!std::is_base_of_v<atermpp::aterm, T>)
void normalize_sorts (T &x, const data::sort_specification &sortspec)
 
template<typename T >
requires (std::is_base_of_v<atermpp::aterm, T>)
T normalize_sorts (const T &x, const data::sort_specification &sortspec)
 
bool is_seq (const atermpp::aterm &x)
 
bool is_alt (const atermpp::aterm &x)
 
bool is_trans (const atermpp::aterm &x)
 
bool is_trans_or_nil (const atermpp::aterm &x)
 
bool is_untyped_regular_formula (const atermpp::aterm &x)
 
bool is_regular_formula (const atermpp::aterm &x)
 
std::ostream & operator<< (std::ostream &out, const regular_formula &x)
 
void swap (regular_formula &t1, regular_formula &t2) noexcept
 \brief swap overload
 
template<class... ARGUMENTS>
void make_seq (atermpp::aterm &t, const ARGUMENTS &... args)
 
std::ostream & operator<< (std::ostream &out, const seq &x)
 
void swap (seq &t1, seq &t2) noexcept
 \brief swap overload
 
template<class... ARGUMENTS>
void make_alt (atermpp::aterm &t, const ARGUMENTS &... args)
 
std::ostream & operator<< (std::ostream &out, const alt &x)
 
void swap (alt &t1, alt &t2) noexcept
 \brief swap overload
 
template<class... ARGUMENTS>
void make_trans (atermpp::aterm &t, const ARGUMENTS &... args)
 
std::ostream & operator<< (std::ostream &out, const trans &x)
 
void swap (trans &t1, trans &t2) noexcept
 \brief swap overload
 
template<class... ARGUMENTS>
void make_trans_or_nil (atermpp::aterm &t, const ARGUMENTS &... args)
 
std::ostream & operator<< (std::ostream &out, const trans_or_nil &x)
 
void swap (trans_or_nil &t1, trans_or_nil &t2) noexcept
 \brief swap overload
 
template<class... ARGUMENTS>
void make_untyped_regular_formula (atermpp::aterm &t, const ARGUMENTS &... args)
 
std::ostream & operator<< (std::ostream &out, const untyped_regular_formula &x)
 
void swap (untyped_regular_formula &t1, untyped_regular_formula &t2) noexcept
 \brief swap overload
 
template<typename T , data::IsSubstitution Substitution>
requires (!std::is_base_of_v<atermpp::aterm, T>)
void replace_variables_capture_avoiding (T &x, Substitution &sigma, data::set_identifier_generator &id_generator)
 
template<typename T , data::IsSubstitution Substitution>
requires std::is_base_of_v<atermpp::aterm, T>
T replace_variables_capture_avoiding (const T &x, Substitution &sigma, data::set_identifier_generator &id_generator)
 
template<typename T , data::IsSubstitution Substitution>
requires (!std::is_base_of_v<atermpp::aterm, T>)
void replace_variables_capture_avoiding (T &x, Substitution &sigma)
 
template<typename T , data::IsSubstitution Substitution>
requires std::is_base_of_v<atermpp::aterm, T>
T replace_variables_capture_avoiding (const T &x, Substitution &sigma)
 
template<typename T , data::IsSubstitution Substitution, typename IdentifierGenerator >
requires (!std::is_base_of_v<atermpp::aterm, T>)
void replace_variables_capture_avoiding_with_an_identifier_generator (T &x, Substitution &sigma, IdentifierGenerator &id_generator)
 
template<typename T , data::IsSubstitution Substitution, typename IdentifierGenerator >
requires std::is_base_of_v<atermpp::aterm, T>
T replace_variables_capture_avoiding_with_an_identifier_generator (const T &x, Substitution &sigma, IdentifierGenerator &id_generator)
 
template<typename T , typename Rewriter >
requires (!std::is_base_of_v<atermpp::aterm, T>)
void rewrite (T &x, Rewriter R)
 
template<typename T , typename Rewriter >
requires std::is_base_of_v<atermpp::aterm, T>
T rewrite (const T &x, Rewriter R)
 
template<typename T , typename Rewriter , data::IsSubstitution Substitution>
requires (!std::is_base_of_v<atermpp::aterm, T>)
void rewrite (T &x, Rewriter R, const Substitution &sigma)
 
template<typename T , typename Rewriter , data::IsSubstitution Substitution>
requires std::is_base_of_v<atermpp::aterm, T>
T rewrite (const T &x, Rewriter R, const Substitution &sigma)
 
template<typename T >
requires (!std::is_base_of_v<atermpp::aterm, T>)
void translate_user_notation (T &x)
 
template<typename T >
requires (std::is_base_of_v<atermpp::aterm, T>)
T translate_user_notation (const T &x)
 
template<typename ActionLabelContainer = std::vector<state_formulas::variable>, typename VariableContainer = std::vector<data::variable>>
regular_formula typecheck_regular_formula (const regular_formula &x, const data::data_specification &dataspec, const VariableContainer &variables, const ActionLabelContainer &actions)
 
regular_formula typecheck_regular_formula (const regular_formula &x, const lps::stochastic_specification &lpsspec)
 

Typedef Documentation

◆ regular_formula_list

◆ regular_formula_vector

\brief vector of regular_formulas

Definition at line 59 of file regular_formula.h.

Function Documentation

◆ find_all_variables() [1/2]

template<typename T >
std::set< data::variable > mcrl2::regular_formulas::find_all_variables ( const T &  x)

Returns all variables that occur in an object.

Parameters
[in]xan object containing variables
Returns
All variables that occur in the object x

Definition at line 168 of file find.h.

◆ find_all_variables() [2/2]

template<typename T , typename OutputIterator >
void mcrl2::regular_formulas::find_all_variables ( const T &  x,
OutputIterator  o 
)

Writes all variables that occur in an object to an output iterator.

Parameters
[in]xan object containing variables
[in,out]oan output iterator to which all variables occurring in x are written.

Definition at line 159 of file find.h.

◆ find_free_variables() [1/2]

template<typename T >
std::set< data::variable > mcrl2::regular_formulas::find_free_variables ( const T &  x)

Returns all free variables that occur in an object.

Parameters
[in]xan object containing variables
Returns
All free variables that occur in the object x

Definition at line 198 of file find.h.

◆ find_free_variables() [2/2]

template<typename T , typename OutputIterator >
void mcrl2::regular_formulas::find_free_variables ( const T &  x,
OutputIterator  o 
)

Writes all free variables that occur in an object to an output iterator.

Parameters
[in]xan object containing variables
[in,out]oan output iterator to which all variables occurring in x are added.

Definition at line 179 of file find.h.

◆ find_free_variables_with_bound() [1/2]

template<typename T , typename OutputIterator , typename VariableContainer >
void mcrl2::regular_formulas::find_free_variables_with_bound ( const T &  x,
OutputIterator  o,
const VariableContainer &  bound 
)

Writes all free variables that occur in an object to an output iterator.

Parameters
[in]xan object containing variables
[in,out]oan output iterator to which all variables occurring in x are written.
[in]bounda container of variables

Definition at line 189 of file find.h.

◆ find_free_variables_with_bound() [2/2]

template<typename T , typename VariableContainer >
std::set< data::variable > mcrl2::regular_formulas::find_free_variables_with_bound ( const T &  x,
VariableContainer const &  bound 
)

Returns all free variables that occur in an object.

Parameters
[in]xan object containing variables
[in]bounda container of variables
Returns
All free variables that occur in the object x

Definition at line 210 of file find.h.

◆ find_function_symbols() [1/2]

template<typename T >
std::set< data::function_symbol > mcrl2::regular_formulas::find_function_symbols ( const T &  x)

Returns all function symbols that occur in an object.

Parameters
[in]xan object containing function symbols
Returns
All function symbols that occur in the object x

Definition at line 270 of file find.h.

◆ find_function_symbols() [2/2]

template<typename T , typename OutputIterator >
void mcrl2::regular_formulas::find_function_symbols ( const T &  x,
OutputIterator  o 
)

Writes all function symbols that occur in an object to an output iterator.

Parameters
[in]xan object containing function symbols
[in,out]oan output iterator to which all function symbols occurring in x are written.

Definition at line 261 of file find.h.

◆ find_identifiers() [1/2]

template<typename T >
std::set< core::identifier_string > mcrl2::regular_formulas::find_identifiers ( const T &  x)

Returns all identifiers that occur in an object.

Parameters
[in]xan object containing identifiers
Returns
All identifiers that occur in the object x

Definition at line 230 of file find.h.

◆ find_identifiers() [2/2]

template<typename T , typename OutputIterator >
void mcrl2::regular_formulas::find_identifiers ( const T &  x,
OutputIterator  o 
)

Writes all identifiers that occur in an object to an output iterator.

Parameters
[in]xan object containing identifiers
[in,out]oan output iterator to which all identifiers occurring in x are written.

Definition at line 221 of file find.h.

◆ find_sort_expressions() [1/2]

template<typename T >
std::set< data::sort_expression > mcrl2::regular_formulas::find_sort_expressions ( const T &  x)

Returns all sort expressions that occur in an object.

Parameters
[in]xan object containing sort expressions
Returns
All sort expressions that occur in the object x

Definition at line 250 of file find.h.

◆ find_sort_expressions() [2/2]

template<typename T , typename OutputIterator >
void mcrl2::regular_formulas::find_sort_expressions ( const T &  x,
OutputIterator  o 
)

Writes all sort expressions that occur in an object to an output iterator.

Parameters
[in]xan object containing sort expressions
[in,out]oan output iterator to which all sort expressions occurring in x are written.

Definition at line 241 of file find.h.

◆ is_alt()

bool mcrl2::regular_formulas::is_alt ( const atermpp::aterm &  x)
inline

\brief Test for a alt expression \param x A term \return True if \a x is a alt expression

Definition at line 230 of file regular_formula.h.

◆ is_left_associative() [1/3]

bool mcrl2::regular_formulas::is_left_associative ( const alt &  )
inline

Definition at line 201 of file print.h.

◆ is_left_associative() [2/3]

bool mcrl2::regular_formulas::is_left_associative ( const regular_formula &  x)
inline

Definition at line 202 of file print.h.

◆ is_left_associative() [3/3]

bool mcrl2::regular_formulas::is_left_associative ( const seq &  )
inline

Definition at line 200 of file print.h.

◆ is_regular_formula()

bool mcrl2::regular_formulas::is_regular_formula ( const atermpp::aterm &  x)
inline

\brief Test for a regular_formula expression \param x A term \return True if \a x is a regular_formula expression

Definition at line 72 of file regular_formula.h.

◆ is_right_associative() [1/3]

bool mcrl2::regular_formulas::is_right_associative ( const alt &  )
inline

Definition at line 210 of file print.h.

◆ is_right_associative() [2/3]

bool mcrl2::regular_formulas::is_right_associative ( const regular_formula &  x)
inline

Definition at line 211 of file print.h.

◆ is_right_associative() [3/3]

bool mcrl2::regular_formulas::is_right_associative ( const seq &  )
inline

Definition at line 209 of file print.h.

◆ is_seq()

bool mcrl2::regular_formulas::is_seq ( const atermpp::aterm &  x)
inline

\brief Test for a seq expression \param x A term \return True if \a x is a seq expression

Definition at line 154 of file regular_formula.h.

◆ is_trans()

bool mcrl2::regular_formulas::is_trans ( const atermpp::aterm &  x)
inline

\brief Test for a trans expression \param x A term \return True if \a x is a trans expression

Definition at line 301 of file regular_formula.h.

◆ is_trans_or_nil()

bool mcrl2::regular_formulas::is_trans_or_nil ( const atermpp::aterm &  x)
inline

\brief Test for a trans_or_nil expression \param x A term \return True if \a x is a trans_or_nil expression

Definition at line 372 of file regular_formula.h.

◆ is_untyped_regular_formula()

bool mcrl2::regular_formulas::is_untyped_regular_formula ( const atermpp::aterm &  x)
inline

\brief Test for a untyped_regular_formula expression \param x A term \return True if \a x is a untyped_regular_formula expression

Definition at line 458 of file regular_formula.h.

◆ make_alt()

template<class... ARGUMENTS>
void mcrl2::regular_formulas::make_alt ( atermpp::aterm &  t,
const ARGUMENTS &...  args 
)
inline

\brief The function make_alt constructs a new term into a given address. \

Parameters
tThe reference into which the new alt is constructed.

Definition at line 221 of file regular_formula.h.

◆ make_seq()

template<class... ARGUMENTS>
void mcrl2::regular_formulas::make_seq ( atermpp::aterm &  t,
const ARGUMENTS &...  args 
)
inline

\brief The function make_seq constructs a new term into a given address. \

Parameters
tThe reference into which the new seq is constructed.

Definition at line 145 of file regular_formula.h.

◆ make_trans()

template<class... ARGUMENTS>
void mcrl2::regular_formulas::make_trans ( atermpp::aterm &  t,
const ARGUMENTS &...  args 
)
inline

\brief The function make_trans constructs a new term into a given address. \

Parameters
tThe reference into which the new trans is constructed.

Definition at line 292 of file regular_formula.h.

◆ make_trans_or_nil()

template<class... ARGUMENTS>
void mcrl2::regular_formulas::make_trans_or_nil ( atermpp::aterm &  t,
const ARGUMENTS &...  args 
)
inline

\brief The function make_trans_or_nil constructs a new term into a given address. \

Parameters
tThe reference into which the new trans_or_nil is constructed.

Definition at line 363 of file regular_formula.h.

◆ make_untyped_regular_formula()

template<class... ARGUMENTS>
void mcrl2::regular_formulas::make_untyped_regular_formula ( atermpp::aterm &  t,
const ARGUMENTS &...  args 
)
inline

\brief The function make_untyped_regular_formula constructs a new term into a given address. \

Parameters
tThe reference into which the new untyped_regular_formula is constructed.

Definition at line 449 of file regular_formula.h.

◆ normalize_sorts() [1/2]

template<typename T >
requires (std::is_base_of_v<atermpp::aterm, T>)
T mcrl2::regular_formulas::normalize_sorts ( const T &  x,
const data::sort_specification &  sortspec 
)

Definition at line 57 of file normalize_sorts.h.

◆ normalize_sorts() [2/2]

template<typename T >
requires (!std::is_base_of_v<atermpp::aterm, T>)
void mcrl2::regular_formulas::normalize_sorts ( T &  x,
const data::sort_specification &  sortspec 
)

Definition at line 49 of file normalize_sorts.h.

◆ operator<<() [1/6]

std::ostream & mcrl2::regular_formulas::operator<< ( std::ostream &  out,
const alt &  x 
)
inline

\brief Outputs the object to a stream \param out An output stream \param x Object x \return The output stream

Definition at line 243 of file regular_formula.h.

◆ operator<<() [2/6]

std::ostream & mcrl2::regular_formulas::operator<< ( std::ostream &  out,
const regular_formula &  x 
)
inline

\brief Outputs the object to a stream \param out An output stream \param x Object x \return The output stream

Definition at line 91 of file regular_formula.h.

◆ operator<<() [3/6]

std::ostream & mcrl2::regular_formulas::operator<< ( std::ostream &  out,
const seq &  x 
)
inline

\brief Outputs the object to a stream \param out An output stream \param x Object x \return The output stream

Definition at line 167 of file regular_formula.h.

◆ operator<<() [4/6]

std::ostream & mcrl2::regular_formulas::operator<< ( std::ostream &  out,
const trans &  x 
)
inline

\brief Outputs the object to a stream \param out An output stream \param x Object x \return The output stream

Definition at line 314 of file regular_formula.h.

◆ operator<<() [5/6]

std::ostream & mcrl2::regular_formulas::operator<< ( std::ostream &  out,
const trans_or_nil &  x 
)
inline

\brief Outputs the object to a stream \param out An output stream \param x Object x \return The output stream

Definition at line 385 of file regular_formula.h.

◆ operator<<() [6/6]

std::ostream & mcrl2::regular_formulas::operator<< ( std::ostream &  out,
const untyped_regular_formula &  x 
)
inline

\brief Outputs the object to a stream \param out An output stream \param x Object x \return The output stream

Definition at line 471 of file regular_formula.h.

◆ parse_regular_formula() [1/2]

template<typename ActionLabelContainer = std::vector<state_formulas::variable>, typename VariableContainer = std::vector<data::variable>>
regular_formula mcrl2::regular_formulas::parse_regular_formula ( const std::string &  text,
const data::data_specification &  dataspec,
const VariableContainer &  variables,
const ActionLabelContainer &  actions 
)

Definition at line 68 of file parse.h.

◆ parse_regular_formula() [2/2]

regular_formula mcrl2::regular_formulas::parse_regular_formula ( const std::string &  text,
const lps::stochastic_specification &  lpsspec 
)
inline

Definition at line 81 of file parse.h.

◆ pp() [1/8]

std::string mcrl2::regular_formulas::pp ( const regular_formulas::alt &  x,
bool  arg0 = true 
)

Definition at line 62 of file modal_formula.cpp.

◆ pp() [2/8]

std::string mcrl2::regular_formulas::pp ( const regular_formulas::regular_formula &  x,
bool  arg0 = true 
)

Definition at line 63 of file modal_formula.cpp.

◆ pp() [3/8]

std::string mcrl2::regular_formulas::pp ( const regular_formulas::seq &  x,
bool  arg0 = true 
)

Definition at line 64 of file modal_formula.cpp.

◆ pp() [4/8]

std::string mcrl2::regular_formulas::pp ( const regular_formulas::trans &  x,
bool  arg0 = true 
)

Definition at line 65 of file modal_formula.cpp.

◆ pp() [5/8]

std::string mcrl2::regular_formulas::pp ( const regular_formulas::trans_or_nil &  x,
bool  arg0 = true 
)

Definition at line 66 of file modal_formula.cpp.

◆ pp() [6/8]

std::string mcrl2::regular_formulas::pp ( const regular_formulas::untyped_regular_formula &  x,
bool  arg0 = true 
)

Definition at line 67 of file modal_formula.cpp.

◆ pp() [7/8]

template<typename T >
std::string mcrl2::regular_formulas::pp ( const T &  t,
bool  precendence_aware = true 
)

Returns a string representation of the object t.

Definition at line 287 of file print.h.

◆ pp() [8/8]

template<typename T >
void mcrl2::regular_formulas::pp ( const T &  t,
std::ostream &  out,
bool  precendence_aware 
)

Prints the object t to a stream.

Definition at line 279 of file print.h.

◆ precedence() [1/5]

constexpr int mcrl2::regular_formulas::precedence ( const alt &  )
inlineconstexpr

Definition at line 187 of file print.h.

◆ precedence() [2/5]

int mcrl2::regular_formulas::precedence ( const regular_formula &  x)
inline

Definition at line 190 of file print.h.

◆ precedence() [3/5]

constexpr int mcrl2::regular_formulas::precedence ( const seq &  )
inlineconstexpr

Definition at line 186 of file print.h.

◆ precedence() [4/5]

constexpr int mcrl2::regular_formulas::precedence ( const trans &  )
inlineconstexpr

Definition at line 188 of file print.h.

◆ precedence() [5/5]

constexpr int mcrl2::regular_formulas::precedence ( const trans_or_nil &  )
inlineconstexpr

Definition at line 189 of file print.h.

◆ replace_all_variables() [1/2]

template<typename T , data::IsSubstitution Substitution>
requires std::is_base_of_v<atermpp::aterm, T>
T mcrl2::regular_formulas::replace_all_variables ( const T &  x,
const Substitution &  sigma 
)

Definition at line 248 of file replace.h.

◆ replace_all_variables() [2/2]

template<typename T , data::IsSubstitution Substitution>
requires (!std::is_base_of_v<atermpp::aterm, T>)
void mcrl2::regular_formulas::replace_all_variables ( T &  x,
const Substitution &  sigma 
)

Definition at line 239 of file replace.h.

◆ replace_data_expressions() [1/2]

template<typename T , data::IsSubstitution Substitution>
requires std::is_base_of_v<atermpp::aterm, T>
T mcrl2::regular_formulas::replace_data_expressions ( const T &  x,
const Substitution &  sigma,
bool  innermost 
)

Definition at line 205 of file replace.h.

◆ replace_data_expressions() [2/2]

template<typename T , data::IsSubstitution Substitution>
requires (!std::is_base_of_v<atermpp::aterm, T>)
void mcrl2::regular_formulas::replace_data_expressions ( T &  x,
const Substitution &  sigma,
bool  innermost 
)

Definition at line 195 of file replace.h.

◆ replace_free_variables() [1/4]

template<typename T , data::IsSubstitution Substitution>
requires std::is_base_of_v<atermpp::aterm, T>
T mcrl2::regular_formulas::replace_free_variables ( const T &  x,
const Substitution &  sigma 
)

\brief Applies the substitution sigma to x. \pre { The substitution sigma must have the property that FV(sigma(x)) is included in {x} for all variables x. }

Definition at line 273 of file replace.h.

◆ replace_free_variables() [2/4]

template<typename T , data::IsSubstitution Substitution, typename VariableContainer >
requires std::is_base_of_v<atermpp::aterm, T>
T mcrl2::regular_formulas::replace_free_variables ( const T &  x,
const Substitution &  sigma,
const VariableContainer &  bound_variables 
)

\brief Applies the substitution sigma to x, where the elements of bound_variables are treated as bound variables. \pre { The substitution sigma must have the property that FV(sigma(x)) is included in {x} for all variables x. }

Definition at line 300 of file replace.h.

◆ replace_free_variables() [3/4]

template<typename T , data::IsSubstitution Substitution>
requires (!std::is_base_of_v<atermpp::aterm, T>)
void mcrl2::regular_formulas::replace_free_variables ( T &  x,
const Substitution &  sigma 
)

\brief Applies the substitution sigma to x. \pre { The substitution sigma must have the property that FV(sigma(x)) is included in {x} for all variables x. }

Definition at line 261 of file replace.h.

◆ replace_free_variables() [4/4]

template<typename T , data::IsSubstitution Substitution, typename VariableContainer >
requires (!std::is_base_of_v<atermpp::aterm, T>)
void mcrl2::regular_formulas::replace_free_variables ( T &  x,
const Substitution &  sigma,
const VariableContainer &  bound_variables 
)

\brief Applies the substitution sigma to x, where the elements of bound_variables are treated as bound variables. \pre { The substitution sigma must have the property that FV(sigma(x)) is included in {x} for all variables x. }

Definition at line 287 of file replace.h.

◆ replace_sort_expressions() [1/2]

template<typename T , typename Substitution >
requires std::is_base_of_v<atermpp::aterm, T>
T mcrl2::regular_formulas::replace_sort_expressions ( const T &  x,
const Substitution &  sigma,
bool  innermost 
)

Definition at line 183 of file replace.h.

◆ replace_sort_expressions() [2/2]

template<typename T , typename Substitution >
requires (!std::is_base_of_v<atermpp::aterm, T>)
void mcrl2::regular_formulas::replace_sort_expressions ( T &  x,
const Substitution &  sigma,
bool  innermost 
)

Definition at line 173 of file replace.h.

◆ replace_variables() [1/2]

template<typename T , data::IsSubstitution Substitution>
requires std::is_base_of_v<atermpp::aterm, T>
T mcrl2::regular_formulas::replace_variables ( const T &  x,
const Substitution &  sigma 
)

Definition at line 227 of file replace.h.

◆ replace_variables() [2/2]

template<typename T , data::IsSubstitution Substitution>
requires (!std::is_base_of_v<atermpp::aterm, T>)
void mcrl2::regular_formulas::replace_variables ( T &  x,
const Substitution &  sigma 
)

Definition at line 218 of file replace.h.

◆ replace_variables_capture_avoiding() [1/4]

template<typename T , data::IsSubstitution Substitution>
requires std::is_base_of_v<atermpp::aterm, T>
T mcrl2::regular_formulas::replace_variables_capture_avoiding ( const T &  x,
Substitution &  sigma 
)

\brief Applies sigma as a capture avoiding substitution to x. \param x The object to which the substiution is applied. \param sigma A substitution.

Definition at line 210 of file replace_capture_avoiding.h.

◆ replace_variables_capture_avoiding() [2/4]

template<typename T , data::IsSubstitution Substitution>
requires std::is_base_of_v<atermpp::aterm, T>
T mcrl2::regular_formulas::replace_variables_capture_avoiding ( const T &  x,
Substitution &  sigma,
data::set_identifier_generator &  id_generator 
)

\brief Applies sigma as a capture avoiding substitution to x. \param x The object to which the substiution is applied. \param sigma A substitution. \param id_generator An identifier generator that generates names that do not appear in x and sigma

Definition at line 176 of file replace_capture_avoiding.h.

◆ replace_variables_capture_avoiding() [3/4]

template<typename T , data::IsSubstitution Substitution>
requires (!std::is_base_of_v<atermpp::aterm, T>)
void mcrl2::regular_formulas::replace_variables_capture_avoiding ( T &  x,
Substitution &  sigma 
)

\brief Applies sigma as a capture avoiding substitution to x. \param x The object to which the subsitution is applied. \param sigma A substitution.

Definition at line 192 of file replace_capture_avoiding.h.

◆ replace_variables_capture_avoiding() [4/4]

template<typename T , data::IsSubstitution Substitution>
requires (!std::is_base_of_v<atermpp::aterm, T>)
void mcrl2::regular_formulas::replace_variables_capture_avoiding ( T &  x,
Substitution &  sigma,
data::set_identifier_generator &  id_generator 
)

\brief Applies sigma as a capture avoiding substitution to x. \param x The object to which the subsitution is applied. \param sigma A substitution. \param id_generator An identifier generator that generates names that do not appear in x and sigma

Definition at line 161 of file replace_capture_avoiding.h.

◆ replace_variables_capture_avoiding_with_an_identifier_generator() [1/2]

template<typename T , data::IsSubstitution Substitution, typename IdentifierGenerator >
requires std::is_base_of_v<atermpp::aterm, T>
T mcrl2::regular_formulas::replace_variables_capture_avoiding_with_an_identifier_generator ( const T &  x,
Substitution &  sigma,
IdentifierGenerator &  id_generator 
)

\brief Applies sigma as a capture avoiding substitution to x using an identifier generator.. \details This substitution function is much faster than replace_variables_capture_avoiding, but it requires an identifier generator that generates strings for fresh variables. These strings must be unique in the sense that they have not been used for other variables. \param x The object to which the substiution is applied. \param sigma A mutable substitution of which it can efficiently be checked whether a variable occurs in its right hand side. The class maintain_variables_in_rhs is useful for this purpose. \param id_generator A generator that generates unique strings, not yet used as variable names. \return The result is the term x to which sigma has been applied.

Definition at line 168 of file replace_capture_avoiding_with_an_identifier_generator.h.

◆ replace_variables_capture_avoiding_with_an_identifier_generator() [2/2]

template<typename T , data::IsSubstitution Substitution, typename IdentifierGenerator >
requires (!std::is_base_of_v<atermpp::aterm, T>)
void mcrl2::regular_formulas::replace_variables_capture_avoiding_with_an_identifier_generator ( T &  x,
Substitution &  sigma,
IdentifierGenerator &  id_generator 
)

\brief Applies sigma as a capture avoiding substitution to x using an identifier generator. \details This substitution function is much faster than replace_variables_capture_avoiding, but it requires an identifier generator that generates strings for fresh variables. These strings must be unique in the sense that they have not been used for other variables. \param x The object to which the subsitution is applied. \param sigma A mutable substitution of which it can efficiently be checked whether a variable occurs in its right hand side. The class maintain_variables_in_rhs is useful for this purpose. \param id_generator A generator that generates unique strings, not yet used as variable names.

Definition at line 149 of file replace_capture_avoiding_with_an_identifier_generator.h.

◆ rewrite() [1/4]

template<typename T , typename Rewriter >
requires std::is_base_of_v<atermpp::aterm, T>
T mcrl2::regular_formulas::rewrite ( const T &  x,
Rewriter  R 
)

\brief Rewrites all embedded expressions in an object x \param x an object containing expressions \param R a rewriter \return the rewrite result

Definition at line 104 of file rewrite.h.

◆ rewrite() [2/4]

template<typename T , typename Rewriter , data::IsSubstitution Substitution>
requires std::is_base_of_v<atermpp::aterm, T>
T mcrl2::regular_formulas::rewrite ( const T &  x,
Rewriter  R,
const Substitution &  sigma 
)

\brief Rewrites all embedded expressions in an object x, and applies a substitution to variables on the fly \param x an object containing expressions \param R a rewriter \param sigma a substitution \return the rewrite result

Definition at line 134 of file rewrite.h.

◆ rewrite() [3/4]

template<typename T , typename Rewriter >
requires (!std::is_base_of_v<atermpp::aterm, T>)
void mcrl2::regular_formulas::rewrite ( T &  x,
Rewriter  R 
)

\brief Rewrites all embedded expressions in an object x \param x an object containing expressions \param R a rewriter

Definition at line 91 of file rewrite.h.

◆ rewrite() [4/4]

template<typename T , typename Rewriter , data::IsSubstitution Substitution>
requires (!std::is_base_of_v<atermpp::aterm, T>)
void mcrl2::regular_formulas::rewrite ( T &  x,
Rewriter  R,
const Substitution &  sigma 
)

\brief Rewrites all embedded expressions in an object x, and applies a substitution to variables on the fly \param x an object containing expressions \param R a rewriter \param sigma a substitution

Definition at line 119 of file rewrite.h.

◆ swap() [1/6]

void mcrl2::regular_formulas::swap ( alt &  t1,
alt &  t2 
)
inlinenoexcept

\brief swap overload

Definition at line 249 of file regular_formula.h.

◆ swap() [2/6]

void mcrl2::regular_formulas::swap ( regular_formula &  t1,
regular_formula &  t2 
)
inlinenoexcept

\brief swap overload

Definition at line 97 of file regular_formula.h.

◆ swap() [3/6]

void mcrl2::regular_formulas::swap ( seq &  t1,
seq &  t2 
)
inlinenoexcept

\brief swap overload

Definition at line 173 of file regular_formula.h.

◆ swap() [4/6]

void mcrl2::regular_formulas::swap ( trans &  t1,
trans &  t2 
)
inlinenoexcept

\brief swap overload

Definition at line 320 of file regular_formula.h.

◆ swap() [5/6]

void mcrl2::regular_formulas::swap ( trans_or_nil &  t1,
trans_or_nil &  t2 
)
inlinenoexcept

\brief swap overload

Definition at line 391 of file regular_formula.h.

◆ swap() [6/6]

void mcrl2::regular_formulas::swap ( untyped_regular_formula &  t1,
untyped_regular_formula &  t2 
)
inlinenoexcept

\brief swap overload

Definition at line 477 of file regular_formula.h.

◆ translate_user_notation() [1/2]

template<typename T >
requires (std::is_base_of_v<atermpp::aterm, T>)
T mcrl2::regular_formulas::translate_user_notation ( const T &  x)

Definition at line 54 of file translate_user_notation.h.

◆ translate_user_notation() [2/2]

template<typename T >
requires (!std::is_base_of_v<atermpp::aterm, T>)
void mcrl2::regular_formulas::translate_user_notation ( T &  x)

Definition at line 47 of file translate_user_notation.h.

◆ typecheck_regular_formula() [1/2]

template<typename ActionLabelContainer = std::vector<state_formulas::variable>, typename VariableContainer = std::vector<data::variable>>
regular_formula mcrl2::regular_formulas::typecheck_regular_formula ( const regular_formula &  x,
const data::data_specification &  dataspec,
const VariableContainer &  variables,
const ActionLabelContainer &  actions 
)

Definition at line 316 of file typecheck.h.

◆ typecheck_regular_formula() [2/2]

regular_formula mcrl2::regular_formulas::typecheck_regular_formula ( const regular_formula &  x,
const lps::stochastic_specification &  lpsspec 
)
inline

Definition at line 334 of file typecheck.h.