|
PPL
0.12.1
|
The partially reduced product of two abstractions. More...
#include <Partially_Reduced_Product.defs.hh>
Public Member Functions | |
| Partially_Reduced_Product (dimension_type num_dimensions=0, Degenerate_Element kind=UNIVERSE) | |
| Builds an object having the specified properties. | |
| Partially_Reduced_Product (const Congruence_System &cgs) | |
| Builds a pair, copying a system of congruences. | |
| Partially_Reduced_Product (Congruence_System &cgs) | |
| Builds a pair, recycling a system of congruences. | |
| Partially_Reduced_Product (const Constraint_System &cs) | |
| Builds a pair, copying a system of constraints. | |
| Partially_Reduced_Product (Constraint_System &cs) | |
| Builds a pair, recycling a system of constraints. | |
| Partially_Reduced_Product (const C_Polyhedron &ph, Complexity_Class complexity=ANY_COMPLEXITY) | |
| Builds a product, from a C polyhedron. | |
| Partially_Reduced_Product (const NNC_Polyhedron &ph, Complexity_Class complexity=ANY_COMPLEXITY) | |
| Builds a product, from an NNC polyhedron. | |
| Partially_Reduced_Product (const Grid &gr, Complexity_Class complexity=ANY_COMPLEXITY) | |
| Builds a product, from a grid. | |
| template<typename Interval > | |
| Partially_Reduced_Product (const Box< Interval > &box, Complexity_Class complexity=ANY_COMPLEXITY) | |
| Builds a product out of a box. | |
| template<typename U > | |
| Partially_Reduced_Product (const BD_Shape< U > &bd, Complexity_Class complexity=ANY_COMPLEXITY) | |
| Builds a product out of a BD shape. | |
| template<typename U > | |
| Partially_Reduced_Product (const Octagonal_Shape< U > &os, Complexity_Class complexity=ANY_COMPLEXITY) | |
| Builds a product out of an octagonal shape. | |
| Partially_Reduced_Product (const Partially_Reduced_Product &y, Complexity_Class complexity=ANY_COMPLEXITY) | |
| Ordinary copy constructor. | |
| template<typename E1 , typename E2 , typename S > | |
| Partially_Reduced_Product (const Partially_Reduced_Product< E1, E2, S > &y, Complexity_Class complexity=ANY_COMPLEXITY) | |
Builds a conservative, upward approximation of y. | |
| Partially_Reduced_Product & | operator= (const Partially_Reduced_Product &y) |
The assignment operator. (*this and y can be dimension-incompatible.) | |
| bool | reduce () const |
| Reduce. | |
Member Functions that Do Not Modify the Partially_Reduced_Product | |
| dimension_type | space_dimension () const |
Returns the dimension of the vector space enclosing *this. | |
| dimension_type | affine_dimension () const |
Returns the minimum affine dimension (see also grid affine dimension) of the components of *this. | |
| const D1 & | domain1 () const |
| Returns a constant reference to the first of the pair. | |
| const D2 & | domain2 () const |
| Returns a constant reference to the second of the pair. | |
| Constraint_System | constraints () const |
Returns a system of constraints which approximates *this. | |
| Constraint_System | minimized_constraints () const |
Returns a system of constraints which approximates *this, in reduced form. | |
| Congruence_System | congruences () const |
Returns a system of congruences which approximates *this. | |
| Congruence_System | minimized_congruences () const |
Returns a system of congruences which approximates *this, in reduced form. | |
| Poly_Con_Relation | relation_with (const Constraint &c) const |
Returns the relations holding between *this and c. | |
| Poly_Con_Relation | relation_with (const Congruence &cg) const |
Returns the relations holding between *this and cg. | |
| Poly_Gen_Relation | relation_with (const Generator &g) const |
Returns the relations holding between *this and g. | |
| bool | is_empty () const |
Returns true if and only if either of the components of *this are empty. | |
| bool | is_universe () const |
Returns true if and only if both of the components of *this are the universe. | |
| bool | is_topologically_closed () const |
Returns true if and only if both of the components of *this are topologically closed subsets of the vector space. | |
| bool | is_disjoint_from (const Partially_Reduced_Product &y) const |
Returns true if and only if *this and y are componentwise disjoint. | |
| bool | is_discrete () const |
Returns true if and only if a component of *this is discrete. | |
| bool | is_bounded () const |
Returns true if and only if a component of *this is bounded. | |
| bool | constrains (Variable var) const |
Returns true if and only if var is constrained in *this. | |
| bool | bounds_from_above (const Linear_Expression &expr) const |
Returns true if and only if expr is bounded in *this. | |
| bool | bounds_from_below (const Linear_Expression &expr) const |
Returns true if and only if expr is bounded in *this. | |
| bool | maximize (const Linear_Expression &expr, Coefficient &sup_n, Coefficient &sup_d, bool &maximum) const |
Returns true if and only if *this is not empty and expr is bounded from above in *this, in which case the supremum value is computed. | |
| bool | maximize (const Linear_Expression &expr, Coefficient &sup_n, Coefficient &sup_d, bool &maximum, Generator &g) const |
Returns true if and only if *this is not empty and expr is bounded from above in *this, in which case the supremum value and a point where expr reaches it are computed. | |
| bool | minimize (const Linear_Expression &expr, Coefficient &inf_n, Coefficient &inf_d, bool &minimum) const |
Returns true if and only if *this is not empty and expr is bounded from below i *this, in which case the infimum value is computed. | |
| bool | minimize (const Linear_Expression &expr, Coefficient &inf_n, Coefficient &inf_d, bool &minimum, Generator &g) const |
Returns true if and only if *this is not empty and expr is bounded from below in *this, in which case the infimum value and a point where expr reaches it are computed. | |
| bool | contains (const Partially_Reduced_Product &y) const |
Returns true if and only if each component of *this contains the corresponding component of y. | |
| bool | strictly_contains (const Partially_Reduced_Product &y) const |
Returns true if and only if each component of *this strictly contains the corresponding component of y. | |
| bool | OK () const |
| Checks if all the invariants are satisfied. | |
Space Dimension Preserving Member Functions that May Modify the Partially_Reduced_Product | |
| void | add_constraint (const Constraint &c) |
Adds constraint c to *this. | |
| void | refine_with_constraint (const Constraint &c) |
Use the constraint c to refine *this. | |
| void | add_congruence (const Congruence &cg) |
Adds a copy of congruence cg to *this. | |
| void | refine_with_congruence (const Congruence &cg) |
Use the congruence cg to refine *this. | |
| void | add_congruences (const Congruence_System &cgs) |
Adds a copy of the congruences in cgs to *this. | |
| void | refine_with_congruences (const Congruence_System &cgs) |
Use the congruences in cgs to refine *this. | |
| void | add_recycled_congruences (Congruence_System &cgs) |
Adds the congruences in cgs to *this. | |
| void | add_constraints (const Constraint_System &cs) |
Adds a copy of the constraint system in cs to *this. | |
| void | refine_with_constraints (const Constraint_System &cs) |
Use the constraints in cs to refine *this. | |
| void | add_recycled_constraints (Constraint_System &cs) |
Adds the constraint system in cs to *this. | |
| void | unconstrain (Variable var) |
Computes the cylindrification of *this with respect to space dimension var, assigning the result to *this. | |
| void | unconstrain (const Variables_Set &vars) |
Computes the cylindrification of *this with respect to the set of space dimensions vars, assigning the result to *this. | |
| void | intersection_assign (const Partially_Reduced_Product &y) |
Assigns to *this the componentwise intersection of *this and y. | |
| void | upper_bound_assign (const Partially_Reduced_Product &y) |
Assigns to *this an upper bound of *this and y computed on the corresponding components. | |
| bool | upper_bound_assign_if_exact (const Partially_Reduced_Product &y) |
Assigns to *this an upper bound of *this and y computed on the corresponding components. If it is exact on each of the components of *this, true is returned, otherwise false is returned. | |
| void | difference_assign (const Partially_Reduced_Product &y) |
Assigns to *this an approximation of the set-theoretic difference of *this and y. | |
| void | affine_image (Variable var, const Linear_Expression &expr, Coefficient_traits::const_reference denominator=Coefficient_one()) |
Assigns to *this the affine image of *this under the function mapping variable var to the affine expression specified by expr and denominator. | |
| void | affine_preimage (Variable var, const Linear_Expression &expr, Coefficient_traits::const_reference denominator=Coefficient_one()) |
Assigns to *this the affine preimage of *this under the function mapping variable var to the affine expression specified by expr and denominator. | |
| void | generalized_affine_image (Variable var, Relation_Symbol relsym, const Linear_Expression &expr, Coefficient_traits::const_reference denominator=Coefficient_one()) |
Assigns to *this the image of *this with respect to the generalized affine relation , where is the relation symbol encoded by relsym (see also generalized affine relation.) | |
| void | generalized_affine_preimage (Variable var, Relation_Symbol relsym, const Linear_Expression &expr, Coefficient_traits::const_reference denominator=Coefficient_one()) |
Assigns to *this the preimage of *this with respect to the generalized affine relation , where is the relation symbol encoded by relsym. (see also generalized affine relation.) | |
| void | generalized_affine_image (const Linear_Expression &lhs, Relation_Symbol relsym, const Linear_Expression &rhs) |
Assigns to *this the image of *this with respect to the generalized affine relation , where is the relation symbol encoded by relsym. (see also generalized affine relation.) | |
| void | generalized_affine_preimage (const Linear_Expression &lhs, Relation_Symbol relsym, const Linear_Expression &rhs) |
Assigns to *this the preimage of *this with respect to the generalized affine relation , where is the relation symbol encoded by relsym. (see also generalized affine relation.) | |
| void | bounded_affine_image (Variable var, const Linear_Expression &lb_expr, const Linear_Expression &ub_expr, Coefficient_traits::const_reference denominator=Coefficient_one()) |
Assigns to *this the image of *this with respect to the bounded affine relation . | |
| void | bounded_affine_preimage (Variable var, const Linear_Expression &lb_expr, const Linear_Expression &ub_expr, Coefficient_traits::const_reference denominator=Coefficient_one()) |
Assigns to *this the preimage of *this with respect to the bounded affine relation . | |
| void | time_elapse_assign (const Partially_Reduced_Product &y) |
Assigns to *this the result of computing the time-elapse between *this and y. (See also time-elapse.) | |
| void | topological_closure_assign () |
Assigns to *this its topological closure. | |
| void | widening_assign (const Partially_Reduced_Product &y, unsigned *tp=NULL) |
Assigns to *this the result of computing the "widening" between *this and y. | |
| void | drop_some_non_integer_points (Complexity_Class complexity=ANY_COMPLEXITY) |
Possibly tightens *this by dropping some points with non-integer coordinates. | |
| void | drop_some_non_integer_points (const Variables_Set &vars, Complexity_Class complexity=ANY_COMPLEXITY) |
Possibly tightens *this by dropping some points with non-integer coordinates for the space dimensions corresponding to vars. | |
Member Functions that May Modify the Dimension of the Vector Space | |
| void | add_space_dimensions_and_embed (dimension_type m) |
Adds m new space dimensions and embeds the components of *this in the new vector space. | |
| void | add_space_dimensions_and_project (dimension_type m) |
Adds m new space dimensions and does not embed the components in the new vector space. | |
| void | concatenate_assign (const Partially_Reduced_Product &y) |
Assigns to the first (resp., second) component of *this the "concatenation" of the first (resp., second) components of *this and y, taken in this order. See also Concatenating Polyhedra. | |
| void | remove_space_dimensions (const Variables_Set &vars) |
| Removes all the specified dimensions from the vector space. | |
| void | remove_higher_space_dimensions (dimension_type new_dimension) |
Removes the higher dimensions of the vector space so that the resulting space will have dimension new_dimension. | |
| template<typename Partial_Function > | |
| void | map_space_dimensions (const Partial_Function &pfunc) |
| Remaps the dimensions of the vector space according to a partial function. | |
| void | expand_space_dimension (Variable var, dimension_type m) |
Creates m copies of the space dimension corresponding to var. | |
| void | fold_space_dimensions (const Variables_Set &vars, Variable dest) |
Folds the space dimensions in vars into dest. | |
Miscellaneous Member Functions | |
| ~Partially_Reduced_Product () | |
| Destructor. | |
| void | m_swap (Partially_Reduced_Product &y) |
Swaps *this with product y. (*this and y can be dimension-incompatible.) | |
| void | ascii_dump () const |
Writes to std::cerr an ASCII representation of *this. | |
| void | ascii_dump (std::ostream &s) const |
Writes to s an ASCII representation of *this. | |
| void | print () const |
Prints *this to std::cerr using operator<<. | |
| bool | ascii_load (std::istream &s) |
Loads from s an ASCII representation (as produced by ascii_dump(std::ostream&) const) and sets *this accordingly. Returns true if successful, false otherwise. | |
| memory_size_type | total_memory_in_bytes () const |
Returns the total size in bytes of the memory occupied by *this. | |
| memory_size_type | external_memory_in_bytes () const |
Returns the size in bytes of the memory managed by *this. | |
| int32_t | hash_code () const |
Returns a 32-bit hash code for *this. | |
Static Public Member Functions | |
| static dimension_type | max_space_dimension () |
| Returns the maximum space dimension this product can handle. | |
Protected Types | |
| typedef D1 | Domain1 |
| The type of the first component. | |
| typedef D2 | Domain2 |
| The type of the second component. | |
Protected Member Functions | |
| void | clear_reduced_flag () const |
| Clears the reduced flag. | |
| void | set_reduced_flag () const |
| Sets the reduced flag. | |
| bool | is_reduced () const |
Return true if and only if the reduced flag is set. | |
Protected Attributes | |
| D1 | d1 |
| The first component. | |
| D2 | d2 |
| The second component. | |
| bool | reduced |
| Flag to record whether the components are reduced with respect to each other and the reduction class. | |
Friends | |
| bool | operator== (const Partially_Reduced_Product< D1, D2, R > &x, const Partially_Reduced_Product< D1, D2, R > &y) |
| std::ostream & | Parma_Polyhedra_Library::IO_Operators::operator<< (std::ostream &s, const Partially_Reduced_Product< D1, D2, R > &dp) |
Related Functions | |
(Note that these are not member functions.) | |
| template<typename D1 , typename D2 , typename R > | |
| std::ostream & | operator<< (std::ostream &s, const Partially_Reduced_Product< D1, D2, R > &dp) |
| Output operator. | |
| template<typename D1 , typename D2 , typename R > | |
| void | swap (Partially_Reduced_Product< D1, D2, R > &x, Partially_Reduced_Product< D1, D2, R > &y) |
Swaps x with y. | |
| template<typename D1 , typename D2 , typename R > | |
| bool | operator== (const Partially_Reduced_Product< D1, D2, R > &x, const Partially_Reduced_Product< D1, D2, R > &y) |
Returns true if and only if the components of x and y are pairwise equal. | |
| template<typename D1 , typename D2 , typename R > | |
| bool | operator!= (const Partially_Reduced_Product< D1, D2, R > &x, const Partially_Reduced_Product< D1, D2, R > &y) |
Returns true if and only if the components of x and y are not pairwise equal. | |
| template<typename D1 , typename D2 , typename R > | |
| bool | operator== (const Partially_Reduced_Product< D1, D2, R > &x, const Partially_Reduced_Product< D1, D2, R > &y) |
| template<typename D1 , typename D2 , typename R > | |
| bool | operator!= (const Partially_Reduced_Product< D1, D2, R > &x, const Partially_Reduced_Product< D1, D2, R > &y) |
| template<typename D1 , typename D2 , typename R > | |
| std::ostream & | operator<< (std::ostream &s, const Partially_Reduced_Product< D1, D2, R > &dp) |
| template<typename D1 , typename D2 , typename R > | |
| void | swap (Partially_Reduced_Product< D1, D2, R > &x, Partially_Reduced_Product< D1, D2, R > &y) |
The partially reduced product of two abstractions.
D1 and D2 are the simple pointset domains: C_Polyhedron, NNC_Polyhedron, Grid, Octagonal_Shape<T>, BD_Shape<T>, Box<T>.An object of the class Partially_Reduced_Product<D1, D2, R> represents the (partially reduced) product of two pointset domains D1 and D2 where the form of any reduction is defined by the reduction class R.
Suppose
and
are two abstract domains with concretization functions:
and
, respectively.
The partially reduced product
, for any reduction class R, has a concretization
where, if
The operations are defined to be the result of applying the corresponding operations on each of the components provided the product is already reduced by the reduction method defined by R. In particular, if R is the No_Reduction<D1, D2> class, then the class Partially_Reduced_Product<D1, D2, R> domain is the direct product as defined in [CC79].
How the results on the components are interpreted and combined depend on the specific test. For example, the test for emptiness will first make sure the product is reduced (using the reduction method provided by R if it is not already known to be reduced) and then test if either component is empty; thus, if R defines no reduction between its components and
is a direct product in one dimension where
denotes the set of numbers that are integral multiples of 3 while
denotes the set of numbers between 1 and 2, then an operation that tests for emptiness should return false. However, the test for the universe returns true if and only if the test is_universe() on both components returns true.
R is the No_Reduction<D1, D2> class and that variables x and y are defined (where they are used) as follows: Variable x(0); Variable y(1);
, given as a system of congruences: Congruence_System cgs;
cgs.insert((x %= 0) / 2);
cgs.insert((y %= 0) / 2);
Partially_Reduced_Product<Grid, NNC_Polyhedron, No_Reduction<D1, D2> >
dp(cgs);
dp.add_constraint(x >= 0);
dp.add_constraint(y >= 0);
: Partially_Reduced_Product<Grid, NNC_Polyhedron, No_Reduction<D1, D2> > dp(2); dp.add_constraint(x >= 0); dp.add_constraint(y >= 0); dp.add_congruence((x %= 0) / 2); dp.add_congruence((y %= 0) / 2);
Partially_Reduced_Product<Grid, NNC_Polyhedron, No_Reduction<D1, D2> > dp(1); dp.add_congruence((x %= 0) / 2); dp.add_congruence((x %= 1) / 2); if (dp.is_empty()) cout << "dp is empty." << endl; else cout << "dp is not empty." << endl;
Partially_Reduced_Product<Grid, NNC_Polyhedron, No_Reduction<D1, D2> > dp(1); dp.add_congruence((x %= 0) / 2); dp.add_constraint(x >= 1); dp.add_constraint(x <= 1); if (dp.is_empty()) cout << "dp is empty." << endl; else cout << "dp is not empty." << endl;
Definition at line 418 of file Partially_Reduced_Product.defs.hh.
|
protected |
The type of the first component.
Definition at line 1623 of file Partially_Reduced_Product.defs.hh.
|
protected |
The type of the second component.
Definition at line 1626 of file Partially_Reduced_Product.defs.hh.
|
inlineexplicit |
Builds an object having the specified properties.
| num_dimensions | The number of dimensions of the vector space enclosing the pair; |
| kind | Specifies whether a universe or an empty pair has to be built. |
| std::length_error | Thrown if num_dimensions exceeds the maximum allowed space dimension. |
Definition at line 46 of file Partially_Reduced_Product.inlines.hh.
: d1(num_dimensions, kind), d2(num_dimensions, kind) { set_reduced_flag(); }
|
inlineexplicit |
Builds a pair, copying a system of congruences.
The pair inherits the space dimension of the congruence system.
| cgs | The system of congruences to be approximated by the pair. |
| std::length_error | Thrown if num_dimensions exceeds the maximum allowed space dimension. |
Definition at line 56 of file Partially_Reduced_Product.inlines.hh.
: d1(cgs), d2(cgs) { clear_reduced_flag(); }
|
inlineexplicit |
Builds a pair, recycling a system of congruences.
The pair inherits the space dimension of the congruence system.
| cgs | The system of congruences to be approximates by the pair. Its data-structures may be recycled to build the pair. |
| std::length_error | Thrown if num_dimensions exceeds the maximum allowed space dimension. |
Definition at line 64 of file Partially_Reduced_Product.inlines.hh.
: d1(const_cast<const Congruence_System&>(cgs)), d2(cgs) { clear_reduced_flag(); }
|
inlineexplicit |
Builds a pair, copying a system of constraints.
The pair inherits the space dimension of the constraint system.
| cs | The system of constraints to be approximated by the pair. |
| std::length_error | Thrown if num_dimensions exceeds the maximum allowed space dimension. |
Definition at line 72 of file Partially_Reduced_Product.inlines.hh.
: d1(cs), d2(cs) { clear_reduced_flag(); }
|
inlineexplicit |
Builds a pair, recycling a system of constraints.
The pair inherits the space dimension of the constraint system.
| cs | The system of constraints to be approximated by the pair. |
| std::length_error | Thrown if the space dimension of cs exceeds the maximum allowed space dimension. |
Definition at line 80 of file Partially_Reduced_Product.inlines.hh.
: d1(const_cast<const Constraint_System&>(cs)), d2(cs) { clear_reduced_flag(); }
|
inlineexplicit |
Builds a product, from a C polyhedron.
Builds a product containing ph using algorithms whose complexity does not exceed the one specified by complexity. If complexity is ANY_COMPLEXITY, then the built product is the smallest one containing ph. The product inherits the space dimension of the polyhedron.
| ph | The polyhedron to be approximated by the product. |
| complexity | The complexity that will not be exceeded. |
| std::length_error | Thrown if the space dimension of ph exceeds the maximum allowed space dimension. |
Definition at line 88 of file Partially_Reduced_Product.inlines.hh.
: d1(ph, complexity), d2(ph, complexity) { set_reduced_flag(); }
|
inlineexplicit |
Builds a product, from an NNC polyhedron.
Builds a product containing ph using algorithms whose complexity does not exceed the one specified by complexity. If complexity is ANY_COMPLEXITY, then the built product is the smallest one containing ph. The product inherits the space dimension of the polyhedron.
| ph | The polyhedron to be approximated by the product. |
| complexity | The complexity that will not be exceeded. |
| std::length_error | Thrown if the space dimension of ph exceeds the maximum allowed space dimension. |
Definition at line 97 of file Partially_Reduced_Product.inlines.hh.
: d1(ph, complexity), d2(ph, complexity) { set_reduced_flag(); }
|
inlineexplicit |
Builds a product, from a grid.
Builds a product containing gr. The product inherits the space dimension of the grid.
| gr | The grid to be approximated by the product. |
| complexity | The complexity is ignored. |
| std::length_error | Thrown if the space dimension of gr exceeds the maximum allowed space dimension. |
Definition at line 106 of file Partially_Reduced_Product.inlines.hh.
: d1(gr), d2(gr) { set_reduced_flag(); }
|
inline |
Builds a product out of a box.
Builds a product containing box. The product inherits the space dimension of the box.
| box | The box representing the pair to be built. |
| complexity | The complexity is ignored. |
| std::length_error | Thrown if the space dimension of box exceeds the maximum allowed space dimension. |
Definition at line 115 of file Partially_Reduced_Product.inlines.hh.
: d1(box), d2(box) { set_reduced_flag(); }
|
inline |
Builds a product out of a BD shape.
Builds a product containing bd. The product inherits the space dimension of the BD shape.
| bd | The BD shape representing the product to be built. |
| complexity | The complexity is ignored. |
| std::length_error | Thrown if the space dimension of bd exceeds the maximum allowed space dimension. |
Definition at line 124 of file Partially_Reduced_Product.inlines.hh.
: d1(bd), d2(bd) { set_reduced_flag(); }
|
inline |
Builds a product out of an octagonal shape.
Builds a product containing os. The product inherits the space dimension of the octagonal shape.
| os | The octagonal shape representing the product to be built. |
| complexity | The complexity is ignored. |
| std::length_error | Thrown if the space dimension of os exceeds the maximum allowed space dimension. |
Definition at line 133 of file Partially_Reduced_Product.inlines.hh.
: d1(os), d2(os) { set_reduced_flag(); }
|
inline |
Ordinary copy constructor.
Definition at line 141 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduced.
|
inlineexplicit |
Builds a conservative, upward approximation of y.
The complexity argument is ignored.
Definition at line 151 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::domain1(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::domain2(), and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::intersection_assign().
: d1(y.space_dimension()), d2(y.space_dimension()) { Partially_Reduced_Product<D1, D2, R> pg1(y.domain1(), complexity); Partially_Reduced_Product<D1, D2, R> pg2(y.domain2(), complexity); pg1.intersection_assign(pg2); m_swap(pg1); /* Even if y is reduced, the built product may not be reduced as the reduction method may have changed (i.e., S != R). */ clear_reduced_flag(); }
|
inline |
|
inline |
Adds a copy of congruence cg to *this.
| std::invalid_argument | Thrown if *this and congruence cg are dimension-incompatible. |
Definition at line 399 of file Partially_Reduced_Product.inlines.hh.
{
d1.add_congruence(cg);
d2.add_congruence(cg);
clear_reduced_flag();
}
|
inline |
Adds a copy of the congruences in cgs to *this.
| cgs | The congruence system to be added. |
| std::invalid_argument | Thrown if *this and cgs are dimension-incompatible. |
Definition at line 434 of file Partially_Reduced_Product.inlines.hh.
{
d1.add_congruences(cgs);
d2.add_congruences(cgs);
clear_reduced_flag();
}
|
inline |
Adds constraint c to *this.
| std::invalid_argument | Thrown if *this and c are dimension-incompatible. |
Definition at line 383 of file Partially_Reduced_Product.inlines.hh.
{
d1.add_constraint(c);
d2.add_constraint(c);
clear_reduced_flag();
}
|
inline |
Adds a copy of the constraint system in cs to *this.
| cs | The constraint system to be added. |
| std::invalid_argument | Thrown if *this and cs are dimension-incompatible. |
Definition at line 416 of file Partially_Reduced_Product.inlines.hh.
{
d1.add_constraints(cs);
d2.add_constraints(cs);
clear_reduced_flag();
}
| void Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::add_recycled_congruences | ( | Congruence_System & | cgs | ) |
Adds the congruences in cgs to *this.
| cgs | The congruence system to be added that may be recycled. |
| std::invalid_argument | Thrown if *this and cs are dimension-incompatible. |
cgs upon successful or exceptional return is that it can be safely destroyed. Definition at line 115 of file Partially_Reduced_Product.templates.hh.
{
if (d1.can_recycle_congruence_systems()) {
d2.refine_with_congruences(cgs);
d1.add_recycled_congruences(cgs);
}
else
if (d2.can_recycle_congruence_systems()) {
d1.refine_with_congruences(cgs);
d2.add_recycled_congruences(cgs);
}
else {
d1.add_congruences(cgs);
d2.add_congruences(cgs);
}
clear_reduced_flag();
}
| void Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::add_recycled_constraints | ( | Constraint_System & | cs | ) |
Adds the constraint system in cs to *this.
| cs | The constraint system to be added that may be recycled. |
| std::invalid_argument | Thrown if *this and cs are dimension-incompatible. |
cs upon successful or exceptional return is that it can be safely destroyed. Definition at line 95 of file Partially_Reduced_Product.templates.hh.
{
if (d1.can_recycle_constraint_systems()) {
d2.refine_with_constraints(cs);
d1.add_recycled_constraints(cs);
}
else
if (d2.can_recycle_constraint_systems()) {
d1.refine_with_constraints(cs);
d2.add_recycled_constraints(cs);
}
else {
d1.add_constraints(cs);
d2.add_constraints(cs);
}
clear_reduced_flag();
}
|
inline |
Adds m new space dimensions and embeds the components of *this in the new vector space.
| m | The number of dimensions to add. |
| std::length_error | Thrown if adding m new space dimensions would cause the vector space to exceed dimension max_space_dimension(). |
Definition at line 579 of file Partially_Reduced_Product.inlines.hh.
|
inline |
Adds m new space dimensions and does not embed the components in the new vector space.
| m | The number of space dimensions to add. |
| std::length_error | Thrown if adding m new space dimensions would cause the vector space to exceed dimension max_space_dimension(). |
Definition at line 587 of file Partially_Reduced_Product.inlines.hh.
|
inline |
Returns the minimum affine dimension (see also grid affine dimension) of the components of *this.
Definition at line 189 of file Partially_Reduced_Product.inlines.hh.
{
reduce();
const dimension_type d1_dim = d1.affine_dimension();
const dimension_type d2_dim = d2.affine_dimension();
return std::min(d1_dim, d2_dim);
}
|
inline |
Assigns to *this the affine image of *this under the function mapping variable var to the affine expression specified by expr and denominator.
| var | The variable to which the affine expression is assigned; |
| expr | The numerator of the affine expression; |
| denominator | The denominator of the affine expression (optional argument with default value 1). |
| std::invalid_argument | Thrown if denominator is zero or if expr and *this are dimension-incompatible or if var is not a space dimension of *this. |
Definition at line 264 of file Partially_Reduced_Product.inlines.hh.
{
d1.affine_image(var, expr, denominator);
d2.affine_image(var, expr, denominator);
clear_reduced_flag();
}
|
inline |
Assigns to *this the affine preimage of *this under the function mapping variable var to the affine expression specified by expr and denominator.
| var | The variable to which the affine expression is substituted; |
| expr | The numerator of the affine expression; |
| denominator | The denominator of the affine expression (optional argument with default value 1). |
| std::invalid_argument | Thrown if denominator is zero or if expr and *this are dimension-incompatible or if var is not a space dimension of *this. |
Definition at line 275 of file Partially_Reduced_Product.inlines.hh.
{
d1.affine_preimage(var, expr, denominator);
d2.affine_preimage(var, expr, denominator);
clear_reduced_flag();
}
| void Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::ascii_dump | ( | ) | const |
Writes to std::cerr an ASCII representation of *this.
|
inline |
Writes to s an ASCII representation of *this.
Definition at line 698 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Implementation::BD_Shapes::no, and Parma_Polyhedra_Library::Implementation::BD_Shapes::yes.
| bool Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::ascii_load | ( | std::istream & | s | ) |
Loads from s an ASCII representation (as produced by ascii_dump(std::ostream&) const) and sets *this accordingly. Returns true if successful, false otherwise.
Definition at line 434 of file Partially_Reduced_Product.templates.hh.
References Parma_Polyhedra_Library::Implementation::BD_Shapes::no, and Parma_Polyhedra_Library::Implementation::BD_Shapes::yes.
{
const char yes = '+';
const char no = '-';
std::string str;
if (!(s >> str) || str != "Partially_Reduced_Product")
return false;
if (!(s >> str)
|| (str[0] != yes && str[0] != no)
|| str.substr(1) != "reduced")
return false;
reduced = (str[0] == yes);
if (!(s >> str) || str != "Domain")
return false;
if (!(s >> str) || str != "1:")
return false;
if (!d1.ascii_load(s))
return false;
if (!(s >> str) || str != "Domain")
return false;
if (!(s >> str) || str != "2:")
return false;
return d2.ascii_load(s);
}
|
inline |
Assigns to *this the image of *this with respect to the bounded affine relation
.
| var | The variable updated by the affine relation; |
| lb_expr | The numerator of the lower bounding affine expression; |
| ub_expr | The numerator of the upper bounding affine expression; |
| denominator | The (common) denominator for the lower and upper bounding affine expressions (optional argument with default value 1). |
| std::invalid_argument | Thrown if denominator is zero or if lb_expr (resp., ub_expr) and *this are dimension-incompatible or if var is not a space dimension of *this. |
Definition at line 333 of file Partially_Reduced_Product.inlines.hh.
{
d1.bounded_affine_image(var, lb_expr, ub_expr, denominator);
d2.bounded_affine_image(var, lb_expr, ub_expr, denominator);
clear_reduced_flag();
}
|
inline |
Assigns to *this the preimage of *this with respect to the bounded affine relation
.
| var | The variable updated by the affine relation; |
| lb_expr | The numerator of the lower bounding affine expression; |
| ub_expr | The numerator of the upper bounding affine expression; |
| denominator | The (common) denominator for the lower and upper bounding affine expressions (optional argument with default value 1). |
| std::invalid_argument | Thrown if denominator is zero or if lb_expr (resp., ub_expr) and *this are dimension-incompatible or if var is not a space dimension of *this. |
Definition at line 345 of file Partially_Reduced_Product.inlines.hh.
{
d1.bounded_affine_preimage(var, lb_expr, ub_expr, denominator);
d2.bounded_affine_preimage(var, lb_expr, ub_expr, denominator);
clear_reduced_flag();
}
|
inline |
Returns true if and only if expr is bounded in *this.
This method is the same as bounds_from_below.
| std::invalid_argument | Thrown if expr and *this are dimension-incompatible. |
Definition at line 540 of file Partially_Reduced_Product.inlines.hh.
|
inline |
Returns true if and only if expr is bounded in *this.
This method is the same as bounds_from_above.
| std::invalid_argument | Thrown if expr and *this are dimension-incompatible. |
Definition at line 548 of file Partially_Reduced_Product.inlines.hh.
|
inlineprotected |
Clears the reduced flag.
Definition at line 684 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduced.
Referenced by Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::OK().
{
const_cast<Partially_Reduced_Product&>(*this).reduced = false;
}
|
inline |
Assigns to the first (resp., second) component of *this the "concatenation" of the first (resp., second) components of *this and y, taken in this order. See also Concatenating Polyhedra.
| std::length_error | Thrown if the concatenation would cause the vector space to exceed dimension max_space_dimension(). |
Definition at line 595 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d1, Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d2, and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::is_reduced().
{
d1.concatenate_assign(y.d1);
d2.concatenate_assign(y.d2);
if (!is_reduced() || !y.is_reduced())
clear_reduced_flag();
}
| Congruence_System Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::congruences | ( | ) | const |
Returns a system of congruences which approximates *this.
Definition at line 69 of file Partially_Reduced_Product.templates.hh.
References Parma_Polyhedra_Library::Congruence_System::begin(), Parma_Polyhedra_Library::Congruence_System::end(), and Parma_Polyhedra_Library::Congruence_System::insert().
{
reduce();
Congruence_System cgs = d2.congruences();
const Congruence_System& cgs1 = d1.congruences();
for (Congruence_System::const_iterator i = cgs1.begin(),
cgs_end = cgs1.end(); i != cgs_end; ++i)
cgs.insert(*i);
return cgs;
}
|
inline |
Returns true if and only if var is constrained in *this.
| std::invalid_argument | Thrown if var is not a space dimension of *this. |
Definition at line 555 of file Partially_Reduced_Product.inlines.hh.
| Constraint_System Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::constraints | ( | ) | const |
Returns a system of constraints which approximates *this.
Definition at line 38 of file Partially_Reduced_Product.templates.hh.
References Parma_Polyhedra_Library::Constraint_System::begin(), Parma_Polyhedra_Library::Constraint_System::end(), and Parma_Polyhedra_Library::Constraint_System::insert().
{
reduce();
Constraint_System cs = d2.constraints();
const Constraint_System& cs1 = d1.constraints();
for (Constraint_System::const_iterator i = cs1.begin(),
cs_end = cs1.end(); i != cs_end; ++i)
cs.insert(*i);
return cs;
}
|
inline |
Returns true if and only if each component of *this contains the corresponding component of y.
| std::invalid_argument | Thrown if *this and y are dimension-incompatible. |
Definition at line 647 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d1, Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d2, and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduce().
|
inline |
Assigns to *this an approximation of the set-theoretic difference of *this and y.
| std::invalid_argument | Thrown if *this and y are dimension-incompatible. |
Definition at line 225 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d1, Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d2, and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduce().
{
reduce();
y.reduce();
d1.difference_assign(y.d1);
d2.difference_assign(y.d2);
clear_reduced_flag();
}
|
inline |
Returns a constant reference to the first of the pair.
Definition at line 482 of file Partially_Reduced_Product.inlines.hh.
Referenced by Parma_Polyhedra_Library::Box< ITV >::Box(), and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::Partially_Reduced_Product().
|
inline |
Returns a constant reference to the second of the pair.
Definition at line 489 of file Partially_Reduced_Product.inlines.hh.
Referenced by Parma_Polyhedra_Library::Box< ITV >::Box(), and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::Partially_Reduced_Product().
|
inline |
Possibly tightens *this by dropping some points with non-integer coordinates.
| complexity | The maximal complexity of any algorithms used. |
complexity is ANY_COMPLEXITY. Definition at line 452 of file Partially_Reduced_Product.inlines.hh.
{
reduce();
d1.drop_some_non_integer_points(complexity);
d2.drop_some_non_integer_points(complexity);
clear_reduced_flag();
}
|
inline |
Possibly tightens *this by dropping some points with non-integer coordinates for the space dimensions corresponding to vars.
| vars | Points with non-integer coordinates for these variables/space-dimensions can be discarded. |
| complexity | The maximal complexity of any algorithms used. |
complexity is ANY_COMPLEXITY. Definition at line 462 of file Partially_Reduced_Product.inlines.hh.
{
reduce();
d1.drop_some_non_integer_points(vars, complexity);
d2.drop_some_non_integer_points(vars, complexity);
clear_reduced_flag();
}
|
inline |
Creates m copies of the space dimension corresponding to var.
| var | The variable corresponding to the space dimension to be replicated; |
| m | The number of replicas to be created. |
| std::invalid_argument | Thrown if var does not correspond to a dimension of the vector space. |
| std::length_error | Thrown if adding m new space dimensions would cause the vector space to exceed dimension max_space_dimension(). |
If *this has space dimension
, with
, and var has space dimension
, then the
-th space dimension is expanded to m new space dimensions
,
,
,
.
Definition at line 630 of file Partially_Reduced_Product.inlines.hh.
|
inline |
Returns the size in bytes of the memory managed by *this.
Definition at line 170 of file Partially_Reduced_Product.inlines.hh.
|
inline |
Folds the space dimensions in vars into dest.
| vars | The set of Variable objects corresponding to the space dimensions to be folded; |
| dest | The variable corresponding to the space dimension that is the destination of the folding operation. |
| std::invalid_argument | Thrown if *this is dimension-incompatible with dest or with one of the Variable objects contained in vars. Also thrown if dest is contained in vars. |
If *this has space dimension
, with
, dest has space dimension
, vars is a set of variables whose maximum space dimension is also less than or equal to
, and dest is not a member of vars, then the space dimensions corresponding to variables in vars are folded into the
-th space dimension.
Definition at line 638 of file Partially_Reduced_Product.inlines.hh.
|
inline |
Assigns to *this the image of *this with respect to the generalized affine relation
, where
is the relation symbol encoded by relsym (see also generalized affine relation.)
| var | The left hand side variable of the generalized affine relation; |
| relsym | The relation symbol; |
| expr | The numerator of the right hand side affine expression; |
| denominator | The denominator of the right hand side affine expression (optional argument with default value 1). |
| std::invalid_argument | Thrown if denominator is zero or if expr and *this are dimension-incompatible or if var is not a space dimension of *this or if *this is a C_Polyhedron and relsym is a strict relation symbol. |
Definition at line 286 of file Partially_Reduced_Product.inlines.hh.
{
d1.generalized_affine_image(var, relsym, expr, denominator);
d2.generalized_affine_image(var, relsym, expr, denominator);
clear_reduced_flag();
}
|
inline |
Assigns to *this the image of *this with respect to the generalized affine relation
, where
is the relation symbol encoded by relsym. (see also generalized affine relation.)
| lhs | The left hand side affine expression; |
| relsym | The relation symbol; |
| rhs | The right hand side affine expression. |
| std::invalid_argument | Thrown if *this is dimension-incompatible with lhs or rhs or if *this is a C_Polyhedron and relsym is a strict relation symbol. |
Definition at line 310 of file Partially_Reduced_Product.inlines.hh.
{
d1.generalized_affine_image(lhs, relsym, rhs);
d2.generalized_affine_image(lhs, relsym, rhs);
clear_reduced_flag();
}
|
inline |
Assigns to *this the preimage of *this with respect to the generalized affine relation
, where
is the relation symbol encoded by relsym. (see also generalized affine relation.)
| var | The left hand side variable of the generalized affine relation; |
| relsym | The relation symbol; |
| expr | The numerator of the right hand side affine expression; |
| denominator | The denominator of the right hand side affine expression (optional argument with default value 1). |
| std::invalid_argument | Thrown if denominator is zero or if expr and *this are dimension-incompatible or if var is not a space dimension of *this or if *this is a C_Polyhedron and relsym is a strict relation symbol. |
Definition at line 298 of file Partially_Reduced_Product.inlines.hh.
{
d1.generalized_affine_preimage(var, relsym, expr, denominator);
d2.generalized_affine_preimage(var, relsym, expr, denominator);
clear_reduced_flag();
}
|
inline |
Assigns to *this the preimage of *this with respect to the generalized affine relation
, where
is the relation symbol encoded by relsym. (see also generalized affine relation.)
| lhs | The left hand side affine expression; |
| relsym | The relation symbol; |
| rhs | The right hand side affine expression. |
| std::invalid_argument | Thrown if *this is dimension-incompatible with lhs or rhs or if *this is a C_Polyhedron and relsym is a strict relation symbol. |
Definition at line 321 of file Partially_Reduced_Product.inlines.hh.
{
d1.generalized_affine_preimage(lhs, relsym, rhs);
d2.generalized_affine_preimage(lhs, relsym, rhs);
clear_reduced_flag();
}
|
inline |
Returns a 32-bit hash code for *this.
If x and y are such that x == y, then x.hash_code() == y.hash_code().
Definition at line 711 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::hash_code_from_dimension().
{
return hash_code_from_dimension(space_dimension());
}
|
inline |
Assigns to *this the componentwise intersection of *this and y.
| std::invalid_argument | Thrown if *this and y are dimension-incompatible. |
Definition at line 216 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d1, and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d2.
Referenced by Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::Partially_Reduced_Product().
{
d1.intersection_assign(y.d1);
d2.intersection_assign(y.d2);
clear_reduced_flag();
}
|
inline |
Returns true if and only if a component of *this is bounded.
Definition at line 532 of file Partially_Reduced_Product.inlines.hh.
|
inline |
Returns true if and only if a component of *this is discrete.
Definition at line 525 of file Partially_Reduced_Product.inlines.hh.
|
inline |
Returns true if and only if *this and y are componentwise disjoint.
| std::invalid_argument | Thrown if x and y are dimension-incompatible. |
Definition at line 517 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d1, Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d2, and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduce().
|
inline |
Returns true if and only if either of the components of *this are empty.
Definition at line 496 of file Partially_Reduced_Product.inlines.hh.
Referenced by Parma_Polyhedra_Library::Pointset_Powerset< PSET >::Pointset_Powerset().
|
inlineprotected |
Return true if and only if the reduced flag is set.
Definition at line 678 of file Partially_Reduced_Product.inlines.hh.
Referenced by Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::concatenate_assign(), and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduce().
{
return reduced;
}
|
inline |
Returns true if and only if both of the components of *this are topologically closed subsets of the vector space.
Definition at line 509 of file Partially_Reduced_Product.inlines.hh.
|
inline |
Returns true if and only if both of the components of *this are the universe.
Definition at line 503 of file Partially_Reduced_Product.inlines.hh.
|
inline |
Swaps *this with product y. (*this and y can be dimension-incompatible.)
Definition at line 374 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d1, Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d2, Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduced, and Parma_Polyhedra_Library::swap().
Referenced by Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::swap().
|
inline |
Remaps the dimensions of the vector space according to a partial function.
If pfunc maps only some of the dimensions of *this then the rest will be projected away.
If the highest dimension mapped to by pfunc is higher than the highest dimension in *this then the number of dimensions in *this will be increased to the highest dimension mapped to by pfunc.
| pfunc | The partial function specifying the destiny of each space dimension. |
The template class Partial_Function must provide the following methods.
bool has_empty_codomain() const
returns true if and only if the represented partial function has an empty codomain (i.e., it is always undefined). The has_empty_codomain() method will always be called before the methods below. However, if has_empty_codomain() returns true, none of the functions below will be called.
dimension_type max_in_codomain() const
returns the maximum value that belongs to the codomain of the partial function. The max_in_codomain() method is called at most once.
bool maps(dimension_type i, dimension_type& j) const
Let
be the represented function and
be the value of i. If
is defined in
, then
is assigned to j and true is returned. If
is undefined in
, then false is returned. This method is called at most
times, where
is the dimension of the vector space enclosing *this.
The result is undefined if pfunc does not encode a partial function with the properties described in specification of the mapping operator.
Definition at line 622 of file Partially_Reduced_Product.inlines.hh.
|
inlinestatic |
Returns the maximum space dimension this product can handle.
Definition at line 37 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::max_space_dimension().
{
return (D1::max_space_dimension() < D2::max_space_dimension())
? D1::max_space_dimension()
: D2::max_space_dimension();
}
| bool Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::maximize | ( | const Linear_Expression & | expr, |
| Coefficient & | sup_n, | ||
| Coefficient & | sup_d, | ||
| bool & | maximum | ||
| ) | const |
Returns true if and only if *this is not empty and expr is bounded from above in *this, in which case the supremum value is computed.
| expr | The linear expression to be maximized subject to *this; |
| sup_n | The numerator of the supremum value; |
| sup_d | The denominator of the supremum value; |
| maximum | true if the supremum value can be reached in this. |
| std::invalid_argument | Thrown if expr and *this are dimension-incompatible. |
If *this is empty or expr is not bounded by *this, false is returned and sup_n, sup_d and maximum are left untouched.
Definition at line 199 of file Partially_Reduced_Product.templates.hh.
References PPL_DIRTY_TEMP_COEFFICIENT.
{
reduce();
if (is_empty())
return false;
PPL_DIRTY_TEMP_COEFFICIENT(sup1_n);
PPL_DIRTY_TEMP_COEFFICIENT(sup1_d);
PPL_DIRTY_TEMP_COEFFICIENT(sup2_n);
PPL_DIRTY_TEMP_COEFFICIENT(sup2_d);
bool maximum1;
bool maximum2;
bool r1 = d1.maximize(expr, sup1_n, sup1_d, maximum1);
bool r2 = d2.maximize(expr, sup2_n, sup2_d, maximum2);
// If neither is bounded from above, return false.
if (!r1 && !r2)
return false;
// If only d2 is bounded from above, then use the values for d2.
if (!r1) {
sup_n = sup2_n;
sup_d = sup2_d;
maximum = maximum2;
return true;
}
// If only d1 is bounded from above, then use the values for d1.
if (!r2) {
sup_n = sup1_n;
sup_d = sup1_d;
maximum = maximum1;
return true;
}
// If both d1 and d2 are bounded from above, then use the minimum values.
if (sup2_d * sup1_n >= sup1_d * sup2_n) {
sup_n = sup1_n;
sup_d = sup1_d;
maximum = maximum1;
}
else {
sup_n = sup2_n;
sup_d = sup2_d;
maximum = maximum2;
}
return true;
}
| bool Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::maximize | ( | const Linear_Expression & | expr, |
| Coefficient & | sup_n, | ||
| Coefficient & | sup_d, | ||
| bool & | maximum, | ||
| Generator & | g | ||
| ) | const |
Returns true if and only if *this is not empty and expr is bounded from above in *this, in which case the supremum value and a point where expr reaches it are computed.
| expr | The linear expression to be maximized subject to *this; |
| sup_n | The numerator of the supremum value; |
| sup_d | The denominator of the supremum value; |
| maximum | true if the supremum value can be reached in this. |
| g | When maximization succeeds, will be assigned the point or closure point where expr reaches its supremum value. |
| std::invalid_argument | Thrown if expr and *this are dimension-incompatible. |
If *this is empty or expr is not bounded by *this, false is returned and sup_n, sup_d, maximum and g are left untouched.
Definition at line 302 of file Partially_Reduced_Product.templates.hh.
References PPL_ASSERT, and PPL_DIRTY_TEMP_COEFFICIENT.
{
reduce();
if (is_empty())
return false;
PPL_ASSERT(reduced);
PPL_DIRTY_TEMP_COEFFICIENT(sup1_n);
PPL_DIRTY_TEMP_COEFFICIENT(sup1_d);
PPL_DIRTY_TEMP_COEFFICIENT(sup2_n);
PPL_DIRTY_TEMP_COEFFICIENT(sup2_d);
bool maximum1;
bool maximum2;
Generator g1(point());
Generator g2(point());
bool r1 = d1.maximize(expr, sup1_n, sup1_d, maximum1, g1);
bool r2 = d2.maximize(expr, sup2_n, sup2_d, maximum2, g2);
// If neither is bounded from above, return false.
if (!r1 && !r2)
return false;
// If only d2 is bounded from above, then use the values for d2.
if (!r1) {
sup_n = sup2_n;
sup_d = sup2_d;
maximum = maximum2;
g = g2;
return true;
}
// If only d1 is bounded from above, then use the values for d1.
if (!r2) {
sup_n = sup1_n;
sup_d = sup1_d;
maximum = maximum1;
g = g1;
return true;
}
// If both d1 and d2 are bounded from above, then use the minimum values.
if (sup2_d * sup1_n >= sup1_d * sup2_n) {
sup_n = sup1_n;
sup_d = sup1_d;
maximum = maximum1;
g = g1;
}
else {
sup_n = sup2_n;
sup_d = sup2_d;
maximum = maximum2;
g = g2;
}
return true;
}
| bool Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::minimize | ( | const Linear_Expression & | expr, |
| Coefficient & | inf_n, | ||
| Coefficient & | inf_d, | ||
| bool & | minimum | ||
| ) | const |
Returns true if and only if *this is not empty and expr is bounded from below i *this, in which case the infimum value is computed.
| expr | The linear expression to be minimized subject to *this; |
| inf_n | The numerator of the infimum value; |
| inf_d | The denominator of the infimum value; |
| minimum | true if the infimum value can be reached in this. |
| std::invalid_argument | Thrown if expr and *this are dimension-incompatible. |
If *this is empty or expr is not bounded from below, false is returned and inf_n, inf_d and minimum are left untouched.
Definition at line 250 of file Partially_Reduced_Product.templates.hh.
References PPL_ASSERT, and PPL_DIRTY_TEMP_COEFFICIENT.
{
reduce();
if (is_empty())
return false;
PPL_ASSERT(reduced);
PPL_DIRTY_TEMP_COEFFICIENT(inf1_n);
PPL_DIRTY_TEMP_COEFFICIENT(inf1_d);
PPL_DIRTY_TEMP_COEFFICIENT(inf2_n);
PPL_DIRTY_TEMP_COEFFICIENT(inf2_d);
bool minimum1;
bool minimum2;
bool r1 = d1.minimize(expr, inf1_n, inf1_d, minimum1);
bool r2 = d2.minimize(expr, inf2_n, inf2_d, minimum2);
// If neither is bounded from below, return false.
if (!r1 && !r2)
return false;
// If only d2 is bounded from below, then use the values for d2.
if (!r1) {
inf_n = inf2_n;
inf_d = inf2_d;
minimum = minimum2;
return true;
}
// If only d1 is bounded from below, then use the values for d1.
if (!r2) {
inf_n = inf1_n;
inf_d = inf1_d;
minimum = minimum1;
return true;
}
// If both d1 and d2 are bounded from below, then use the minimum values.
if (inf2_d * inf1_n <= inf1_d * inf2_n) {
inf_n = inf1_n;
inf_d = inf1_d;
minimum = minimum1;
}
else {
inf_n = inf2_n;
inf_d = inf2_d;
minimum = minimum2;
}
return true;
}
| bool Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::minimize | ( | const Linear_Expression & | expr, |
| Coefficient & | inf_n, | ||
| Coefficient & | inf_d, | ||
| bool & | minimum, | ||
| Generator & | g | ||
| ) | const |
Returns true if and only if *this is not empty and expr is bounded from below in *this, in which case the infimum value and a point where expr reaches it are computed.
| expr | The linear expression to be minimized subject to *this; |
| inf_n | The numerator of the infimum value; |
| inf_d | The denominator of the infimum value; |
| minimum | true if the infimum value can be reached in this. |
| g | When minimization succeeds, will be assigned the point or closure point where expr reaches its infimum value. |
| std::invalid_argument | Thrown if expr and *this are dimension-incompatible. |
If *this is empty or expr is not bounded from below, false is returned and inf_n, inf_d, minimum and point are left untouched.
Definition at line 361 of file Partially_Reduced_Product.templates.hh.
References PPL_ASSERT, and PPL_DIRTY_TEMP_COEFFICIENT.
{
reduce();
if (is_empty())
return false;
PPL_ASSERT(reduced);
PPL_DIRTY_TEMP_COEFFICIENT(inf1_n);
PPL_DIRTY_TEMP_COEFFICIENT(inf1_d);
PPL_DIRTY_TEMP_COEFFICIENT(inf2_n);
PPL_DIRTY_TEMP_COEFFICIENT(inf2_d);
bool minimum1;
bool minimum2;
Generator g1(point());
Generator g2(point());
bool r1 = d1.minimize(expr, inf1_n, inf1_d, minimum1, g1);
bool r2 = d2.minimize(expr, inf2_n, inf2_d, minimum2, g2);
// If neither is bounded from below, return false.
if (!r1 && !r2)
return false;
// If only d2 is bounded from below, then use the values for d2.
if (!r1) {
inf_n = inf2_n;
inf_d = inf2_d;
minimum = minimum2;
g = g2;
return true;
}
// If only d1 is bounded from below, then use the values for d1.
if (!r2) {
inf_n = inf1_n;
inf_d = inf1_d;
minimum = minimum1;
g = g1;
return true;
}
// If both d1 and d2 are bounded from below, then use the minimum values.
if (inf2_d * inf1_n <= inf1_d * inf2_n) {
inf_n = inf1_n;
inf_d = inf1_d;
minimum = minimum1;
g = g1;
}
else {
inf_n = inf2_n;
inf_d = inf2_d;
minimum = minimum2;
g = g2;
}
return true;
}
| Congruence_System Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::minimized_congruences | ( | ) | const |
Returns a system of congruences which approximates *this, in reduced form.
Definition at line 81 of file Partially_Reduced_Product.templates.hh.
References Parma_Polyhedra_Library::Congruence_System::begin(), Parma_Polyhedra_Library::Congruence_System::end(), Parma_Polyhedra_Library::Congruence_System::insert(), and Parma_Polyhedra_Library::Grid::minimized_congruences().
{
reduce();
Congruence_System cgs = d2.congruences();
const Congruence_System& cgs1 = d1.congruences();
for (Congruence_System::const_iterator i = cgs1.begin(),
cgs_end = cgs1.end(); i != cgs_end; ++i)
cgs.insert(*i);
Grid gr(cgs);
return gr.minimized_congruences();
}
| Constraint_System Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::minimized_constraints | ( | ) | const |
Returns a system of constraints which approximates *this, in reduced form.
Definition at line 50 of file Partially_Reduced_Product.templates.hh.
References Parma_Polyhedra_Library::Constraint_System::begin(), Parma_Polyhedra_Library::Constraint_System::end(), Parma_Polyhedra_Library::Constraint_System::has_strict_inequalities(), Parma_Polyhedra_Library::Constraint_System::insert(), and Parma_Polyhedra_Library::Polyhedron::minimized_constraints().
{
reduce();
Constraint_System cs = d2.constraints();
const Constraint_System& cs1 = d1.constraints();
for (Constraint_System::const_iterator i = cs1.begin(),
cs_end = cs1.end(); i != cs_end; ++i)
cs.insert(*i);
if (cs.has_strict_inequalities()) {
NNC_Polyhedron ph(cs);
return ph.minimized_constraints();
}
else {
C_Polyhedron ph(cs);
return ph.minimized_constraints();
}
}
|
inline |
Checks if all the invariants are satisfied.
Definition at line 419 of file Partially_Reduced_Product.templates.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::clear_reduced_flag(), and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduce().
|
inline |
The assignment operator. (*this and y can be dimension-incompatible.)
Definition at line 473 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d1, Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d2, and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduced.
| void Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::print | ( | ) | const |
Prints *this to std::cerr using operator<<.
|
inline |
Reduce.
Definition at line 665 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d1, Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d2, and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::is_reduced().
Referenced by Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::contains(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::difference_assign(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::is_disjoint_from(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::OK(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::operator==(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::strictly_contains(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::time_elapse_assign(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::upper_bound_assign(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::upper_bound_assign_if_exact(), and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::widening_assign().
{
Partially_Reduced_Product& dp
= const_cast<Partially_Reduced_Product&>(*this);
if (dp.is_reduced())
return false;
R r;
r.product_reduce(dp.d1, dp.d2);
set_reduced_flag();
return true;
}
|
inline |
Use the congruence cg to refine *this.
| cg | The congruence to be used for refinement. |
| std::invalid_argument | Thrown if *this and cg are dimension-incompatible. |
Definition at line 407 of file Partially_Reduced_Product.inlines.hh.
{
d1.refine_with_congruence(cg);
d2.refine_with_congruence(cg);
clear_reduced_flag();
}
|
inline |
Use the congruences in cgs to refine *this.
| cgs | The congruences to be used for refinement. |
| std::invalid_argument | Thrown if *this and cgs are dimension-incompatible. |
Definition at line 443 of file Partially_Reduced_Product.inlines.hh.
{
d1.refine_with_congruences(cgs);
d2.refine_with_congruences(cgs);
clear_reduced_flag();
}
|
inline |
Use the constraint c to refine *this.
| c | The constraint to be used for refinement. |
| std::invalid_argument | Thrown if *this and c are dimension-incompatible. |
Definition at line 391 of file Partially_Reduced_Product.inlines.hh.
{
d1.refine_with_constraint(c);
d2.refine_with_constraint(c);
clear_reduced_flag();
}
|
inline |
Use the constraints in cs to refine *this.
| cs | The constraints to be used for refinement. |
| std::invalid_argument | Thrown if *this and cs are dimension-incompatible. |
Definition at line 425 of file Partially_Reduced_Product.inlines.hh.
{
d1.refine_with_constraints(cs);
d2.refine_with_constraints(cs);
clear_reduced_flag();
}
| Poly_Con_Relation Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::relation_with | ( | const Constraint & | c | ) | const |
Returns the relations holding between *this and c.
Definition at line 147 of file Partially_Reduced_Product.templates.hh.
References Parma_Polyhedra_Library::Poly_Con_Relation::implies(), Parma_Polyhedra_Library::Poly_Con_Relation::is_disjoint(), Parma_Polyhedra_Library::Poly_Con_Relation::is_included(), Parma_Polyhedra_Library::Poly_Con_Relation::nothing(), and Parma_Polyhedra_Library::Poly_Con_Relation::saturates().
{
reduce();
Poly_Con_Relation relation1 = d1.relation_with(c);
Poly_Con_Relation relation2 = d2.relation_with(c);
Poly_Con_Relation result = Poly_Con_Relation::nothing();
if (relation1.implies(Poly_Con_Relation::is_included()))
result = result && Poly_Con_Relation::is_included();
else if (relation2.implies(Poly_Con_Relation::is_included()))
result = result && Poly_Con_Relation::is_included();
if (relation1.implies(Poly_Con_Relation::saturates()))
result = result && Poly_Con_Relation::saturates();
else if (relation2.implies(Poly_Con_Relation::saturates()))
result = result && Poly_Con_Relation::saturates();
if (relation1.implies(Poly_Con_Relation::is_disjoint()))
result = result && Poly_Con_Relation::is_disjoint();
else if (relation2.implies(Poly_Con_Relation::is_disjoint()))
result = result && Poly_Con_Relation::is_disjoint();
return result;
}
| Poly_Con_Relation Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::relation_with | ( | const Congruence & | cg | ) | const |
Returns the relations holding between *this and cg.
Definition at line 173 of file Partially_Reduced_Product.templates.hh.
References Parma_Polyhedra_Library::Poly_Con_Relation::implies(), Parma_Polyhedra_Library::Poly_Con_Relation::is_disjoint(), Parma_Polyhedra_Library::Poly_Con_Relation::is_included(), Parma_Polyhedra_Library::Poly_Con_Relation::nothing(), and Parma_Polyhedra_Library::Poly_Con_Relation::saturates().
{
reduce();
Poly_Con_Relation relation1 = d1.relation_with(cg);
Poly_Con_Relation relation2 = d2.relation_with(cg);
Poly_Con_Relation result = Poly_Con_Relation::nothing();
if (relation1.implies(Poly_Con_Relation::is_included()))
result = result && Poly_Con_Relation::is_included();
else if (relation2.implies(Poly_Con_Relation::is_included()))
result = result && Poly_Con_Relation::is_included();
if (relation1.implies(Poly_Con_Relation::saturates()))
result = result && Poly_Con_Relation::saturates();
else if (relation2.implies(Poly_Con_Relation::saturates()))
result = result && Poly_Con_Relation::saturates();
if (relation1.implies(Poly_Con_Relation::is_disjoint()))
result = result && Poly_Con_Relation::is_disjoint();
else if (relation2.implies(Poly_Con_Relation::is_disjoint()))
result = result && Poly_Con_Relation::is_disjoint();
return result;
}
| Poly_Gen_Relation Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::relation_with | ( | const Generator & | g | ) | const |
Returns the relations holding between *this and g.
Definition at line 135 of file Partially_Reduced_Product.templates.hh.
References Parma_Polyhedra_Library::Poly_Gen_Relation::nothing(), and Parma_Polyhedra_Library::Poly_Gen_Relation::subsumes().
{
reduce();
if (Poly_Gen_Relation::nothing() == d1.relation_with(g)
|| Poly_Gen_Relation::nothing() == d2.relation_with(g))
return Poly_Gen_Relation::nothing();
else
return Poly_Gen_Relation::subsumes();
}
|
inline |
Removes the higher dimensions of the vector space so that the resulting space will have dimension new_dimension.
| std::invalid_argument | Thrown if new_dimensions is greater than the space dimension of *this. |
Definition at line 613 of file Partially_Reduced_Product.inlines.hh.
|
inline |
Removes all the specified dimensions from the vector space.
| vars | The set of Variable objects corresponding to the space dimensions to be removed. |
| std::invalid_argument | Thrown if *this is dimension-incompatible with one of the Variable objects contained in vars. |
Definition at line 605 of file Partially_Reduced_Product.inlines.hh.
|
inlineprotected |
Sets the reduced flag.
Definition at line 690 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduced.
{
const_cast<Partially_Reduced_Product&>(*this).reduced = true;
}
|
inline |
Returns the dimension of the vector space enclosing *this.
Definition at line 182 of file Partially_Reduced_Product.inlines.hh.
References PPL_ASSERT.
Referenced by Parma_Polyhedra_Library::Box< ITV >::Box().
{
PPL_ASSERT(d1.space_dimension() == d2.space_dimension());
return d1.space_dimension();
}
|
inline |
Returns true if and only if each component of *this strictly contains the corresponding component of y.
| std::invalid_argument | Thrown if *this and y are dimension-incompatible. |
Definition at line 656 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d1, Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d2, and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduce().
|
inline |
Assigns to *this the result of computing the time-elapse between *this and y. (See also time-elapse.)
| std::invalid_argument | Thrown if *this and y are dimension-incompatible. |
Definition at line 357 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d1, Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d2, PPL_ASSERT_HEAVY, and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduce().
{
reduce();
y.reduce();
d1.time_elapse_assign(y.d1);
d2.time_elapse_assign(y.d2);
PPL_ASSERT_HEAVY(OK());
}
|
inline |
Assigns to *this its topological closure.
Definition at line 367 of file Partially_Reduced_Product.inlines.hh.
|
inline |
Returns the total size in bytes of the memory occupied by *this.
Definition at line 176 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::external_memory_in_bytes().
{
return sizeof(*this) + external_memory_in_bytes();
}
|
inline |
Computes the cylindrification of *this with respect to space dimension var, assigning the result to *this.
| var | The space dimension that will be unconstrained. |
| std::invalid_argument | Thrown if var is not a space dimension of *this. |
Definition at line 199 of file Partially_Reduced_Product.inlines.hh.
|
inline |
Computes the cylindrification of *this with respect to the set of space dimensions vars, assigning the result to *this.
| vars | The set of space dimension that will be unconstrained. |
| std::invalid_argument | Thrown if *this is dimension-incompatible with one of the Variable objects contained in vars. |
Definition at line 207 of file Partially_Reduced_Product.inlines.hh.
|
inline |
Assigns to *this an upper bound of *this and y computed on the corresponding components.
| std::invalid_argument | Thrown if *this and y are dimension-incompatible. |
Definition at line 236 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d1, Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d2, and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduce().
|
inline |
Assigns to *this an upper bound of *this and y computed on the corresponding components. If it is exact on each of the components of *this, true is returned, otherwise false is returned.
| std::invalid_argument | Thrown if *this and y are dimension-incompatible. |
Definition at line 246 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d1, Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d2, Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduce(), and Parma_Polyhedra_Library::swap().
|
inline |
Assigns to *this the result of computing the "widening" between *this and y.
This widening uses either the congruence or generator systems depending on which of the systems describing x and y are up to date and minimized.
| y | A product that must be contained in *this; |
| tp | An optional pointer to an unsigned variable storing the number of available tokens (to be used when applying the widening with tokens delay technique). |
| std::invalid_argument | Thrown if *this and y are dimension-incompatible. |
Definition at line 563 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d1, Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d2, and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduce().
{
// FIXME(0.10.1): In general this is _NOT_ a widening since the reduction
// may mean that the sequence does not satisfy the ascending
// chain condition.
// However, for the direct, smash and constraints product
// it may be ok - but this still needs checking.
reduce();
y.reduce();
d1.widening_assign(y.d1, tp);
d2.widening_assign(y.d2, tp);
}
|
related |
Returns true if and only if the components of x and y are not pairwise equal.
Note that x and y may be dimension-incompatible: in those cases, the value true is returned.
|
related |
Definition at line 728 of file Partially_Reduced_Product.inlines.hh.
{
return !(x == y);
}
|
related |
Output operator.
Writes a textual representation of dp on s.
|
related |
Definition at line 736 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d1, and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d2.
{
return s << "Domain 1:\n"
<< dp.d1
<< "Domain 2:\n"
<< dp.d2;
}
|
related |
Returns true if and only if the components of x and y are pairwise equal.
Note that x and y may be dimension-incompatible: in those cases, the value false is returned.
|
related |
Definition at line 718 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d1, Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::d2, and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduce().
{
x.reduce();
y.reduce();
return x.d1 == y.d1 && x.d2 == y.d2;
}
|
friend |
|
friend |
|
related |
Swaps x with y.
|
related |
Definition at line 805 of file Partially_Reduced_Product.inlines.hh.
References Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::m_swap().
{
x.m_swap(y);
}
|
protected |
The first component.
Definition at line 1629 of file Partially_Reduced_Product.defs.hh.
Referenced by Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::concatenate_assign(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::contains(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::difference_assign(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::intersection_assign(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::is_disjoint_from(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::m_swap(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::operator<<(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::operator=(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::operator==(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduce(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::strictly_contains(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::time_elapse_assign(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::upper_bound_assign(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::upper_bound_assign_if_exact(), and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::widening_assign().
|
protected |
The second component.
Definition at line 1632 of file Partially_Reduced_Product.defs.hh.
Referenced by Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::concatenate_assign(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::contains(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::difference_assign(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::intersection_assign(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::is_disjoint_from(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::m_swap(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::operator<<(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::operator=(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::operator==(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::reduce(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::strictly_contains(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::time_elapse_assign(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::upper_bound_assign(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::upper_bound_assign_if_exact(), and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::widening_assign().
|
protected |
Flag to record whether the components are reduced with respect to each other and the reduction class.
Definition at line 1648 of file Partially_Reduced_Product.defs.hh.
Referenced by Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::clear_reduced_flag(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::m_swap(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::operator=(), Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::Partially_Reduced_Product(), and Parma_Polyhedra_Library::Partially_Reduced_Product< D1, D2, R >::set_reduced_flag().