Parma Polyhedra Library requirements
C++ compound values
PPL-SPEC-001379
1. Compound-domain values and valid use UID: PPL-SPEC-001379 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

Pointset_Powerset<PSET> shall denote ⋃iγ(pi). An empty collection shall denote empty. Partially_Reduced_Product<D1,D2,R> shall denote γ1(d1)∩γ2(d2) in a common real ambient space. Powerset<D> shall implement the finite powerset construction on a base domain with bottom, top, entailment, equality, upper bound and meet. Determinate<PSET> shall adapt a supported pointset domain to that base interface without changing its represented set.

A component type shall supply the operations used by an instantiated member, with their stated soundness, precision, dimension and arithmetic conditions. Every intermediate arithmetic operation shall meet its coefficient profile's range and resource conditions. Initialization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization; indices and dimensions shall follow 🔗 1. Coordinate type and reserved dimension index. Objects, descriptors, function objects and streams shall remain live and valid throughout their uses. Independently written outputs shall not alias each other or input storage, except where explicitly permitted. The denominator-taking affine wrappers shall admit a scalar borrowed from the receiver at entry as specified below.

Value copies shall permit independent subsequent mutations. Accesses that can change shared representations or caches shall be externally synchronized. Numerical, allocation and resource exceptions may propagate. Failed construction shall release acquired resources. For existing objects no general rollback or further-query guarantee shall be assumed after an exception; surviving owned resources shall remain destructible.

RATIONALE:

Disjunction and conjunction have different concretizations and different lifting laws. Component contracts determine which operations can be instantiated.

INTERFACE:

Public header: <ppl.hh>; namespace Parma_Polyhedra_Library.

template <typename D> class Powerset;
template <typename PSET> class Determinate;
template <typename PSET> class Pointset_Powerset;
template <typename D1, typename D2, typename R>
class Partially_Reduced_Product;
VERIFICATION_CRITERIA:

Check independent union and intersection examples, empty collections, dimensioned distinguished values, independent copies, coefficient admission and ownership during failures.

BIBLIOGRAPHY:

BagnaraHZ06STTT | Section 3, Definitions 4–5 (finite powersets and union concretization). CousotC79 | whole work (background on products).

SOURCE:

src/Determinate_defs.hh; src/Determinate_inlines.hh; src/Determinate_types.hh; src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; src/Powerset_defs.hh; src/Powerset_inlines.hh; src/Powerset_templates.hh; src/Powerset_types.hh; tests/Partially_Reduced_Product/directproduct1.cc; tests/Powerset/powerset1.cc.