C++ product values
|
Type
|
Level
|
MID
|
UID
|
REFS
|
Title
|
Statement
|
Rationale
|
Comment
|
BIBLIOGRAPHY
|
STATUS
|
COMPONENT
|
APPLICABILITY
|
VERIFICATION_METHODS
|
VERIFICATION_CRITERIA
|
SOURCE
|
LANGUAGE
|
VISIBILITY
|
INTERFACE
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
SW_SPEC
|
1 |
|
|
Parents:
|
|
A product shall own two same-dimensional components and denote their intersection, independently of how much information the selected policy has exchanged. Domain_Product<D1,D2> shall provide direct, smash, constraints, congruences and shape-preserving aliases selecting the corresponding reduction classes. Componentwise equality, strictness, emptiness and extrema shall have the explicitly stated query scope below, rather than decide all properties of the concrete intersection. Supported component domains shall satisfy the requirements of every operation and reduction policy actually instantiated. The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation. |
Intersection meaning is independent of the strength of a policy or a sufficient query. |
CousotC79 | whole work (background on product domains). |
|
|
|
|
Check policy aliases, grid/polyhedron intersections with independent restrictions and nonempty components with empty intersection. |
src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/contractvalues1.cc; tests/Partially_Reduced_Product/directproduct1.cc; tests/Partially_Reduced_Product/smashproduct1.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise. template <typename D1, typename D2, typename R> class Partially_Reduced_Product; template <typename D1, typename D2> class Domain_Product { public: typedef Partially_Reduced_Product<D1,D2,No_Reduction<D1,D2>> Direct_Product; typedef Partially_Reduced_Product<D1,D2,Smash_Reduction<D1,D2>> Smash_Product; typedef Partially_Reduced_Product<D1,D2,Constraints_Reduction<D1,D2>> Constraints_Product; typedef Partially_Reduced_Product<D1,D2,Congruences_Reduction<D1,D2>> Congruences_Product; typedef Partially_Reduced_Product<D1,D2,Shape_Preserving_Reduction<D1,D2>> Shape_Preserving_Product; }; |
|
|
SW_SPEC
|
2 |
|
|
|
Dimension construction shall create two empty or two universe components in n dimensions; default shall be zero-dimensional universe. The structural limit shall be the minimum component limit. An oversized or reserved dimension shall throw std::length_error before extent-proportional storage. space_dimension shall return their common ambient dimension. affine_dimension shall reduce and return the smaller component affine dimension, which need not equal the intersection's affine dimension. The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation. |
The product cannot admit dimensions unsupported by either component; affine dimensions can shrink further on intersection. |
|
|
|
|
|
Check both distinguished values and defaults, component limit minimum, invalid dimensions and components whose intersection has smaller affine dimension. |
src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/dimension1.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise. explicit Partially_Reduced_Product(dimension_type n=0, Degenerate_Element=UNIVERSE); static dimension_type max_space_dimension(); dimension_type space_dimension() const; dimension_type affine_dimension() const; |
||
|
SW_SPEC
|
3 |
|
|
Parents:
|
|
Same-type copying and assignment shall preserve both component values and the lazy reduction state. Later mutation shall be independent. Assignment shall support self-assignment and return its receiver. The copy complexity argument shall not change exactness. Exchange shall swap both components and reduction state together, including dimension; self-exchange shall preserve the value. Destruction shall release both components. The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation. |
A policy state belongs to its component pair and must move with it. |
|
|
|
|
|
Check independent mutation, self-assignment/exchange, unlike dimensions and delayed reduction state. |
src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/directproduct1.cc; tests/Partially_Reduced_Product/fromproduct1.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise. Partially_Reduced_Product(const Partially_Reduced_Product&, Complexity_Class=ANY_COMPLEXITY); ~Partially_Reduced_Product(); Partially_Reduced_Product& operator=(const Partially_Reduced_Product&); void m_swap(Partially_Reduced_Product&); template <typename D1, typename D2, typename R> void swap(Partially_Reduced_Product<D1,D2,R>&, Partially_Reduced_Product<D1,D2,R>&); |
|
|
SW_SPEC
|
4 |
|
|
Parents:
|
|
Constraint-system and congruence-system construction shall construct both components from the same input and mark reduction unknown. The resulting intersection shall contain the described set and shall be exact when the combined component constructions represent it exactly. Const sources shall be preserved. Nonconst overloads shall permit the documented second-component recycling while constructing the first from an unconsumed view. Admission and exceptions shall follow both component constructors. The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation. |
Consuming input for one component must occur only after the other has obtained its value. |
|
|
|
|
|
Check constraints/congruences, const/nonconst sources, dimension and contradiction handling, and distinct component precision. |
src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/congruences1.cc; tests/Partially_Reduced_Product/constraints1.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise. explicit Partially_Reduced_Product(const Constraint_System&); explicit Partially_Reduced_Product(Constraint_System&); explicit Partially_Reduced_Product(const Congruence_System&); explicit Partially_Reduced_Product(Congruence_System&); |
|
|
SW_SPEC
|
5 |
|
|
Parents:
|
|
Simple-domain conversion shall construct both destination components from the source, preserve dimension and contain its represented set. The result shall be exact when the component intersection preserves all source information. Polyhedron conversions shall pass the supplied complexity class; Grid, Box, BD and octagon overloads shall use their component constructors' default complexity. Cross-product conversion shall convert both source component views into destination products and intersect those products, so restrictions contributed by either source component are retained to the precision of the destination. Source values shall remain unchanged apart from permitted cache/reduction changes. The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation. |
Both source components can contribute restrictions that the other cannot express. |
|
|
|
|
|
Check every source family, both product component orders, separate restrictions and empty sources. |
src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/frombdshape1.cc; tests/Partially_Reduced_Product/frombox1.cc; tests/Partially_Reduced_Product/fromgrid1.cc; tests/Partially_Reduced_Product/fromoctagonalshape1.cc; tests/Partially_Reduced_Product/frompolyhedron1.cc; tests/Partially_Reduced_Product/fromproduct1.cc. |
|
|
Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise. explicit Partially_Reduced_Product(const C_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); explicit Partially_Reduced_Product(const NNC_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); explicit Partially_Reduced_Product(const Grid&, Complexity_Class=ANY_COMPLEXITY); template <typename Interval> explicit Partially_Reduced_Product(const Box<Interval>&, Complexity_Class=ANY_COMPLEXITY); template <typename T> explicit Partially_Reduced_Product(const BD_Shape<T>&, Complexity_Class=ANY_COMPLEXITY); template <typename T> explicit Partially_Reduced_Product(const Octagonal_Shape<T>&, Complexity_Class=ANY_COMPLEXITY); template <typename E1, typename E2, typename S> explicit Partially_Reduced_Product(const Partially_Reduced_Product<E1,E2,S>&, Complexity_Class=ANY_COMPLEXITY); |