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

#include <bqnf_quantifier_rewriter.h>

Inheritance diagram for mcrl2::pbes_system::detail::bqnf_quantifier_rewriter:
mcrl2::pbes_system::detail::bqnf_visitor

Public Member Functions

 bqnf_quantifier_rewriter ()=default
 Constructor.
 
virtual pbes_expression filter (const pbes_expression &e, const std::set< data::variable > &d)
 Filters the expression e such that subexpressions that are data expression that do not refer to variables in the set d are discarded: filter(e, d) = e if e is a data expression and the intersection of free(e) and d is not empty; filter(e1 'op' e2, d) = filter(e1, d) 'op' filter(e2, d).
 
virtual pbes_expression filter_guard (const pbes_expression &g, const pbes_expression &phi_i, const data::variable_list &d)
 Filters a 'guard' g with respect to a set of variables d and an expression phi_i such that parts of g that not relevant for phi_i are discarded. filter_guard(g, phi_i, d) = ( exists_{d intersects (free(g) - free(phi_i))} . filter(g, {d - free(phi_i))) && filter(g, d intersects free(phi_i)).
 
virtual pbes_expression rewrite_bounded_forall (const pbes_expression &e)
 Rewrites a bounded universal quantifier expression. If the subexpression is a conjunction, the quantifier over the conjunction is transformed to a conjunction of quantifier expressions. rewrite_bounded_forall(forall x . phi => /_i psi_i) = /_i forall (x intersection free(psi_i)) . filter_guard(phi, psi_i, x) => rewrite_bqnf_expression(psi_i).
 
virtual pbes_expression rewrite_bounded_exists (const pbes_expression &e)
 Rewrites a bounded existential quantifier expression. rewrite_bounded_exists(exists v . phi) = exists v. rewrite_bqnf_expression(phi)
 
virtual pbes_expression rewrite_and (const pbes_expression &e)
 Rewrites a conjunctive expression. rewrite_imp(/_i phi_i) = /_i rewrite_bqnf_expression(phi_i).
 
virtual pbes_expression rewrite_or (const pbes_expression &e)
 Rewrites a disjunctive expression. rewrite_imp(\/_i phi_i) = \/_i rewrite_bqnf_expression(phi_i).
 
virtual pbes_expression rewrite_imp (const pbes_expression &e)
 Rewrites an implication: rewrite_imp(phi => psi) = rewrite_bqnf_expression(phi) => rewrite_bqnf_expression(psi).
 
virtual pbes_expression rewrite_bqnf_expression (const pbes_expression &e)
 Rewrites a BQNF expression. Replaces universal quantifier over conjuncts with conjuncts over universal quantifiers: rewrite_bqnf_expression(forall x . /_i phi_i) = /_i forall (x intersection free(phi_i)) . phi_i For subexpressions the transformation is done in the usual way: rewrite_bqnf_expression(phi 'op' psi) = rewrite_bqnf_expression(phi) 'op' rewrite_bqnf_expression(psi).
 
- Public Member Functions inherited from mcrl2::pbes_system::detail::bqnf_visitor
virtual ~bqnf_visitor ()=default
 Destructor.
 
virtual bool visit_simple_expression (const fixpoint_symbol &sigma, const propositional_variable &var, const pbes_expression &e)
 Visits a simple expression. An expression is simple if it does not contain propositional variables.
 
virtual bool visit_propositional_variable (const fixpoint_symbol &, const propositional_variable &, const pbes_expression &e)
 Visits a propositional variable expression.
 
virtual bool visit_inner_and (const fixpoint_symbol &sigma, const propositional_variable &var, const pbes_expression &e)
 Visits a conjunctive expression within an inner existential quantifier expression.
 
virtual bool visit_inner_bounded_exists (const fixpoint_symbol &sigma, const propositional_variable &var, const pbes_expression &e)
 Visits a bounded existential quantifier expression within a disjunctive expression.
 
virtual bool visit_or (const fixpoint_symbol &sigma, const propositional_variable &var, const pbes_expression &e)
 Visits a disjunctive expression.
 
virtual bool visit_inner_bounded_forall (const fixpoint_symbol &sigma, const propositional_variable &var, const pbes_expression &e)
 Visits a bounded universal quantifier expression within a conjunctive expression.
 
virtual bool visit_and (const fixpoint_symbol &sigma, const propositional_variable &var, const pbes_expression &e)
 Visits a conjunctive expression.
 
virtual bool visit_bounded_forall (const fixpoint_symbol &sigma, const propositional_variable &var, const pbes_expression &e)
 Visits a bounded universal quantifier expression.
 
virtual bool visit_bounded_exists (const fixpoint_symbol &sigma, const propositional_variable &var, const pbes_expression &e)
 Visits a bounded existential quantifier expression.
 
virtual bool visit_bounded_quantifier (const fixpoint_symbol &sigma, const propositional_variable &var, const pbes_expression &e)
 Visits a bounded quantifier expression.
 
virtual bool visit_bqnf_expression (const fixpoint_symbol &sigma, const propositional_variable &var, const pbes_expression &e)
 Visits a BQNF expression.
 
virtual bool visit_bqnf_expression (const pbes_expression &e)
 Visits a BQNF expression. In the current BQNF visitor sigma and var parameters are added for use in bqnf2ppg_rewriter. This functions adds dummy values for sigma and var.
 
virtual bool visit_bqnf_equation (const pbes_equation &eqn)
 Visits a BQNF equation.
 
virtual bool visit_bqnf_equation_debug (const pbes_equation &eqn)
 Visits a BQNF equation in debug mode.
 

Additional Inherited Members

- Static Public Member Functions inherited from mcrl2::pbes_system::detail::bqnf_visitor
static std::string print_brief (const pbes_expression &e)
 Returns a string representation of the type of the root node of the expression.
 
static bool is_inner_and (const pbes_expression &e)
 Determines if an expression if of the form phi /\ psi where phi is a simple expression and psi is an arbitrary expression.
 
static bool is_inner_implies (const pbes_expression &e)
 Determines if an expression if of the form phi => psi or of the form phi \/ psi where phi is a simple expression and psi is an arbitrary expression.
 
- Public Attributes inherited from mcrl2::pbes_system::detail::bqnf_visitor
bool debug = false
 flag that indicates if debug output should be printed.
 

Detailed Description

Definition at line 22 of file bqnf_quantifier_rewriter.h.

Constructor & Destructor Documentation

◆ bqnf_quantifier_rewriter()

mcrl2::pbes_system::detail::bqnf_quantifier_rewriter::bqnf_quantifier_rewriter ( )
default

Constructor.

Member Function Documentation

◆ filter()

virtual pbes_expression mcrl2::pbes_system::detail::bqnf_quantifier_rewriter::filter ( const pbes_expression &  e,
const std::set< data::variable > &  d 
)
inlinevirtual

Filters the expression e such that subexpressions that are data expression that do not refer to variables in the set d are discarded: filter(e, d) = e if e is a data expression and the intersection of free(e) and d is not empty; filter(e1 'op' e2, d) = filter(e1, d) 'op' filter(e2, d).

Parameters
ea simple PBES expression.
da set of variables.
Returns
the filtered expression.

Definition at line 34 of file bqnf_quantifier_rewriter.h.

◆ filter_guard()

virtual pbes_expression mcrl2::pbes_system::detail::bqnf_quantifier_rewriter::filter_guard ( const pbes_expression &  g,
const pbes_expression &  phi_i,
const data::variable_list &  d 
)
inlinevirtual

Filters a 'guard' g with respect to a set of variables d and an expression phi_i such that parts of g that not relevant for phi_i are discarded. filter_guard(g, phi_i, d) = ( exists_{d intersects (free(g) - free(phi_i))} . filter(g, {d - free(phi_i))) && filter(g, d intersects free(phi_i)).

Parameters
ga simple expression that functions as guard.
phi_ia PBES expression.
da set of relevant variables.
Returns
the expression g filtered with respect to phi_i and d.

Definition at line 114 of file bqnf_quantifier_rewriter.h.

◆ rewrite_and()

virtual pbes_expression mcrl2::pbes_system::detail::bqnf_quantifier_rewriter::rewrite_and ( const pbes_expression &  e)
inlinevirtual

Rewrites a conjunctive expression. rewrite_imp(/_i phi_i) = /_i rewrite_bqnf_expression(phi_i).

Parameters
ea PBES expression
Returns
the expression resulting from the transformation.

Definition at line 301 of file bqnf_quantifier_rewriter.h.

◆ rewrite_bounded_exists()

virtual pbes_expression mcrl2::pbes_system::detail::bqnf_quantifier_rewriter::rewrite_bounded_exists ( const pbes_expression &  e)
inlinevirtual

Rewrites a bounded existential quantifier expression. rewrite_bounded_exists(exists v . phi) = exists v. rewrite_bqnf_expression(phi)

Parameters
ea PBES expression
Returns
the expression resulting from the transformation.

Definition at line 282 of file bqnf_quantifier_rewriter.h.

◆ rewrite_bounded_forall()

virtual pbes_expression mcrl2::pbes_system::detail::bqnf_quantifier_rewriter::rewrite_bounded_forall ( const pbes_expression &  e)
inlinevirtual

Rewrites a bounded universal quantifier expression. If the subexpression is a conjunction, the quantifier over the conjunction is transformed to a conjunction of quantifier expressions. rewrite_bounded_forall(forall x . phi => /_i psi_i) = /_i forall (x intersection free(psi_i)) . filter_guard(phi, psi_i, x) => rewrite_bqnf_expression(psi_i).

Parameters
ea PBES expression
Returns
the expression resulting from the transformation.

Definition at line 192 of file bqnf_quantifier_rewriter.h.

◆ rewrite_bqnf_expression()

virtual pbes_expression mcrl2::pbes_system::detail::bqnf_quantifier_rewriter::rewrite_bqnf_expression ( const pbes_expression &  e)
inlinevirtual

Rewrites a BQNF expression. Replaces universal quantifier over conjuncts with conjuncts over universal quantifiers: rewrite_bqnf_expression(forall x . /_i phi_i) = /_i forall (x intersection free(phi_i)) . phi_i For subexpressions the transformation is done in the usual way: rewrite_bqnf_expression(phi 'op' psi) = rewrite_bqnf_expression(phi) 'op' rewrite_bqnf_expression(psi).

Parameters
ea PBES expression
Returns
the expression resulting from the transformation.

Definition at line 364 of file bqnf_quantifier_rewriter.h.

◆ rewrite_imp()

virtual pbes_expression mcrl2::pbes_system::detail::bqnf_quantifier_rewriter::rewrite_imp ( const pbes_expression &  e)
inlinevirtual

Rewrites an implication: rewrite_imp(phi => psi) = rewrite_bqnf_expression(phi) => rewrite_bqnf_expression(psi).

Parameters
ea PBES expression
Returns
the expression resulting from the transformation.

Definition at line 346 of file bqnf_quantifier_rewriter.h.

◆ rewrite_or()

virtual pbes_expression mcrl2::pbes_system::detail::bqnf_quantifier_rewriter::rewrite_or ( const pbes_expression &  e)
inlinevirtual

Rewrites a disjunctive expression. rewrite_imp(\/_i phi_i) = \/_i rewrite_bqnf_expression(phi_i).

Parameters
ea PBES expression
Returns
the expression resulting from the transformation.

Definition at line 323 of file bqnf_quantifier_rewriter.h.


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