mCRL2
Loading...
Searching...
No Matches
mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser Struct Reference

#include <count_free_variables.h>

Inheritance diagram for mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser:
mcrl2::pbes_system::pbes_expression_traverser< count_free_variable_occurrences_traverser > mcrl2::pbes_system::add_traverser_pbes_expressions< Traverser, Derived >

Public Types

using super = pbes_expression_traverser< count_free_variable_occurrences_traverser >
 
- Public Types inherited from mcrl2::pbes_system::add_traverser_pbes_expressions< Traverser, Derived >
using super = Traverser< Derived >
 

Public Member Functions

 count_free_variable_occurrences_traverser (bool search_propositional_variables_=true)
 
 count_free_variable_occurrences_traverser (const data::variable_list &bound_variables_, bool search_propositional_variables_=true)
 
bool is_bound (const data::variable &v) const
 
void push (const data::variable_list &v)
 
void pop ()
 
void enter (const forall &x)
 
void leave (const forall &)
 
void enter (const exists &x)
 
void leave (const exists &)
 
void apply (const propositional_variable_instantiation &x)
 
void enter (const data::data_expression &x)
 
- Public Member Functions inherited from mcrl2::pbes_system::add_traverser_pbes_expressions< Traverser, Derived >
void apply (const pbes_system::pbes_equation &x)
 
void apply (const pbes_system::pbes &x)
 
void apply (const pbes_system::propositional_variable_instantiation &x)
 
void apply (const pbes_system::not_ &x)
 
void apply (const pbes_system::and_ &x)
 
void apply (const pbes_system::or_ &x)
 
void apply (const pbes_system::imp &x)
 
void apply (const pbes_system::forall &x)
 
void apply (const pbes_system::exists &x)
 
void apply (const pbes_system::pbes_expression &x)
 

Public Attributes

data::variable_list bound_variables
 
std::vector< data::variable_list > quantifier_stack
 
std::map< data::variable, std::size_t > result
 
bool search_propositional_variables
 

Detailed Description

Definition at line 10 of file count_free_variables.h.

Member Typedef Documentation

◆ super

Constructor & Destructor Documentation

◆ count_free_variable_occurrences_traverser() [1/2]

mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser::count_free_variable_occurrences_traverser ( bool  search_propositional_variables_ = true)
inline

Definition at line 23 of file count_free_variables.h.

◆ count_free_variable_occurrences_traverser() [2/2]

mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser::count_free_variable_occurrences_traverser ( const data::variable_list &  bound_variables_,
bool  search_propositional_variables_ = true 
)
inline

Definition at line 27 of file count_free_variables.h.

Member Function Documentation

◆ apply()

void mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser::apply ( const propositional_variable_instantiation &  x)
inline

Definition at line 61 of file count_free_variables.h.

◆ enter() [1/3]

void mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser::enter ( const data::data_expression &  x)
inline

Definition at line 75 of file count_free_variables.h.

◆ enter() [2/3]

void mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser::enter ( const exists &  x)
inline

Definition at line 57 of file count_free_variables.h.

◆ enter() [3/3]

void mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser::enter ( const forall &  x)
inline

Definition at line 53 of file count_free_variables.h.

◆ is_bound()

bool mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser::is_bound ( const data::variable &  v) const
inline

Definition at line 33 of file count_free_variables.h.

◆ leave() [1/2]

void mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser::leave ( const exists &  )
inline

Definition at line 59 of file count_free_variables.h.

◆ leave() [2/2]

void mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser::leave ( const forall &  )
inline

Definition at line 55 of file count_free_variables.h.

◆ pop()

void mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser::pop ( )
inline

Definition at line 51 of file count_free_variables.h.

◆ push()

void mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser::push ( const data::variable_list &  v)
inline

Definition at line 49 of file count_free_variables.h.

Member Data Documentation

◆ bound_variables

data::variable_list mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser::bound_variables

Definition at line 18 of file count_free_variables.h.

◆ quantifier_stack

std::vector<data::variable_list> mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser::quantifier_stack

Definition at line 19 of file count_free_variables.h.

◆ result

std::map<data::variable, std::size_t> mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser::result

Definition at line 20 of file count_free_variables.h.

◆ search_propositional_variables

bool mcrl2::pbes_system::detail::count_free_variable_occurrences_traverser::search_propositional_variables

Definition at line 21 of file count_free_variables.h.


The documentation for this struct was generated from the following file: