mCRL2
Loading...
Searching...
No Matches
mcrl2::pbes_system::detail::stategraph_algorithm Class Reference

Algorithm class for the computation of the local and global control flow graphs. More...

#include <stategraph_algorithm.h>

Inheritance diagram for mcrl2::pbes_system::detail::stategraph_algorithm:
mcrl2::pbes_system::detail::stategraph_global_algorithm mcrl2::pbes_system::detail::stategraph_local_algorithm mcrl2::pbes_system::detail::global_reset_variables_algorithm mcrl2::pbes_system::detail::local_reset_variables_algorithm mcrl2::pbes_system::detail::lpsstategraph_algorithm

Public Member Functions

void simplify (stategraph_pbes &p) const
 
const std::map< core::identifier_string, std::vector< bool > > & get_GCFP () const
 
void compute_control_flow_parameters ()
 
template<typename T >
std::string print_control_flow_parameters (const std::string &msg, T &is_CFP)
 
std::string print_LCFP ()
 
std::string print_GCFP ()
 
template<typename Map >
bool is_undefined (const Map &m, const typename Map::key_type &key) const
 
template<typename Map >
bool is_mapped_to (const Map &m, const typename Map::key_type &key, const typename Map::mapped_type &value) const
 
bool maps_to_and_is_GFCP (const std::map< std::size_t, std::size_t > &m, std::size_t value, const core::identifier_string &X)
 
void compute_local_control_flow_parameters ()
 
void compute_global_control_flow_parameters ()
 
bool is_LCFP_parameter (const core::identifier_string &X, std::size_t i) const
 
bool is_GCFP_parameter (const core::identifier_string &X, std::size_t i) const
 
bool is_global_control_flow_parameter (const core::identifier_string &X, std::size_t i) const
 
void relate_GCFP_vertices (const core::identifier_string &X, std::size_t n, const core::identifier_string &Y, std::size_t m)
 
std::string print_cfp (const core::identifier_string &X, std::size_t i) const
 
std::string log_related_parameters (const core::identifier_string &X, std::size_t n, const core::identifier_string &Y, std::size_t m, const predicate_variable &Ye, const std::string &reason="") const
 
void compute_related_GCFP_parameters ()
 
bool is_valid_connected_component (const std::set< std::size_t > &component) const
 
std::string print_connected_component (const std::set< std::size_t > &component) const
 
void print_connected_components () const
 
std::set< std::size_t > compute_connected_component (std::size_t i, std::vector< bool > &done) const
 
void compute_connected_components ()
 
void remove_invalid_connected_components ()
 
bool is_not_only_copied (const core::identifier_string &X, std::size_t m) const
 
bool has_only_copied_CFPs (const std::set< std::size_t > &component) const
 
void remove_only_copy_components ()
 
const std::vector< bool > & is_GCFP (const core::identifier_string &X) const
 
std::set< data::variable > control_flow_parameters (const core::identifier_string &X) const
 
std::vector< std::size_t > control_flow_parameter_indices (const core::identifier_string &X) const
 
std::string print_data_parameters (const core::identifier_string &X, const std::set< std::size_t > &I) const
 
void set_parameters (const stategraph_pbes &p)
 
void print_final_control_flow_parameters () const
 
 stategraph_algorithm (const pbes &p, const pbesstategraph_options &options)
 Constructor.
 
virtual ~stategraph_algorithm ()=default
 Destructor.
 
const std::vector< std::set< std::size_t > > & connected_components () const
 Returns the connected components of the global control flow graph.
 
std::string print (const GCFP_vertex &u) const
 
std::set< data::data_expression > compute_connected_component_values (const std::set< std::size_t > &component)
 Computes the values that the CFPs in component can attain.
 
void compute_connected_component_values ()
 
std::vector< data::data_expression > compute_values (const core::identifier_string &X, std::size_t j) const
 
void run ()
 
virtual void execute_preprocessing ()
 
virtual void execute_core ()
 
virtual void execute_postprocessing ()
 
const stategraph_pbes & get_pbes () const
 
const GCFP_graph & GCFP () const
 
std::vector< local_control_flow_graph > & local_graphs ()
 
const std::vector< local_control_flow_graph > & local_graphs () const
 

Protected Member Functions

std::set< data::variable > FV (const data::data_expression &x) const
 
void start_timer (const std::string &msg) const
 
void finish_timer (const std::string &msg) const
 

Protected Attributes

stategraph_pbes m_pbes
 
data::rewriter m_datar
 
pbesstategraph_options m_options
 
std::map< core::identifier_string, std::vector< bool > > m_is_LCFP
 
std::map< core::identifier_string, std::vector< bool > > m_is_GCFP
 
GCFP_graph m_GCFP_graph
 
std::vector< std::set< std::size_t > > m_connected_components
 
std::vector< std::set< data::data_expression > > m_connected_components_values
 
std::vector< local_control_flow_graph > m_local_control_flow_graphs
 

Detailed Description

Algorithm class for the computation of the local and global control flow graphs.

Definition at line 37 of file stategraph_algorithm.h.

Constructor & Destructor Documentation

◆ stategraph_algorithm()

mcrl2::pbes_system::detail::stategraph_algorithm::stategraph_algorithm ( const pbes &  p,
const pbesstategraph_options &  options 
)
inline

Constructor.

Definition at line 747 of file stategraph_algorithm.h.

◆ ~stategraph_algorithm()

virtual mcrl2::pbes_system::detail::stategraph_algorithm::~stategraph_algorithm ( )
virtualdefault

Destructor.

Member Function Documentation

◆ compute_connected_component()

std::set< std::size_t > mcrl2::pbes_system::detail::stategraph_algorithm::compute_connected_component ( std::size_t  i,
std::vector< bool > &  done 
) const
inline

Definition at line 494 of file stategraph_algorithm.h.

◆ compute_connected_component_values() [1/2]

void mcrl2::pbes_system::detail::stategraph_algorithm::compute_connected_component_values ( )
inline

Definition at line 832 of file stategraph_algorithm.h.

◆ compute_connected_component_values() [2/2]

std::set< data::data_expression > mcrl2::pbes_system::detail::stategraph_algorithm::compute_connected_component_values ( const std::set< std::size_t > &  component)
inline

Computes the values that the CFPs in component can attain.

Definition at line 771 of file stategraph_algorithm.h.

◆ compute_connected_components()

void mcrl2::pbes_system::detail::stategraph_algorithm::compute_connected_components ( )
inline

Definition at line 521 of file stategraph_algorithm.h.

◆ compute_control_flow_parameters()

void mcrl2::pbes_system::detail::stategraph_algorithm::compute_control_flow_parameters ( )
inline

Definition at line 106 of file stategraph_algorithm.h.

◆ compute_global_control_flow_parameters()

void mcrl2::pbes_system::detail::stategraph_algorithm::compute_global_control_flow_parameters ( )
inline

Definition at line 248 of file stategraph_algorithm.h.

◆ compute_local_control_flow_parameters()

void mcrl2::pbes_system::detail::stategraph_algorithm::compute_local_control_flow_parameters ( )
inline

Definition at line 183 of file stategraph_algorithm.h.

◆ compute_related_GCFP_parameters()

void mcrl2::pbes_system::detail::stategraph_algorithm::compute_related_GCFP_parameters ( )
inline

Definition at line 393 of file stategraph_algorithm.h.

◆ compute_values()

std::vector< data::data_expression > mcrl2::pbes_system::detail::stategraph_algorithm::compute_values ( const core::identifier_string &  X,
std::size_t  j 
) const
inline

Definition at line 844 of file stategraph_algorithm.h.

◆ connected_components()

const std::vector< std::set< std::size_t > > & mcrl2::pbes_system::detail::stategraph_algorithm::connected_components ( ) const
inline

Returns the connected components of the global control flow graph.

Definition at line 758 of file stategraph_algorithm.h.

◆ control_flow_parameter_indices()

std::vector< std::size_t > mcrl2::pbes_system::detail::stategraph_algorithm::control_flow_parameter_indices ( const core::identifier_string &  X) const
inline

Definition at line 633 of file stategraph_algorithm.h.

◆ control_flow_parameters()

std::set< data::variable > mcrl2::pbes_system::detail::stategraph_algorithm::control_flow_parameters ( const core::identifier_string &  X) const
inline

Definition at line 616 of file stategraph_algorithm.h.

◆ execute_core()

virtual void mcrl2::pbes_system::detail::stategraph_algorithm::execute_core ( )
inlinevirtual

◆ execute_postprocessing()

virtual void mcrl2::pbes_system::detail::stategraph_algorithm::execute_postprocessing ( )
inlinevirtual

◆ execute_preprocessing()

virtual void mcrl2::pbes_system::detail::stategraph_algorithm::execute_preprocessing ( )
inlinevirtual

Definition at line 867 of file stategraph_algorithm.h.

◆ finish_timer()

void mcrl2::pbes_system::detail::stategraph_algorithm::finish_timer ( const std::string &  msg) const
inlineprotected

Definition at line 97 of file stategraph_algorithm.h.

◆ FV()

std::set< data::variable > mcrl2::pbes_system::detail::stategraph_algorithm::FV ( const data::data_expression &  x) const
inlineprotected

Definition at line 84 of file stategraph_algorithm.h.

◆ GCFP()

const GCFP_graph & mcrl2::pbes_system::detail::stategraph_algorithm::GCFP ( ) const
inline

Definition at line 892 of file stategraph_algorithm.h.

◆ get_GCFP()

const std::map< core::identifier_string, std::vector< bool > > & mcrl2::pbes_system::detail::stategraph_algorithm::get_GCFP ( ) const
inline

Definition at line 53 of file stategraph_algorithm.h.

◆ get_pbes()

const stategraph_pbes & mcrl2::pbes_system::detail::stategraph_algorithm::get_pbes ( ) const
inline

Definition at line 887 of file stategraph_algorithm.h.

◆ has_only_copied_CFPs()

bool mcrl2::pbes_system::detail::stategraph_algorithm::has_only_copied_CFPs ( const std::set< std::size_t > &  component) const
inline

Definition at line 582 of file stategraph_algorithm.h.

◆ is_GCFP()

const std::vector< bool > & mcrl2::pbes_system::detail::stategraph_algorithm::is_GCFP ( const core::identifier_string &  X) const
inline

Definition at line 608 of file stategraph_algorithm.h.

◆ is_GCFP_parameter()

bool mcrl2::pbes_system::detail::stategraph_algorithm::is_GCFP_parameter ( const core::identifier_string &  X,
std::size_t  i 
) const
inline

Definition at line 339 of file stategraph_algorithm.h.

◆ is_global_control_flow_parameter()

bool mcrl2::pbes_system::detail::stategraph_algorithm::is_global_control_flow_parameter ( const core::identifier_string &  X,
std::size_t  i 
) const
inline

Definition at line 348 of file stategraph_algorithm.h.

◆ is_LCFP_parameter()

bool mcrl2::pbes_system::detail::stategraph_algorithm::is_LCFP_parameter ( const core::identifier_string &  X,
std::size_t  i 
) const
inline

Definition at line 330 of file stategraph_algorithm.h.

◆ is_mapped_to()

template<typename Map >
bool mcrl2::pbes_system::detail::stategraph_algorithm::is_mapped_to ( const Map &  m,
const typename Map::key_type &  key,
const typename Map::mapped_type &  value 
) const
inline

Definition at line 165 of file stategraph_algorithm.h.

◆ is_not_only_copied()

bool mcrl2::pbes_system::detail::stategraph_algorithm::is_not_only_copied ( const core::identifier_string &  X,
std::size_t  m 
) const
inline

Definition at line 554 of file stategraph_algorithm.h.

◆ is_undefined()

template<typename Map >
bool mcrl2::pbes_system::detail::stategraph_algorithm::is_undefined ( const Map &  m,
const typename Map::key_type &  key 
) const
inline

Definition at line 158 of file stategraph_algorithm.h.

◆ is_valid_connected_component()

bool mcrl2::pbes_system::detail::stategraph_algorithm::is_valid_connected_component ( const std::set< std::size_t > &  component) const
inline

Definition at line 450 of file stategraph_algorithm.h.

◆ local_graphs() [1/2]

std::vector< local_control_flow_graph > & mcrl2::pbes_system::detail::stategraph_algorithm::local_graphs ( )
inline

Definition at line 897 of file stategraph_algorithm.h.

◆ local_graphs() [2/2]

const std::vector< local_control_flow_graph > & mcrl2::pbes_system::detail::stategraph_algorithm::local_graphs ( ) const
inline

Definition at line 902 of file stategraph_algorithm.h.

◆ log_related_parameters()

std::string mcrl2::pbes_system::detail::stategraph_algorithm::log_related_parameters ( const core::identifier_string &  X,
std::size_t  n,
const core::identifier_string &  Y,
std::size_t  m,
const predicate_variable &  Ye,
const std::string &  reason = "" 
) const
inline

Definition at line 375 of file stategraph_algorithm.h.

◆ maps_to_and_is_GFCP()

bool mcrl2::pbes_system::detail::stategraph_algorithm::maps_to_and_is_GFCP ( const std::map< std::size_t, std::size_t > &  m,
std::size_t  value,
const core::identifier_string &  X 
)
inline

Definition at line 171 of file stategraph_algorithm.h.

◆ print()

std::string mcrl2::pbes_system::detail::stategraph_algorithm::print ( const GCFP_vertex &  u) const
inline

Definition at line 763 of file stategraph_algorithm.h.

◆ print_cfp()

std::string mcrl2::pbes_system::detail::stategraph_algorithm::print_cfp ( const core::identifier_string &  X,
std::size_t  i 
) const
inline

Definition at line 366 of file stategraph_algorithm.h.

◆ print_connected_component()

std::string mcrl2::pbes_system::detail::stategraph_algorithm::print_connected_component ( const std::set< std::size_t > &  component) const
inline

Definition at line 465 of file stategraph_algorithm.h.

◆ print_connected_components()

void mcrl2::pbes_system::detail::stategraph_algorithm::print_connected_components ( ) const
inline

Definition at line 485 of file stategraph_algorithm.h.

◆ print_control_flow_parameters()

template<typename T >
std::string mcrl2::pbes_system::detail::stategraph_algorithm::print_control_flow_parameters ( const std::string &  msg,
T &  is_CFP 
)
inline

Definition at line 126 of file stategraph_algorithm.h.

◆ print_data_parameters()

std::string mcrl2::pbes_system::detail::stategraph_algorithm::print_data_parameters ( const core::identifier_string &  X,
const std::set< std::size_t > &  I 
) const
inline

Definition at line 648 of file stategraph_algorithm.h.

◆ print_final_control_flow_parameters()

void mcrl2::pbes_system::detail::stategraph_algorithm::print_final_control_flow_parameters ( ) const
inline

Definition at line 707 of file stategraph_algorithm.h.

◆ print_GCFP()

std::string mcrl2::pbes_system::detail::stategraph_algorithm::print_GCFP ( )
inline

Definition at line 151 of file stategraph_algorithm.h.

◆ print_LCFP()

std::string mcrl2::pbes_system::detail::stategraph_algorithm::print_LCFP ( )
inline

Definition at line 146 of file stategraph_algorithm.h.

◆ relate_GCFP_vertices()

void mcrl2::pbes_system::detail::stategraph_algorithm::relate_GCFP_vertices ( const core::identifier_string &  X,
std::size_t  n,
const core::identifier_string &  Y,
std::size_t  m 
)
inline

Definition at line 358 of file stategraph_algorithm.h.

◆ remove_invalid_connected_components()

void mcrl2::pbes_system::detail::stategraph_algorithm::remove_invalid_connected_components ( )
inline

Definition at line 542 of file stategraph_algorithm.h.

◆ remove_only_copy_components()

void mcrl2::pbes_system::detail::stategraph_algorithm::remove_only_copy_components ( )
inline

Definition at line 598 of file stategraph_algorithm.h.

◆ run()

void mcrl2::pbes_system::detail::stategraph_algorithm::run ( )
inline

Definition at line 860 of file stategraph_algorithm.h.

◆ set_parameters()

void mcrl2::pbes_system::detail::stategraph_algorithm::set_parameters ( const stategraph_pbes &  p)
inline

Definition at line 660 of file stategraph_algorithm.h.

◆ simplify()

void mcrl2::pbes_system::detail::stategraph_algorithm::simplify ( stategraph_pbes &  p) const
inline

Definition at line 41 of file stategraph_algorithm.h.

◆ start_timer()

void mcrl2::pbes_system::detail::stategraph_algorithm::start_timer ( const std::string &  msg) const
inlineprotected

Definition at line 89 of file stategraph_algorithm.h.

Member Data Documentation

◆ m_connected_components

std::vector<std::set<std::size_t> > mcrl2::pbes_system::detail::stategraph_algorithm::m_connected_components
protected

Definition at line 75 of file stategraph_algorithm.h.

◆ m_connected_components_values

std::vector<std::set<data::data_expression> > mcrl2::pbes_system::detail::stategraph_algorithm::m_connected_components_values
protected

Definition at line 78 of file stategraph_algorithm.h.

◆ m_datar

data::rewriter mcrl2::pbes_system::detail::stategraph_algorithm::m_datar
protected

Definition at line 60 of file stategraph_algorithm.h.

◆ m_GCFP_graph

GCFP_graph mcrl2::pbes_system::detail::stategraph_algorithm::m_GCFP_graph
protected

Definition at line 72 of file stategraph_algorithm.h.

◆ m_is_GCFP

std::map<core::identifier_string, std::vector<bool> > mcrl2::pbes_system::detail::stategraph_algorithm::m_is_GCFP
protected

Definition at line 69 of file stategraph_algorithm.h.

◆ m_is_LCFP

std::map<core::identifier_string, std::vector<bool> > mcrl2::pbes_system::detail::stategraph_algorithm::m_is_LCFP
protected

Definition at line 66 of file stategraph_algorithm.h.

◆ m_local_control_flow_graphs

std::vector<local_control_flow_graph> mcrl2::pbes_system::detail::stategraph_algorithm::m_local_control_flow_graphs
protected

Definition at line 81 of file stategraph_algorithm.h.

◆ m_options

pbesstategraph_options mcrl2::pbes_system::detail::stategraph_algorithm::m_options
protected

Definition at line 63 of file stategraph_algorithm.h.

◆ m_pbes

stategraph_pbes mcrl2::pbes_system::detail::stategraph_algorithm::m_pbes
protected

Definition at line 57 of file stategraph_algorithm.h.


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