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

#include <pbessolve_algorithm.h>

Inheritance diagram for mcrl2::pbes_system::detail::pbessolve_tool:
mcrl2::utilities::tools::parallel_tool< rewriter_tool< pbes_input_tool< input_tool > > > mcrl2::data::tools::rewriter_tool< pbes_input_tool< input_tool > > mcrl2::pbes_system::tools::pbes_input_tool< input_tool >

Public Member Functions

 pbessolve_tool (const std::string &toolname)
 
void check_param_match (const mcrl2::data::variable_list Xparams, const mcrl2::data::variable_list X_hatparams)
 Sanity checks for guessing the redundant parameters between two PBESs.
 
std::set< int > get_param_difference (const mcrl2::data::variable_list Xparams, const mcrl2::data::variable_list X_hatparams)
 Returns the difference between two lists of pbes equation parameters.
 
std::unordered_map< std::string, std::set< int > > construct_R (pbes_system::pbes first, pbes_system::pbes second)
 Compares two PBESs to guess, for each equation sigma X(d: D) = ..., which parameters in d: D are redundant in X. Records the position of a parameter d in R[X] when d is a param of X in the second pbes, but not in the first one.
 
template<typename PbesInstAlgorithm , typename PbesInstAlgorithmCE >
void run_algorithm (pbes_system::pbes &pbesspec, const data::mutable_map_substitution<> &sigma)
 
bool run () override
 
- Public Member Functions inherited from mcrl2::utilities::tools::parallel_tool< rewriter_tool< pbes_input_tool< input_tool > > >
 parallel_tool (const std::string &name, const std::string &author, const std::string &what_is, const std::string &tool_description, std::string known_issues="")
 Constructor.
 
std::size_t number_of_threads () const
 Returns the number of threads in this tool.
 
- Public Member Functions inherited from mcrl2::data::tools::rewriter_tool< pbes_input_tool< input_tool > >
 rewriter_tool (const std::string &name, const std::string &author, const std::string &what_is, const std::string &tool_description, std::string known_issues="")
 Constructor.
 
data::rewrite_strategy rewrite_strategy () const
 Returns the rewrite strategy.
 
data::rewriter create_rewriter (const data::data_specification &data_spec=data::data_specification())
 Creates a data rewriter as specified on the command line.
 
- Public Member Functions inherited from mcrl2::pbes_system::tools::pbes_input_tool< input_tool >
 pbes_input_tool (const std::string &name, const std::string &author, const std::string &what_is, const std::string &tool_description, std::string known_issues="")
 Constructor.
 
 ~pbes_input_tool () override=default
 Destructor.
 
utilities::file_format pbes_input_format () const
 Returns the input file format.
 

Protected Types

using super = parallel_tool< rewriter_tool< pbes_input_tool< input_tool > > >
 

Protected Member Functions

void add_options (utilities::interface_description &desc) override
 
void parse_options (const utilities::command_line_parser &parser) override
 
std::set< utilities::file_format > available_input_formats () const override
 Returns the file formats that are available for this tool. Override this method to change the standard behavior.
 
- Protected Member Functions inherited from mcrl2::utilities::tools::parallel_tool< rewriter_tool< pbes_input_tool< input_tool > > >
void add_options (utilities::interface_description &desc) override
 Add the –threads option to an interface description.
 
void parse_options (const utilities::command_line_parser &parser) override
 Parse non-standard options.
 
- Protected Member Functions inherited from mcrl2::data::tools::rewriter_tool< pbes_input_tool< input_tool > >
void add_options (utilities::interface_description &desc, bool suppress_jittyp)
 Add options to an interface description. Also includes rewriter options.
 
void add_options (utilities::interface_description &desc) override
 Add options to an interface description. Also includes rewriter options.
 
void parse_options (const utilities::command_line_parser &parser) override
 Parse non-standard options.
 
- Protected Member Functions inherited from mcrl2::pbes_system::tools::pbes_input_tool< input_tool >
virtual std::set< utilities::file_format > available_input_formats () const
 Returns the file formats that are available for this tool. Override this method to change the standard behavior.
 
virtual utilities::file_format default_input_format () const
 Returns the default file format. Override this method to change the standard behavior.
 
void add_options (utilities::interface_description &desc) override
 Add options to an interface description. Also includes input format options.
 
void parse_options (const utilities::command_line_parser &parser) override
 Parse non-standard options.
 

Protected Attributes

pbessolve_options options
 
int m_short_strategy = 0
 
partial_solve_strategy m_long_strategy = partial_solve_strategy::none
 
std::string lpsfile
 
std::string ltsfile
 
std::string evidence_file
 
std::string original_pbes_file
 
- Protected Attributes inherited from mcrl2::utilities::tools::parallel_tool< rewriter_tool< pbes_input_tool< input_tool > > >
std::size_t m_number_of_threads
 The number of threads in the parallel tool.
 
- Protected Attributes inherited from mcrl2::data::tools::rewriter_tool< pbes_input_tool< input_tool > >
data::rewrite_strategy m_rewrite_strategy
 The data rewriter strategy.
 
std::size_t m_qlimit
 The limit on the number of rewriting steps in quantifiers. By default 10;.
 
- Protected Attributes inherited from mcrl2::pbes_system::tools::pbes_input_tool< input_tool >
utilities::file_format m_pbes_input_format
 The type of the pbes input format.
 

Detailed Description

Definition at line 146 of file pbessolve_algorithm.h.

Member Typedef Documentation

◆ super

Constructor & Destructor Documentation

◆ pbessolve_tool()

mcrl2::pbes_system::detail::pbessolve_tool::pbessolve_tool ( const std::string &  toolname)
inline

Definition at line 301 of file pbessolve_algorithm.h.

Member Function Documentation

◆ add_options()

void mcrl2::pbes_system::detail::pbessolve_tool::add_options ( utilities::interface_description &  desc)
inlineoverrideprotected

Definition at line 160 of file pbessolve_algorithm.h.

◆ available_input_formats()

std::set< utilities::file_format > mcrl2::pbes_system::detail::pbessolve_tool::available_input_formats ( ) const
inlineoverrideprotectedvirtual

Returns the file formats that are available for this tool. Override this method to change the standard behavior.

Returns
The set { pbes, bes, pgsolver }

Reimplemented from mcrl2::pbes_system::tools::pbes_input_tool< input_tool >.

Definition at line 295 of file pbessolve_algorithm.h.

◆ check_param_match()

void mcrl2::pbes_system::detail::pbessolve_tool::check_param_match ( const mcrl2::data::variable_list  Xparams,
const mcrl2::data::variable_list  X_hatparams 
)
inline

Sanity checks for guessing the redundant parameters between two PBESs.

Parameters
XparamsA list of parameters of a pbes equation X.
X_hatparamsA list of parameters of a pbes equation X_hat.

Definition at line 316 of file pbessolve_algorithm.h.

◆ construct_R()

std::unordered_map< std::string, std::set< int > > mcrl2::pbes_system::detail::pbessolve_tool::construct_R ( pbes_system::pbes  first,
pbes_system::pbes  second 
)
inline

Compares two PBESs to guess, for each equation sigma X(d: D) = ..., which parameters in d: D are redundant in X. Records the position of a parameter d in R[X] when d is a param of X in the second pbes, but not in the first one.

Parameters
firstA pbes.
secondThe version of the first pbes before pbesparelm.
Returns
A mapping R of equation variables X from pbes second to positions of parameters that are redundant in X.

Definition at line 362 of file pbessolve_algorithm.h.

◆ get_param_difference()

std::set< int > mcrl2::pbes_system::detail::pbessolve_tool::get_param_difference ( const mcrl2::data::variable_list  Xparams,
const mcrl2::data::variable_list  X_hatparams 
)
inline

Returns the difference between two lists of pbes equation parameters.

Parameters
XparamsA list of parameters of a pbes equation X.
X_hatparamsA list of parameters of a pbes equation X_hat.
Returns
A set R of positions of parameters that occur in X, but not in X_hat.

Definition at line 337 of file pbessolve_algorithm.h.

◆ parse_options()

void mcrl2::pbes_system::detail::pbessolve_tool::parse_options ( const utilities::command_line_parser &  parser)
inlineoverrideprotected

Definition at line 238 of file pbessolve_algorithm.h.

◆ run()

bool mcrl2::pbes_system::detail::pbessolve_tool::run ( )
inlineoverride

Definition at line 487 of file pbessolve_algorithm.h.

◆ run_algorithm()

template<typename PbesInstAlgorithm , typename PbesInstAlgorithmCE >
void mcrl2::pbes_system::detail::pbessolve_tool::run_algorithm ( pbes_system::pbes &  pbesspec,
const data::mutable_map_substitution<> &  sigma 
)
inline

Definition at line 389 of file pbessolve_algorithm.h.

Member Data Documentation

◆ evidence_file

std::string mcrl2::pbes_system::detail::pbessolve_tool::evidence_file
protected

Definition at line 157 of file pbessolve_algorithm.h.

◆ lpsfile

std::string mcrl2::pbes_system::detail::pbessolve_tool::lpsfile
protected

Definition at line 155 of file pbessolve_algorithm.h.

◆ ltsfile

std::string mcrl2::pbes_system::detail::pbessolve_tool::ltsfile
protected

Definition at line 156 of file pbessolve_algorithm.h.

◆ m_long_strategy

partial_solve_strategy mcrl2::pbes_system::detail::pbessolve_tool::m_long_strategy = partial_solve_strategy::none
protected

Definition at line 154 of file pbessolve_algorithm.h.

◆ m_short_strategy

int mcrl2::pbes_system::detail::pbessolve_tool::m_short_strategy = 0
protected

Definition at line 153 of file pbessolve_algorithm.h.

◆ options

pbessolve_options mcrl2::pbes_system::detail::pbessolve_tool::options
protected

Definition at line 152 of file pbessolve_algorithm.h.

◆ original_pbes_file

std::string mcrl2::pbes_system::detail::pbessolve_tool::original_pbes_file
protected

Definition at line 158 of file pbessolve_algorithm.h.


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