-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001559 C generated dimension arrays and maps (Specified by)
- PPL-SPEC-001105 Existential bounded-difference coordinate removal (Specified by)
- PPL-SPEC-001106 Injective partial remapping of bounded-difference coordinates (Specified by)
- PPL-SPEC-001108 Alternative-coordinate folding of bounded-difference values (Specified by)
- PPL-SPEC-000964 Selected-coordinate box projection and compaction (Specified by)
- PPL-SPEC-000965 Trailing-coordinate box projection (Specified by)
- PPL-SPEC-001298 Selected-coordinate existential projection (Specified by)
- PPL-SPEC-001299 Prefix-coordinate existential projection (Specified by)
- PPL-SPEC-001200 Existential removal of selected octagonal coordinates (Specified by)
- PPL-SPEC-001201 Existential removal of trailing octagonal coordinates (Specified by)
- PPL-SPEC-001202 Injective partial remapping of octagonal coordinates (Specified by)
- PPL-SPEC-001204 Alternative-coordinate folding of octagonal values (Specified by)
- PPL-SPEC-001205 Dimension-preserving forgetting of octagonal coordinates (Specified by)
PPL shall provide coordinate-removal operations for supported pointset domains. Coordinate removal shall have the concrete meaning of retaining exactly those valuations of the remaining coordinates for which the original set has an extension, in the declared remaining-coordinate order. For valid inputs satisfying the operation's stated computational-arithmetic preconditions, including those governing all intermediate calculations, a successfully completed abstract result shall contain that existential projection and satisfy the domain's stated exactness or precision guarantee.
Removing a coordinate eliminates its value existentially; it does not fix the coordinate to zero or merely erase stored coefficients.
Verification covers coordinate-removal operations and their domain-specific projection and ordering guarantees. Related obligations: 🔗 1. Dimension-preserving coordinate forgetting, 🔗 1. Coordinate identity and ambient dimension, 🔗 3. Coordinate remapping semantics, 🔗 1. Meaning of successful exact and approximate results.
Derive low-dimensional projections independently, including eliminated equalities, retained relations between surviving coordinates, empty and universe sets, and removal of all or no coordinates. Check coordinate order and apply equality only where the domain and numeric profile guarantee an exact projection.
doc/definitions.dox: Removing Dimensions from the Vector Space. src/Polyhedron_defs.hh: coordinate removal. src/Grid_defs.hh: grid coordinate removal. src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: weakly relational coordinate removal.
-
6. C generated dimension arrays and maps UID: PPL-SPEC-001559 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000418 Distinguished coordinate extensions (Specifies)
- PPL-LLR-000419 Coordinate remapping semantics (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
STATEMENT: Dimension growth, projection/removal, expansion/folding and coordinate maps shall preserve native coordinate meanings. Counted dimension lists shall form sets where the native interface accepts sets. Map arrays shall associate source index i with entry i, using the published non-dimension sentinel for undefined entries. Entries outside the supplied array shall be undefined. Map emptiness and maximum codomain shall have finite partial-map meanings; valid maps shall satisfy the native dimension-map admission rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: Generated forwarding must retain the native mathematical and ownership contract.
INTERFACE: Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.
int ppl_Polyhedron_add_space_dimensions_and_embed(ppl_Polyhedron_t ph, ppl_dimension_type d); int ppl_Polyhedron_add_space_dimensions_and_project(ppl_Polyhedron_t ph, ppl_dimension_type d); int ppl_Polyhedron_remove_space_dimensions(ppl_Polyhedron_t ph, ppl_dimension_type ds[], size_t n); int ppl_Polyhedron_remove_higher_space_dimensions(ppl_Polyhedron_t ph, ppl_dimension_type d); int ppl_Polyhedron_expand_space_dimension(ppl_Polyhedron_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Polyhedron_fold_space_dimensions(ppl_Polyhedron_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Polyhedron_map_space_dimensions(ppl_Polyhedron_t ph, ppl_dimension_type maps[], size_t n); int ppl_Grid_add_space_dimensions_and_embed(ppl_Grid_t ph, ppl_dimension_type d); int ppl_Grid_add_space_dimensions_and_project(ppl_Grid_t ph, ppl_dimension_type d); int ppl_Grid_remove_space_dimensions(ppl_Grid_t ph, ppl_dimension_type ds[], size_t n); int ppl_Grid_remove_higher_space_dimensions(ppl_Grid_t ph, ppl_dimension_type d); int ppl_Grid_expand_space_dimension(ppl_Grid_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Grid_fold_space_dimensions(ppl_Grid_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Grid_map_space_dimensions(ppl_Grid_t ph, ppl_dimension_type maps[], size_t n); int ppl_Rational_Box_add_space_dimensions_and_embed(ppl_Rational_Box_t ph, ppl_dimension_type d); int ppl_Rational_Box_add_space_dimensions_and_project(ppl_Rational_Box_t ph, ppl_dimension_type d); int ppl_Rational_Box_remove_space_dimensions(ppl_Rational_Box_t ph, ppl_dimension_type ds[], size_t n); int ppl_Rational_Box_remove_higher_space_dimensions(ppl_Rational_Box_t ph, ppl_dimension_type d); int ppl_Rational_Box_expand_space_dimension(ppl_Rational_Box_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Rational_Box_fold_space_dimensions(ppl_Rational_Box_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Rational_Box_map_space_dimensions(ppl_Rational_Box_t ph, ppl_dimension_type maps[], size_t n); int ppl_BD_Shape_mpz_class_add_space_dimensions_and_embed( ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpz_class_add_space_dimensions_and_project( ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpz_class_remove_space_dimensions(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n); int ppl_BD_Shape_mpz_class_remove_higher_space_dimensions( ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpz_class_expand_space_dimension(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_BD_Shape_mpz_class_fold_space_dimensions(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_BD_Shape_mpz_class_map_space_dimensions(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type maps[], size_t n); int ppl_BD_Shape_mpq_class_add_space_dimensions_and_embed( ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpq_class_add_space_dimensions_and_project( ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpq_class_remove_space_dimensions(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n); int ppl_BD_Shape_mpq_class_remove_higher_space_dimensions( ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpq_class_expand_space_dimension(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_BD_Shape_mpq_class_fold_space_dimensions(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_BD_Shape_mpq_class_map_space_dimensions(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type maps[], size_t n); int ppl_Octagonal_Shape_mpz_class_add_space_dimensions_and_embed( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpz_class_add_space_dimensions_and_project( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpz_class_remove_space_dimensions( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n); int ppl_Octagonal_Shape_mpz_class_remove_higher_space_dimensions( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpz_class_expand_space_dimension( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Octagonal_Shape_mpz_class_fold_space_dimensions( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Octagonal_Shape_mpz_class_map_space_dimensions( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type maps[], size_t n); int ppl_Octagonal_Shape_mpq_class_add_space_dimensions_and_embed( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpq_class_add_space_dimensions_and_project( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpq_class_remove_space_dimensions( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n); int ppl_Octagonal_Shape_mpq_class_remove_higher_space_dimensions( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpq_class_expand_space_dimension( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Octagonal_Shape_mpq_class_fold_space_dimensions( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Octagonal_Shape_mpq_class_map_space_dimensions( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type maps[], size_t n); int ppl_Constraints_Product_C_Polyhedron_Grid_add_space_dimensions_and_embed( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d); int ppl_Constraints_Product_C_Polyhedron_Grid_add_space_dimensions_and_project( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d); int ppl_Constraints_Product_C_Polyhedron_Grid_remove_space_dimensions( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[], size_t n); int ppl_Constraints_Product_C_Polyhedron_Grid_remove_higher_space_dimensions( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d); int ppl_Constraints_Product_C_Polyhedron_Grid_expand_space_dimension( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Constraints_Product_C_Polyhedron_Grid_fold_space_dimensions( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Constraints_Product_C_Polyhedron_Grid_map_space_dimensions( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type maps[], size_t n); int ppl_Pointset_Powerset_C_Polyhedron_add_space_dimensions_and_embed( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_C_Polyhedron_add_space_dimensions_and_project( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_C_Polyhedron_remove_space_dimensions( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n); int ppl_Pointset_Powerset_C_Polyhedron_remove_higher_space_dimensions( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_C_Polyhedron_expand_space_dimension( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Pointset_Powerset_C_Polyhedron_fold_space_dimensions( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Pointset_Powerset_C_Polyhedron_map_space_dimensions( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type maps[], size_t n); int ppl_Pointset_Powerset_NNC_Polyhedron_add_space_dimensions_and_embed( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_NNC_Polyhedron_add_space_dimensions_and_project( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_NNC_Polyhedron_remove_space_dimensions( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[], size_t n); int ppl_Pointset_Powerset_NNC_Polyhedron_remove_higher_space_dimensions( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_NNC_Polyhedron_expand_space_dimension( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Pointset_Powerset_NNC_Polyhedron_fold_space_dimensions( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Pointset_Powerset_NNC_Polyhedron_map_space_dimensions( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type maps[], size_t n); int ppl_Double_Box_add_space_dimensions_and_embed(ppl_Double_Box_t ph, ppl_dimension_type d); int ppl_Double_Box_add_space_dimensions_and_project(ppl_Double_Box_t ph, ppl_dimension_type d); int ppl_Double_Box_remove_space_dimensions(ppl_Double_Box_t ph, ppl_dimension_type ds[], size_t n); int ppl_Double_Box_remove_higher_space_dimensions(ppl_Double_Box_t ph, ppl_dimension_type d); int ppl_Double_Box_expand_space_dimension(ppl_Double_Box_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Double_Box_fold_space_dimensions(ppl_Double_Box_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Double_Box_map_space_dimensions(ppl_Double_Box_t ph, ppl_dimension_type maps[], size_t n); int ppl_BD_Shape_double_add_space_dimensions_and_embed(ppl_BD_Shape_double_t ph, ppl_dimension_type d); int ppl_BD_Shape_double_add_space_dimensions_and_project( ppl_BD_Shape_double_t ph, ppl_dimension_type d); int ppl_BD_Shape_double_remove_space_dimensions(ppl_BD_Shape_double_t ph, ppl_dimension_type ds[], size_t n); int ppl_BD_Shape_double_remove_higher_space_dimensions(ppl_BD_Shape_double_t ph, ppl_dimension_type d); int ppl_BD_Shape_double_expand_space_dimension(ppl_BD_Shape_double_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_BD_Shape_double_fold_space_dimensions(ppl_BD_Shape_double_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_BD_Shape_double_map_space_dimensions(ppl_BD_Shape_double_t ph, ppl_dimension_type maps[], size_t n); int ppl_Octagonal_Shape_double_add_space_dimensions_and_embed( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_double_add_space_dimensions_and_project( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_double_remove_space_dimensions( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n); int ppl_Octagonal_Shape_double_remove_higher_space_dimensions( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_double_expand_space_dimension( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Octagonal_Shape_double_fold_space_dimensions( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Octagonal_Shape_double_map_space_dimensions( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type maps[], size_t n);
VERIFICATION_CRITERIA: Check empty and sparse maps, reserved entries, reordered coordinates, duplicate dimension selections, valid codomain maxima and native growth limits.
SOURCE: interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/polyhedra.c.
-
Incoming link from: 5. Injective partial remapping of bounded-difference coordinates1
4. Existential bounded-difference coordinate removal UID: PPL-SPEC-001105 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: remove_space_dimensions(vars) shall existentially remove exactly the entry coordinates in vars. Remaining coordinates shall be compacted in ascending original-index order. remove_higher_space_dimensions(k) shall existentially remove the suffix with indices k, …, n − 1, retaining the original prefix order. Removal shall retain all implied relations among survivors, including relations whose proof uses removed coordinates.
With exact computational arithmetic, both operations shall give the exact existential projection, which is bounded-difference representable. Rounded computational profiles shall give a sound projection with the closure precision admitted by 🔗 1. Bounded-difference values, numerical profiles and valid use. Removing no coordinates shall preserve the entry value; removing every coordinate shall give zero-dimensional universe exactly when the entry value is nonempty, otherwise zero-dimensional empty. Empty inputs shall retain emptiness in the reduced dimension.
An element of vars outside the entry dimension, or k greater than that dimension, shall throw std::invalid_argument. Empty selections and a suffix length of zero shall also apply to zero-dimensional values.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. The supplied Variables_Set shall retain its own valid-use contract and shall remain unchanged. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
RATIONALE: Projection must preserve paths and equalities through eliminated coordinates, rather than simply deleting their explicitly stored restrictions.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::BD_Shape<T>:
void remove_space_dimensions(const Variables_Set& vars); void remove_higher_space_dimensions(dimension_type k);
VERIFICATION_CRITERIA: Eliminate selected columns from raw rational halfspaces independently, compact survivors and compare all primitive supports. Include nonadjacent selections, implied surviving relations, equalities, all/none removal, empty/lazy-empty and universe, cached/uncached descriptions, repeated removal and invalid dimensions.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapecoordinatesspec1.cc; tests/bdshapecoordinateoracle.hh; tests/bdshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/bdshapecoordinatespublic1.cc; tests/BD_Shape/removespacedims1.cc; tests/BD_Shape/addspacedims1.cc.
-
5. Injective partial remapping of bounded-difference coordinates UID: PPL-SPEC-001106 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000419 Coordinate remapping semantics (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: map_space_dimensions(mapping) shall existentially discard every entry coordinate outside the mapping domain and place each surviving coordinate i at target index f(i). For a positive-dimensional receiver, the admitted mapping shall be a partial injection from the entry indices 0, …, n − 1, with image exactly 0, …, m − 1 for some m ≤ n. The result shall have dimension m; an empty mapping shall project to the zero-dimensional value.
With exact computational arithmetic, the result shall equal the projected and relabeled entry set. Rounded profiles shall retain the projection precision of 🔗 4. Existential bounded-difference coordinate removal. Empty and universe values shall retain those meanings in the mapped dimension. An identity mapping shall preserve the value; a permutation shall retain all renamed relations.
The mapping type shall supply logically const has_empty_codomain(), max_in_codomain() and maps(i,j) queries with the meanings of [LINK: PPL-SPEC-000004], 🔗 5. Exact empty-codomain query and 🔗 6. Largest image and defined empty-map failure. A zero-dimensional input shall remain unchanged and require no mapping query; mapping-value restrictions shall apply only to positive-dimensional receivers. Otherwise has_empty_codomain() shall be queried first; when true, neither remaining query shall be called. When false, the maximum shall be queried before mappings are consumed. Queries shall describe one stable mapping throughout the call. No specific number or order of individual maps queries shall be required. Violating injectivity, source bounds, contiguous image or query consistency shall be outside the admitted interface.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. The supplied mapping shall remain live and describe a stable partial function. Exceptions escaping its queries shall propagate. After a query exception, destruction shall release owned storage, and assigning a complete valid value to the destination shall be supported before further geometric use. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
RATIONALE: Mapping combines existential projection with a permutation; its query protocol also permits lightweight user-supplied mapping objects.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::BD_Shape<T>:
template <typename Partial_Function> void map_space_dimensions(const Partial_Function& mapping);
The admitted Partial_Function type shall provide these const queries:
bool has_empty_codomain() const; dimension_type max_in_codomain() const; bool maps(dimension_type source, dimension_type& target) const;
VERIFICATION_CRITERIA: Independently eliminate and permute coordinates for every small contiguous-image injection, including nonadjacent domains, permutations, empty and identity maps, implied relations, empty/zero-dimensional and cached values. Use a custom query recorder to verify mandatory ordering and forbidden queries after an empty answer, and check source mapping preservation. Check verified identity maps without temporary C++ allocation, unchanged cached representations and owned capacity after copying and grow/shrink histories. Compare first/last/middle swaps, reversal, cycles and projections against literal coordinate oracles; preserve floating-point mode/flags. Inject every mapping-query exception and check propagation, safe replacement and temporary cleanup.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapecoordinatesspec1.cc; tests/bdshapecoordinateoracle.hh; tests/bdshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/bdshapecoordinatespublic1.cc; tests/BD_Shape/mapspacedims1.cc. tests/coordinatemappingfixture.hh;
-
7. Alternative-coordinate folding of bounded-difference values UID: PPL-SPEC-001108 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: fold_space_dimensions(vars,dest) shall combine the alternatives obtained by keeping the original destination value or replacing it by the value of any entry coordinate in vars, then remove every folded coordinate. Surviving indices, including the destination's new index, shall be compacted in ascending original order. Other surviving coordinates shall keep their entry meanings within each alternative.
With exact computational arithmetic, the result shall be the least bounded-difference enclosure of that union of alternatives. In particular, its unary and difference bounds shall be the corresponding suprema over all alternatives. Rounded profiles shall retain a sound enclosure and their admitted closure and numerical precision under 🔗 1. Bounded-difference values, numerical profiles and valid use. The union need not be convex or itself bounded-difference representable. Empty input shall remain empty in the reduced dimension. Empty vars shall preserve the value after validating the destination coordinate.
The destination and every folded coordinate shall be inside the entry space, and the destination shall not belong to vars. An invalid coordinate or selection containing the destination shall throw std::invalid_argument. The Variables_Set selection shall remain unchanged.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. The supplied Variable and Variables_Set shall retain their own valid-use contracts. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
RATIONALE: Folding joins alternative destination values and then projects away source axes; it is neither simultaneous equality nor an injective renaming.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::BD_Shape<T>:
void fold_space_dimensions(const Variables_Set& vars, Variable dest);
VERIFICATION_CRITERIA: Project each destination-substitution alternative independently and maximize each supported normal over the alternatives. Include multiple folded coordinates, destination before/between/after removed indices, coupled/empty/universe and zero selections, representation histories, rounded profiles and all invalid selections.
BIBLIOGRAPHY: GopanDMDRS04 | Sections 4.2 and 4.5, folding and weakly relational implementation (author PDF page indices 6-9, zero-based).
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapecoordinatesspec1.cc; tests/bdshapecoordinateoracle.hh; tests/bdshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/bdshapecoordinatespublic1.cc; tests/BD_Shape/foldspacedims1.cc; tests/BD_Shape/expandspacedim1.cc; tests/BD_Shape/dimensioncontracts1.cc.
-
4. Selected-coordinate box projection and compaction UID: PPL-SPEC-000964 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: remove_space_dimensions(vars) shall existentially project away exactly the selected coordinates. Surviving factors shall retain their relative order and shall receive contiguous indices starting at zero. The resulting dimension shall be the entry dimension minus the selected set's cardinality. For boxes this projection shall be exact. Empty sources shall remain empty, even if the only empty factor is removed. Removing every coordinate from a nonempty box shall give zero-dimensional universe; removing every coordinate from empty shall give zero-dimensional empty. Removing no coordinates shall preserve the value.
A selected coordinate outside the entry ambient dimension shall throw std::invalid_argument, including for empty inputs.
The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.
RATIONALE: Existential projection removes positions while preserving the order of surviving coordinates.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Box<ITV>:
void remove_space_dimensions(const Variables_Set& vars);
VERIFICATION_CRITERIA: Enumerate coordinate subsets of independent factor vectors, including removal of every/no coordinate, empty factors at all positions and nonadjacent removed positions. Compare surviving order and zero-dimensional meaning; check invalid selections.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxcoordinatesspec1.cc; tests/boxpublic1.cc.
-
5. Trailing-coordinate box projection UID: PPL-SPEC-000965 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: remove_higher_space_dimensions(d) shall exactly project onto the first d entry coordinates. The ambient dimension shall become d and retained factors shall preserve order and values. An empty source shall remain empty regardless of which factors carried emptiness. Projection to dimension zero shall yield universe exactly for a nonempty source, and empty for an empty source. Requesting the current dimension shall preserve the value.
If d exceeds the entry ambient dimension, the operation shall throw std::invalid_argument. It shall not extend the box.
The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.
RATIONALE: Trailing projection has the same empty-set semantics as general coordinate removal.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Box<ITV>:
void remove_higher_space_dimensions(dimension_type d);
VERIFICATION_CRITERIA: Compare each prefix dimension against an independent existential projection, including zero/all retained coordinates, empty sources and emptiness stored only in a discarded factor. Check excessive-dimension rejection and agreement with selected-coordinate projection.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxcoordinatesspec1.cc; tests/boxpublic1.cc.
-
4. Selected-coordinate existential projection UID: PPL-SPEC-001298 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: remove_space_dimensions(vars) shall assign exact existential projection onto the unselected coordinates, preserving their relative order and renumbering them consecutively. Its dimension shall decrease by the selection size. Empty selection is identity; removing every coordinate yields zero-dimensional universe exactly for nonempty input. Any out-of-range index shall throw std::invalid_argument before mutation, including empty.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Existential elimination must preserve the lattice information among remaining coordinates.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void remove_space_dimensions(const Variables_Set& vars);
VERIFICATION_CRITERIA: Check independent projected generator systems for coupled rational lattices, arbitrary selected subsets, all/none removal, empty inputs and invalid indices.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_chdims.cc; src/Grid_templates.hh; tests/Grid/removespacedims1.cc; tests/Grid/removespacedims2.cc; tests/gridoperationsspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.
-
5. Prefix-coordinate existential projection UID: PPL-SPEC-001299 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: remove_higher_space_dimensions(new_dimension) shall assign the exact projection onto the prefix of that many coordinates. Equal dimension is identity; zero produces zero-dimensional universe exactly when the entry grid is nonempty. A requested dimension greater than the current dimension shall throw std::invalid_argument before mutation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Prefix removal is the ordered special case of existential coordinate projection.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void remove_higher_space_dimensions(dimension_type new_dimension);
VERIFICATION_CRITERIA: Compare with independent generator truncation and selected-coordinate removal, including latent empty, every prefix and greater-dimension rejection. Compare literal prefix descriptions of equalities, independent residue lattices and coupled modular rows across dense and sparse representations, both minimal systems, each minimal system alone and current nonminimal generators. Check that compatible minimal caches survive projection before querying them again, then reconstruct and compare both representations of the result.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_chdims.cc; src/Grid_templates.hh; tests/Grid/removespacedims1.cc; tests/Grid/removespacedims2.cc; tests/gridoperationsspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.
-
3. Existential removal of selected octagonal coordinates UID: PPL-SPEC-001200 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For entry set X ⊆ ℝn and selected entry indices S, remove_space_dimensions(vars) shall existentially eliminate those coordinates. If i0 < ⋯ < im − 1 are the indices outside S, the concrete result shall be
{(xi0, …, xim − 1) ∣ x ∈ X} ⊆ ℝm.Survivors shall be compacted in that ascending order. Removing no coordinates shall preserve the value. Removing a constrained coordinate shall retain relationships implied between surviving coordinates, subject to the stated numerical precision.
With exact computational arithmetic, including exact halving where needed, the result shall equal that projection. For rounded profiles the result shall contain it; closure and bound rounding may yield a less precise enclosure. Integral bound storage shall retain its real-set interpretation, including half-integral points. Empty input shall remain empty in the resulting ambient dimension; a nonempty set projected onto no coordinates shall become the zero-dimensional universe.
Every selected index shall be inside the entry space. An out-of-space selection shall throw std::invalid_argument before changing the represented set or dimension, including for empty input. The Variables_Set argument shall remain unchanged.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
RATIONALE: Existential projection preserves feasible surviving valuations and cannot be implemented by discarding all clauses mentioning an eliminated coordinate.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Octagonal_Shape<T>:
void remove_space_dimensions(const Variables_Set& vars);
VERIFICATION_CRITERIA: Independently eliminate selected columns from rational halfspaces and compact survivors. Check all/none/nonadjacent selections, retained relations through removed coordinates, signed sums and differences, equalities, half-integral real points, lazy contradictions, empty/universe, cache histories, selection preservation and invalid indices. Require equality for exact arithmetic and containment for rounded profiles.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Whole work, journal background on signed octagonal bounds and closure.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapecoordinatesspec1.cc; tests/octagonalshapecoordinatespublic1.cc; tests/octagonalshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/octagonalshapecoordinateoracle.hh; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/Octagonal_Shape/removespacedims1.cc.
-
4. Existential removal of trailing octagonal coordinates UID: PPL-SPEC-001201 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For entry set X ⊆ ℝn, remove_higher_space_dimensions(k) shall remove indices k, …, n − 1 and retain the prefix in its original order. Its concrete result shall be {(x0, …, xk − 1) ∣ x ∈ X} ⊆ ℝk. Calling it with k = n shall preserve the value.
With exact computational arithmetic, including exact halving where needed, the result shall equal that projection. For rounded profiles the result shall contain it; closure and bound rounding may yield a less precise enclosure. Integral bound storage shall retain its real-set interpretation, including half-integral points. Empty input shall remain empty in the resulting ambient dimension; a nonempty set projected onto no coordinates shall become the zero-dimensional universe.
The requested prefix length shall satisfy k ≤ n. A larger value shall throw std::invalid_argument before changing the represented set or dimension, including for empty or zero-dimensional input. Selected-coordinate removal is specified by 🔗 3. Existential removal of selected octagonal coordinates.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
RATIONALE: Prefix projection retains implied constraints between lower-index coordinates while removing only the declared suffix.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Octagonal_Shape<T>:
void remove_higher_space_dimensions(dimension_type k);
VERIFICATION_CRITERIA: Independently project raw rational halfspaces onto every prefix, including zero and the full entry length. Check signed constraints mediated by removed axes, half-integral values, empty/lazy-empty and universe, representation histories, repeated projections and invalid prefix lengths. Check exact equality and rounded containment according to the contract.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Whole work, journal background on signed octagonal bounds and closure.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapecoordinatesspec1.cc; tests/octagonalshapecoordinatespublic1.cc; tests/octagonalshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/octagonalshapecoordinateoracle.hh; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/Octagonal_Shape/removespacedims1.cc; tests/Octagonal_Shape/addspacedims1.cc.
-
5. Injective partial remapping of octagonal coordinates UID: PPL-SPEC-001202 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000419 Coordinate remapping semantics (Specifies)
- PPL-LLR-000141 Injective partial coordinate maps (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: map_space_dimensions(mapping) shall existentially discard entry coordinates outside the mapping domain and place each retained coordinate i at target index f(i). For a positive-dimensional receiver, the admitted mapping shall be a partial injection from {0, …, n − 1} with image exactly {0, …, m − 1} for some m ≤ n. The concrete result shall be
{(xf − 1(0), …, xf − 1(m − 1)) ∣ x ∈ X}.The result shall have dimension m. An empty mapping shall project to the zero-dimensional value. A permutation shall retain all renamed relationships; an identity mapping shall preserve the value. The exactness, rounded enclosure and empty-set guarantees of 🔗 3. Existential removal of selected octagonal coordinates shall apply to the projection part.
The mapping type shall supply logically const has_empty_codomain(), max_in_codomain() and maps(i,j) queries with the meanings of [LINK: PPL-SPEC-000004], 🔗 5. Exact empty-codomain query and 🔗 6. Largest image and defined empty-map failure. Queries shall describe one stable mapping throughout the call. A zero-dimensional receiver shall remain unchanged without querying the mapping. Otherwise has_empty_codomain() shall be queried first; when it returns true, neither remaining query shall be called. For a nonempty image the maximum query shall precede individual mapping queries. No fixed count or order of maps queries shall be required. The mapping's value shall remain unchanged apart from effects explicitly permitted by its query contract.
Violating injectivity, source bounds, the contiguous-image condition or query consistency shall be outside admitted use. In particular, output-index holes shall not denote newly introduced free coordinates. Exceptions from mapping queries shall propagate; no rollback of the receiver shall be inferred after such an exception.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
RATIONALE: Projection and a one-to-one coordinate relabeling preserve coordinate identity; a contiguous output image makes the resulting ambient dimension unambiguous.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Octagonal_Shape<T>:
template <typename Partial_Function> void map_space_dimensions(const Partial_Function& mapping);
VERIFICATION_CRITERIA: Compare independent projection followed by column permutation for every valid partial injection on small dimensions, including sparse domains, reversed and cyclic orders, all/none retention, correlated halfspaces and cache histories. Check the query protocol with a recording mapping, no queries for zero dimensions and no maximum/maps query for an empty image. Inject query exceptions and verify propagation, temporary cleanup and safe replacement/retry. Review invalid-map preconditions without invoking undefined mappings. Check verified identity maps without temporary C++ allocation, unchanged cached representations and owned capacity after copying and grow/shrink histories. Compare first/last/middle swaps, reversal, cycles and projections against literal coordinate oracles; preserve floating-point mode/flags. Inject every mapping-query exception and check propagation, safe replacement and temporary cleanup.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Whole work, journal background on signed octagonal bounds and closure.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapecoordinatesspec1.cc; tests/octagonalshapecoordinatespublic1.cc; tests/octagonalshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/octagonalshapecoordinateoracle.hh; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/Octagonal_Shape/mapspacedims1.cc. tests/coordinatemappingfixture.hh;
-
7. Alternative-coordinate folding of octagonal values UID: PPL-SPEC-001204 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: fold_space_dimensions(vars,dest) shall combine the alternatives obtained by retaining the entry destination value or choosing the value of any entry coordinate in vars for that destination, then existentially remove every folded coordinate. Surviving indices, including the destination's resulting index, shall be compacted in ascending original order. Other surviving coordinates shall retain their entry meanings within each alternative.
With exact computational arithmetic, including exact halving where needed, the result shall be the least closed octagonal enclosure of the union of those alternatives: each signed unary or binary bound shall be its supremum over that union. The union may be nonconvex. Rounded profiles shall produce a sound enclosure with the numerical guarantees of 🔗 1. Octagonal values, numerical profiles and valid use; they need not produce the least octagonal enclosure. Empty input shall remain empty in the reduced ambient dimension. Empty vars shall preserve the value after checking the destination.
The destination and every folded coordinate shall belong to the entry space, and the destination shall not be in vars. An invalid coordinate or a selection containing the destination shall throw std::invalid_argument before changing the entry set or dimension. This validation shall also apply to empty input. The Variables_Set selection shall remain unchanged.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
RATIONALE: Folding summarizes alternative source values at one retained coordinate and then projects away the folded axes; a closed convex enclosure can fill gaps between alternatives.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Octagonal_Shape<T>:
void fold_space_dimensions(const Variables_Set& vars, Variable dest);
VERIFICATION_CRITERIA: Independently project each possible destination-substitution alternative and take the maximum rational support for every signed octagonal normal. Include destination positions before, between and after folded axes, multiple folds, coupled coordinates, disjoint interval alternatives, empty/universe, zero selections, representation histories, rounded profiles and invalid selections. Check the selection is unchanged.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Whole work, journal background on signed octagonal bounds and closure. GopanDMDRS04 | Sections 4.2-4.5, background on summarized-dimension expansion and folding.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapecoordinatesspec1.cc; tests/octagonalshapecoordinatespublic1.cc; tests/octagonalshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/octagonalshapecoordinateoracle.hh; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/Octagonal_Shape/foldspacedims1.cc; tests/Octagonal_Shape/expandspacedim1.cc.
-
8. Dimension-preserving forgetting of octagonal coordinates UID: PPL-SPEC-001205 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For entry set X ⊆ ℝn and selected indices S, unconstrain(vars) shall retain ambient dimension n and have concrete result
{y ∈ ℝn ∣ ∃x ∈ X ∀i ∉ S : yi = xi}.unconstrain(var) shall have the same meaning for the singleton selection containing var. Retained coordinates shall keep their original indices; selected coordinates shall be free. Relationships implied between retained coordinates shall be preserved with the declared projection precision.
With exact computational arithmetic, including exact halving where needed, the result shall equal this cylindrification. Rounded profiles shall contain it and may be less precise through closure and bound rounding. Empty input shall remain empty; forgetting every coordinate of a nonempty input shall produce the universe in the same ambient dimension. Forgetting no coordinates shall preserve the value, including in zero dimensions. Integer storage shall still describe real points, including half-integral points.
Every selected coordinate shall belong to the entry space. An out-of-space variable or selection shall throw std::invalid_argument before changing the represented set or ambient dimension, including for empty input. The Variables_Set argument shall remain unchanged. Coordinate removal, which also changes dimension, is specified by 🔗 3. Existential removal of selected octagonal coordinates.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
RATIONALE: Forgetting eliminates selected values existentially and then restores free positions, preserving the identities of all retained coordinates.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Octagonal_Shape<T>:
void unconstrain(Variable var); void unconstrain(const Variables_Set& vars);
VERIFICATION_CRITERIA: Independently eliminate selected columns and restore unconstrained columns at their original indices. Check both overloads, all/none/single/nonadjacent selections, retained signed relations mediated by forgotten axes, half-integral points, empty/lazy-empty, universe, zero dimensions, cache histories, unchanged selections and invalid dimensions. Require equality only under the exact-arithmetic guarantee and containment otherwise.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Whole work, journal background on signed octagonal bounds and closure.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapecoordinatesspec1.cc; tests/octagonalshapecoordinatespublic1.cc; tests/octagonalshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/octagonalshapecoordinateoracle.hh; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/Octagonal_Shape/unconstrain1.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001559 C generated dimension arrays and maps (Specified by)
- PPL-SPEC-001102 Unrestricted bounded-difference coordinate extension (Specified by)
- PPL-SPEC-001103 Zero-fixed bounded-difference coordinate extension (Specified by)
- PPL-SPEC-000962 Unrestricted and zero-fixed box coordinate extension (Specified by)
- PPL-SPEC-001295 Free-coordinate extension (Specified by)
- PPL-SPEC-001296 Zero-coordinate extension (Specified by)
- PPL-SPEC-001198 Unrestricted octagonal coordinate extension (Specified by)
- PPL-SPEC-001199 Zero-fixed octagonal coordinate extension (Specified by)
- PPL-SPEC-001203 Octagonal coordinate expansion by independent fibers (Specified by)
PPL shall provide the supported pointset-domain extensions that add unconstrained coordinates and that add coordinates fixed to zero. Unconstrained extension shall mean adjoining unrestricted coordinates; zero-coordinate extension shall mean adjoining coordinates fixed to zero. Both meanings shall retain the identities of the original coordinates and apply also to zero-dimensional input sets. For valid inputs satisfying the operation's stated computational-arithmetic preconditions, including those governing all intermediate calculations, a successfully completed extension shall denote its specified extension, preserving the original coordinates and their relationships while applying the selected condition to every new coordinate.
An unconstrained extension and an extension at zero have different concrete meanings even though both increase the space dimension.
Verification covers dimension-extension operations, placement of new coordinates and zero-dimensional behavior. Related obligations: 🔗 2. Concatenation, coordinate expansion and folding, 🔗 1. Coordinate identity and ambient dimension, 🔗 2. Cartesian meaning of boxes, 🔗 1. Coordinate removal and existential projection.
Construct independent product-with-space and product-with-zero-set oracles for each supported extension. Include empty and universe inputs, zero new coordinates, zero-dimensional inputs and original coordinate equalities. Verify the positions assigned to new coordinates.
doc/definitions.dox: Adding New Dimensions to the Vector Space. src/Polyhedron_defs.hh: unconstrained and zero-coordinate extension. src/Box_defs.hh and src/Grid_defs.hh: dimension extension contracts.
-
6. C generated dimension arrays and maps UID: PPL-SPEC-001559 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000418 Distinguished coordinate extensions (Specifies)
- PPL-LLR-000419 Coordinate remapping semantics (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
STATEMENT: Dimension growth, projection/removal, expansion/folding and coordinate maps shall preserve native coordinate meanings. Counted dimension lists shall form sets where the native interface accepts sets. Map arrays shall associate source index i with entry i, using the published non-dimension sentinel for undefined entries. Entries outside the supplied array shall be undefined. Map emptiness and maximum codomain shall have finite partial-map meanings; valid maps shall satisfy the native dimension-map admission rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: Generated forwarding must retain the native mathematical and ownership contract.
INTERFACE: Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.
int ppl_Polyhedron_add_space_dimensions_and_embed(ppl_Polyhedron_t ph, ppl_dimension_type d); int ppl_Polyhedron_add_space_dimensions_and_project(ppl_Polyhedron_t ph, ppl_dimension_type d); int ppl_Polyhedron_remove_space_dimensions(ppl_Polyhedron_t ph, ppl_dimension_type ds[], size_t n); int ppl_Polyhedron_remove_higher_space_dimensions(ppl_Polyhedron_t ph, ppl_dimension_type d); int ppl_Polyhedron_expand_space_dimension(ppl_Polyhedron_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Polyhedron_fold_space_dimensions(ppl_Polyhedron_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Polyhedron_map_space_dimensions(ppl_Polyhedron_t ph, ppl_dimension_type maps[], size_t n); int ppl_Grid_add_space_dimensions_and_embed(ppl_Grid_t ph, ppl_dimension_type d); int ppl_Grid_add_space_dimensions_and_project(ppl_Grid_t ph, ppl_dimension_type d); int ppl_Grid_remove_space_dimensions(ppl_Grid_t ph, ppl_dimension_type ds[], size_t n); int ppl_Grid_remove_higher_space_dimensions(ppl_Grid_t ph, ppl_dimension_type d); int ppl_Grid_expand_space_dimension(ppl_Grid_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Grid_fold_space_dimensions(ppl_Grid_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Grid_map_space_dimensions(ppl_Grid_t ph, ppl_dimension_type maps[], size_t n); int ppl_Rational_Box_add_space_dimensions_and_embed(ppl_Rational_Box_t ph, ppl_dimension_type d); int ppl_Rational_Box_add_space_dimensions_and_project(ppl_Rational_Box_t ph, ppl_dimension_type d); int ppl_Rational_Box_remove_space_dimensions(ppl_Rational_Box_t ph, ppl_dimension_type ds[], size_t n); int ppl_Rational_Box_remove_higher_space_dimensions(ppl_Rational_Box_t ph, ppl_dimension_type d); int ppl_Rational_Box_expand_space_dimension(ppl_Rational_Box_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Rational_Box_fold_space_dimensions(ppl_Rational_Box_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Rational_Box_map_space_dimensions(ppl_Rational_Box_t ph, ppl_dimension_type maps[], size_t n); int ppl_BD_Shape_mpz_class_add_space_dimensions_and_embed( ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpz_class_add_space_dimensions_and_project( ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpz_class_remove_space_dimensions(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n); int ppl_BD_Shape_mpz_class_remove_higher_space_dimensions( ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpz_class_expand_space_dimension(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_BD_Shape_mpz_class_fold_space_dimensions(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_BD_Shape_mpz_class_map_space_dimensions(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type maps[], size_t n); int ppl_BD_Shape_mpq_class_add_space_dimensions_and_embed( ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpq_class_add_space_dimensions_and_project( ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpq_class_remove_space_dimensions(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n); int ppl_BD_Shape_mpq_class_remove_higher_space_dimensions( ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpq_class_expand_space_dimension(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_BD_Shape_mpq_class_fold_space_dimensions(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_BD_Shape_mpq_class_map_space_dimensions(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type maps[], size_t n); int ppl_Octagonal_Shape_mpz_class_add_space_dimensions_and_embed( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpz_class_add_space_dimensions_and_project( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpz_class_remove_space_dimensions( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n); int ppl_Octagonal_Shape_mpz_class_remove_higher_space_dimensions( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpz_class_expand_space_dimension( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Octagonal_Shape_mpz_class_fold_space_dimensions( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Octagonal_Shape_mpz_class_map_space_dimensions( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type maps[], size_t n); int ppl_Octagonal_Shape_mpq_class_add_space_dimensions_and_embed( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpq_class_add_space_dimensions_and_project( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpq_class_remove_space_dimensions( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n); int ppl_Octagonal_Shape_mpq_class_remove_higher_space_dimensions( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpq_class_expand_space_dimension( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Octagonal_Shape_mpq_class_fold_space_dimensions( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Octagonal_Shape_mpq_class_map_space_dimensions( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type maps[], size_t n); int ppl_Constraints_Product_C_Polyhedron_Grid_add_space_dimensions_and_embed( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d); int ppl_Constraints_Product_C_Polyhedron_Grid_add_space_dimensions_and_project( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d); int ppl_Constraints_Product_C_Polyhedron_Grid_remove_space_dimensions( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[], size_t n); int ppl_Constraints_Product_C_Polyhedron_Grid_remove_higher_space_dimensions( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d); int ppl_Constraints_Product_C_Polyhedron_Grid_expand_space_dimension( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Constraints_Product_C_Polyhedron_Grid_fold_space_dimensions( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Constraints_Product_C_Polyhedron_Grid_map_space_dimensions( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type maps[], size_t n); int ppl_Pointset_Powerset_C_Polyhedron_add_space_dimensions_and_embed( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_C_Polyhedron_add_space_dimensions_and_project( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_C_Polyhedron_remove_space_dimensions( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n); int ppl_Pointset_Powerset_C_Polyhedron_remove_higher_space_dimensions( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_C_Polyhedron_expand_space_dimension( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Pointset_Powerset_C_Polyhedron_fold_space_dimensions( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Pointset_Powerset_C_Polyhedron_map_space_dimensions( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type maps[], size_t n); int ppl_Pointset_Powerset_NNC_Polyhedron_add_space_dimensions_and_embed( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_NNC_Polyhedron_add_space_dimensions_and_project( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_NNC_Polyhedron_remove_space_dimensions( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[], size_t n); int ppl_Pointset_Powerset_NNC_Polyhedron_remove_higher_space_dimensions( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_NNC_Polyhedron_expand_space_dimension( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Pointset_Powerset_NNC_Polyhedron_fold_space_dimensions( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Pointset_Powerset_NNC_Polyhedron_map_space_dimensions( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type maps[], size_t n); int ppl_Double_Box_add_space_dimensions_and_embed(ppl_Double_Box_t ph, ppl_dimension_type d); int ppl_Double_Box_add_space_dimensions_and_project(ppl_Double_Box_t ph, ppl_dimension_type d); int ppl_Double_Box_remove_space_dimensions(ppl_Double_Box_t ph, ppl_dimension_type ds[], size_t n); int ppl_Double_Box_remove_higher_space_dimensions(ppl_Double_Box_t ph, ppl_dimension_type d); int ppl_Double_Box_expand_space_dimension(ppl_Double_Box_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Double_Box_fold_space_dimensions(ppl_Double_Box_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Double_Box_map_space_dimensions(ppl_Double_Box_t ph, ppl_dimension_type maps[], size_t n); int ppl_BD_Shape_double_add_space_dimensions_and_embed(ppl_BD_Shape_double_t ph, ppl_dimension_type d); int ppl_BD_Shape_double_add_space_dimensions_and_project( ppl_BD_Shape_double_t ph, ppl_dimension_type d); int ppl_BD_Shape_double_remove_space_dimensions(ppl_BD_Shape_double_t ph, ppl_dimension_type ds[], size_t n); int ppl_BD_Shape_double_remove_higher_space_dimensions(ppl_BD_Shape_double_t ph, ppl_dimension_type d); int ppl_BD_Shape_double_expand_space_dimension(ppl_BD_Shape_double_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_BD_Shape_double_fold_space_dimensions(ppl_BD_Shape_double_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_BD_Shape_double_map_space_dimensions(ppl_BD_Shape_double_t ph, ppl_dimension_type maps[], size_t n); int ppl_Octagonal_Shape_double_add_space_dimensions_and_embed( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_double_add_space_dimensions_and_project( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_double_remove_space_dimensions( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n); int ppl_Octagonal_Shape_double_remove_higher_space_dimensions( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_double_expand_space_dimension( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Octagonal_Shape_double_fold_space_dimensions( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Octagonal_Shape_double_map_space_dimensions( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type maps[], size_t n);
VERIFICATION_CRITERIA: Check empty and sparse maps, reserved entries, reordered coordinates, duplicate dimension selections, valid codomain maxima and native growth limits.
SOURCE: interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/polyhedra.c.
-
1. Unrestricted bounded-difference coordinate extension UID: PPL-SPEC-001102 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000418 Distinguished coordinate extensions (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_space_dimensions_and_embed(m) shall change an entry value X ⊆ ℝn into exactly X×ℝm in dimension n + m. Original coordinates shall keep their indices and relationships. The fresh coordinates shall have indices n, …, n + m − 1 and be unrestricted; no fresh-to-original or fresh-to-fresh equality shall be imposed. Empty input shall remain empty in the new ambient dimension. Zero-dimensional universe shall extend to universe. Adding zero coordinates shall preserve the value.
A requested final dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix. The rejection shall include counts whose mathematical sum with the current dimension exceeds the range of dimension_type; arithmetic wraparound shall not turn an excessive extension into a successful smaller one.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
A rejected dimension request shall preserve the represented entry set and ambient dimension.
RATIONALE: Unrestricted extension is an ordered Cartesian product with free axes, distinct from adjoining zero-valued coordinates.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::BD_Shape<T>:
void add_space_dimensions_and_embed(dimension_type m);
VERIFICATION_CRITERIA: Compare independently lifted input halfspaces with all fresh coefficients zero. Include zero/one/multiple fresh coordinates, coupled old coordinates, empty/universe and both zero-dimensional values, cache histories, supported profiles, zero-count identity and oversized-count rejection. Check reduced and unreduced histories, repeated embedding, cached-record reload, independent lifted rows and resource failures during cache extension.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapecoordinatesspec1.cc; tests/bdshapecoordinateoracle.hh; tests/bdshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/bdshapecoordinatespublic1.cc; tests/BD_Shape/addspacedims1.cc; tests/BD_Shape/dimensionlimits1.cc.
-
2. Zero-fixed bounded-difference coordinate extension UID: PPL-SPEC-001103 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000418 Distinguished coordinate extensions (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_space_dimensions_and_project(m) shall change an entry value X ⊆ ℝn into exactly X×{0}m in dimension n + m. Original coordinates shall keep their indices and relationships. Every fresh coordinate, with index n, …, n + m − 1, shall equal zero. Empty input shall remain empty in the new dimension; zero-dimensional universe shall extend to the origin. Adding zero coordinates shall preserve the value.
A requested final dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix. The rejection shall include a mathematical sum outside dimension_type's range, without accepting its wrapped value.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
A rejected dimension request shall preserve the represented entry set and ambient dimension.
RATIONALE: Zero-fixed extension preserves the old set while adding a distinguished origin in the new coordinates.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::BD_Shape<T>:
void add_space_dimensions_and_project(dimension_type m);
VERIFICATION_CRITERIA: Adjoin independent zero equations to lifted halfspaces; verify all unary and difference supports, old/fresh coupling, multiple zeros, empty and zero-dimensional cases, zero-count identity, cache histories and oversized-count rejection.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapecoordinatesspec1.cc; tests/bdshapecoordinateoracle.hh; tests/bdshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/bdshapecoordinatespublic1.cc; tests/BD_Shape/addspacedims1.cc; tests/BD_Shape/dimensionlimits1.cc.
-
2. Unrestricted and zero-fixed box coordinate extension UID: PPL-SPEC-000962 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000418 Distinguished coordinate extensions (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Adding m coordinates shall preserve every old coordinate in its original position and append the new coordinates at the highest indices. add_space_dimensions_and_embed(m) shall append unrestricted factors. add_space_dimensions_and_project(m) shall append factors containing exactly zero. Each completed result shall exactly denote the corresponding Cartesian extension. Empty sources shall remain empty, including empty zero-dimensional sources; zero-dimensional universe shall extend to the corresponding unrestricted or zero-fixed product. Adding zero coordinates shall preserve the value.
If the resulting ambient dimension would exceed max_space_dimension(), the operation shall throw std::length_error before attempting coordinate allocation of that size. Successful dimensions shall remain subject to resource availability.
The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.
RATIONALE: Unrestricted extension and extension fixed to zero represent different sets.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Box<ITV>:
void add_space_dimensions_and_embed(dimension_type m); void add_space_dimensions_and_project(dimension_type m);
VERIFICATION_CRITERIA: Compare literal unrestricted and zero-factor suffixes in dimensions zero through three, nonempty/empty sources and lazy empty factors. Check no-op calls, coordinate order and dimension overflow rejection without large allocation.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxcoordinatesspec1.cc; tests/boxpublic1.cc.
-
1. Free-coordinate extension UID: PPL-SPEC-001295 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000418 Distinguished coordinate extensions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_space_dimensions_and_embed(m) shall assign G×Rm, placing the new free coordinates after the old ones. Zero additions shall preserve the value and dimension; empty remains empty in the enlarged space. Exceeding max_space_dimension() shall throw std::length_error before mutation, using an overflow-safe dimension check.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Free extension preserves every old-coordinate relation without constraining appended coordinates.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void add_space_dimensions_and_embed(dimension_type m);
VERIFICATION_CRITERIA: Check zero/positive additions on empty, zero-dimensional, point, periodic and continuous grids, both descriptions and dimension-overflow boundaries.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_chdims.cc; src/Grid_templates.hh; tests/Grid/addspacedims1.cc; tests/gridoperationsspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.
-
2. Zero-coordinate extension UID: PPL-SPEC-001296 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000418 Distinguished coordinate extensions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_space_dimensions_and_project(m) shall assign G×{0}m, appending the new zero coordinates. A nonempty zero-dimensional grid shall become the origin, and empty shall remain empty. Zero additions are identity. Exceeding max_space_dimension() shall throw std::length_error before mutation, using an overflow-safe dimension check.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: The historical project-named interface adds zero coordinates rather than free ones.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void add_space_dimensions_and_project(dimension_type m);
VERIFICATION_CRITERIA: Check explicit zero-coordinate equations and dimension growth from zero dimensions, empty/periodic/continuous inputs, zero additions and overflow rejection.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_chdims.cc; src/Grid_templates.hh; tests/Grid/addspacedims1.cc; tests/gridoperationsspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.
-
Incoming link from: 2. Zero-fixed octagonal coordinate extension1
1. Unrestricted octagonal coordinate extension UID: PPL-SPEC-001198 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000418 Distinguished coordinate extensions (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For entry set X ⊆ ℝn, add_space_dimensions_and_embed(m) shall produce exactly X×ℝm in dimension n + m. Original coordinates shall retain their indices and relationships. New coordinates, in positions n, …, n + m − 1, shall be unrestricted. Empty input shall remain empty in the larger space. The zero-dimensional universe shall extend to the universe. Adding zero coordinates shall preserve the value.
A final dimension exceeding max_space_dimension() shall throw std::length_error before attempting the corresponding matrix allocation. The check shall reject a count whose mathematical sum with the current dimension exceeds the range of dimension_type; arithmetic wraparound shall not turn an excessive request into a smaller successful extension. Rejected dimension requests shall preserve the entry set and dimension.
The ordered product with an independently represented second set is specified by 🔗 7. Ordered Cartesian concatenation of octagonal values.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
RATIONALE: Unrestricted extension adjoins free axes while preserving every original relationship.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Octagonal_Shape<T>:
void add_space_dimensions_and_embed(dimension_type m);
VERIFICATION_CRITERIA: Compare with an independent halfspace lift whose new coefficients are zero. Include empty, universe and zero-dimensional values, coupled original axes, zero/one/multiple new axes, cached and uncached descriptions, unchanged indices and overflow-sized requests.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Whole work, journal background on signed octagonal bounds and closure.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapecoordinatesspec1.cc; tests/octagonalshapecoordinatespublic1.cc; tests/octagonalshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/octagonalshapecoordinateoracle.hh; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/Octagonal_Shape/addspacedims1.cc; tests/Octagonal_Shape/dimensionlimits1.cc.
-
2. Zero-fixed octagonal coordinate extension UID: PPL-SPEC-001199 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000418 Distinguished coordinate extensions (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For entry set X ⊆ ℝn, add_space_dimensions_and_project(m) shall produce exactly X×{0}m in dimension n + m. Original coordinates shall retain their indices and relationships. Every new coordinate, in positions n, …, n + m − 1, shall equal zero. Empty input shall remain empty in the larger space. The zero-dimensional universe shall extend to the origin. Adding zero coordinates shall preserve the value.
A final dimension exceeding max_space_dimension() shall throw std::length_error before attempting the corresponding matrix allocation, including a mathematical sum outside the range of dimension_type. Rejected dimension requests shall preserve the entry set and dimension. Unrestricted extension is specified separately by 🔗 1. Unrestricted octagonal coordinate extension.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
RATIONALE: Extension at zero fixes all new coordinate values and therefore differs from adjoining free axes.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Octagonal_Shape<T>:
void add_space_dimensions_and_project(dimension_type m);
VERIFICATION_CRITERIA: Add independent positive and negative zero halfspaces for every new axis and compare complete real sets. Include correlated original axes, empty/universe, zero-dimensional inputs, zero/one/multiple new axes, representation histories and excessive counts without allocating the requested matrix.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Whole work, journal background on signed octagonal bounds and closure.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapecoordinatesspec1.cc; tests/octagonalshapecoordinatespublic1.cc; tests/octagonalshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/octagonalshapecoordinateoracle.hh; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/Octagonal_Shape/addspacedims1.cc; tests/Octagonal_Shape/dimensionlimits1.cc.
-
6. Octagonal coordinate expansion by independent fibers UID: PPL-SPEC-001203 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000418 Distinguished coordinate extensions (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For an existing entry coordinate v < n, expand_space_dimension(var,m) shall append coordinates in positions n, …, n + m − 1, retaining the original coordinate positions. Let X ⊆ ℝn be the entry set and let u[v ← a] denote replacing coordinate v of the old-coordinate prefix of u by a. The declared octagonal result shall be the independent-fiber relation
{u ∈ ℝn + m ∣ (u0, …, un − 1) ∈ X ∧n + m − 1⋀j = nu[v ← uj] ∈ X}.Each replica shall reproduce the selected coordinate's restrictions against retained original coordinates. Equality with the original coordinate or between replicas shall hold only when implied by those restrictions. The result shall contain the generic common-replica expansion relation in [LINK: PPL-LLR-000444]. The displayed relation is itself octagonal. Exact copying of admitted entry bounds shall preserve it; delegated computational rounding shall retain the numerical guarantees of 🔗 1. Octagonal values, numerical profiles and valid use.
Empty input shall remain empty. Zero replicas shall preserve the value after validating var. An out-of-space variable shall throw std::invalid_argument, including for empty input or zero replicas. A final dimension above max_space_dimension() shall throw std::length_error, including a count whose mathematical sum with the current dimension would exceed dimension_type. These rejected requests shall preserve the entry set and dimension.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
RATIONALE: Independent fibers retain relationships with other coordinates while allowing distinct admissible values for the original coordinate and each replica.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Octagonal_Shape<T>:
void expand_space_dimension(Variable var, dimension_type m);
VERIFICATION_CRITERIA: Independently substitute each new coordinate for the selected axis in source halfspaces, conjoin with the lifted entry set and compare all real constraints. Check multiple replicas taking different values, unary limits, signed correlations with retained axes, forced equalities, empty/universe, cache histories, zero replicas and invalid/oversized requests.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Whole work, journal background on signed octagonal bounds and closure. GopanDMDRS04 | Sections 4.2-4.5, background on summarized-dimension expansion and folding.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapecoordinatesspec1.cc; tests/octagonalshapecoordinatespublic1.cc; tests/octagonalshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/octagonalshapecoordinateoracle.hh; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/Octagonal_Shape/expandspacedim1.cc; tests/Octagonal_Shape/dimensionlimits1.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001559 C generated dimension arrays and maps (Specified by)
- PPL-SPEC-001106 Injective partial remapping of bounded-difference coordinates (Specified by)
- PPL-SPEC-000966 Injective partial box coordinate remapping (Specified by)
- PPL-SPEC-001300 Injective coordinate remapping (Specified by)
- PPL-SPEC-001202 Injective partial remapping of octagonal coordinates (Specified by)
PPL shall provide supported coordinate-remapping operations for pointset domains. The concrete meaning of a valid mapping shall follow the specified source-to-target correspondence for surviving values and existentially eliminate coordinates outside the mapping. For valid inputs satisfying the operation's stated computational-arithmetic preconditions, including those governing all intermediate calculations, a successfully completed remapping result shall contain the exact remapped set and satisfy the operation's stated exactness or precision guarantee.
Coordinate names and their order must remain consistent across descriptors, domains and solver inputs; storage reindexing alone is insufficient to define domain remapping.
Verification covers pointset coordinate-remapping operations, valid-map preconditions and output dimension. Related obligations: 🔗 2. Concatenation, coordinate expansion and folding, 🔗 1. Coordinate identity and ambient dimension, 🔗 1. Injective partial coordinate maps, 🔗 1. Coordinate removal and existential projection.
Compare remapping with independently calculated projection and permutation results. Include sparse maps, reordered images, an empty map, unchanged mappings and removal of constrained coordinates. Apply only mappings satisfying the documented injectivity, range and output-coordinate conditions.
src/Polyhedron_defs.hh: space-dimension mapping. src/Grid_defs.hh and src/Box_defs.hh: mapping contracts. src/Partial_Function_defs.hh: valid injective partial maps.
-
6. C generated dimension arrays and maps UID: PPL-SPEC-001559 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000418 Distinguished coordinate extensions (Specifies)
- PPL-LLR-000419 Coordinate remapping semantics (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
STATEMENT: Dimension growth, projection/removal, expansion/folding and coordinate maps shall preserve native coordinate meanings. Counted dimension lists shall form sets where the native interface accepts sets. Map arrays shall associate source index i with entry i, using the published non-dimension sentinel for undefined entries. Entries outside the supplied array shall be undefined. Map emptiness and maximum codomain shall have finite partial-map meanings; valid maps shall satisfy the native dimension-map admission rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: Generated forwarding must retain the native mathematical and ownership contract.
INTERFACE: Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.
int ppl_Polyhedron_add_space_dimensions_and_embed(ppl_Polyhedron_t ph, ppl_dimension_type d); int ppl_Polyhedron_add_space_dimensions_and_project(ppl_Polyhedron_t ph, ppl_dimension_type d); int ppl_Polyhedron_remove_space_dimensions(ppl_Polyhedron_t ph, ppl_dimension_type ds[], size_t n); int ppl_Polyhedron_remove_higher_space_dimensions(ppl_Polyhedron_t ph, ppl_dimension_type d); int ppl_Polyhedron_expand_space_dimension(ppl_Polyhedron_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Polyhedron_fold_space_dimensions(ppl_Polyhedron_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Polyhedron_map_space_dimensions(ppl_Polyhedron_t ph, ppl_dimension_type maps[], size_t n); int ppl_Grid_add_space_dimensions_and_embed(ppl_Grid_t ph, ppl_dimension_type d); int ppl_Grid_add_space_dimensions_and_project(ppl_Grid_t ph, ppl_dimension_type d); int ppl_Grid_remove_space_dimensions(ppl_Grid_t ph, ppl_dimension_type ds[], size_t n); int ppl_Grid_remove_higher_space_dimensions(ppl_Grid_t ph, ppl_dimension_type d); int ppl_Grid_expand_space_dimension(ppl_Grid_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Grid_fold_space_dimensions(ppl_Grid_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Grid_map_space_dimensions(ppl_Grid_t ph, ppl_dimension_type maps[], size_t n); int ppl_Rational_Box_add_space_dimensions_and_embed(ppl_Rational_Box_t ph, ppl_dimension_type d); int ppl_Rational_Box_add_space_dimensions_and_project(ppl_Rational_Box_t ph, ppl_dimension_type d); int ppl_Rational_Box_remove_space_dimensions(ppl_Rational_Box_t ph, ppl_dimension_type ds[], size_t n); int ppl_Rational_Box_remove_higher_space_dimensions(ppl_Rational_Box_t ph, ppl_dimension_type d); int ppl_Rational_Box_expand_space_dimension(ppl_Rational_Box_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Rational_Box_fold_space_dimensions(ppl_Rational_Box_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Rational_Box_map_space_dimensions(ppl_Rational_Box_t ph, ppl_dimension_type maps[], size_t n); int ppl_BD_Shape_mpz_class_add_space_dimensions_and_embed( ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpz_class_add_space_dimensions_and_project( ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpz_class_remove_space_dimensions(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n); int ppl_BD_Shape_mpz_class_remove_higher_space_dimensions( ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpz_class_expand_space_dimension(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_BD_Shape_mpz_class_fold_space_dimensions(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_BD_Shape_mpz_class_map_space_dimensions(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type maps[], size_t n); int ppl_BD_Shape_mpq_class_add_space_dimensions_and_embed( ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpq_class_add_space_dimensions_and_project( ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpq_class_remove_space_dimensions(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n); int ppl_BD_Shape_mpq_class_remove_higher_space_dimensions( ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_BD_Shape_mpq_class_expand_space_dimension(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_BD_Shape_mpq_class_fold_space_dimensions(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_BD_Shape_mpq_class_map_space_dimensions(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type maps[], size_t n); int ppl_Octagonal_Shape_mpz_class_add_space_dimensions_and_embed( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpz_class_add_space_dimensions_and_project( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpz_class_remove_space_dimensions( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n); int ppl_Octagonal_Shape_mpz_class_remove_higher_space_dimensions( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpz_class_expand_space_dimension( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Octagonal_Shape_mpz_class_fold_space_dimensions( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Octagonal_Shape_mpz_class_map_space_dimensions( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type maps[], size_t n); int ppl_Octagonal_Shape_mpq_class_add_space_dimensions_and_embed( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpq_class_add_space_dimensions_and_project( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpq_class_remove_space_dimensions( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n); int ppl_Octagonal_Shape_mpq_class_remove_higher_space_dimensions( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_mpq_class_expand_space_dimension( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Octagonal_Shape_mpq_class_fold_space_dimensions( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Octagonal_Shape_mpq_class_map_space_dimensions( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type maps[], size_t n); int ppl_Constraints_Product_C_Polyhedron_Grid_add_space_dimensions_and_embed( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d); int ppl_Constraints_Product_C_Polyhedron_Grid_add_space_dimensions_and_project( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d); int ppl_Constraints_Product_C_Polyhedron_Grid_remove_space_dimensions( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[], size_t n); int ppl_Constraints_Product_C_Polyhedron_Grid_remove_higher_space_dimensions( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d); int ppl_Constraints_Product_C_Polyhedron_Grid_expand_space_dimension( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Constraints_Product_C_Polyhedron_Grid_fold_space_dimensions( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Constraints_Product_C_Polyhedron_Grid_map_space_dimensions( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type maps[], size_t n); int ppl_Pointset_Powerset_C_Polyhedron_add_space_dimensions_and_embed( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_C_Polyhedron_add_space_dimensions_and_project( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_C_Polyhedron_remove_space_dimensions( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n); int ppl_Pointset_Powerset_C_Polyhedron_remove_higher_space_dimensions( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_C_Polyhedron_expand_space_dimension( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Pointset_Powerset_C_Polyhedron_fold_space_dimensions( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Pointset_Powerset_C_Polyhedron_map_space_dimensions( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type maps[], size_t n); int ppl_Pointset_Powerset_NNC_Polyhedron_add_space_dimensions_and_embed( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_NNC_Polyhedron_add_space_dimensions_and_project( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_NNC_Polyhedron_remove_space_dimensions( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[], size_t n); int ppl_Pointset_Powerset_NNC_Polyhedron_remove_higher_space_dimensions( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d); int ppl_Pointset_Powerset_NNC_Polyhedron_expand_space_dimension( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Pointset_Powerset_NNC_Polyhedron_fold_space_dimensions( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Pointset_Powerset_NNC_Polyhedron_map_space_dimensions( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type maps[], size_t n); int ppl_Double_Box_add_space_dimensions_and_embed(ppl_Double_Box_t ph, ppl_dimension_type d); int ppl_Double_Box_add_space_dimensions_and_project(ppl_Double_Box_t ph, ppl_dimension_type d); int ppl_Double_Box_remove_space_dimensions(ppl_Double_Box_t ph, ppl_dimension_type ds[], size_t n); int ppl_Double_Box_remove_higher_space_dimensions(ppl_Double_Box_t ph, ppl_dimension_type d); int ppl_Double_Box_expand_space_dimension(ppl_Double_Box_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Double_Box_fold_space_dimensions(ppl_Double_Box_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Double_Box_map_space_dimensions(ppl_Double_Box_t ph, ppl_dimension_type maps[], size_t n); int ppl_BD_Shape_double_add_space_dimensions_and_embed(ppl_BD_Shape_double_t ph, ppl_dimension_type d); int ppl_BD_Shape_double_add_space_dimensions_and_project( ppl_BD_Shape_double_t ph, ppl_dimension_type d); int ppl_BD_Shape_double_remove_space_dimensions(ppl_BD_Shape_double_t ph, ppl_dimension_type ds[], size_t n); int ppl_BD_Shape_double_remove_higher_space_dimensions(ppl_BD_Shape_double_t ph, ppl_dimension_type d); int ppl_BD_Shape_double_expand_space_dimension(ppl_BD_Shape_double_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_BD_Shape_double_fold_space_dimensions(ppl_BD_Shape_double_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_BD_Shape_double_map_space_dimensions(ppl_BD_Shape_double_t ph, ppl_dimension_type maps[], size_t n); int ppl_Octagonal_Shape_double_add_space_dimensions_and_embed( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_double_add_space_dimensions_and_project( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_double_remove_space_dimensions( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n); int ppl_Octagonal_Shape_double_remove_higher_space_dimensions( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d); int ppl_Octagonal_Shape_double_expand_space_dimension( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d, ppl_dimension_type m); int ppl_Octagonal_Shape_double_fold_space_dimensions( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n, ppl_dimension_type d); int ppl_Octagonal_Shape_double_map_space_dimensions( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type maps[], size_t n);
VERIFICATION_CRITERIA: Check empty and sparse maps, reserved entries, reordered coordinates, duplicate dimension selections, valid codomain maxima and native growth limits.
SOURCE: interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/polyhedra.c.
-
5. Injective partial remapping of bounded-difference coordinates UID: PPL-SPEC-001106 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000419 Coordinate remapping semantics (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: map_space_dimensions(mapping) shall existentially discard every entry coordinate outside the mapping domain and place each surviving coordinate i at target index f(i). For a positive-dimensional receiver, the admitted mapping shall be a partial injection from the entry indices 0, …, n − 1, with image exactly 0, …, m − 1 for some m ≤ n. The result shall have dimension m; an empty mapping shall project to the zero-dimensional value.
With exact computational arithmetic, the result shall equal the projected and relabeled entry set. Rounded profiles shall retain the projection precision of 🔗 4. Existential bounded-difference coordinate removal. Empty and universe values shall retain those meanings in the mapped dimension. An identity mapping shall preserve the value; a permutation shall retain all renamed relations.
The mapping type shall supply logically const has_empty_codomain(), max_in_codomain() and maps(i,j) queries with the meanings of [LINK: PPL-SPEC-000004], 🔗 5. Exact empty-codomain query and 🔗 6. Largest image and defined empty-map failure. A zero-dimensional input shall remain unchanged and require no mapping query; mapping-value restrictions shall apply only to positive-dimensional receivers. Otherwise has_empty_codomain() shall be queried first; when true, neither remaining query shall be called. When false, the maximum shall be queried before mappings are consumed. Queries shall describe one stable mapping throughout the call. No specific number or order of individual maps queries shall be required. Violating injectivity, source bounds, contiguous image or query consistency shall be outside the admitted interface.
The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. The supplied mapping shall remain live and describe a stable partial function. Exceptions escaping its queries shall propagate. After a query exception, destruction shall release owned storage, and assigning a complete valid value to the destination shall be supported before further geometric use. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.
RATIONALE: Mapping combines existential projection with a permutation; its query protocol also permits lightweight user-supplied mapping objects.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::BD_Shape<T>:
template <typename Partial_Function> void map_space_dimensions(const Partial_Function& mapping);
The admitted Partial_Function type shall provide these const queries:
bool has_empty_codomain() const; dimension_type max_in_codomain() const; bool maps(dimension_type source, dimension_type& target) const;
VERIFICATION_CRITERIA: Independently eliminate and permute coordinates for every small contiguous-image injection, including nonadjacent domains, permutations, empty and identity maps, implied relations, empty/zero-dimensional and cached values. Use a custom query recorder to verify mandatory ordering and forbidden queries after an empty answer, and check source mapping preservation. Check verified identity maps without temporary C++ allocation, unchanged cached representations and owned capacity after copying and grow/shrink histories. Compare first/last/middle swaps, reversal, cycles and projections against literal coordinate oracles; preserve floating-point mode/flags. Inject every mapping-query exception and check propagation, safe replacement and temporary cleanup.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapecoordinatesspec1.cc; tests/bdshapecoordinateoracle.hh; tests/bdshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/bdshapecoordinatespublic1.cc; tests/BD_Shape/mapspacedims1.cc. tests/coordinatemappingfixture.hh;
-
6. Injective partial box coordinate remapping UID: PPL-SPEC-000966 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000419 Coordinate remapping semantics (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For entry ambient dimension n, the supplied mapping shall be a stable injective partial function on indices from zero through n-1, with image exactly the contiguous indices from zero through m-1 for some m no greater than n. The operation shall exactly project away unmapped coordinates and place each retained entry factor at its mapped index. The result shall have dimension m. Empty sources shall remain empty. An empty mapping shall give zero-dimensional universe for a nonempty source and zero-dimensional empty for an empty source. A zero-dimensional source shall retain its value.
The mapping object shall provide the protocol shown below. has_empty_codomain() shall report whether the map is nowhere defined; max_in_codomain() shall return the maximum image when nonempty; maps(i,j) shall report membership in the domain and, on true, assign the image to j. Whenever callbacks are used, the empty-codomain query shall precede the others, and a true result shall preclude maximum/image queries. No callback shall be required for a zero-dimensional source. Values and mapping callbacks shall meet their own resource, lifetime and synchronization prerequisites. A mapping violating the stated mathematical/protocol preconditions shall be outside the contract.
The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.
RATIONALE: Coordinate remapping combines projection with a specified renaming, without conflating or duplicating coordinates.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Box<ITV>:
template <typename Partial_Function> void map_space_dimensions(const Partial_Function& pfunc); // Required const operations on the mapping argument: bool has_empty_codomain() const; dimension_type max_in_codomain() const; bool maps(dimension_type i, dimension_type& j) const;
VERIFICATION_CRITERIA: Compare partial injections, permutations, empty maps and removal-plus-permutation against independent factor-index vectors. Exercise callback ordering and short-circuiting with a protocol-checking adapter; retain empty/lazy-empty and zero-dimensional values. Check verified identity maps without temporary C++ allocation, unchanged cached representations and owned capacity after copying and grow/shrink histories. Compare first/last/middle swaps, reversal, cycles and projections against literal coordinate oracles; preserve floating-point mode/flags. Inject every mapping-query exception and check propagation, safe replacement and temporary cleanup.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxcoordinatesspec1.cc; tests/boxpublic1.cc. tests/coordinatemappingfixture.hh; tests/Box/mapspacedims1.cc;
-
6. Injective coordinate remapping UID: PPL-SPEC-001300 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000419 Coordinate remapping semantics (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: map_space_dimensions(pfunc) shall project away unmapped old coordinates and move each retained coordinate to its supplied destination, exactly. The mapping shall be an injection from a subset of old indices onto a dense destination set {0, …, m − 1}, with m ≤ n. An invalid mapping violates the interface precondition; runtime rejection is not guaranteed. Empty image gives zero-dimensional projection. The mapping object shall provide has_empty_codomain(), max_in_codomain() and maps(i,j) with the meanings in 🔗 1. Public partial coordinate-map type and valid use; queries shall preserve the mapping. For positive old dimension the empty-image query precedes other queries; if empty, no maximum or lookup is required. Otherwise the maximum is queried at most once and lookups at most once per old coordinate. Zero old dimension may return without queries.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Dense injective remapping defines a valid coordinate permutation after projection, without inventing unused output coordinates.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
template <typename Partial_Function> void map_space_dimensions(const Partial_Function& pfunc);
VERIFICATION_CRITERIA: Check independent permutations and partial projections, empty/self mappings, zero dimensions, callback counters and both descriptions. Exercise only mappings meeting the dense-image prerequisite. Check verified identity maps without temporary C++ allocation, unchanged cached representations and owned capacity after copying and grow/shrink histories. Compare first/last/middle swaps, reversal, cycles and projections against literal coordinate oracles; preserve floating-point mode/flags. Inject every mapping-query exception and check propagation, safe replacement and temporary cleanup. Enforce at most one lookup per source coordinate, including the first nontrivial cycle after a fixed suffix.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_chdims.cc; src/Grid_templates.hh; tests/Grid/mapspacedims1.cc; tests/gridoperationsspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc. tests/coordinatemappingfixture.hh;
-
5. Injective partial remapping of octagonal coordinates UID: PPL-SPEC-001202 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000417 Coordinate removal and existential projection (Specifies)
- PPL-LLR-000419 Coordinate remapping semantics (Specifies)
- PPL-LLR-000141 Injective partial coordinate maps (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: map_space_dimensions(mapping) shall existentially discard entry coordinates outside the mapping domain and place each retained coordinate i at target index f(i). For a positive-dimensional receiver, the admitted mapping shall be a partial injection from {0, …, n − 1} with image exactly {0, …, m − 1} for some m ≤ n. The concrete result shall be
{(xf − 1(0), …, xf − 1(m − 1)) ∣ x ∈ X}.The result shall have dimension m. An empty mapping shall project to the zero-dimensional value. A permutation shall retain all renamed relationships; an identity mapping shall preserve the value. The exactness, rounded enclosure and empty-set guarantees of 🔗 3. Existential removal of selected octagonal coordinates shall apply to the projection part.
The mapping type shall supply logically const has_empty_codomain(), max_in_codomain() and maps(i,j) queries with the meanings of [LINK: PPL-SPEC-000004], 🔗 5. Exact empty-codomain query and 🔗 6. Largest image and defined empty-map failure. Queries shall describe one stable mapping throughout the call. A zero-dimensional receiver shall remain unchanged without querying the mapping. Otherwise has_empty_codomain() shall be queried first; when it returns true, neither remaining query shall be called. For a nonempty image the maximum query shall precede individual mapping queries. No fixed count or order of maps queries shall be required. The mapping's value shall remain unchanged apart from effects explicitly permitted by its query contract.
Violating injectivity, source bounds, the contiguous-image condition or query consistency shall be outside admitted use. In particular, output-index holes shall not denote newly introduced free coordinates. Exceptions from mapping queries shall propagate; no rollback of the receiver shall be inferred after such an exception.
The supported coefficient profiles, real-set interpretation, initialization, numerical-intermediate, native floating-point runtime and synchronization conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Supplied coordinate objects shall satisfy their own valid-use contracts. Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return; the receiver shall remain safely destructible, but preservation of its entry represented set shall not be inferred unless stated above.
RATIONALE: Projection and a one-to-one coordinate relabeling preserve coordinate identity; a contiguous output image makes the resulting ambient dimension unambiguous.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Octagonal_Shape<T>:
template <typename Partial_Function> void map_space_dimensions(const Partial_Function& mapping);
VERIFICATION_CRITERIA: Compare independent projection followed by column permutation for every valid partial injection on small dimensions, including sparse domains, reversed and cyclic orders, all/none retention, correlated halfspaces and cache histories. Check the query protocol with a recording mapping, no queries for zero dimensions and no maximum/maps query for an empty image. Inject query exceptions and verify propagation, temporary cleanup and safe replacement/retry. Review invalid-map preconditions without invoking undefined mappings. Check verified identity maps without temporary C++ allocation, unchanged cached representations and owned capacity after copying and grow/shrink histories. Compare first/last/middle swaps, reversal, cycles and projections against literal coordinate oracles; preserve floating-point mode/flags. Inject every mapping-query exception and check propagation, safe replacement and temporary cleanup.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Whole work, journal background on signed octagonal bounds and closure.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapecoordinatesspec1.cc; tests/octagonalshapecoordinatespublic1.cc; tests/octagonalshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/octagonalshapecoordinateoracle.hh; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/Octagonal_Shape/mapspacedims1.cc. tests/coordinatemappingfixture.hh;
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001554 C generated domain values and conversions (Specified by)
- PPL-SPEC-001072 Closed bounded-difference support hull of geometric generators (Specified by)
- PPL-SPEC-001073 Complexity-sensitive bounded-difference conversion from polyhedra (Specified by)
- PPL-SPEC-001074 Best bounded-difference enclosure of Cartesian boxes (Specified by)
- PPL-SPEC-001075 Best bounded-difference enclosure of rational grids (Specified by)
- PPL-SPEC-001076 Best bounded-difference enclosure of octagonal shapes (Specified by)
- PPL-SPEC-001135 Refinement of a floating interval abstract store (Specified by)
- PPL-SPEC-001136 Export of unary constraints through a destination protocol (Specified by)
- PPL-SPEC-001059 Outward conversion between bounded-difference coefficient profiles (Specified by)
- PPL-SPEC-001061 Bounded-difference construction from supported constraints (Specified by)
- PPL-SPEC-001062 Bounded-difference construction from supported congruences (Specified by)
- PPL-SPEC-001044 Box construction from supported constraints (Specified by)
- PPL-SPEC-001045 Box construction from supported congruences (Specified by)
- PPL-SPEC-001046 Cartesian enclosure of a polyhedral generator system (Specified by)
- PPL-SPEC-001047 Box conversion from bounded-difference shapes (Specified by)
- PPL-SPEC-001048 Box conversion from octagonal shapes (Specified by)
- PPL-SPEC-001049 Complexity-sensitive box conversion from polyhedra (Specified by)
- PPL-SPEC-001050 Cartesian enclosure of a rational grid (Specified by)
- PPL-SPEC-001051 Box conversion from partially reduced products (Specified by)
- PPL-SPEC-000954 Upward box conversion between interval profiles (Specified by)
- PPL-SPEC-001312 Grid construction from boxes (Specified by)
- PPL-SPEC-001313 Grid construction from bounded-difference shapes (Specified by)
- PPL-SPEC-001314 Grid construction from octagonal shapes (Specified by)
- PPL-SPEC-001315 Grid construction from polyhedra (Specified by)
- PPL-SPEC-001162 Closed octagonal support hull of geometric generators (Specified by)
- PPL-SPEC-001163 Complexity-sensitive octagonal conversion from polyhedra (Specified by)
- PPL-SPEC-001164 Best octagonal enclosure of Cartesian boxes (Specified by)
- PPL-SPEC-001165 Best octagonal enclosure of rational grids (Specified by)
- PPL-SPEC-001166 Best octagonal enclosure of bounded-difference shapes (Specified by)
- PPL-SPEC-001240 Export of octagonal unary constraints through a destination protocol (Specified by)
- PPL-SPEC-001239 Refinement of a floating interval abstract store (Specified by)
- PPL-SPEC-001149 Outward conversion between octagonal coefficient profiles (Specified by)
- PPL-SPEC-001378 Polyhedral refinement of a floating interval store (Specified by)
- PPL-SPEC-001328 Polyhedral equality-congruence extraction (Specified by)
- PPL-SPEC-001321 Polyhedron construction from representable congruences (Specified by)
- PPL-SPEC-001322 Closed and NNC value conversion (Specified by)
- PPL-SPEC-001323 Polyhedron conversion from boxes (Specified by)
- PPL-SPEC-001324 Polyhedron conversion from difference and octagonal shapes (Specified by)
- PPL-SPEC-001325 Polyhedral affine hull of a rational grid (Specified by)
PPL shall provide the documented supported conversions between numerical abstractions. A supported conversion's source and target shall interpret corresponding coordinates consistently. Exactness, optimality and permitted precision loss shall be defined for each supported source-and-target combination and any selected complexity policy. For valid inputs satisfying the operation's stated computational-arithmetic preconditions, including those governing all intermediate calculations, a successfully completed conversion shall preserve that coordinate meaning and contain every point represented by the source.
Changing abstract domains can intentionally lose information. Representation conversion within one domain is a distinct operation and can retain stronger equality guarantees.
Verification covers cross-domain constructors and conversion operations, supported domain pairs and selected precision policies. Related obligations: 🔗 2. Equivalent polyhedral representations, 🔗 2. Equivalent grid representations, 🔗 1. Meaning of successful exact and approximate results.
Compare conversions with independently described source sets in small dimensions. Check inclusion for every assessed conversion, and equality or best precision only for combinations and complexity choices that guarantee it. Include strict boundaries, periodic grids, empty sets and zero-dimensional inputs.
doc/definitions.dox: Generic Operations on Semantic Geometric Descriptors, cross-domain constructors. src/Box_defs.hh: conversion precision and complexity policies. src/Polyhedron_defs.hh and src/Grid_defs.hh: conversions from other domains.
-
1. C generated domain values and conversions UID: PPL-SPEC-001554 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
STATEMENT: Domain constructors, copying, assignment, exchange, deletion and recycling shall preserve the corresponding native domain values, topology and complexity-policy guarantees. Each successful new result shall be independently owned. Borrowed inputs shall obey their documented lifetime and mutation restrictions. Failure cleanup shall not leak partially acquired owned results.
Complexity-taking constructors shall accept the public polynomial, simplex and any-complexity selectors. An unrecognized selector shall report PPL_ERROR_INVALID_ARGUMENT without constructing a result or changing the output handle.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: Generated forwarding must retain the native mathematical and ownership contract.
INTERFACE: Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.
int ppl_delete_Polyhedron(ppl_const_Polyhedron_t ph); int ppl_new_C_Polyhedron_from_space_dimension(ppl_Polyhedron_t *pph, ppl_dimension_type d, int empty); int ppl_new_NNC_Polyhedron_from_space_dimension(ppl_Polyhedron_t *pph, ppl_dimension_type d, int empty); int ppl_new_C_Polyhedron_from_C_Polyhedron(ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_NNC_Polyhedron_from_C_Polyhedron(ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_C_Polyhedron_from_NNC_Polyhedron(ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_NNC_Polyhedron_from_NNC_Polyhedron(ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_C_Polyhedron_from_Grid(ppl_Polyhedron_t *pph, ppl_const_Grid_t ph); int ppl_new_NNC_Polyhedron_from_Grid(ppl_Polyhedron_t *pph, ppl_const_Grid_t ph); int ppl_new_C_Polyhedron_from_Rational_Box(ppl_Polyhedron_t *pph, ppl_const_Rational_Box_t ph); int ppl_new_NNC_Polyhedron_from_Rational_Box(ppl_Polyhedron_t *pph, ppl_const_Rational_Box_t ph); int ppl_new_C_Polyhedron_from_BD_Shape_mpz_class( ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpz_class_t ph); int ppl_new_NNC_Polyhedron_from_BD_Shape_mpz_class( ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpz_class_t ph); int ppl_new_C_Polyhedron_from_BD_Shape_mpq_class( ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpq_class_t ph); int ppl_new_NNC_Polyhedron_from_BD_Shape_mpq_class( ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpq_class_t ph); int ppl_new_C_Polyhedron_from_Octagonal_Shape_mpz_class( ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_mpz_class( ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_new_C_Polyhedron_from_Octagonal_Shape_mpq_class( ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_mpq_class( ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_new_C_Polyhedron_from_Double_Box(ppl_Polyhedron_t *pph, ppl_const_Double_Box_t ph); int ppl_new_NNC_Polyhedron_from_Double_Box(ppl_Polyhedron_t *pph, ppl_const_Double_Box_t ph); int ppl_new_C_Polyhedron_from_BD_Shape_double(ppl_Polyhedron_t *pph, ppl_const_BD_Shape_double_t ph); int ppl_new_NNC_Polyhedron_from_BD_Shape_double(ppl_Polyhedron_t *pph, ppl_const_BD_Shape_double_t ph); int ppl_new_C_Polyhedron_from_Octagonal_Shape_double( ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_double_t ph); int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_double( ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_double_t ph); int ppl_new_C_Polyhedron_from_C_Polyhedron_with_complexity( ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_NNC_Polyhedron_from_C_Polyhedron_with_complexity( ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_C_Polyhedron_from_NNC_Polyhedron_with_complexity( ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_NNC_Polyhedron_from_NNC_Polyhedron_with_complexity( ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_C_Polyhedron_from_Grid_with_complexity(ppl_Polyhedron_t *pph, ppl_const_Grid_t ph, int complexity); int ppl_new_NNC_Polyhedron_from_Grid_with_complexity(ppl_Polyhedron_t *pph, ppl_const_Grid_t ph, int complexity); int ppl_new_C_Polyhedron_from_Rational_Box_with_complexity( ppl_Polyhedron_t *pph, ppl_const_Rational_Box_t ph, int complexity); int ppl_new_NNC_Polyhedron_from_Rational_Box_with_complexity( ppl_Polyhedron_t *pph, ppl_const_Rational_Box_t ph, int complexity); int ppl_new_C_Polyhedron_from_BD_Shape_mpz_class_with_complexity( ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity); int ppl_new_NNC_Polyhedron_from_BD_Shape_mpz_class_with_complexity( ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity); int ppl_new_C_Polyhedron_from_BD_Shape_mpq_class_with_complexity( ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity); int ppl_new_NNC_Polyhedron_from_BD_Shape_mpq_class_with_complexity( ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity); int ppl_new_C_Polyhedron_from_Octagonal_Shape_mpz_class_with_complexity( ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity); int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_mpz_class_with_complexity( ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity); int ppl_new_C_Polyhedron_from_Octagonal_Shape_mpq_class_with_complexity( ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity); int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_mpq_class_with_complexity( ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity); int ppl_new_C_Polyhedron_from_Double_Box_with_complexity( ppl_Polyhedron_t *pph, ppl_const_Double_Box_t ph, int complexity); int ppl_new_NNC_Polyhedron_from_Double_Box_with_complexity( ppl_Polyhedron_t *pph, ppl_const_Double_Box_t ph, int complexity); int ppl_new_C_Polyhedron_from_BD_Shape_double_with_complexity( ppl_Polyhedron_t *pph, ppl_const_BD_Shape_double_t ph, int complexity); int ppl_new_NNC_Polyhedron_from_BD_Shape_double_with_complexity( ppl_Polyhedron_t *pph, ppl_const_BD_Shape_double_t ph, int complexity); int ppl_new_C_Polyhedron_from_Octagonal_Shape_double_with_complexity( ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_double_t ph, int complexity); int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_double_with_complexity( ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_double_t ph, int complexity); int ppl_new_C_Polyhedron_from_Constraint_System( ppl_Polyhedron_t *pph, ppl_const_Constraint_System_t cs); int ppl_new_NNC_Polyhedron_from_Constraint_System( ppl_Polyhedron_t *pph, ppl_const_Constraint_System_t cs); int ppl_new_C_Polyhedron_from_Congruence_System( ppl_Polyhedron_t *pph, ppl_const_Congruence_System_t cs); int ppl_new_NNC_Polyhedron_from_Congruence_System( ppl_Polyhedron_t *pph, ppl_const_Congruence_System_t cs); int ppl_new_C_Polyhedron_from_Generator_System(ppl_Polyhedron_t *pph, ppl_const_Generator_System_t cs); int ppl_new_NNC_Polyhedron_from_Generator_System( ppl_Polyhedron_t *pph, ppl_const_Generator_System_t cs); int ppl_new_C_Polyhedron_recycle_Constraint_System(ppl_Polyhedron_t *pph, ppl_Constraint_System_t cs); int ppl_new_NNC_Polyhedron_recycle_Constraint_System( ppl_Polyhedron_t *pph, ppl_Constraint_System_t cs); int ppl_new_C_Polyhedron_recycle_Congruence_System(ppl_Polyhedron_t *pph, ppl_Congruence_System_t cs); int ppl_new_NNC_Polyhedron_recycle_Congruence_System( ppl_Polyhedron_t *pph, ppl_Congruence_System_t cs); int ppl_new_C_Polyhedron_recycle_Generator_System(ppl_Polyhedron_t *pph, ppl_Generator_System_t cs); int ppl_new_NNC_Polyhedron_recycle_Generator_System(ppl_Polyhedron_t *pph, ppl_Generator_System_t cs); int ppl_assign_C_Polyhedron_from_C_Polyhedron(ppl_Polyhedron_t dst, ppl_const_Polyhedron_t src); int ppl_assign_NNC_Polyhedron_from_NNC_Polyhedron(ppl_Polyhedron_t dst, ppl_const_Polyhedron_t src); int ppl_delete_Grid(ppl_const_Grid_t ph); int ppl_new_Grid_from_space_dimension(ppl_Grid_t *pph, ppl_dimension_type d, int empty); int ppl_new_Grid_from_C_Polyhedron(ppl_Grid_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Grid_from_NNC_Polyhedron(ppl_Grid_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Grid_from_Grid(ppl_Grid_t *pph, ppl_const_Grid_t ph); int ppl_new_Grid_from_Rational_Box(ppl_Grid_t *pph, ppl_const_Rational_Box_t ph); int ppl_new_Grid_from_BD_Shape_mpz_class(ppl_Grid_t *pph, ppl_const_BD_Shape_mpz_class_t ph); int ppl_new_Grid_from_BD_Shape_mpq_class(ppl_Grid_t *pph, ppl_const_BD_Shape_mpq_class_t ph); int ppl_new_Grid_from_Octagonal_Shape_mpz_class( ppl_Grid_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_new_Grid_from_Octagonal_Shape_mpq_class( ppl_Grid_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_new_Grid_from_Double_Box(ppl_Grid_t *pph, ppl_const_Double_Box_t ph); int ppl_new_Grid_from_BD_Shape_double(ppl_Grid_t *pph, ppl_const_BD_Shape_double_t ph); int ppl_new_Grid_from_Octagonal_Shape_double( ppl_Grid_t *pph, ppl_const_Octagonal_Shape_double_t ph); int ppl_new_Grid_from_C_Polyhedron_with_complexity(ppl_Grid_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Grid_from_NNC_Polyhedron_with_complexity(ppl_Grid_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Grid_from_Grid_with_complexity(ppl_Grid_t *pph, ppl_const_Grid_t ph, int complexity); int ppl_new_Grid_from_Rational_Box_with_complexity(ppl_Grid_t *pph, ppl_const_Rational_Box_t ph, int complexity); int ppl_new_Grid_from_BD_Shape_mpz_class_with_complexity( ppl_Grid_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity); int ppl_new_Grid_from_BD_Shape_mpq_class_with_complexity( ppl_Grid_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity); int ppl_new_Grid_from_Octagonal_Shape_mpz_class_with_complexity( ppl_Grid_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity); int ppl_new_Grid_from_Octagonal_Shape_mpq_class_with_complexity( ppl_Grid_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity); int ppl_new_Grid_from_Double_Box_with_complexity(ppl_Grid_t *pph, ppl_const_Double_Box_t ph, int complexity); int ppl_new_Grid_from_BD_Shape_double_with_complexity( ppl_Grid_t *pph, ppl_const_BD_Shape_double_t ph, int complexity); int ppl_new_Grid_from_Octagonal_Shape_double_with_complexity( ppl_Grid_t *pph, ppl_const_Octagonal_Shape_double_t ph, int complexity); int ppl_new_Grid_from_Constraint_System(ppl_Grid_t *pph, ppl_const_Constraint_System_t cs); int ppl_new_Grid_from_Congruence_System(ppl_Grid_t *pph, ppl_const_Congruence_System_t cs); int ppl_new_Grid_recycle_Constraint_System(ppl_Grid_t *pph, ppl_Constraint_System_t cs); int ppl_new_Grid_recycle_Congruence_System(ppl_Grid_t *pph, ppl_Congruence_System_t cs); int ppl_assign_Grid_from_Grid(ppl_Grid_t dst, ppl_const_Grid_t src); int ppl_delete_Rational_Box(ppl_const_Rational_Box_t ph); int ppl_new_Rational_Box_from_space_dimension(ppl_Rational_Box_t *pph, ppl_dimension_type d, int empty); int ppl_new_Rational_Box_from_C_Polyhedron(ppl_Rational_Box_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Rational_Box_from_NNC_Polyhedron(ppl_Rational_Box_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Rational_Box_from_Grid(ppl_Rational_Box_t *pph, ppl_const_Grid_t ph); int ppl_new_Rational_Box_from_Rational_Box(ppl_Rational_Box_t *pph, ppl_const_Rational_Box_t ph); int ppl_new_Rational_Box_from_BD_Shape_mpz_class( ppl_Rational_Box_t *pph, ppl_const_BD_Shape_mpz_class_t ph); int ppl_new_Rational_Box_from_BD_Shape_mpq_class( ppl_Rational_Box_t *pph, ppl_const_BD_Shape_mpq_class_t ph); int ppl_new_Rational_Box_from_Octagonal_Shape_mpz_class( ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_new_Rational_Box_from_Octagonal_Shape_mpq_class( ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_new_Rational_Box_from_Double_Box(ppl_Rational_Box_t *pph, ppl_const_Double_Box_t ph); int ppl_new_Rational_Box_from_BD_Shape_double(ppl_Rational_Box_t *pph, ppl_const_BD_Shape_double_t ph); int ppl_new_Rational_Box_from_Octagonal_Shape_double( ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_double_t ph); int ppl_new_Rational_Box_from_C_Polyhedron_with_complexity( ppl_Rational_Box_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Rational_Box_from_NNC_Polyhedron_with_complexity( ppl_Rational_Box_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Rational_Box_from_Grid_with_complexity(ppl_Rational_Box_t *pph, ppl_const_Grid_t ph, int complexity); int ppl_new_Rational_Box_from_Rational_Box_with_complexity( ppl_Rational_Box_t *pph, ppl_const_Rational_Box_t ph, int complexity); int ppl_new_Rational_Box_from_BD_Shape_mpz_class_with_complexity( ppl_Rational_Box_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity); int ppl_new_Rational_Box_from_BD_Shape_mpq_class_with_complexity( ppl_Rational_Box_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity); int ppl_new_Rational_Box_from_Octagonal_Shape_mpz_class_with_complexity( ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity); int ppl_new_Rational_Box_from_Octagonal_Shape_mpq_class_with_complexity( ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity); int ppl_new_Rational_Box_from_Double_Box_with_complexity( ppl_Rational_Box_t *pph, ppl_const_Double_Box_t ph, int complexity); int ppl_new_Rational_Box_from_BD_Shape_double_with_complexity( ppl_Rational_Box_t *pph, ppl_const_BD_Shape_double_t ph, int complexity); int ppl_new_Rational_Box_from_Octagonal_Shape_double_with_complexity( ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_double_t ph, int complexity); int ppl_new_Rational_Box_from_Constraint_System( ppl_Rational_Box_t *pph, ppl_const_Constraint_System_t cs); int ppl_new_Rational_Box_from_Congruence_System( ppl_Rational_Box_t *pph, ppl_const_Congruence_System_t cs); int ppl_new_Rational_Box_from_Generator_System(ppl_Rational_Box_t *pph, ppl_const_Generator_System_t cs); int ppl_new_Rational_Box_recycle_Constraint_System(ppl_Rational_Box_t *pph, ppl_Constraint_System_t cs); int ppl_new_Rational_Box_recycle_Congruence_System(ppl_Rational_Box_t *pph, ppl_Congruence_System_t cs); int ppl_new_Rational_Box_recycle_Generator_System(ppl_Rational_Box_t *pph, ppl_Generator_System_t cs); int ppl_assign_Rational_Box_from_Rational_Box(ppl_Rational_Box_t dst, ppl_const_Rational_Box_t src); int ppl_delete_BD_Shape_mpz_class(ppl_const_BD_Shape_mpz_class_t ph); int ppl_new_BD_Shape_mpz_class_from_space_dimension( ppl_BD_Shape_mpz_class_t *pph, ppl_dimension_type d, int empty); int ppl_new_BD_Shape_mpz_class_from_C_Polyhedron(ppl_BD_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_BD_Shape_mpz_class_from_NNC_Polyhedron( ppl_BD_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_BD_Shape_mpz_class_from_Grid(ppl_BD_Shape_mpz_class_t *pph, ppl_const_Grid_t ph); int ppl_new_BD_Shape_mpz_class_from_Rational_Box(ppl_BD_Shape_mpz_class_t *pph, ppl_const_Rational_Box_t ph); int ppl_new_BD_Shape_mpz_class_from_BD_Shape_mpz_class( ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph); int ppl_new_BD_Shape_mpz_class_from_BD_Shape_mpq_class( ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph); int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_mpz_class( ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_mpq_class( ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_new_BD_Shape_mpz_class_from_Double_Box(ppl_BD_Shape_mpz_class_t *pph, ppl_const_Double_Box_t ph); int ppl_new_BD_Shape_mpz_class_from_BD_Shape_double( ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_double_t ph); int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_double( ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_double_t ph); int ppl_new_BD_Shape_mpz_class_from_C_Polyhedron_with_complexity( ppl_BD_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_BD_Shape_mpz_class_from_NNC_Polyhedron_with_complexity( ppl_BD_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_BD_Shape_mpz_class_from_Grid_with_complexity( ppl_BD_Shape_mpz_class_t *pph, ppl_const_Grid_t ph, int complexity); int ppl_new_BD_Shape_mpz_class_from_Rational_Box_with_complexity( ppl_BD_Shape_mpz_class_t *pph, ppl_const_Rational_Box_t ph, int complexity); int ppl_new_BD_Shape_mpz_class_from_BD_Shape_mpz_class_with_complexity( ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity); int ppl_new_BD_Shape_mpz_class_from_BD_Shape_mpq_class_with_complexity( ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity); int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_mpz_class_with_complexity( ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity); int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_mpq_class_with_complexity( ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity); int ppl_new_BD_Shape_mpz_class_from_Double_Box_with_complexity( ppl_BD_Shape_mpz_class_t *pph, ppl_const_Double_Box_t ph, int complexity); int ppl_new_BD_Shape_mpz_class_from_BD_Shape_double_with_complexity( ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_double_t ph, int complexity); int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_double_with_complexity( ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_double_t ph, int complexity); int ppl_new_BD_Shape_mpz_class_from_Constraint_System( ppl_BD_Shape_mpz_class_t *pph, ppl_const_Constraint_System_t cs); int ppl_new_BD_Shape_mpz_class_from_Congruence_System( ppl_BD_Shape_mpz_class_t *pph, ppl_const_Congruence_System_t cs); int ppl_new_BD_Shape_mpz_class_from_Generator_System( ppl_BD_Shape_mpz_class_t *pph, ppl_const_Generator_System_t cs); int ppl_new_BD_Shape_mpz_class_recycle_Constraint_System( ppl_BD_Shape_mpz_class_t *pph, ppl_Constraint_System_t cs); int ppl_new_BD_Shape_mpz_class_recycle_Congruence_System( ppl_BD_Shape_mpz_class_t *pph, ppl_Congruence_System_t cs); int ppl_new_BD_Shape_mpz_class_recycle_Generator_System( ppl_BD_Shape_mpz_class_t *pph, ppl_Generator_System_t cs); int ppl_assign_BD_Shape_mpz_class_from_BD_Shape_mpz_class( ppl_BD_Shape_mpz_class_t dst, ppl_const_BD_Shape_mpz_class_t src); int ppl_delete_BD_Shape_mpq_class(ppl_const_BD_Shape_mpq_class_t ph); int ppl_new_BD_Shape_mpq_class_from_space_dimension( ppl_BD_Shape_mpq_class_t *pph, ppl_dimension_type d, int empty); int ppl_new_BD_Shape_mpq_class_from_C_Polyhedron(ppl_BD_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_BD_Shape_mpq_class_from_NNC_Polyhedron( ppl_BD_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_BD_Shape_mpq_class_from_Grid(ppl_BD_Shape_mpq_class_t *pph, ppl_const_Grid_t ph); int ppl_new_BD_Shape_mpq_class_from_Rational_Box(ppl_BD_Shape_mpq_class_t *pph, ppl_const_Rational_Box_t ph); int ppl_new_BD_Shape_mpq_class_from_BD_Shape_mpz_class( ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph); int ppl_new_BD_Shape_mpq_class_from_BD_Shape_mpq_class( ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph); int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_mpz_class( ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_mpq_class( ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_new_BD_Shape_mpq_class_from_Double_Box(ppl_BD_Shape_mpq_class_t *pph, ppl_const_Double_Box_t ph); int ppl_new_BD_Shape_mpq_class_from_BD_Shape_double( ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_double_t ph); int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_double( ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_double_t ph); int ppl_new_BD_Shape_mpq_class_from_C_Polyhedron_with_complexity( ppl_BD_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_BD_Shape_mpq_class_from_NNC_Polyhedron_with_complexity( ppl_BD_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_BD_Shape_mpq_class_from_Grid_with_complexity( ppl_BD_Shape_mpq_class_t *pph, ppl_const_Grid_t ph, int complexity); int ppl_new_BD_Shape_mpq_class_from_Rational_Box_with_complexity( ppl_BD_Shape_mpq_class_t *pph, ppl_const_Rational_Box_t ph, int complexity); int ppl_new_BD_Shape_mpq_class_from_BD_Shape_mpz_class_with_complexity( ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity); int ppl_new_BD_Shape_mpq_class_from_BD_Shape_mpq_class_with_complexity( ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity); int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_mpz_class_with_complexity( ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity); int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_mpq_class_with_complexity( ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity); int ppl_new_BD_Shape_mpq_class_from_Double_Box_with_complexity( ppl_BD_Shape_mpq_class_t *pph, ppl_const_Double_Box_t ph, int complexity); int ppl_new_BD_Shape_mpq_class_from_BD_Shape_double_with_complexity( ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_double_t ph, int complexity); int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_double_with_complexity( ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_double_t ph, int complexity); int ppl_new_BD_Shape_mpq_class_from_Constraint_System( ppl_BD_Shape_mpq_class_t *pph, ppl_const_Constraint_System_t cs); int ppl_new_BD_Shape_mpq_class_from_Congruence_System( ppl_BD_Shape_mpq_class_t *pph, ppl_const_Congruence_System_t cs); int ppl_new_BD_Shape_mpq_class_from_Generator_System( ppl_BD_Shape_mpq_class_t *pph, ppl_const_Generator_System_t cs); int ppl_new_BD_Shape_mpq_class_recycle_Constraint_System( ppl_BD_Shape_mpq_class_t *pph, ppl_Constraint_System_t cs); int ppl_new_BD_Shape_mpq_class_recycle_Congruence_System( ppl_BD_Shape_mpq_class_t *pph, ppl_Congruence_System_t cs); int ppl_new_BD_Shape_mpq_class_recycle_Generator_System( ppl_BD_Shape_mpq_class_t *pph, ppl_Generator_System_t cs); int ppl_assign_BD_Shape_mpq_class_from_BD_Shape_mpq_class( ppl_BD_Shape_mpq_class_t dst, ppl_const_BD_Shape_mpq_class_t src); int ppl_delete_Octagonal_Shape_mpz_class( ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_new_Octagonal_Shape_mpz_class_from_space_dimension( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_dimension_type d, int empty); int ppl_new_Octagonal_Shape_mpz_class_from_C_Polyhedron( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Octagonal_Shape_mpz_class_from_NNC_Polyhedron( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Octagonal_Shape_mpz_class_from_Grid( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Grid_t ph); int ppl_new_Octagonal_Shape_mpz_class_from_Rational_Box( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Rational_Box_t ph); int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_mpz_class( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph); int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_mpq_class( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph); int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_mpz_class( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_mpq_class( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_new_Octagonal_Shape_mpz_class_from_Double_Box( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Double_Box_t ph); int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_double( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_double_t ph); int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_double( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_double_t ph); int ppl_new_Octagonal_Shape_mpz_class_from_C_Polyhedron_with_complexity( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Octagonal_Shape_mpz_class_from_NNC_Polyhedron_with_complexity( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Octagonal_Shape_mpz_class_from_Grid_with_complexity( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Grid_t ph, int complexity); int ppl_new_Octagonal_Shape_mpz_class_from_Rational_Box_with_complexity( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Rational_Box_t ph, int complexity); int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_mpz_class_with_complexity( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity); int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_mpq_class_with_complexity( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity); int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_mpz_class_with_complexity( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity); int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_mpq_class_with_complexity( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity); int ppl_new_Octagonal_Shape_mpz_class_from_Double_Box_with_complexity( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Double_Box_t ph, int complexity); int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_double_with_complexity( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_double_t ph, int complexity); int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_double_with_complexity( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_double_t ph, int complexity); int ppl_new_Octagonal_Shape_mpz_class_from_Constraint_System( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Constraint_System_t cs); int ppl_new_Octagonal_Shape_mpz_class_from_Congruence_System( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Congruence_System_t cs); int ppl_new_Octagonal_Shape_mpz_class_from_Generator_System( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Generator_System_t cs); int ppl_new_Octagonal_Shape_mpz_class_recycle_Constraint_System( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_Constraint_System_t cs); int ppl_new_Octagonal_Shape_mpz_class_recycle_Congruence_System( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_Congruence_System_t cs); int ppl_new_Octagonal_Shape_mpz_class_recycle_Generator_System( ppl_Octagonal_Shape_mpz_class_t *pph, ppl_Generator_System_t cs); int ppl_assign_Octagonal_Shape_mpz_class_from_Octagonal_Shape_mpz_class( ppl_Octagonal_Shape_mpz_class_t dst, ppl_const_Octagonal_Shape_mpz_class_t src); int ppl_delete_Octagonal_Shape_mpq_class( ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_new_Octagonal_Shape_mpq_class_from_space_dimension( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_dimension_type d, int empty); int ppl_new_Octagonal_Shape_mpq_class_from_C_Polyhedron( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Octagonal_Shape_mpq_class_from_NNC_Polyhedron( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Octagonal_Shape_mpq_class_from_Grid( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Grid_t ph); int ppl_new_Octagonal_Shape_mpq_class_from_Rational_Box( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Rational_Box_t ph); int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_mpz_class( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph); int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_mpq_class( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph); int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_mpz_class( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_mpq_class( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_new_Octagonal_Shape_mpq_class_from_Double_Box( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Double_Box_t ph); int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_double( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_double_t ph); int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_double( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_double_t ph); int ppl_new_Octagonal_Shape_mpq_class_from_C_Polyhedron_with_complexity( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Octagonal_Shape_mpq_class_from_NNC_Polyhedron_with_complexity( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Octagonal_Shape_mpq_class_from_Grid_with_complexity( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Grid_t ph, int complexity); int ppl_new_Octagonal_Shape_mpq_class_from_Rational_Box_with_complexity( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Rational_Box_t ph, int complexity); int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_mpz_class_with_complexity( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity); int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_mpq_class_with_complexity( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity); int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_mpz_class_with_complexity( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity); int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_mpq_class_with_complexity( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity); int ppl_new_Octagonal_Shape_mpq_class_from_Double_Box_with_complexity( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Double_Box_t ph, int complexity); int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_double_with_complexity( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_double_t ph, int complexity); int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_double_with_complexity( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_double_t ph, int complexity); int ppl_new_Octagonal_Shape_mpq_class_from_Constraint_System( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Constraint_System_t cs); int ppl_new_Octagonal_Shape_mpq_class_from_Congruence_System( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Congruence_System_t cs); int ppl_new_Octagonal_Shape_mpq_class_from_Generator_System( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Generator_System_t cs); int ppl_new_Octagonal_Shape_mpq_class_recycle_Constraint_System( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_Constraint_System_t cs); int ppl_new_Octagonal_Shape_mpq_class_recycle_Congruence_System( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_Congruence_System_t cs); int ppl_new_Octagonal_Shape_mpq_class_recycle_Generator_System( ppl_Octagonal_Shape_mpq_class_t *pph, ppl_Generator_System_t cs); int ppl_assign_Octagonal_Shape_mpq_class_from_Octagonal_Shape_mpq_class( ppl_Octagonal_Shape_mpq_class_t dst, ppl_const_Octagonal_Shape_mpq_class_t src); int ppl_delete_Constraints_Product_C_Polyhedron_Grid( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_space_dimension( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_dimension_type d, int empty); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_C_Polyhedron( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_NNC_Polyhedron( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Grid( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Grid_t ph); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Rational_Box( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Rational_Box_t ph); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_mpz_class( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_BD_Shape_mpz_class_t ph); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_mpq_class( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_BD_Shape_mpq_class_t ph); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_mpz_class( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_mpq_class( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Double_Box( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Double_Box_t ph); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_double( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_BD_Shape_double_t ph); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_double( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Octagonal_Shape_double_t ph); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Constraints_Product_C_Polyhedron_Grid( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_C_Polyhedron_with_complexity( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_NNC_Polyhedron_with_complexity( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Grid_with_complexity( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Grid_t ph, int complexity); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Rational_Box_with_complexity( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Rational_Box_t ph, int complexity); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_mpz_class_with_complexity( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_mpq_class_with_complexity( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_mpz_class_with_complexity( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_mpq_class_with_complexity( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Double_Box_with_complexity( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Double_Box_t ph, int complexity); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_double_with_complexity( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_BD_Shape_double_t ph, int complexity); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_double_with_complexity( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Octagonal_Shape_double_t ph, int complexity); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Constraints_Product_C_Polyhedron_Grid_with_complexity( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, int complexity); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Constraint_System( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Constraint_System_t cs); int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Congruence_System( ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Congruence_System_t cs); int ppl_delete_Pointset_Powerset_C_Polyhedron( ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_new_Pointset_Powerset_C_Polyhedron_from_space_dimension( ppl_Pointset_Powerset_C_Polyhedron_t *pph, ppl_dimension_type d, int empty); int ppl_new_Pointset_Powerset_C_Polyhedron_from_Pointset_Powerset_C_Polyhedron( ppl_Pointset_Powerset_C_Polyhedron_t *pph, ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_new_Pointset_Powerset_C_Polyhedron_from_C_Polyhedron( ppl_Pointset_Powerset_C_Polyhedron_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Pointset_Powerset_C_Polyhedron_from_Pointset_Powerset_C_Polyhedron_with_complexity( ppl_Pointset_Powerset_C_Polyhedron_t *pph, ppl_const_Pointset_Powerset_C_Polyhedron_t ph, int complexity); int ppl_new_Pointset_Powerset_C_Polyhedron_from_C_Polyhedron_with_complexity( ppl_Pointset_Powerset_C_Polyhedron_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Pointset_Powerset_C_Polyhedron_from_Constraint_System( ppl_Pointset_Powerset_C_Polyhedron_t *pph, ppl_const_Constraint_System_t cs); int ppl_new_Pointset_Powerset_C_Polyhedron_from_Congruence_System( ppl_Pointset_Powerset_C_Polyhedron_t *pph, ppl_const_Congruence_System_t cs); int ppl_delete_Pointset_Powerset_NNC_Polyhedron( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_space_dimension( ppl_Pointset_Powerset_NNC_Polyhedron_t *pph, ppl_dimension_type d, int empty); int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_Pointset_Powerset_NNC_Polyhedron( ppl_Pointset_Powerset_NNC_Polyhedron_t *pph, ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_NNC_Polyhedron( ppl_Pointset_Powerset_NNC_Polyhedron_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_Pointset_Powerset_NNC_Polyhedron_with_complexity( ppl_Pointset_Powerset_NNC_Polyhedron_t *pph, ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, int complexity); int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_NNC_Polyhedron_with_complexity( ppl_Pointset_Powerset_NNC_Polyhedron_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_Constraint_System( ppl_Pointset_Powerset_NNC_Polyhedron_t *pph, ppl_const_Constraint_System_t cs); int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_Congruence_System( ppl_Pointset_Powerset_NNC_Polyhedron_t *pph, ppl_const_Congruence_System_t cs); int ppl_delete_Double_Box(ppl_const_Double_Box_t ph); int ppl_new_Double_Box_from_space_dimension(ppl_Double_Box_t *pph, ppl_dimension_type d, int empty); int ppl_new_Double_Box_from_C_Polyhedron(ppl_Double_Box_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Double_Box_from_NNC_Polyhedron(ppl_Double_Box_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Double_Box_from_Grid(ppl_Double_Box_t *pph, ppl_const_Grid_t ph); int ppl_new_Double_Box_from_Rational_Box(ppl_Double_Box_t *pph, ppl_const_Rational_Box_t ph); int ppl_new_Double_Box_from_BD_Shape_mpz_class( ppl_Double_Box_t *pph, ppl_const_BD_Shape_mpz_class_t ph); int ppl_new_Double_Box_from_BD_Shape_mpq_class( ppl_Double_Box_t *pph, ppl_const_BD_Shape_mpq_class_t ph); int ppl_new_Double_Box_from_Octagonal_Shape_mpz_class( ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_new_Double_Box_from_Octagonal_Shape_mpq_class( ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_new_Double_Box_from_Double_Box(ppl_Double_Box_t *pph, ppl_const_Double_Box_t ph); int ppl_new_Double_Box_from_BD_Shape_double(ppl_Double_Box_t *pph, ppl_const_BD_Shape_double_t ph); int ppl_new_Double_Box_from_Octagonal_Shape_double( ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_double_t ph); int ppl_new_Double_Box_from_C_Polyhedron_with_complexity( ppl_Double_Box_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Double_Box_from_NNC_Polyhedron_with_complexity( ppl_Double_Box_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Double_Box_from_Grid_with_complexity(ppl_Double_Box_t *pph, ppl_const_Grid_t ph, int complexity); int ppl_new_Double_Box_from_Rational_Box_with_complexity( ppl_Double_Box_t *pph, ppl_const_Rational_Box_t ph, int complexity); int ppl_new_Double_Box_from_BD_Shape_mpz_class_with_complexity( ppl_Double_Box_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity); int ppl_new_Double_Box_from_BD_Shape_mpq_class_with_complexity( ppl_Double_Box_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity); int ppl_new_Double_Box_from_Octagonal_Shape_mpz_class_with_complexity( ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity); int ppl_new_Double_Box_from_Octagonal_Shape_mpq_class_with_complexity( ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity); int ppl_new_Double_Box_from_Double_Box_with_complexity( ppl_Double_Box_t *pph, ppl_const_Double_Box_t ph, int complexity); int ppl_new_Double_Box_from_BD_Shape_double_with_complexity( ppl_Double_Box_t *pph, ppl_const_BD_Shape_double_t ph, int complexity); int ppl_new_Double_Box_from_Octagonal_Shape_double_with_complexity( ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_double_t ph, int complexity); int ppl_new_Double_Box_from_Constraint_System(ppl_Double_Box_t *pph, ppl_const_Constraint_System_t cs); int ppl_new_Double_Box_from_Congruence_System(ppl_Double_Box_t *pph, ppl_const_Congruence_System_t cs); int ppl_new_Double_Box_from_Generator_System(ppl_Double_Box_t *pph, ppl_const_Generator_System_t cs); int ppl_new_Double_Box_recycle_Constraint_System(ppl_Double_Box_t *pph, ppl_Constraint_System_t cs); int ppl_new_Double_Box_recycle_Congruence_System(ppl_Double_Box_t *pph, ppl_Congruence_System_t cs); int ppl_new_Double_Box_recycle_Generator_System(ppl_Double_Box_t *pph, ppl_Generator_System_t cs); int ppl_assign_Double_Box_from_Double_Box(ppl_Double_Box_t dst, ppl_const_Double_Box_t src); int ppl_delete_BD_Shape_double(ppl_const_BD_Shape_double_t ph); int ppl_new_BD_Shape_double_from_space_dimension(ppl_BD_Shape_double_t *pph, ppl_dimension_type d, int empty); int ppl_new_BD_Shape_double_from_C_Polyhedron(ppl_BD_Shape_double_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_BD_Shape_double_from_NNC_Polyhedron(ppl_BD_Shape_double_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_BD_Shape_double_from_Grid(ppl_BD_Shape_double_t *pph, ppl_const_Grid_t ph); int ppl_new_BD_Shape_double_from_Rational_Box(ppl_BD_Shape_double_t *pph, ppl_const_Rational_Box_t ph); int ppl_new_BD_Shape_double_from_BD_Shape_mpz_class( ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_mpz_class_t ph); int ppl_new_BD_Shape_double_from_BD_Shape_mpq_class( ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_mpq_class_t ph); int ppl_new_BD_Shape_double_from_Octagonal_Shape_mpz_class( ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_new_BD_Shape_double_from_Octagonal_Shape_mpq_class( ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_new_BD_Shape_double_from_Double_Box(ppl_BD_Shape_double_t *pph, ppl_const_Double_Box_t ph); int ppl_new_BD_Shape_double_from_BD_Shape_double( ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_double_t ph); int ppl_new_BD_Shape_double_from_Octagonal_Shape_double( ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_double_t ph); int ppl_new_BD_Shape_double_from_C_Polyhedron_with_complexity( ppl_BD_Shape_double_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_BD_Shape_double_from_NNC_Polyhedron_with_complexity( ppl_BD_Shape_double_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_BD_Shape_double_from_Grid_with_complexity( ppl_BD_Shape_double_t *pph, ppl_const_Grid_t ph, int complexity); int ppl_new_BD_Shape_double_from_Rational_Box_with_complexity( ppl_BD_Shape_double_t *pph, ppl_const_Rational_Box_t ph, int complexity); int ppl_new_BD_Shape_double_from_BD_Shape_mpz_class_with_complexity( ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity); int ppl_new_BD_Shape_double_from_BD_Shape_mpq_class_with_complexity( ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity); int ppl_new_BD_Shape_double_from_Octagonal_Shape_mpz_class_with_complexity( ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity); int ppl_new_BD_Shape_double_from_Octagonal_Shape_mpq_class_with_complexity( ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity); int ppl_new_BD_Shape_double_from_Double_Box_with_complexity( ppl_BD_Shape_double_t *pph, ppl_const_Double_Box_t ph, int complexity); int ppl_new_BD_Shape_double_from_BD_Shape_double_with_complexity( ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_double_t ph, int complexity); int ppl_new_BD_Shape_double_from_Octagonal_Shape_double_with_complexity( ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_double_t ph, int complexity); int ppl_new_BD_Shape_double_from_Constraint_System( ppl_BD_Shape_double_t *pph, ppl_const_Constraint_System_t cs); int ppl_new_BD_Shape_double_from_Congruence_System( ppl_BD_Shape_double_t *pph, ppl_const_Congruence_System_t cs); int ppl_new_BD_Shape_double_from_Generator_System( ppl_BD_Shape_double_t *pph, ppl_const_Generator_System_t cs); int ppl_new_BD_Shape_double_recycle_Constraint_System( ppl_BD_Shape_double_t *pph, ppl_Constraint_System_t cs); int ppl_new_BD_Shape_double_recycle_Congruence_System( ppl_BD_Shape_double_t *pph, ppl_Congruence_System_t cs); int ppl_new_BD_Shape_double_recycle_Generator_System(ppl_BD_Shape_double_t *pph, ppl_Generator_System_t cs); int ppl_assign_BD_Shape_double_from_BD_Shape_double( ppl_BD_Shape_double_t dst, ppl_const_BD_Shape_double_t src); int ppl_delete_Octagonal_Shape_double(ppl_const_Octagonal_Shape_double_t ph); int ppl_new_Octagonal_Shape_double_from_space_dimension( ppl_Octagonal_Shape_double_t *pph, ppl_dimension_type d, int empty); int ppl_new_Octagonal_Shape_double_from_C_Polyhedron( ppl_Octagonal_Shape_double_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Octagonal_Shape_double_from_NNC_Polyhedron( ppl_Octagonal_Shape_double_t *pph, ppl_const_Polyhedron_t ph); int ppl_new_Octagonal_Shape_double_from_Grid(ppl_Octagonal_Shape_double_t *pph, ppl_const_Grid_t ph); int ppl_new_Octagonal_Shape_double_from_Rational_Box( ppl_Octagonal_Shape_double_t *pph, ppl_const_Rational_Box_t ph); int ppl_new_Octagonal_Shape_double_from_BD_Shape_mpz_class( ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_mpz_class_t ph); int ppl_new_Octagonal_Shape_double_from_BD_Shape_mpq_class( ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_mpq_class_t ph); int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_mpz_class( ppl_Octagonal_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_mpq_class( ppl_Octagonal_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_new_Octagonal_Shape_double_from_Double_Box( ppl_Octagonal_Shape_double_t *pph, ppl_const_Double_Box_t ph); int ppl_new_Octagonal_Shape_double_from_BD_Shape_double( ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_double_t ph); int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_double( ppl_Octagonal_Shape_double_t *pph, ppl_const_Octagonal_Shape_double_t ph); int ppl_new_Octagonal_Shape_double_from_C_Polyhedron_with_complexity( ppl_Octagonal_Shape_double_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Octagonal_Shape_double_from_NNC_Polyhedron_with_complexity( ppl_Octagonal_Shape_double_t *pph, ppl_const_Polyhedron_t ph, int complexity); int ppl_new_Octagonal_Shape_double_from_Grid_with_complexity( ppl_Octagonal_Shape_double_t *pph, ppl_const_Grid_t ph, int complexity); int ppl_new_Octagonal_Shape_double_from_Rational_Box_with_complexity( ppl_Octagonal_Shape_double_t *pph, ppl_const_Rational_Box_t ph, int complexity); int ppl_new_Octagonal_Shape_double_from_BD_Shape_mpz_class_with_complexity( ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity); int ppl_new_Octagonal_Shape_double_from_BD_Shape_mpq_class_with_complexity( ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity); int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_mpz_class_with_complexity( ppl_Octagonal_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity); int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_mpq_class_with_complexity( ppl_Octagonal_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity); int ppl_new_Octagonal_Shape_double_from_Double_Box_with_complexity( ppl_Octagonal_Shape_double_t *pph, ppl_const_Double_Box_t ph, int complexity); int ppl_new_Octagonal_Shape_double_from_BD_Shape_double_with_complexity( ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_double_t ph, int complexity); int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_double_with_complexity( ppl_Octagonal_Shape_double_t *pph, ppl_const_Octagonal_Shape_double_t ph, int complexity); int ppl_new_Octagonal_Shape_double_from_Constraint_System( ppl_Octagonal_Shape_double_t *pph, ppl_const_Constraint_System_t cs); int ppl_new_Octagonal_Shape_double_from_Congruence_System( ppl_Octagonal_Shape_double_t *pph, ppl_const_Congruence_System_t cs); int ppl_new_Octagonal_Shape_double_from_Generator_System( ppl_Octagonal_Shape_double_t *pph, ppl_const_Generator_System_t cs); int ppl_new_Octagonal_Shape_double_recycle_Constraint_System( ppl_Octagonal_Shape_double_t *pph, ppl_Constraint_System_t cs); int ppl_new_Octagonal_Shape_double_recycle_Congruence_System( ppl_Octagonal_Shape_double_t *pph, ppl_Congruence_System_t cs); int ppl_new_Octagonal_Shape_double_recycle_Generator_System( ppl_Octagonal_Shape_double_t *pph, ppl_Generator_System_t cs); int ppl_assign_Octagonal_Shape_double_from_Octagonal_Shape_double( ppl_Octagonal_Shape_double_t dst, ppl_const_Octagonal_Shape_double_t src); int ppl_new_Grid_from_Grid_Generator_System( ppl_Grid_t *pph, ppl_const_Grid_Generator_System_t cs); int ppl_new_Grid_recycle_Grid_Generator_System(ppl_Grid_t *pph, ppl_Grid_Generator_System_t cs);
VERIFICATION_CRITERIA: Check all selected domain constructors, conversion direction, copy/exchange independence, consuming/recycling inputs and allocation failures.
SOURCE: interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/domains.c; interfaces/C/tests/polyhedra.c.
-
1. Closed bounded-difference support hull of geometric generators UID: PPL-SPEC-001072 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000015 Distinct meanings of geometric generators (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: BD_Shape(gs) shall give the least target-profile bounded-difference enclosure of the convex set generated by gs. The constructor shall close finite excluded boundaries: points and closure points shall both contribute their actual rational coordinates to support extrema. A ray shall make a normal unbounded exactly when its scalar product with that normal is positive; a line shall do so when that scalar product is nonzero. A zero directional product shall not remove a finite bound.
An empty generator system shall construct empty in its declared dimension. A nonempty generator system shall contain an ordinary point; otherwise the constructor shall throw std::invalid_argument. Rational point and closure-point divisors, zero trailing coordinates and the distinction between rays and lines shall retain the meanings in 🔗 1. Generator kinds and numerical prerequisites and [LINK: PPL-SPEC-000182].
For each supported unary or difference normal, a finite source supremum shall yield the least bound representable by the target profile that is no smaller than that supremum. An unbounded source normal shall impose no finite restriction. Consequently an unbounded exact rational target shall give the least closed bounded-difference enclosure. A rounded profile shall give the least enclosure expressible with its admitted bounds.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
RATIONALE: A closed relational enclosure depends on support in every admitted normal, including differences; separate coordinate bounds do not determine that enclosure after numerical rounding.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
explicit BD_Shape(const Generator_System& gs);
VERIFICATION_CRITERIA: Compute rational support directly from raw point and closure-point coordinates and direction signs. Check every unary/difference bound and independently computed affine dimension, empty and zero dimensions, fractional divisors, repeated extrema, missing trailing coordinates and invalid point-free systems. Exercise admitted integer and native target profiles with independent outward-bound models. Check literal support entries for dense and sparse systems at dimensions 0, 1, 2, 63, 64, 65 and 128, including implicit zero tails, dyadic coordinates, origin and fully populated points, closure-first updates and repeated points. Exercise exact, integral and native boundaries, source lifetime independence and unchanged native floating state. Bound additional C++ allocation against independently constructed matrix storage, including value-returning coefficient traits, and sweep observed allocation failures after numeric-pool warmup; require incomplete-result cleanup and unchanged source values. Compare every stored support bound for positive and negative first, middle and last coordinate lines and rays, zero-coordinate rows, equal/opposite pairs and fixed nonzero point coordinates in dense and sparse storage. Exercise exact, integral and native boundaries and require finite bounds for zero directional products. Retain the selected coefficient profile's admitted arithmetic and failure behavior.
BIBLIOGRAPHY: BagnaraHZ05FAC | Section 4.1, Definition 4.2 and Theorem 4.4.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeconversionsspec1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeconversionspublic1.cc; tests/BD_Shape/fromgensys1.cc; tests/BD_Shape/dimensionlimits1.cc. tests/generatorconstructionfixture.hh; tests/generatorconstructionallocationsspec1.cc.
-
2. Complexity-sensitive bounded-difference conversion from polyhedra UID: PPL-SPEC-001073 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: BD_Shape(ph,complexity) shall contain the source polyhedron for ANY_COMPLEXITY, SIMPLEX_COMPLEXITY and POLYNOMIAL_COMPLEXITY. The default shall be ANY_COMPLEXITY; other complexity codes shall be outside the admitted interface.
ANY_COMPLEXITY shall give the least target-profile bounded-difference enclosure, including exact detection of an empty source. Strict source boundaries shall become included whenever they determine finite limiting bounds of the closed result.
SIMPLEX_COMPLEXITY shall give the same exact primitive suprema for a nonempty source, with target bounds converted outward according to the selected profile. It need not detect an empty not necessarily closed system whose closed relaxation is nonempty. A more precise result obtained from an already available generator representation shall also be admitted.
POLYNOMIAL_COMPLEXITY may use conservative bounded-difference extraction and propagation from source constraints. It shall preserve containment, without a general best-enclosure, exact-emptiness or particular fixed-point iteration guarantee. Equivalent source cache and representation histories may produce different allowed conservative results. Every option shall respect its declared algorithmic complexity bound.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
RATIONALE: Optimal support projection and polynomial conservative extraction offer different precision contracts; closing a nonempty strict polyhedron preserves its finite support suprema.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
explicit BD_Shape(const Polyhedron& ph, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Use exact rational elimination of independently supplied closed/NNC halfspaces. Require the best closed difference hull for ANY, best primitive bounds for nonempty SIMPLEX sources, and source containment for POLYNOMIAL. Include strict endpoint limits, closed-relaxation-only feasibility, cache and representation histories, all three complexity codes, target profiles, independent affine dimension and const-source preservation.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeconversionsspec1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeconversionspublic1.cc; tests/BD_Shape/frompolyhedron1.cc; tests/BD_Shape/dimensionlimits1.cc.
-
Incoming link from: 12. Certified finite scalar embeddings1
3. Best bounded-difference enclosure of Cartesian boxes UID: PPL-SPEC-001074 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: BD_Shape(box,complexity) shall give the least target-profile bounded-difference enclosure containing the Cartesian product represented by box. The result shall be closed: a finite open interval endpoint may determine an included limiting bound.
The exact supremum of a difference xi − xj shall combine the source upper endpoint of coordinate i and lower endpoint of coordinate j before target-profile rounding. An unbounded contributing endpoint shall leave that normal unrestricted. Empty factors shall give empty in the original ambient dimension. The complexity argument shall be ignored for the three declared complexity values.
For each supported unary or difference normal, a finite source supremum shall yield the least bound representable by the target profile that is no smaller than that supremum. An unbounded source normal shall impose no finite restriction. Consequently an unbounded exact rational target shall give the least closed bounded-difference enclosure. A rounded profile shall give the least enclosure expressible with its admitted bounds.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
RATIONALE: Cartesian independence determines exact difference support, which is converted according to the target numerical profile.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
template <typename Interval> explicit BD_Shape(const Box<Interval>& box, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Compute support from independently specified coordinate intervals, including open, unbounded, singleton and empty factors. Check pairwise differences before rounding, all three complexity arguments, both zero-dimensional values, source independence and output affine dimension. Use rational source intervals and supported target profiles.
SOURCE: src/Shape_Conversion_Support.hh; src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeconversionsspec1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeconversionspublic1.cc; tests/BD_Shape/frombox1.cc; tests/BD_Shape/dimensionlimits1.cc; tests/BD_Shape/supportconversion1.cc.
-
4. Best bounded-difference enclosure of rational grids UID: PPL-SPEC-001075 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: BD_Shape(grid,complexity) shall give the least target-profile bounded-difference enclosure of the entire rational grid. It shall preserve every fixed unary or difference affine value, including values implied by the full congruence system. Equivalent source descriptions shall give mathematically equivalent results in the same target profile.
A supported normal shall have a finite bound exactly when it annihilates every real line, integer parameter and difference between source base points. In that case its value shall equal its value at any source base point, and both signed bounds shall be converted to the target profile. A nonzero response to an integer parameter shall make the normal unbounded in both directions; a periodic restriction shall not become a finite interval or an integer-only coordinate carrier. Empty grids shall remain empty. The complexity argument shall be ignored for the three declared complexity values.
For each supported unary or difference normal, a finite source supremum shall yield the least bound representable by the target profile that is no smaller than that supremum. An unbounded source normal shall impose no finite restriction. Consequently an unbounded exact rational target shall give the least closed bounded-difference enclosure. A rounded profile shall give the least enclosure expressible with its admitted bounds.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
RATIONALE: Finite support is determined by the whole affine geometry of a grid. Integer and real unbounded displacements constrain finite support in the same way; periodicity alone does not supply a finite bound.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
explicit BD_Shape(const Grid& grid, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Use raw rational base points, integer parameters and real lines to compute constant or unbounded response for each primitive normal. Include fixed differences, singleton fractions, proper periodic directions, empty/zero dimensions, equivalent congruence/generator descriptions and cache histories, independent output affine dimension and target-profile rounding.
BIBLIOGRAPHY: BagnaraHZ08SCP | Section 2.4, equation (1) and parameter representation (PDF page indices 9-10, zero-based). BagnaraDHMZ07 | Section 3, The Generator Representation (PDF page index 7, zero-based).
SOURCE: src/Shape_Conversion_Support.hh; src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeconversionsspec1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeconversionspublic1.cc; tests/BD_Shape/fromgrid1.cc; tests/BD_Shape/dimensionlimits1.cc; tests/BD_Shape/supportconversion1.cc.
-
5. Best bounded-difference enclosure of octagonal shapes UID: PPL-SPEC-001076 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: BD_Shape(os,complexity) shall give the least target-profile bounded-difference enclosure of the set represented by octagon. Unary and difference suprema shall include consequences of signed-sum constraints and their combinations. Nonempty source sets shall not lose an admitted supported relation through a change in source description or normalization history.
The constructor shall preserve empty and zero-dimensional meanings and shall convert finite bounds outward to the target profile. The source and target numerical profiles may differ. The complexity argument shall be ignored for the three declared complexity values.
For each supported unary or difference normal, a finite source supremum shall yield the least bound representable by the target profile that is no smaller than that supremum. An unbounded source normal shall impose no finite restriction. Consequently an unbounded exact rational target shall give the least closed bounded-difference enclosure. A rounded profile shall give the least enclosure expressible with its admitted bounds.
The result shall inherit the source's ambient dimension and own its storage independently of the source, as in 🔗 3. Owned bounded-difference copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented value. Later source mutation or destruction shall not affect the result.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in [LINK: PPL-SPEC-001057].
Source objects shall be live, valid and synchronized throughout the call. The source-domain arithmetic and target numerical profile shall satisfy their range, rounding, resource and initialization prerequisites. The supported profile and runtime conditions in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply, including the required initialized native floating environment. Underlying numerical or allocation failures may propagate. Failure during construction shall release resources owned by the incomplete result; no general source-cache rollback guarantee shall be inferred.
RATIONALE: The bounded-difference hull of an octagon depends on all source signed forms, including restrictions exposed only by their combined consequences.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
template <typename U> explicit BD_Shape(const Octagonal_Shape<U>& os, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Compute all target-normal extrema by independent rational elimination of raw octagonal rows. Include each signed-sum orientation, unary halves, correlated faces, strict containment of a source octagon by its hull, empty/zero dimensions, source and target profile changes, cache histories and independent output affine dimension.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 3.1 and 4, bounded-difference and octagonal forms and closure.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeconversionsspec1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeconversionspublic1.cc; tests/BD_Shape/fromoctagonalshape1.cc; tests/BD_Shape/dimensionlimits1.cc.
-
3. Refinement of a floating interval abstract store UID: PPL-SPEC-001135 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000023 Sound interval arithmetic (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For a supported native floating boundary type T and a valid Box<Interval<T,Interval_Info>> store of the same ambient dimension, refine_fp_interval_abstract_store(store) shall intersect the store with the outward Cartesian enclosure of the receiver supplied by the box conversion of 🔗 4. Box conversion from bounded-difference shapes. It shall retain every point of the entry store lying in the source shape and shall introduce no point outside the entry store. The source represented set and both ambient dimensions shall remain unchanged; logically const source closure may refresh caches.
Empty source or empty store shall yield an empty store. Zero-dimensional empty and universe cases shall preserve their distinct meanings. When the source closure and target endpoint arithmetic satisfy the exactness conditions of 🔗 4. Box conversion from bounded-difference shapes, the result shall equal the store's intersection with the least Cartesian enclosure of the source; otherwise outward approximation may retain additional points. Incompatible dimensions shall throw std::invalid_argument without changing the store's represented set.
The selected native format shall satisfy its configured supported-format predicate. The box and interval representation shall retain 🔗 1. Cartesian box values, coordinate identity and valid use and 🔗 4. Box conversion from bounded-difference shapes. Unbounded valid store coordinates are admitted. The initialized numerical runtime and all intermediate policy prerequisites shall hold; the caller shall provide and retain ownership of an upward FPU environment.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. The borrowed store and its live coordinate objects shall remain valid throughout the call. Recoverable numerical and resource exceptions may leave a partially refined store in the state permitted by its operations; discarded owned temporaries shall be released.
RATIONALE: A relational state can strengthen a separate interval store without discarding a valuation common to both approximations.
INTERFACE: Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member signatures apply to BD_Shape<T> except the indicated free operator and destination capabilities.
template <typename Interval_Info> void refine_fp_interval_abstract_store( Box<Interval<T, Interval_Info>>& store) const;
VERIFICATION_CRITERIA: Derive coordinate extrema by exact rational projection of correlated halfspaces, combine them with independently specified input intervals, and compare containment/contraction; check exact Cartesian intersections where 🔗 4. Box conversion from bounded-difference shapes guarantees them. Cover empty and zero-dimensional states, unbounded coordinates, open store boundaries, inexact native bounds, mismatched dimensions, source preservation and allocation failure.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; doc/definitions.dox; tests/bdshapefiltertextpublic1.cc; tests/bdshapefiltersspec1.cc; tests/bdshapefiltersfailure1.cc; tests/bdshapefiltersoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeaffineoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/Concrete_Expression/bdshape2.cc; src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Interval_defs.hh;
-
4. Export of unary constraints through a destination protocol UID: PPL-SPEC-001136 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000023 Sound interval arithmetic (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For a destination whose dimension is at least the source dimension, export_interval_constraints(dest) shall restrict the corresponding coordinates using the receiver's unary lower and upper consequences. The destination's remaining coordinates and ambient dimension shall be preserved. Source closure may expose implied unary constraints but shall preserve its represented set.
If D is the entry destination set and H(X) the Cartesian hull of the source's entry set, the completed destination shall contain D∩(H(X)×Rm − n) and be contained in D, where n and m are the source and destination dimensions. When source closure arithmetic and destination restrictions are exact, including exact unbounded rational bounds, the result shall equal that intersection. Rounded closure or destination arithmetic may lose precision; no best-unary-bound promise shall follow in those profiles.
An empty source shall call the destination's emptying operation. A zero-dimensional universe shall contribute no restrictions. Unbounded coordinate sides shall contribute no finite restriction. Each restriction callback shall return false exactly when its destination is empty; a false result shall terminate further restriction calls. No fixed callback count or coordinate order is promised. A destination of smaller dimension shall cause std::invalid_argument before any restrictive callback.
The destination protocol shall implement the indicated conjunctions and preserve coordinates not selected by a callback. Its callbacks shall not invalidate borrowed objects or modify the source being traversed. Callback exceptions may leave a partially restricted destination, with the states and ownership guaranteed by that destination's operations.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. The destination and its callback environment shall remain live for the call. Discarded owned temporaries shall be released on reported failure.
RATIONALE: The callback protocol supports destinations larger than a same-type box and exposes unary information independently of the native floating-store adapter.
INTERFACE: Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member signatures apply to BD_Shape<T> except the indicated free operator and destination capabilities.
template <typename U> void export_interval_constraints(U& dest) const; // Required destination capabilities: dimension_type U::space_dimension() const; void U::set_empty(); bool U::restrict_lower(dimension_type dim, const T& lower); bool U::restrict_upper(dimension_type dim, const T& upper);
VERIFICATION_CRITERIA: Use independent rational coordinate projections and a destination implementation with literal interval semantics. Verify larger dimensions and preserved extra coordinates, implied correlated bounds, empty/zero-dimensional sources, ignored infinite sides, too-small rejection, callback short-circuiting and throwing callbacks without imposing rollback or incidental call order. Include exact rational, rounded native/integer and actual no-FPU configurations.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; doc/definitions.dox; tests/bdshapefiltertextpublic1.cc; tests/bdshapefiltersspec1.cc; tests/bdshapefiltersfailure1.cc; tests/bdshapefiltersoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeaffineoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/Concrete_Expression/bdshape2.cc; src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Interval_defs.hh;
-
4. Outward conversion between bounded-difference coefficient profiles UID: PPL-SPEC-001059 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: BD_Shape<T>(y) for another supported coefficient base shall inherit the source's ambient dimension and contain every source point. Each finite source bound shall be converted outward under the destination profile's declared operations; positive-infinite bounds shall remain unrestricted. Exact representable source bounds shall retain their values; inexact conversion may lose precision. Empty and zero-dimensional source meanings shall be preserved.
The source may undergo logically const closure before conversion; this shall preserve its represented set. The three declared complexity arguments shall not change the conversion. The new shape shall own independent storage. Exact representability of every stored input bound shall not by itself promise stronger subsequent rounded-closure guarantees.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
RATIONALE: Coefficient conversion must enclose the source while preserving independent value ownership.
INTERFACE: Public header: <ppl.hh>; excerpts for BD_Shape<T> and related free functions in Parma_Polyhedra_Library:
template <typename U> explicit BD_Shape(const BD_Shape<U>& y, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Normalize rational source rows independently; compare rational/integral/native conversions on signed fractional and exactly representable bounds, infinite sides, emptiness, dimensions and source/cache histories. Verify containment and separate source/target mutation.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapevaluesspec1.cc; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapevaluespublic1.cc; tests/BD_Shape/dimensionlimits1.cc.
-
6. Bounded-difference construction from supported constraints UID: PPL-SPEC-001061 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000013 Meaning of linear constraints (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: BD_Shape(cs) shall start from universe in the system's ambient dimension and conjoin every admitted constraint. Nontrivial admitted rows shall be nonstrict unary constraints or two-coordinate differences with equal-magnitude opposite coefficients; equalities shall impose both directions. Constant tautologies shall have no effect and constant falsehood shall produce empty. An empty system shall produce universe.
A nontrivial strict inequality, a row with more than two nonzero variable coefficients, or a two-variable row with unequal-magnitude or same-sign coefficients shall throw std::invalid_argument, including after an earlier contradiction. Supported unary/difference bounds not exactly representable in the selected profile shall be rounded outward to the best admitted bound; with unbounded exact rational arithmetic, the result shall equal the admitted conjunction. The source rows and represented conjunction shall remain unchanged. can_recycle_constraint_systems() shall return false.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
RATIONALE: Syntactic bounded-difference admission and outward bound normalization determine the meaning of a directly supplied conjunction.
INTERFACE: Public header: <ppl.hh>; excerpts for BD_Shape<T> and related free functions in Parma_Polyhedra_Library:
explicit BD_Shape(const Constraint_System& cs); static bool can_recycle_constraint_systems();
VERIFICATION_CRITERIA: Use independent rational unary/difference conjunctions, negative/fractional scaling, equalities, constants, contradictions, strict/relational rejection and zero dimensions. Check const-source preservation and that can_recycle_constraint_systems returns false.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapevaluesspec1.cc; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapevaluespublic1.cc; tests/BD_Shape/dimensionlimits1.cc.
-
7. Bounded-difference construction from supported congruences UID: PPL-SPEC-001062 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000014 Meaning of linear congruences (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: BD_Shape(cgs) shall inherit the system's ambient dimension and conjoin its admitted equalities and constant truth values. Nontrivial equality rows shall be expressible as unary or equal-magnitude opposite-coefficient differences. A nontrivial proper congruence or unsupported equality shall throw std::invalid_argument, including after an earlier inconsistency. Constant proper congruences shall retain their tautological or inconsistent meaning. An empty system shall produce universe.
Exact rational coefficient arithmetic shall represent admitted equalities exactly. Other profiles shall retain the declared outward bound conversion on both equality directions. The const source shall retain its rows and value. can_recycle_congruence_systems() shall return false.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
RATIONALE: A closed difference domain can retain affine equalities and constant truth values without representing nontrivial periodic residue classes.
INTERFACE: Public header: <ppl.hh>; excerpts for BD_Shape<T> and related free functions in Parma_Polyhedra_Library:
explicit BD_Shape(const Congruence_System& cgs); static bool can_recycle_congruence_systems();
VERIFICATION_CRITERIA: Check independently solved rational unary/difference equalities, negative scaling, constants, contradictions, proper-congruence rejection and unsupported equalities, including after falsehood; compare profiles and preserve sources.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapevaluesspec1.cc; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapevaluespublic1.cc; tests/BD_Shape/dimensionlimits1.cc.
-
1. Box construction from supported constraints UID: PPL-SPEC-001044 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000013 Meaning of linear constraints (Specifies)
- PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Box(cs) shall construct the coordinate enclosure obtained by conjoining the constraints in cs with a universe box of the same ambient dimension, using the admitted row forms and endpoint interpretation in 🔗 1. Addition of optimally supported box constraints. With exact rational endpoints and supported openness, the result shall equal the conjunction of admitted rows. Rounded profiles shall preserve the specified outward endpoint enclosure, without a general optimality claim for inexact arithmetic. An empty system shall produce universe. A constant false row shall produce empty. With exact rational operations, every inconsistent admitted conjunction shall produce empty. Under inexact endpoint conversion, successive row enclosures may lose enough information to leave an inconsistent conjunction undetected.
A non-interval row, or a nontrivial strict inequality when the selected interval policy cannot retain open boundaries, shall throw std::invalid_argument. Rejection shall still occur if an earlier admitted row already made the conjunction empty. Tautological and inconsistent constant rows shall retain their declared meanings.
Construction from an rvalue system shall have the same result and rejection behavior. Its const source shall not be consumed or have its rows removed.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. Their represented values shall remain unchanged; logically const normalization may update their caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
RATIONALE: A coordinate-constraint conjunction directly describes an interval product, but construction must retain row admission and empty-system distinctions.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for Box<ITV> in Parma_Polyhedra_Library:
explicit Box(const Constraint_System& cs);
VERIFICATION_CRITERIA: Use an independent rational conjunction model for unary equalities, weak/strict inequalities, scaled rows, contradictions, constants and zero dimensions. Check lvalue/rvalue agreement, source value preservation, finite-profile outward conversion and every unsupported-row rejection, including after a contradiction.
SOURCE: tests/recyclingconstructors1.cc; src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxconversionsspec1.cc; tests/boxconversionoracle.hh; tests/boxrefinementoracle.hh; tests/boxallocationfixture.hh; tests/boxconversionspublic1.cc.
-
2. Box construction from supported congruences UID: PPL-SPEC-001045 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000014 Meaning of linear congruences (Specifies)
- PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Box(cgs) shall construct the coordinate enclosure obtained by conjoining the congruences in cgs with a universe box, using the admitted forms in 🔗 2. Addition of optimally supported box congruences. Nontrivial unary equalities shall constrain the corresponding coordinate to their rational solution, with target endpoint conversion as declared. Tautological rows shall have no effect and inconsistent rows shall produce empty. An empty system shall produce universe. With exact rational interval endpoints, admitted equalities shall be represented exactly.
A non-interval equality or a nontrivial proper congruence shall throw std::invalid_argument, including after an earlier row has made the conjunction empty. A proper congruence whose meaning is tautological or inconsistent shall retain that meaning instead of being rejected merely because its modulus is nonzero.
Construction from an rvalue system shall have the same result and rejection behavior; its const source shall retain its rows and value.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. Their represented values shall remain unchanged; logically const normalization may update their caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
RATIONALE: A box can express coordinate equalities and the two constant truth values without representing a nontrivial periodic lattice.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for Box<ITV> in Parma_Polyhedra_Library:
explicit Box(const Congruence_System& cgs);
VERIFICATION_CRITERIA: Check independent rational solutions of admitted unary equalities, fractions, negative scaling, contradictory coordinates, trivial proper congruences and zero dimensions. Compare both overloads, preserve sources and reject unsupported rows even after inconsistency.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxconversionsspec1.cc; tests/boxconversionoracle.hh; tests/boxrefinementoracle.hh; tests/boxallocationfixture.hh; tests/boxconversionspublic1.cc.
-
3. Cartesian enclosure of a polyhedral generator system UID: PPL-SPEC-001046 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000015 Distinct meanings of geometric generators (Specifies)
- PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Box(gs) shall contain the polyhedral set generated by gs with the point, closure-point, ray and line meanings in 🔗 1. Generator kinds and numerical prerequisites and 🔗 15. Generator-system hull meaning and construction. For exact rational endpoint operations and supported openness, the result shall be its least Cartesian box.
At a coordinate not made unbounded by directions, the finite extrema shall be those of the generator points and closure points. Such an extremum shall be included exactly when an ordinary point attains it; a closure point alone shall not include that endpoint. A ray with a nonzero component shall remove the bound in that component's sign direction. A line with a nonzero component shall remove both coordinate bounds. Zero components shall not change other factors. Inexact endpoint profiles shall provide outward enclosures of these coordinate ranges.
An empty generator system shall produce empty with the inherited dimension. A nonempty system with no ordinary point shall throw std::invalid_argument. A point in dimension zero shall generate the unique empty tuple. Construction from an rvalue system shall have the same result, rejection and source preservation as ordinary construction.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. Their represented values shall remain unchanged; logically const normalization may update their caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
RATIONALE: Independent coordinate extrema give the Cartesian enclosure of a generated convex set, while closure points distinguish finite excluded endpoints from attained ones.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for Box<ITV> in Parma_Polyhedra_Library:
explicit Box(const Generator_System& gs);
VERIFICATION_CRITERIA: Compute exact rational extrema and point attainment independently from raw point/closure-point coordinates and ray/line signs. Include fractions with different divisors, repeated extrema, orthogonal directions, empty and zero-dimensional systems, both overloads, profile conversion and rejection of nonempty systems without a point.
BIBLIOGRAPHY: BagnaraHZ05FAC | Section 4.1, Definition 4.2 and Theorem 4.4.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxconversionsspec1.cc; tests/boxconversionoracle.hh; tests/boxrefinementoracle.hh; tests/boxallocationfixture.hh; tests/boxconversionspublic1.cc; tests/Box/fromgensys1.cc.
-
4. Box conversion from bounded-difference shapes UID: PPL-SPEC-001047 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Box(bds,complexity) shall contain the set represented by the bounded-difference shape. Each coordinate shall use the lower and upper unary bounds implied by the source constraints. Nonempty finite extrema shall be included, since the source carrier is topologically closed. Unbounded coordinates shall retain the corresponding unbounded sides. Empty and zero-dimensional sources shall retain their set meanings.
When the source closure and target endpoint operations are exact, including the rational-bound profile, the result shall be the least Cartesian box containing the source. Inexact source closure arithmetic or target endpoint conversion shall retain outward containment without a general best-box guarantee. The selected Complexity_Class value shall not change this constructor's mathematical result or its polynomial closure algorithm; all three declared complexity values shall be admitted.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. Their represented values shall remain unchanged; logically const normalization may update their caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
RATIONALE: Implied unary difference bounds determine the coordinate projections, including bounds that are absent from the original syntactic row list.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for Box<ITV> in Parma_Polyhedra_Library:
template <typename T> explicit Box(const BD_Shape<T>& bds, Complexity_Class complexity=POLYNOMIAL_COMPLEXITY);
VERIFICATION_CRITERIA: Independently project rational difference-constraint systems, including chains and cycles, to obtain coordinate extrema. Compare fresh/cached sources, empty/universe and zero dimensions, closure-derived bounds, every complexity value and target numeric profiles. Check source value preservation and directed finite conversion.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 3.1, unary zero-node encoding and transitive closure (PDF page index 5, zero-based).
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxconversionsspec1.cc; tests/boxconversionoracle.hh; tests/boxrefinementoracle.hh; tests/boxallocationfixture.hh; tests/boxconversionspublic1.cc; tests/Box/frombdshape1.cc.
-
5. Box conversion from octagonal shapes UID: PPL-SPEC-001048 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Box(oct,complexity) shall contain the set represented by the octagonal shape. Coordinate bounds shall use the implied unary signed constraints, including the division by two required for bounds on 2*x or -2*x. Nonempty finite extrema shall be included; unbounded sides, empty sources and zero-dimensional set meanings shall be retained.
When source closure arithmetic and target endpoint operations are exact, including the rational-bound profile, the result shall be the least Cartesian box containing the source. Inexact closure or endpoint arithmetic shall retain an outward enclosure without a general optimality promise. The three declared complexity values shall be admitted, and the complexity argument shall not change this constructor's mathematical result or its polynomial closure algorithm.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. Their represented values shall remain unchanged; logically const normalization may update their caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
RATIONALE: Signed-sum constraints imply unary extrema whose factor of two must be preserved when projecting into coordinate intervals.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for Box<ITV> in Parma_Polyhedra_Library:
template <typename T> explicit Box(const Octagonal_Shape<T>& oct, Complexity_Class complexity=POLYNOMIAL_COMPLEXITY);
VERIFICATION_CRITERIA: Use independent rational projection of signed-sum systems and compare every coordinate extremum, including half-integral bounds. Cover all sign combinations, implied chains, inconsistent and unbounded cases, fresh/cached sources, dimensions, complexity arguments and outward target profiles.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4, signed forms, factor of two and strong closure (PDF page indices 9–10, zero-based).
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxconversionsspec1.cc; tests/boxconversionoracle.hh; tests/boxrefinementoracle.hh; tests/boxallocationfixture.hh; tests/boxconversionspublic1.cc; tests/Box/frombdshape1.cc.
-
6. Complexity-sensitive box conversion from polyhedra UID: PPL-SPEC-001049 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Box(ph,complexity) shall contain the source polyhedron under each of ANY_COMPLEXITY, SIMPLEX_COMPLEXITY and POLYNOMIAL_COMPLEXITY. The default shall be ANY_COMPLEXITY. Other complexity codes shall be outside the admitted interface.
With ANY_COMPLEXITY, exact rational endpoint arithmetic and supported openness, the result shall be the least Cartesian box, including endpoint attainment for not necessarily closed polyhedra and exact preservation of emptiness. Inexact target profiles shall retain their declared outward enclosure.
With SIMPLEX_COMPLEXITY and exact rational operations, a nonempty source shall have exact coordinate infima and suprema, but a finite unattained bound may be included. A topologically closed source shall therefore have its least Cartesian box in the exact rational target profile. The operation need not detect an empty not necessarily closed system whose closed relaxation is nonempty. A more precise result obtained from an already available generator representation shall also be admitted.
With POLYNOMIAL_COMPLEXITY, the constructor may use a bounded constraint-propagation computation whose pass budget grows linearly with the space dimension and which stops early when coordinates cease changing. The resulting box shall remain a containing approximation; no general least-box, fixed-point propagation, exact emptiness detection or implementation-specific iteration-count guarantee shall be inferred. Available equivalent source representations may yield different allowed approximations. Each complexity option shall retain the corresponding declared algorithmic complexity bound.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. On success and when construction throws, a source shall retain a valid representation of its unchanged value; logically const normalization may update its caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
RATIONALE: A conversion budget may trade optimal coordinate projections for conservative propagation. A dimension-dependent budget accommodates long bound-dependency chains, while a finite cutoff also terminates on asymptotically contracting cycles. Strict endpoint attainment additionally distinguishes open boxes from their closures.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for Box<ITV> in Parma_Polyhedra_Library:
explicit Box(const Polyhedron& ph, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Project independently encoded rational closed/NNC polyhedra using exact elimination. Require the least open box for ANY, exact finite extrema with optional endpoint closure for nonempty SIMPLEX inputs, and sound containment for POLYNOMIAL inputs. Include correlated systems, closed-relaxation-only feasibility, cache/representation histories, all complexity values, source preservation and target profile conversion. Include polynomial conversions of long lower/upper bound chains, strict seeds, variable and row permutations, dense and sparse storage, and a rational cycle that cannot reach its fixed point in finitely many propagation passes. Sweep each measured C++ allocation failure position during pending-constraint integration and fresh constraint-backed minimization, including existing and discovered affine equalities, dense and sparse representations, and closed and NNC sources. Check source validity before retrying, unchanged geometry against the entry conjunction, and a successful retry against independently derived exact coordinate bounds.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxconversionsspec1.cc; tests/boxconversionoracle.hh; tests/boxrefinementoracle.hh; tests/boxallocationfixture.hh; tests/boxconversionspublic1.cc; src/Polyhedron_defs.hh; src/Polyhedron_nonpublic.cc; src/Polyhedron_minimize_templates.hh; src/Polyhedron_simplify_templates.hh; tests/polyhedronconstraintconversionfailure1.cc; tests/throw_on_allocation.hh; tests/Box/frompolyhedron1.cc; tests/Box/frompolyhedron2.cc.
-
7. Cartesian enclosure of a rational grid UID: PPL-SPEC-001050 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Box(gr,complexity) shall contain the rational grid. A coordinate whose value is fixed throughout a nonempty grid shall be constrained to that rational value, with target endpoint conversion as specified. If a line or an integer-parameter direction varies that coordinate, its projection shall be unbounded in both directions. Correlations and periodic gaps shall not become additional Cartesian restrictions.
With exact rational interval endpoints the result shall be the least Cartesian box of the grid. Finite inexact target profiles shall provide the outward coordinate enclosure. Empty grids and zero-dimensional empty/universe shall retain their set meanings. All three declared complexity values shall be admitted; the argument shall not change the mathematical result or the polynomial generator-based computation.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. Their represented values shall remain unchanged; logically const normalization may update their caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
RATIONALE: A rational grid coordinate is either fixed or ranges without a finite lower or upper bound; a box cannot retain periodic gaps or cross-coordinate congruences.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for Box<ITV> in Parma_Polyhedra_Library:
explicit Box(const Grid& gr, Complexity_Class complexity=POLYNOMIAL_COMPLEXITY);
VERIFICATION_CRITERIA: Derive exact coordinate projections from independent rational base points, real line directions and integer parameter directions. Include fractional fixed coordinates, non-axis-aligned generators, finite-index lattice correlations, redundant descriptions, fresh/cached congruence/generator states, empty/zero dimensions, complexity options and outward target conversion.
BIBLIOGRAPHY: BagnaraHZ08SCP | Section 2.4, equation (1) and parameter representation (PDF page indices 9–10, zero-based).
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxconversionsspec1.cc; tests/boxconversionoracle.hh; tests/boxrefinementoracle.hh; tests/boxallocationfixture.hh; tests/boxconversionspublic1.cc; tests/Box/fromgrid1.cc.
-
8. Box conversion from partially reduced products UID: PPL-SPEC-001051 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Box(dp,complexity) shall convert each component domain of dp into the target box profile under the supplied admitted complexity value, then take their same-profile box intersection. The result shall contain every point in the product's represented component intersection. Each component conversion shall retain its own admission, numerical and complexity prerequisites.
Even when both component conversions are individually least, their box intersection need not be the least box of the product: constraints correlating coordinates across components may be lost. No additional reduction or global optimality guarantee shall be inferred. Empty component enclosures shall yield empty; an empty semantic product whose separate component boxes overlap may yield a nonempty approximation. The default complexity value shall be ANY_COMPLEXITY.
The result shall inherit the source's ambient dimension, including when empty. A source dimension above max_space_dimension() shall throw std::length_error before allocating that coordinate storage. Its coordinate storage shall have the independent ownership specified in 🔗 3. Owned box copying, assignment and cleanup. Endpoint conversion shall retain the profile conditions in 🔗 4. Upward box conversion between interval profiles.
Sources shall remain live, valid and synchronized throughout construction. Their represented values shall remain unchanged; logically const normalization may update their caches. The selected source-domain arithmetic and the target interval operations shall meet their range, resource, rounding and policy prerequisites. The numerical and runtime prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use, and descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization where used, shall apply. Failure during construction shall release resources owned by the incompletely constructed box. Underlying numerical or resource exceptions may propagate.
RATIONALE: Projecting separate component sets and then intersecting coordinate enclosures is sound, while shared relational information can make the exact product projection smaller.
INTERFACE: Public header: <ppl.hh>; constructor excerpts for Box<ITV> in Parma_Polyhedra_Library:
template <typename D1, typename D2, typename R> explicit Box(const Partially_Reduced_Product<D1,D2,R>& dp, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Independently construct component Cartesian enclosures and intersect them. Include agreeing/conflicting coordinate bounds, relational intersections tighter than the intersection of hulls, empty and zero-dimensional products, several reductions/components, all admitted complexity values and source value preservation.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxconversionsspec1.cc; tests/boxconversionoracle.hh; tests/boxrefinementoracle.hh; tests/boxallocationfixture.hh; tests/boxconversionspublic1.cc; tests/Box/frompartiallyreducedproduct1.cc.
-
Incoming links from: 1. Box construction from supported constraints 2. Box construction from supported congruences 3. Cartesian enclosure of a polyhedral generator system 4. Box conversion from bounded-difference shapes 5. Box conversion from octagonal shapes 6. Complexity-sensitive box conversion from polyhedra 7. Cartesian enclosure of a rational grid 8. Box conversion from partially reduced products8
4. Upward box conversion between interval profiles UID: PPL-SPEC-000954 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
STATEMENT: Construction from Box<Other_ITV> shall preserve ambient dimension and enclose every source point under the receiving interval policies. An established empty source shall give empty. For other sources the conversion shall use receiving coordinate enclosures rather than trust cached facts whose validity can change through endpoint conversion. With exactly representable endpoints and supported membership, it shall preserve the represented set exactly. Otherwise endpoint conversion or relaxed openness may enlarge the product. The complexity argument shall not change this profile-conversion result. The separate source shall remain unchanged and the receiving value shall own independent coordinate storage.
Selected source/destination interval assignments shall be well-formed and satisfy their own admitted conversion prerequisites.
The validity, synchronization, numerical and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Underlying allocation or endpoint failure shall retain its own guarantees; no general rollback promise shall be inferred.
RATIONALE: Interval conversion can change emptiness knowledge and boundary precision, so the target must reconstruct valid cached meaning.
INTERFACE: Public header: <ppl.hh>; members and free functions in Parma_Polyhedra_Library, with member excerpts applying to Box<ITV>:
template <typename Other_ITV> explicit Box(const Box<Other_ITV>& y, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check exact same-family profile conversions, fractional outward integral endpoints, relaxed openness, marked and lazily empty sources, empty/universe zero-dimensional values and independent ownership. Compare literal source-point containment and receiving endpoints.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; src/Rational_Box.hh; tests/boxvaluesspec1.cc; tests/boxpublic1.cc; tests/Box/intervalcontracts1.cc.
-
1. Grid construction from boxes UID: PPL-SPEC-001312 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Grid(box,complexity) shall preserve the box's ambient dimension and construct its exact real affine hull as a grid. Empty shall yield empty. Each singleton interval shall fix its coordinate; every non-singleton coordinate shall be free. Open bounds do not add excluded endpoints to a singleton. All complexity choices shall have this meaning, under the source interval's arithmetic conditions and 🔗 1. Rational-grid values, coefficient profile and valid use. The source value shall be preserved. Excess ambient dimension shall throw std::length_error before representation allocation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: A Cartesian box contributes only fixed-coordinate equalities to its affine hull.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
template <typename Interval> explicit Grid(const Box<Interval>& box, Complexity_Class complexity = ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Compare rational/open/closed/unbounded and empty boxes with independently selected singleton-coordinate equations, both numerical representations and dimension boundaries. Exercise empty, universe, fixed, mixed and open non-singleton boxes at dimensions 63, 64 and 65 and above, with every complexity choice. Compare each reconstructed minimal representation and subsequent prefix projections with independent fixed-coordinate equations. Check preservation of the source box and of the floating-point rounding mode and exception flags for dyadic floating bounds. Compare canonical endpoint pairs with equal numerators and unequal denominators, different numerators and equal denominators, equal fractions and canonical zero. Check both extracted fractions and the resulting fixed or free coordinate. Check negative integer and dyadic singleton coordinates through positive canonical bound denominators, including preservation of the source box and floating environment. Inspect LCM-scaled anchors before minimizing queries: compare literal primitive coordinates and positive divisors for free, mixed and fixed axes, coprime and nested denominators, and confirm that reading the generator view leaves the serialized representation unchanged.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_templates.hh; tests/Grid/frombox1.cc; tests/gridoperationsspec1.cc; tests/gridedgespec1.cc.
-
2. Grid construction from bounded-difference shapes UID: PPL-SPEC-001313 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Grid(bd,complexity) shall preserve ambient dimension and construct the exact real affine hull of the bounded-difference shape, including empty. It shall retain all implied affine equalities under the source shape's arithmetic preconditions and 🔗 1. Rational-grid values, coefficient profile and valid use, for every complexity choice. The source's mathematical value shall be preserved; closure caches may change. Excess ambient dimension shall throw std::length_error before representation allocation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Tight opposite difference bounds identify all affine equalities of a nonempty bounded-difference shape.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
template <typename U> explicit Grid(const BD_Shape<U>& bd, Complexity_Class complexity = ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Use independently known equalities and strict inequalities among rational difference constraints, redundant/latent-empty source descriptions, all complexity values and source preservation.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_templates.hh; tests/Grid/frombdshape1.cc; tests/gridoperationsspec1.cc; tests/gridedgespec1.cc.
-
3. Grid construction from octagonal shapes UID: PPL-SPEC-001314 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Grid(os,complexity) shall preserve ambient dimension and construct the exact real affine hull of the octagonal shape, including empty, under its arithmetic preconditions and 🔗 1. Rational-grid values, coefficient profile and valid use. Every complexity choice shall retain the implied affine equalities. The source's mathematical value shall be preserved; closure caches may change. Excess ambient dimension shall throw std::length_error before representation allocation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Tight opposite octagonal bounds determine the affine equalities of the shape.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
template <typename U> explicit Grid(const Octagonal_Shape<U>& os, Complexity_Class complexity = ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check fixed coordinates, sum/difference equalities, open affine freedom, redundant rows and latent emptiness across complexity choices, source caches and numerical profiles.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_templates.hh; tests/Grid/fromoctagonalshape1.cc; tests/gridoperationsspec1.cc; tests/gridedgespec1.cc.
-
4. Grid construction from polyhedra UID: PPL-SPEC-001315 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Grid(ph,complexity) shall preserve ambient dimension and contain the polyhedron's real affine hull. With ANY_COMPLEXITY it shall equal that affine hull, including for NNC polyhedra and empty. Restricted complexity may retain only explicit available equalities and may fail to detect latent emptiness, giving a coarser grid. If generators are used, supporting points, closure points, rays and lines shall contribute their real affine span. Marked empty and zero-dimensional empty shall yield empty in every complexity class. The source value shall be preserved, though caches may change. Excess ambient dimension shall throw std::length_error before representation allocation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
For a bounded coefficient profile, directions joining rational points shall be computed from complete cross-products of their numerators and divisors, then reduced by a common positive factor before their coefficients are admitted. Constants and NNC epsilon coordinates shall not contribute to these line directions. This projective normalization shall not rescale a lattice parameter.
RATIONALE: An exact affine hull can require constraint minimization; a complexity-limited conversion may conservatively omit hidden equalities.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
explicit Grid(const Polyhedron& ph, Complexity_Class complexity = ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Compare exact conversions with independent affine spans of C/NNC polyhedral generators, hidden equalities and emptiness; check sound limited-complexity outputs, source preservation, dimensions and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_templates.hh; tests/Grid/frompolyhedron1.cc; tests/gridoperationsspec1.cc; tests/gridedgespec1.cc.
-
1. Closed octagonal support hull of geometric generators UID: PPL-SPEC-001162 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000015 Distinct meanings of geometric generators (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Octagonal_Shape(gs) shall construct the least target-profile octagonal enclosure of the convex set generated by gs. Its closed boundaries shall include finite limiting points supplied only as closure points. Ordinary points and closure points shall contribute their actual rational coordinates to support extrema, with the generator meanings in 🔗 1. Generator kinds and numerical prerequisites and 🔗 2. Construction of nonzero lines and rays. A ray shall make a normal unbounded exactly when its scalar product with that normal is positive; a line shall do so exactly when that scalar product is nonzero. A zero directional product shall retain any finite bound on that normal.
An empty generator system shall construct empty in its declared dimension. A nonempty generator system shall contain an ordinary point; otherwise the constructor shall throw std::invalid_argument. Divisors, zero trailing coordinates and ambient dimension shall retain their generator-system meanings.
For a nonempty source set X, let h(a) = supx ∈ Xa⋅x. For each sign s ∈ { − 1, 1}, the unary restriction shall be 2sxi ≤ ↑ T(2h(sei)). For each pair of distinct coordinates and signs si, sj ∈ { − 1, 1}, the binary restriction shall be sixi + sjxj ≤ ↑ T(h(siei + sjej)). Here ↑ T(q) shall be the least admitted target bound not smaller than the exact value q, using positive infinity when no finite target bound suffices. An unbounded source support shall impose no finite restriction. These bounds shall be those obtained from exact source supports, including the unary factor of two, before target rounding. The conjunction of these restrictions shall define the least target-profile enclosure. Integral bound storage shall retain the real carrier and shall not imply exact rational half-sum closure, as specified in 🔗 1. Octagonal values, numerical profiles and valid use.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
RATIONALE: Signed support extrema determine the closed octagonal hull. A closure point can determine such an extremum without being an ordinary generated point; directional signs determine whether a finite supporting inequality survives.
INTERFACE: Public header: <ppl.hh>; constructor of Octagonal_Shape<T> in Parma_Polyhedra_Library:
explicit Octagonal_Shape(const Generator_System& gs);
VERIFICATION_CRITERIA: Compute support independently from raw rational point/closure-point coordinates and ray/line dot products for every signed primitive normal. Check unequal point divisors, all four binary signs, zero and nonzero directional products, unequal-speed rays and lines, repeated extrema, trailing zero coordinates and independent affine dimension. Include empty systems in zero and positive dimensions, point-free nonempty rejection, half-integral unary bounds, positive/negative inexact target conversion and source-lifetime independence. Inject admitted allocation failures and check incomplete-object cleanup and source-set preservation. Check literal support entries for dense and sparse systems at dimensions 0, 1, 2, 63, 64, 65 and 128, including implicit zero tails, dyadic coordinates, origin and fully populated points, closure-first updates and repeated points. Exercise exact, integral and native boundaries, source lifetime independence and unchanged native floating state. Bound additional C++ allocation against independently constructed matrix storage, including value-returning coefficient traits, and sweep observed allocation failures after numeric-pool warmup; require incomplete-result cleanup and unchanged source values. Compare every stored support bound for positive and negative first, middle and last coordinate lines and rays, zero-coordinate rows, equal/opposite pairs and fixed nonzero point coordinates in dense and sparse storage. Exercise exact, integral and native boundaries and require finite bounds for zero directional products. Retain the selected coefficient profile's admitted arithmetic and failure behavior.
BIBLIOGRAPHY: BagnaraHZ05FAC | Section 4.1, Definition 4.2 and Theorem 4.4, closure points and extended generator semantics. BagnaraHZ09FMSD | Section 4, signed-variable encoding and doubled unary bounds (PDF page index 9, zero-based).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeconversionsspec1.cc; tests/octagonalshapeconversionsfailure1.cc; tests/boxallocationfixture.hh; tests/octagonalshapeconversionoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapeconversionspublic1.cc; tests/Octagonal_Shape/fromgensys1.cc; tests/Octagonal_Shape/dimensionlimits1.cc. tests/generatorconstructionfixture.hh; tests/generatorconstructionallocationsspec1.cc.
-
Incoming link from: 1. Octagonal time evolution by nonnegative rates1
2. Complexity-sensitive octagonal conversion from polyhedra UID: PPL-SPEC-001163 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Octagonal_Shape(ph,complexity) shall construct an octagonal set containing the source closed or not necessarily closed polyhedron. The default ANY_COMPLEXITY and the explicit SIMPLEX_COMPLEXITY and POLYNOMIAL_COMPLEXITY values shall be admitted.
ANY_COMPLEXITY shall produce the least target-profile octagonal enclosure and shall detect an empty source exactly. For a nonempty source, strict finite boundaries shall contribute their limiting suprema to the closed result. Primitive bounds shall use the exact signed supports and target normalization in 🔗 1. Closed octagonal support hull of geometric generators, including doubling a unary support before rounding. This guarantee shall not depend on an equivalent source constraint/generator representation or cache history.
SIMPLEX_COMPLEXITY shall give the same primitive support bounds for every nonempty source. It may use the closed relaxation obtained by replacing each strict source row by its weak counterpart. Therefore an empty not necessarily closed source whose closed relaxation is nonempty need not be detected as empty. An already available valid generator representation may give the stronger exact-empty result without exceeding the selected complexity class.
POLYNOMIAL_COMPLEXITY shall preserve containment while respecting its polynomial complexity bound. It may conservatively extract and propagate supported information without a universal least-enclosure, exact-emptiness, mandatory-progress or particular iteration fixed-point guarantee. Equivalent source representation/cache histories may yield different permitted conservative enclosures. Each complexity option shall respect its declared algorithmic complexity bound.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction, subject to the stated complexity-dependent emptiness guarantees.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
RATIONALE: Optimal projection onto a fixed family of signed normals and conservative constraint extraction have different complexity costs. Closing a nonempty strict polyhedron preserves its finite support suprema, while closing an inconsistent strict conjunction can change emptiness.
INTERFACE: Public header: <ppl.hh>; constructor of Octagonal_Shape<T> in Parma_Polyhedra_Library:
explicit Octagonal_Shape(const Polyhedron& ph, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Use independent rational elimination of arbitrary closed and strict source halfspaces to decide source feasibility and each octagonal support. Compare ANY with the least target-profile hull; require the same bounds for nonempty SIMPLEX sources, and containment for POLYNOMIAL. Separately model closed relaxations of empty strict systems. Include relational non-octagonal rows, all primitive signs, finite unattained limits, universe/empty and zero dimensions, source generators already computed, new pending constraints, minimized constraints, target profiles and source-set preservation. Allocation failures shall check owned cleanup without assuming source-cache rollback.
BIBLIOGRAPHY: BagnaraHZ05FAC | Sections 4 and 4.1, Definition 4.1, Definition 4.2 and Theorem 4.4, NNC polyhedra and their generators. BagnaraHZ09FMSD | Section 4, octagonal normal family and coherent signed encoding (PDF page indices 8–10, zero-based).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeconversionsspec1.cc; tests/octagonalshapeconversionsfailure1.cc; tests/boxallocationfixture.hh; tests/octagonalshapeconversionoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapeconversionspublic1.cc; src/Polyhedron_defs.hh; src/MIP_Problem_defs.hh; tests/Octagonal_Shape/frompolyhedron1.cc; tests/Octagonal_Shape/dimensionlimits1.cc.
-
3. Best octagonal enclosure of Cartesian boxes UID: PPL-SPEC-001164 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Octagonal_Shape(box,complexity) shall construct the least target-profile octagonal enclosure of the real Cartesian product represented by box. The source interval endpoint policy shall retain its open/closed meanings. For a nonempty product, an excluded finite endpoint may determine an included limiting bound in the closed result. Any empty factor shall make the result empty in the source ambient dimension; closing endpoints individually shall not turn an empty product into a nonempty one.
For a signed binary normal, its exact support shall combine the two relevant source endpoint contributions before target conversion. The unary support shall be doubled before conversion to its stored target bound. Unbounded contributing endpoints shall leave the corresponding support unrestricted.
For a nonempty source set X, let h(a) = supx ∈ Xa⋅x. For each sign s ∈ { − 1, 1}, the unary restriction shall be 2sxi ≤ ↑ T(2h(sei)). For each pair of distinct coordinates and signs si, sj ∈ { − 1, 1}, the binary restriction shall be sixi + sjxj ≤ ↑ T(h(siei + sjej)). Here ↑ T(q) shall be the least admitted target bound not smaller than the exact value q, using positive infinity when no finite target bound suffices. An unbounded source support shall impose no finite restriction. These bounds shall be those obtained from exact source supports, including the unary factor of two, before target rounding. The conjunction of these restrictions shall define the least target-profile enclosure. Integral bound storage shall retain the real carrier and shall not imply exact rational half-sum closure, as specified in 🔗 1. Octagonal values, numerical profiles and valid use.
The three declared complexity values shall be accepted and ignored; the conversion shall use a polynomial-complexity algorithm without changing its precision guarantee.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
RATIONALE: Independent interval supports combine into signed sums and differences. Rounding each coordinate first can lose a binary bound that is representable in the target profile, so optimal conversion depends on exact source combinations.
INTERFACE: Public header: <ppl.hh>; constructor of Octagonal_Shape<T> in Parma_Polyhedra_Library:
template <typename Interval> explicit Octagonal_Shape(const Box<Interval>& box, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Derive the Cartesian set and signed support sums directly from rational endpoint values and openness. Check every binary sign, unary doubled bounds, empty factors, open touching endpoints, unbounded/free coordinates, fractional endpoint combinations, half-integral target precision, zero dimensions and all three complexity values. Require equality with the independently rounded primitive hull, including cases that distinguish combining source endpoints from first rounding separate unary bounds. Check source denotation, independent storage and failed-construction cleanup.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4, signed-variable and doubled-unary encoding (PDF page index 9, zero-based).
SOURCE: src/Shape_Conversion_Support.hh; src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeconversionsspec1.cc; tests/octagonalshapeconversionsfailure1.cc; tests/boxallocationfixture.hh; tests/octagonalshapeconversionoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapeconversionspublic1.cc; src/Box_defs.hh; tests/Octagonal_Shape/frombox1.cc; tests/Octagonal_Shape/dimensionlimits1.cc; tests/Octagonal_Shape/supportconversion1.cc.
-
4. Best octagonal enclosure of rational grids UID: PPL-SPEC-001165 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Octagonal_Shape(grid,complexity) shall construct the least target-profile octagonal enclosure of the entire rational grid. The constructed octagonal set shall have the real carrier in 🔗 1. Octagonal values, numerical profiles and valid use and shall enclose every source grid point under its line and integer-parameter semantics. Integral target bound storage shall not change that result carrier.
For a nonempty grid, a signed primitive normal shall have a finite supremum exactly when it annihilates every line direction, every integer-parameter direction and every difference between its generating base points. In that case the normal shall be constant with its value at any base point. Otherwise its support shall be unbounded in both signs. Implied signed equalities shall be retained whether or not they appear as individual rows of a chosen congruence basis. Periodic restrictions that do not imply such an equality shall impose no finite bound.
For a nonempty source set X, let h(a) = supx ∈ Xa⋅x. For each sign s ∈ { − 1, 1}, the unary restriction shall be 2sxi ≤ ↑ T(2h(sei)). For each pair of distinct coordinates and signs si, sj ∈ { − 1, 1}, the binary restriction shall be sixi + sjxj ≤ ↑ T(h(siei + sjej)). Here ↑ T(q) shall be the least admitted target bound not smaller than the exact value q, using positive infinity when no finite target bound suffices. An unbounded source support shall impose no finite restriction. These bounds shall be those obtained from exact source supports, including the unary factor of two, before target rounding. The conjunction of these restrictions shall define the least target-profile enclosure. Integral bound storage shall retain the real carrier and shall not imply exact rational half-sum closure, as specified in 🔗 1. Octagonal values, numerical profiles and valid use.
An empty grid shall give empty in its original ambient dimension. The three declared complexity values shall be accepted and ignored; the conversion shall use a polynomial-complexity algorithm without changing its precision guarantee.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
RATIONALE: The convex enclosure of an unbounded affine lattice retains its constant linear forms. A particular congruence basis must not conceal a signed equality that the whole grid entails.
INTERFACE: Public header: <ppl.hh>; constructor of Octagonal_Shape<T> in Parma_Polyhedra_Library:
explicit Octagonal_Shape(const Grid& grid, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Use raw rational base points, integer parameters and real lines. Independently compute dot products for all signed primitive normals, including consequences of combinations of non-octagonal congruences. Include fractional constants, skew parameters, multiple generating points, free axes, nonadjacent signed relations, empty/zero dimensions and every complexity value. Compare the least target-profile hull across equivalent grid bases and normalization histories; check source preservation, ownership and resource-failure cleanup.
BIBLIOGRAPHY: BagnaraHZ08SCP | Section 2.4, equation (1) and the rational parameter representation (PDF page indices 9–10, zero-based). BagnaraDHMZ07 | Section 3, The Generator Representation, real lines, integer parameters and generating points (PDF page index 7, zero-based). BagnaraHZ09FMSD | Section 4, octagonal signed normal family (PDF page index 9, zero-based).
SOURCE: src/Shape_Conversion_Support.hh; src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeconversionsspec1.cc; tests/octagonalshapeconversionsfailure1.cc; tests/boxallocationfixture.hh; tests/octagonalshapeconversionoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapeconversionspublic1.cc; src/Grid_defs.hh; tests/Octagonal_Shape/fromgrid1.cc; tests/Octagonal_Shape/dimensionlimits1.cc; tests/Octagonal_Shape/supportconversion1.cc.
-
5. Best octagonal enclosure of bounded-difference shapes UID: PPL-SPEC-001166 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Octagonal_Shape(bd,complexity) shall construct the least target-profile octagonal enclosure of the real set represented by bd at entry. Signed sum and difference supports shall include all consequences of the source bounded-difference conjunction, including signed sums obtained by combining source unary restrictions. Source and target numerical profiles may differ; integer source bounds shall still describe real coordinates.
The constructor shall preserve empty and zero-dimensional source meanings. The three declared complexity values shall be accepted and ignored; the conversion shall use a polynomial-complexity algorithm without changing its precision guarantee. Equivalent source descriptions and normalization histories shall not discard a supported relation.
For a nonempty source set X, let h(a) = supx ∈ Xa⋅x. For each sign s ∈ { − 1, 1}, the unary restriction shall be 2sxi ≤ ↑ T(2h(sei)). For each pair of distinct coordinates and signs si, sj ∈ { − 1, 1}, the binary restriction shall be sixi + sjxj ≤ ↑ T(h(siei + sjej)). Here ↑ T(q) shall be the least admitted target bound not smaller than the exact value q, using positive infinity when no finite target bound suffices. An unbounded source support shall impose no finite restriction. These bounds shall be those obtained from exact source supports, including the unary factor of two, before target rounding. The conjunction of these restrictions shall define the least target-profile enclosure. Integral bound storage shall retain the real carrier and shall not imply exact rational half-sum closure, as specified in 🔗 1. Octagonal values, numerical profiles and valid use.
The result shall inherit the source's ambient dimension and own its storage independently, as in 🔗 3. Owned octagonal copying, assignment and cleanup. Successful construction and logically const source normalization shall preserve the source's represented set and ambient dimension. Later source mutation or destruction shall not affect the constructed value.
A source dimension above max_space_dimension() shall throw std::length_error before allocating the corresponding matrix storage. Empty and zero-dimensional values shall retain the meanings in 🔗 2. Dimensioned empty and universe octagonal construction.
Sources shall remain live, valid and synchronized throughout construction. The profile, descriptor, initialization and native floating runtime prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply, together with the source domain's numerical prerequisites. For admitted inputs, the implementation shall respect the preconditions of the numerical policies it selects for intermediate operations. Underlying numerical or resource exceptions may propagate through their declared channels. Failure during construction shall release resources acquired by the incomplete result; the source's cache representation need not be rolled back.
RATIONALE: Bounded differences are an octagonal subclass, but changing the bound profile can alter the best representable signed sums. Optimal conversion depends on the complete source set before rounding target constants.
INTERFACE: Public header: <ppl.hh>; constructor of Octagonal_Shape<T> in Parma_Polyhedra_Library:
template <typename U> explicit Octagonal_Shape(const BD_Shape<U>& bd, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Decode independently supplied bounded-difference halfspaces and use rational elimination to compute all octagonal supports. Include correlated chains, signed sums implied by unary bounds, fractions, integral and native source profiles, half-integral target bounds, all three complexity values and source closure/cache histories. Require the least target-profile enclosure, not only containment. Preserve empty/zero dimensions, source denotation and independent lifetime; verify construction cleanup after admitted resource failures.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 3.1, bounded-difference encoding, and Section 4, signed-variable octagonal encoding (PDF page indices 5 and 9, zero-based).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeconversionsspec1.cc; tests/octagonalshapeconversionsfailure1.cc; tests/boxallocationfixture.hh; tests/octagonalshapeconversionoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapeconversionspublic1.cc; src/BD_Shape_defs.hh; tests/Octagonal_Shape/frombdshape1.cc; tests/Octagonal_Shape/dimensionlimits1.cc; tests/Octagonal_Shape/supportconversion1.cc.
-
1. Export of octagonal unary constraints through a destination protocol UID: PPL-SPEC-001240 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For a destination of dimension m at least the source dimension n, export_interval_constraints(dest) shall restrict only the corresponding first n coordinates using outward unary consequences of the source. The destination's ambient dimension and coordinate identities shall be retained, and no pre-existing restriction shall be weakened. Source strong closure may update its stored bounds and cache while preserving its represented real set X and ambient dimension.
Let D be the entry destination set and H(X) the Cartesian hull of the source set. A successfully completed export shall produce a destination set D’ satisfying
D∩(H(X)×Rm − n) ⊆ D’ ⊆ D.With unbounded exact rational source closure and exact destination restrictions, the result shall equal that intersection. Other numerical profiles may lose unary information; no best-hull or canonical-bound claim shall follow for them. Existing destination correlations may propagate a restriction to other coordinates; the exporter shall select no coordinate outside the source's ambient space.
A finite stored weight of 2xi shall yield an upper callback bound obtained by halving outward toward positive infinity. A finite stored weight li of − 2xi shall yield a lower callback bound obtained from − li ⁄ 2, outward toward negative infinity when it has the indicated native representation. Callback values shall be supplied as finite native T values, after the outward computation in the shape's extended coefficient type. A positive-infinite stored side shall impose no finite restriction.
For bounded unsigned integer storage, a positive finite li denotes a negative lower endpoint that no finite native T value can express. That lower side shall be omitted. The zero lower side shall still export zero. Upper sides and other coefficient profiles shall retain their stated outward restrictions. A reserved extended-number encoding shall not be passed as an ordinary finite callback bound.
An empty source shall invoke dest.set_empty(). A zero-dimensional universe shall contribute no restriction. A destination of smaller ambient dimension shall cause std::invalid_argument before source normalization or any restrictive callback, including for empty sources. Each restriction callback shall return false exactly when its destination is empty; such a result shall stop further restriction callbacks. No fixed callback count or coordinate order shall be required.
The destination protocol shall perform the indicated conjunctions, preserving its existing restrictions and all coordinate identities. If its own arithmetic is approximate, a successful restriction shall contain the intersection of its entry set with the supplied halfspace and remain within its entry set. The destination, its callback environment and any borrowed storage shall remain live throughout the call. Callbacks shall not mutate or invalidate the source being traversed.
The selected representation, numerical runtime, initialized facilities, arithmetic-range and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Configured native-format admission and caller-owned FPU prerequisites shall apply when the selected T uses native floating arithmetic; nonfloating instances shall need no FPU environment. Recoverable numerical, resource or callback exceptions may propagate. A callback failure may leave the destination partially restricted, with the states and ownership guaranteed by that destination's operations; no aggregate rollback shall be inferred. Source cache updates shall retain their applicable failure guarantees, and discarded owned temporaries shall be released.
RATIONALE: A unary callback protocol transfers interval information into destinations larger than the source and into abstractions with their own restrictions. Doubled octagonal unary weights require directed halving. An unsigned native endpoint cannot express a negative lower bound, so omitting that side preserves containment without reinterpreting an infinity encoding as a positive finite restriction.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::Octagonal_Shape<T>:
template <typename U> void export_interval_constraints(U& dest) const; // Required destination capabilities: dimension_type U::space_dimension() const; void U::set_empty(); bool U::restrict_lower(dimension_type dim, const T& lower); bool U::restrict_upper(dimension_type dim, const T& upper);
VERIFICATION_CRITERIA: Derive exact rational coordinate projections independently of the exporter. Use a native-T-only destination protocol that rejects implicit checked-number callback types. Verify exact rational hull intersections, directed integral odd halves, native floating boundaries, empty and zero-dimensional sources, latent infeasibility, ignored infinite sides, larger destinations and retained extra coordinate identities. Check unsigned positive lower weights of both parities are omitted, zero lower weights are exported, upper restrictions remain effective and source points are never excluded. Exercise short-circuit empty returns, throwing callbacks, too-small destinations before callbacks, source denotation preservation and supported resource-failure cleanup. Test actual no-FPU configurations without imposing floating-runtime prerequisites on nonfloating instances.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_templates.hh; src/Octagonal_Shape_inlines.hh; src/checked_int_inlines.hh; doc/definitions.dox; tests/Octagonal_Shape/exportintervalconstraints1.cc; tests/octagonalshapeintervalexportspec1.cc; tests/octagonalshapeintervalexportpublic1.cc.
-
4. Refinement of a floating interval abstract store UID: PPL-SPEC-001239 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000023 Sound interval arithmetic (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For a supported native floating boundary type T and a valid Box<Interval<T,Interval_Info>> store of the same ambient dimension, refine_fp_interval_abstract_store(store) shall intersect the store with the outward Cartesian enclosure of the receiver supplied by the box conversion of 🔗 5. Box conversion from octagonal shapes. It shall retain every point of the entry store lying in the source shape and shall introduce no point outside the entry store. The source represented set and both ambient dimensions shall remain unchanged; logically const source closure may refresh caches.
Empty source or empty store shall yield an empty store. Zero-dimensional empty and universe cases shall preserve their distinct meanings. When the source closure and target endpoint arithmetic satisfy the exactness conditions of 🔗 5. Box conversion from octagonal shapes, the result shall equal the store's intersection with the least Cartesian enclosure of the source; otherwise outward approximation may retain additional points. Incompatible dimensions shall throw std::invalid_argument without changing the store's represented set.
The selected native format shall satisfy its configured supported-format predicate. The box and interval representation shall retain 🔗 1. Cartesian box values, coordinate identity and valid use and 🔗 5. Box conversion from octagonal shapes. Unbounded valid store coordinates are admitted. The initialized numerical runtime and all intermediate policy prerequisites shall hold; the caller shall provide and retain ownership of an upward FPU environment.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall hold. The borrowed store and its live coordinate objects shall remain valid throughout the call. Recoverable numerical and resource exceptions may leave a partially refined store in the state permitted by its operations; discarded owned temporaries shall be released.
RATIONALE: A relational state can strengthen a separate interval store without discarding a valuation common to both approximations.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::Octagonal_Shape<T>.
template <typename Interval_Info> void refine_fp_interval_abstract_store( Box<Interval<T, Interval_Info>>& store) const;
VERIFICATION_CRITERIA: Derive coordinate extrema by exact rational projection of correlated halfspaces, combine them with independently specified input intervals, and compare containment/contraction; check exact Cartesian intersections where 🔗 5. Box conversion from octagonal shapes guarantees them. Cover empty and zero-dimensional states, unbounded coordinates, open store boundaries, inexact native bounds, mismatched dimensions, source preservation and allocation failure.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 4 and 7 (octagonal representations and outward floating arithmetic).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; src/Interval_defs.hh; doc/definitions.dox; tests/Concrete_Expression/octagonalshape2.cc; tests/Concrete_Expression/octagonalreflection1.cc; tests/octagonalshapeintervalformspec1.cc; tests/octagonalshapeintervalformpublic1.cc; tests/octagonalshapeintervalformfailure1.cc.
-
4. Outward conversion between octagonal coefficient profiles UID: PPL-SPEC-001149 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from Octagonal_Shape<U> with another supported coefficient base shall preserve the source dimension and produce an independently owned set containing every source point. Finite signed-node bounds selected for conversion shall be converted outward; exactly representable values shall retain their values and positive infinity shall remain unrestricted. Empty and zero-dimensional source meanings shall be preserved.
The source may undergo logically const strong closure while preserving its represented set. Each declared complexity value shall give the same numerical conversion. Exact representability of the converted entries shall not imply that later sums or half-sums are exact in the destination profile. Source and destination mutation/destruction shall retain independent ownership. Failed construction shall release its acquired resources.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
RATIONALE: Outward numeric conversion must retain source points, including fractional points encoded by integral doubled unary bounds.
INTERFACE: Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library:
template <typename U> explicit Octagonal_Shape(const Octagonal_Shape<U>& y, Complexity_Class complexity=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Compare rational/native/integer conversions using independently normalized signed bounds, both signs of inexact constants, exact halves, infinity and empty/zero dimensions. Check source-set preservation through closure and independent ownership. Distinguish converted-entry precision from destination strong-closure precision and check failure cleanup.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4, coherent signed-node and doubled-unary encoding (PDF page index 9, zero-based).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapevaluesspec1.cc; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/octagonalshapevaluespublic1.cc; tests/Octagonal_Shape/fromoctagonalshape1.cc; tests/octagonalshapevaluesfailure1.cc; tests/Octagonal_Shape/dimensionlimits1.cc.
-
3. Polyhedral refinement of a floating interval store UID: PPL-SPEC-001378 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000084 Conservative arithmetic on interval linear forms (Specifies)
STATEMENT: For a dimension-compatible floating interval box, store refinement shall intersect that store with a sound box enclosure of the receiver. It shall not change the polyhedron, and shall retain every point that belonged to both the entry store and the receiver. Directed conversion and endpoint inclusion shall follow the selected interval-profile contracts; the result need not be the best box enclosure of the intersection. Dimension incompatibility shall follow the box intersection's invalid-argument channel.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Intersecting sound enclosures is safe, while abstracting before intersection can lose relational precision.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename FP_Format, typename Interval_Info> void refine_fp_interval_abstract_store( Box<Interval<FP_Format, Interval_Info>>&) const;
VERIFICATION_CRITERIA: Check directed rational-to-floating endpoints, empty and dimension mismatch, source preservation and concrete intersection retention for relational examples.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/polyhedronintervalformspec1.cc.
-
3. Polyhedral equality-congruence extraction UID: PPL-SPEC-001328 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: congruences() shall return an independently owned system of equality congruences satisfied by every receiver point. minimized_congruences() shall return a nonredundant equality system defining exactly the receiver's affine hull, or an inconsistent system for empty. A nonminimized extraction need not expose equalities implied only by inequalities. Dimension shall be retained; proper periodic congruences shall not be introduced.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Only affine equalities constrain the affine hull of a convex polyhedron; periodic rows would add a distinct discrete restriction.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
Congruence_System congruences() const; Congruence_System minimized_congruences() const;
VERIFICATION_CRITERIA: Check implicit equalities, redundancy, empty/universe, NNC facets and independent extracted-system ownership.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/congruences1.cc.
-
6. Polyhedron construction from representable congruences UID: PPL-SPEC-001321 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Congruence-system construction shall inherit the input dimension and apply the exact addition semantics in 🔗 2. Polyhedral congruence addition and conservative refinement to universe. Equality congruences shall define affine equalities; tautologies shall impose no restriction and contradictions shall give empty. A proper congruence that is neither tautological nor contradictory shall throw std::invalid_argument. The const-input form shall preserve external source values. The recycling-tag form shall have the same mathematical result; recycling shall not be promised for congruences. can_recycle_constraint_systems() shall return true and can_recycle_congruence_systems() false.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Nontrivial periodic restrictions are generally not convex; the recycling capability describes available storage reuse rather than a semantic distinction.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const Congruence_System&); explicit NNC_Polyhedron(const Congruence_System&); static bool can_recycle_constraint_systems(); static bool can_recycle_congruence_systems();
VERIFICATION_CRITERIA: Check equalities, constant congruences, proper periodic rejection, source preservation, zero dimensions, structural limits and both capability values.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/addcongruences1.cc; tests/Polyhedron/recycledsystems1.cc; tests/Polyhedron/exceptions1.cc; tests/polyhedronvaluesspec1.cc.
-
Incoming link from: 3. Owned polyhedron copying, assignment and exchange1
7. Closed and NNC value conversion UID: PPL-SPEC-001322 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000425 Topological closure and closure approximation (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Conversion or assignment from closed to NNC shall preserve the represented set and dimension exactly. Conversion or assignment from NNC to closed shall produce the exact topological closure, including empty and lower-dimensional sets. The complexity argument shall not reduce this precision. Sources shall retain their values; successful assignment shall return its receiver by reference. Changing topology shall occur through the selected value type's conversion, without exposing a receiver with the wrong topology.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Closed targets cannot retain excluded boundary points, whereas NNC targets can represent every closed polyhedron unchanged.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const NNC_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); explicit NNC_Polyhedron(const C_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); C_Polyhedron& operator=(const NNC_Polyhedron&); NNC_Polyhedron& operator=(const C_Polyhedron&);
VERIFICATION_CRITERIA: Check open and half-open intervals, empty inconsistent strict systems, singletons, free coordinates, source preservation and assignments across dimensions.
BIBLIOGRAPHY: BagnaraHZ10CGTA | Sections 2.1–2.3, Theorems 2.1 and 2.3, Definition 2.2 (closed and NNC generator semantics).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/cnncconversion1.cc; tests/Polyhedron/topclosure1.cc; tests/polyhedronvaluesspec1.cc.
-
8. Polyhedron conversion from boxes UID: PPL-SPEC-001323 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000425 Topological closure and closure approximation (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Box conversion shall preserve dimension and source value. NNC conversion shall represent the source box exactly, including open endpoints; closed conversion shall represent its exact topological closure. Infinite endpoints shall impose no finite bound. The complexity argument shall not affect the result. Structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Finite rational interval bounds translate to axis-aligned affine constraints; closing the target changes only endpoint inclusion.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename Interval> explicit C_Polyhedron(const Box<Interval>&, Complexity_Class=ANY_COMPLEXITY); template <typename Interval> explicit NNC_Polyhedron(const Box<Interval>&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check empty, zero-dimensional, finite/infinite and open/closed endpoint combinations, selected interval profiles and structural bounds.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/frombox1.cc; tests/Polyhedron/frombox2.cc; tests/polyhedronvaluesspec1.cc.
-
9. Polyhedron conversion from difference and octagonal shapes UID: PPL-SPEC-001324 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from a bounded-difference or octagonal shape shall preserve the source's real pointset and ambient dimension exactly in either topology. Every represented finite bound shall retain its coefficient-profile value; unbounded entries shall add no constraint. The complexity argument shall not change precision. Structural dimension overflow shall throw std::length_error. Source values shall be preserved.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Both source constraint classes are representable by ordinary closed rational polyhedra.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename U> explicit C_Polyhedron(const BD_Shape<U>&, Complexity_Class=ANY_COMPLEXITY); template <typename U> explicit C_Polyhedron(const Octagonal_Shape<U>&, Complexity_Class=ANY_COMPLEXITY); template <typename U> explicit NNC_Polyhedron(const BD_Shape<U>&, Complexity_Class=ANY_COMPLEXITY); template <typename U> explicit NNC_Polyhedron(const Octagonal_Shape<U>&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check independent relational constraints, latent empty and zero dimensions, bounded/infinite profiles, selected arithmetic admission and source preservation.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/frombdshape1.cc; tests/Polyhedron/fromoctagonalshape1.cc; tests/polyhedronvaluesspec1.cc.
-
10. Polyhedral affine hull of a rational grid UID: PPL-SPEC-001325 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from a grid shall preserve dimension and return empty for an empty source; otherwise it shall return the exact affine hull of the source, with all periodic restrictions removed and all affine equalities preserved. Both target topologies shall represent the same closed affine space. The complexity argument shall not reduce this guarantee. Source value shall be preserved, and structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: The convex hull of a nonempty rational grid is its affine hull: unrestricted integer parameter multiples fill their real spans under convexification.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const Grid&, Complexity_Class=ANY_COMPLEXITY); explicit NNC_Polyhedron(const Grid&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check periodic sets, non-axis affine equalities, line directions, fractional phases, latent inconsistent congruences, zero dimensions and source preservation.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/fromgrid1.cc; tests/polyhedronvaluesspec1.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001123 Limited semantic bounded-difference extrapolation (Specified by)
- PPL-SPEC-001125 Limited threshold bounded-difference extrapolation (Specified by)
- PPL-SPEC-001127 Polyhedral limited extrapolation of bounded-difference values (Specified by)
- PPL-SPEC-001133 Conservative interval-linear-form inequality refinement (Specified by)
- PPL-SPEC-001134 Generalized interval-linear-form comparisons (Specified by)
- PPL-SPEC-001090 Addition of admitted bounded-difference constraints (Specified by)
- PPL-SPEC-001091 Addition of bounded-difference congruences (Specified by)
- PPL-SPEC-001092 Conservative constraint refinement (Specified by)
- PPL-SPEC-001093 Conservative congruence refinement (Specified by)
- PPL-SPEC-001016 Addition of optimally supported box constraints (Specified by)
- PPL-SPEC-001017 Addition of optimally supported box congruences (Specified by)
- PPL-SPEC-001018 Conservative box refinement by linear constraints (Specified by)
- PPL-SPEC-001019 Conservative box refinement by linear congruences (Specified by)
- PPL-SPEC-001020 Controlled box constraint propagation (Specified by)
- PPL-SPEC-001274 Single congruence addition and refinement (Specified by)
- PPL-SPEC-001275 Copying congruence-system addition and refinement (Specified by)
- PPL-SPEC-001276 Recycling congruence-system addition (Specified by)
- PPL-SPEC-001277 Strict addition of a single linear constraint (Specified by)
- PPL-SPEC-001278 Copying and recycling strict constraint-system addition (Specified by)
- PPL-SPEC-001279 Conservative refinement by linear constraints (Specified by)
- PPL-SPEC-000719 Constraint refinement through interval abstraction (Specified by)
- PPL-SPEC-001217 Limited semantic octagonal extrapolation (Specified by)
- PPL-SPEC-001219 Limited threshold octagonal extrapolation (Specified by)
- PPL-SPEC-001237 Conservative interval-linear-form inequality refinement (Specified by)
- PPL-SPEC-001238 Generalized interval-linear-form comparisons (Specified by)
- PPL-SPEC-001167 Addition of supported octagonal constraints (Specified by)
- PPL-SPEC-001168 Addition of supported octagonal congruences (Specified by)
- PPL-SPEC-001169 Conservative refinement by linear constraints (Specified by)
- PPL-SPEC-001170 Conservative refinement by congruences (Specified by)
- PPL-SPEC-001151 Octagonal construction from supported constraints (Specified by)
- PPL-SPEC-001152 Octagonal construction from supported congruences (Specified by)
- PPL-SPEC-001407 Lifted constraint addition and refinement (Specified by)
- PPL-SPEC-001408 Lifted congruence addition and refinement (Specified by)
- PPL-SPEC-001376 Sound polyhedral filtering by interval linear forms (Specified by)
- PPL-SPEC-001378 Polyhedral refinement of a floating interval store (Specified by)
- PPL-SPEC-001338 Polyhedral constraint addition and refinement (Specified by)
- PPL-SPEC-001339 Polyhedral congruence addition and conservative refinement (Specified by)
- PPL-SPEC-001321 Polyhedron construction from representable congruences (Specified by)
- PPL-SPEC-001448 Product descriptor addition, refinement and recycling (Specified by)
- PPL-SPEC-001436 Product construction from descriptor systems (Specified by)
PPL shall provide constraint and congruence refinement for its documented supported pointset domains. Under the arithmetic preconditions, a successful refinement shall retain every input point satisfying the supplied conditions without introducing points outside the input set. Each domain shall identify its accepted descriptor classes and the precision guaranteed for them; unsupported descriptor forms shall follow the operation's declared rejection or conservative-approximation behavior.
The exact meaning of a descriptor is separate from the ability of a domain to represent its conjunction with the current abstract state.
Verification covers descriptor insertion and refinement operations, accepted forms, compatibility and precision or rejection outcomes. Related obligations: 🔗 3. Meaning of linear constraints, 🔗 4. Meaning of linear congruences, 🔗 2. Conservative bounded-difference constants, 🔗 2. Conservative octagonal constants, 🔗 1. Meaning of successful exact and approximate results.
Use independent conjunctions of input sets and descriptors to check inclusion of satisfying points and absence of newly introduced outside points. Cover admitted and nonadmitted forms, tautologies, contradictions, strict boundaries and proper congruences. Distinguish exact insertion, best abstraction and conservative refinement where their contracts differ.
doc/definitions.dox: Constraint Geometric Descriptors and interaction with semantic descriptors. src/Polyhedron_defs.hh: addition versus refinement. src/Box_defs.hh, src/BD_Shape_defs.hh, src/Octagonal_Shape_defs.hh and src/Grid_defs.hh: descriptor support.
-
4. Limited semantic bounded-difference extrapolation UID: PPL-SPEC-001123 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000054 Bounded-difference widening guarantees (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For Y ⊆ X, limited_BHMZ05_extrapolation_assign shall combine the semantic widening of 🔗 3. Semantic bounded-difference widening with selected limiting bounds.
The limiting system shall have dimension at most the common operand dimension and contain no strict inequality; larger dimensions and any strict row shall throw std::invalid_argument before changing the receiver or token counter, including empty and zero-dimensional cases.
For nonempty positive-dimensional exact-profile operands, selection shall use the entry receiver X. Recognized nonconstant rows shall be unary bounds or differences with opposite coefficients of equal magnitude. Normalize every recognized inequality outward in the selected coefficient profile. A recognized equality shall contribute both normalized opposite inequalities together only when both hold throughout X. A recognized inequality shall be selected when its normalized bound holds throughout X. Unsupported forms shall be ignored. Constant tautologies shall impose no restriction and false constants shall not be selected on a nonempty receiver.
Let L be the bounded-difference conjunction of the selected normalized bounds. With rounded closure the eligibility test may use its sound outward profile bounds as in 🔗 1. Bounded-difference values, numerical profiles and valid use; selection shall remain sound for X. The original, unnormalized limiting constraints need not all hold in the result. Selected inequalities can be weaker after outward scalar normalization.
Let W be the delayed or undelayed base widening result, with its token decision made before applying L. The result shall denote W∩L; it shall contain X and be contained in W. Positive available tokens shall therefore retain X, while their consumption shall follow the undelayed base widening rather than the final limited result.
An empty previous argument, an empty receiver or zero-dimensional operands shall retain the receiver's entry set without consuming a token. A distinct argument and the supplied system shall retain their represented values; self-aliasing shall be admitted.
A fixed finite limiting system, fixed dimension/profile, admitted exact comparisons and normalization, and a finite unreplenished token budget shall retain finite stabilization in the prescribed ascending recurrence. Arbitrarily replacing the limiting system shall carry no general convergence guarantee.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
RATIONALE: Satisfied normalized limits can recover selected information after a widening without turning unsupported relational rows into undocumented facets.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
void limited_BHMZ05_extrapolation_assign(const BD_Shape& y, const Constraint_System& cs, unsigned* tp = nullptr);
VERIFICATION_CRITERIA: Independently select normalized recognized bounds, compute the base semantic widening and intersect both models. Cover scalings/signs, equalities selected as a pair, ignored general linear rows, exact/inexact scalar bounds, duplicate systems, finite-limit recurrences, tokens consumed before limiting, source ownership, empty/cache histories, strict rejection and incompatible dimensions.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 3.2-3.3 and Section 4.2, semantic widening and its BDS extension (PDF indices 6-7 and 14). BagnaraHRZ05SCP | Section 7, tokens and widening up to a fixed finite constraint set (PDF indices 29-30).
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeconvergencespec1.cc; tests/bdshapeconvergenceoracle.hh; tests/bdshapeconvergencefailure1.cc; tests/boxallocationfixture.hh; tests/bdshapeoperationoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/bdshapeconvergencepublic1.cc; tests/BD_Shape/limitedbhmz05extrapolation1.cc; tests/BD_Shape/limitedcc76extrapolation1.cc.
-
6. Limited threshold bounded-difference extrapolation UID: PPL-SPEC-001125 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000054 Bounded-difference widening guarantees (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For Y ⊆ X, limited_CC76_extrapolation_assign shall combine the default threshold extrapolation of 🔗 2. Default bounded-difference stop points with selected limiting bounds.
The limiting system shall have dimension at most the common operand dimension and contain no strict inequality; larger dimensions and any strict row shall throw std::invalid_argument before changing the receiver or token counter, including empty and zero-dimensional cases.
For nonempty positive-dimensional exact-profile operands, selection shall use the entry receiver X. Recognized nonconstant rows shall be unary bounds or differences with opposite coefficients of equal magnitude. Normalize every recognized inequality outward in the selected coefficient profile. A recognized equality shall contribute both normalized opposite inequalities together only when both hold throughout X. A recognized inequality shall be selected when its normalized bound holds throughout X. Unsupported forms shall be ignored. Constant tautologies shall impose no restriction and false constants shall not be selected on a nonempty receiver.
Let L be the bounded-difference conjunction of the selected normalized bounds. With rounded closure the eligibility test may use its sound outward profile bounds as in 🔗 1. Bounded-difference values, numerical profiles and valid use; selection shall remain sound for X. The original, unnormalized limiting constraints need not all hold in the result. Selected inequalities can be weaker after outward scalar normalization.
Let W be that default extrapolation, including its token decision before applying the limits. The result shall denote W∩L, containing X and contained in W. Positive tokens shall retain X and be consumed according to the undelayed base extrapolation, even if limiting would restore the lost information.
An empty argument, an empty receiver or zero-dimensional operands shall retain the entry receiver set and counter. The supplied system and distinct argument shall retain their values; self-aliasing shall be admitted. This operation remains a relational extrapolation without a general finite-stabilization guarantee for arbitrary closed-shape iterations.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
RATIONALE: The limiting construction has the same recognized descriptor fragment as limited semantic widening, but does not upgrade threshold graph extrapolation into a general widening.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
void limited_CC76_extrapolation_assign(const BD_Shape& y, const Constraint_System& cs, unsigned* tp = nullptr);
VERIFICATION_CRITERIA: Use the independent default-threshold model and normalized-limit selection, then compare the resulting intersection. Check unsupported constraints, scaled/equality limits, outward conversion, finite hits and rays, positive/zero/null counters, base-loss versus final-loss decisions, empty/cache histories, aliases, strict rows and dimension rejection.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 3.1 and 3.3, graph extrapolation and limiting precision (PDF indices 5 and 7). BagnaraHRZ05SCP | Section 7, tokens and fixed limiting systems (PDF indices 29-30).
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeconvergencespec1.cc; tests/bdshapeconvergenceoracle.hh; tests/bdshapeconvergencefailure1.cc; tests/boxallocationfixture.hh; tests/bdshapeoperationoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/bdshapeconvergencepublic1.cc; tests/BD_Shape/limitedcc76extrapolation1.cc; tests/BD_Shape/cc76extrapolation1.cc.
-
8. Polyhedral limited extrapolation of bounded-difference values UID: PPL-SPEC-001127 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000054 Bounded-difference widening guarantees (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For Y ⊆ X, limited_H79_extrapolation_assign shall first interpret the entry sets as closed polyhedra, compute polyhedral limited H79 extrapolation using the supplied constraint system, and convert that result under 🔗 2. Complexity-sensitive bounded-difference conversion from polyhedra. The system dimension shall not exceed the common operand dimension and shall contain no strict row; invalid dimensions or strictness shall throw std::invalid_argument before changing receiver or counter, including empty and zero-dimensional cases.
For nonempty positive-dimensional inputs, every supplied non-strict constraint satisfied by the entry receiver shall be eligible for the intermediate polyhedral intersection. General linear forms shall be admitted; selection shall not be restricted to unary and coordinate-difference rows. The intermediate result shall be the base H79 widening intersected with the selected constraints. Its token decision shall precede that intersection and follow 🔗 7. Polyhedral standard widening of bounded-difference values.
The final bounded-difference result shall contain X. Facets outside the domain and outward scalar conversion may prevent that result from satisfying the original limiting constraints. For example, a selected two-variable sum can influence the intermediate polyhedron even though it is absent from the final template description.
An empty previous argument, an empty receiver or zero-dimensional operands shall retain the receiver's entry set and counter. A distinct argument and the supplied system shall preserve their values, and self-aliasing shall be admitted. A fixed finite limiting system and finite unreplenished token budget shall preserve finite stabilization under the standard polyhedral widening's ascending recurrence and arithmetic prerequisites. Arbitrarily changing the limiting system shall carry no general convergence guarantee.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set or supplied token counter. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.
RATIONALE: General limiting facets can affect the intermediate polyhedron before template abstraction. Treating them as ignored rows or demanding every facet survive conversion would give different contracts.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
void limited_H79_extrapolation_assign(const BD_Shape& y, const Constraint_System& cs, unsigned* tp = nullptr);
VERIFICATION_CRITERIA: Independently filter raw general halfspaces by exact implication, intersect them with the standard widening model and project every primitive bounded-difference support. Include a triangle from a non-difference sum limit, selected/rejected equalities, normalization/scaling, tokens consumed before limiting, fixed-limit recurrences, aliases, lazy emptiness, strict rejection, all dimension checks and exact versus outward numerical conversion.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 3.2 and Appendix A.4, standard widening semantics (PDF indices 6 and 38). BagnaraHRZ05SCP | Section 7, widening up to a fixed finite constraint set (PDF index 30).
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; src/Polyhedron_widenings.cc; doc/definitions.dox (user-manual section BD_H79_Standard_Widening); tests/bdshapeconvergencespec1.cc; tests/bdshapeconvergenceoracle.hh; tests/bdshapeconvergencefailure1.cc; tests/boxallocationfixture.hh; tests/bdshapeoperationoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/bdshapeconvergencepublic1.cc; tests/BD_Shape/limitedh79extrapolation1.cc; tests/BD_Shape/limitedcc76extrapolation1.cc.
-
Incoming link from: 2. Generalized interval-linear-form comparisons1
1. Conservative interval-linear-form inequality refinement UID: PPL-SPEC-001133 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For a supported native floating boundary type T, let X be the receiver's entry set and let L(x) and R(x) be the real value sets of its dimension-compatible interval linear-form arguments. Coefficient and constant choices shall be independent, including when the same form object is supplied twice. After refine_with_linear_form_inequality, the receiver shall have the same ambient dimension and denote a set Y satisfying
{x ∈ X ∣ ∃l ∈ L(x), r ∈ R(x) : l ≤ r} ⊆ Y ⊆ X.Valid empty coefficient or constant intervals shall be admitted; their empty choice set contributes no satisfying valuations, so a general conservative refinement may leave the input unchanged.
The general operation may lose precision. Comparisons involving constants only, including cancellation to a constant comparison, may leave the input unchanged.
For closed nonempty constant intervals and forms having at most one nonzero variable coefficient each, all such coefficients being singleton + 1 or − 1, consider a nonconstant comparison reducible to one unary or coordinate-difference inequality. If the required constant endpoint subtraction and any normalization by 2 are exact in the selected boundary profile, the result shall equal the intersection of X with that closed inequality, using the lower constant endpoint on the left and upper constant endpoint on the right. Opposite unit coefficients on the same coordinate shall therefore use the corresponding normalized ±2xi cut. This precision clause shall not apply to opposite-sign coefficients on distinct coordinates or to a constant-only comparison.
Empty input shall remain empty. An argument form whose space dimension exceeds the receiver's shall throw std::invalid_argument before changing the represented set, including on empty input. Successful refinement shall preserve the source forms and leave a valid owned receiver.
The format shall satisfy its configured supported-format predicate. The interval coefficient representation and arithmetic shall satisfy 🔗 1. Interval-linear-form meaning and numerical prerequisites, including stored-value and endpoint-access prerequisites; coefficient and constant intervals shall be bounded. The caller shall provide and retain ownership of an upward FPU environment. For admitted inputs, the implementation shall respect the preconditions of its selected numerical policies when carrying out intermediate operations. Library calls shall not transfer ownership of the forms or change their coefficient values.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. Borrowed forms and interval storage shall remain live throughout the call. Recoverable numerical and resource exceptions may propagate; discarded owned temporaries shall be released and the receiver shall remain safely destructible, without a rollback promise.
RATIONALE: A floating comparison filters existing correlated states; coefficient uncertainty and outward arithmetic must not discard a satisfying state.
INTERFACE: Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member signatures apply to BD_Shape<T> except the indicated free operator and destination capabilities.
template <typename Interval_Info> void refine_with_linear_form_inequality( const Linear_Form<Interval<T, Interval_Info>>& left, const Linear_Form<Interval<T, Interval_Info>>& right);
VERIFICATION_CRITERIA: Partition coordinate signs independently, derive exact rational minimum-left/maximum-right affine inequalities, intersect each with the input halfspaces, and check every resulting piece is contained while the result stays inside the input. Cover unit, same-coordinate opposite unit, uncertain-sign, nonunit and sparse multiple-variable forms; exact and genuinely inexact arithmetic; correlations, recession directions, source aliases, bottom, dimension errors and owned-resource failures.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 3.2 and 7 (domain and floating arithmetic background). Mine04 | Sections 5 and 6.1, Tests (interval linear forms and relational guard abstraction).
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; doc/definitions.dox; tests/bdshapefiltertextpublic1.cc; tests/bdshapefiltersspec1.cc; tests/bdshapefiltersfailure1.cc; tests/octagonalshapeintervalformspec1.cc; tests/bdshapefiltersoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeaffineoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/Concrete_Expression/bdshape2.cc; src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Interval_defs.hh; tests/BD_Shape/affineunboundedproducts1.cc.
-
2. Generalized interval-linear-form comparisons UID: PPL-SPEC-001134 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For the form value sets and numerical admission of 🔗 1. Conservative interval-linear-form inequality refinement, generalized_refine_with_linear_form_inequality shall preserve the ambient dimension and denote an enclosure of the input states satisfying its relation, without introducing states outside the input. The two sides shall use independent coefficient choices.
LESS_OR_EQUAL shall apply the left-to-right inequality refinement; GREATER_OR_EQUAL shall apply the reversed refinement. LESS_THAN and GREATER_THAN may use those same closed relaxations of the strict comparisons. EQUAL shall apply both non-strict orientations, retaining all states for which the two form value intervals overlap. NOT_EQUAL shall leave the represented set unchanged. No general least-result claim shall follow from these dispatch rules.
Both arguments shall undergo the documented dimension validation for every named relation, including NOT_EQUAL and empty receivers. Incompatibility shall throw std::invalid_argument before changing the represented set. A Relation_Symbol having the unnamed language-admissible value 0 or 7 shall throw std::runtime_error before mutation. Values outside the C++ enum's valid representation range are outside valid language use. Empty input and source-form values shall be preserved.
The format shall satisfy its configured supported-format predicate. The interval coefficient representation and arithmetic shall satisfy 🔗 1. Interval-linear-form meaning and numerical prerequisites, including stored-value and endpoint-access prerequisites; coefficient and constant intervals shall be bounded. The caller shall provide and retain ownership of an upward FPU environment. For admitted inputs, the implementation shall respect the preconditions of its selected numerical policies when carrying out intermediate operations. Library calls shall not transfer ownership of the forms or change their coefficient values.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. Borrowed forms and interval storage shall remain live throughout the call. Recoverable numerical and resource exceptions may propagate; discarded owned temporaries shall be released and the receiver shall remain safely destructible, without a rollback promise.
RATIONALE: The relation selects the comparison orientation and its admissible closed relaxation; validation must not depend on the selected dispatch shortcut.
INTERFACE: Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member signatures apply to BD_Shape<T> except the indicated free operator and destination capabilities.
template <typename Interval_Info> void generalized_refine_with_linear_form_inequality( const Linear_Form<Interval<T, Interval_Info>>& left, const Linear_Form<Interval<T, Interval_Info>>& right, Relation_Symbol relsym);
VERIFICATION_CRITERIA: Use the independent sign-partition guard oracle for all six named relations, equality overlap, strict boundary witnesses, shared form objects and disequality identity. Check dispatch against the appropriate basic orientations, source preservation, dimensions on every branch, valid unnamed enum rejection and failure channels.
BIBLIOGRAPHY: Mine04 | Sections 5 and 6.1, Tests (interval-coefficient guard abstractions).
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; doc/definitions.dox; tests/bdshapefiltertextpublic1.cc; tests/bdshapefiltersspec1.cc; tests/bdshapefiltersfailure1.cc; tests/octagonalshapeintervalformspec1.cc; tests/bdshapefiltersoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeaffineoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/Concrete_Expression/bdshape2.cc; src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Interval_defs.hh;
-
1. Addition of admitted bounded-difference constraints UID: PPL-SPEC-001090 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_constraint(c) shall conjoin the admitted closed constraint with the receiver. Admitted nonconstant forms shall be unary bounds or coordinate-difference bounds, including their equality forms with any common nonzero integral scale and sign. Constant tautologies shall have no effect and constant falsehoods shall make the result empty. A nonconstant strict constraint or an unsupported nonconstant linear form shall throw std::invalid_argument; a constant strict tautology or falsehood shall retain its logical meaning.
For each primitive upper inequality, normalization shall divide by the positive coefficient magnitude and choose the least admitted target bound no smaller than the exact rational bound. Equality shall contribute both opposite inequalities with their respective outward bounds. The result shall denote the intersection of the entry set with these normalized target inequalities; for exact representable bounds this shall be the concrete conjunction. Applying outward normalization shall not exclude any entry point satisfying the original constraint.
add_constraints(cs) and add_recycled_constraints(cs) shall conjoin all admitted constraints in the system, with the same normalization and validation rules. Source dimensions at most the receiver dimension shall be admitted; omitted trailing coordinates shall have zero coefficients. A larger single-descriptor or system dimension shall throw std::invalid_argument before changing the receiver's represented set. Rejection of an unsupported single descriptor shall also preserve the receiver's represented set. A system operation that encounters an unsupported descriptor need not roll back preceding additions.
The copying overloads shall preserve their source descriptors. After the recycling overload, the only required property of cs shall be safe destruction, including after an exception. Result storage shall not borrow the input system. These rules shall apply to empty receivers as well as nonempty receivers.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible, except for recycled sources with an explicit destruction-only guarantee. No general rollback guarantee shall be inferred for such failures.
RATIONALE: Descriptor admission distinguishes a convex bounded-difference operation from an approximation that silently ignores unsupported forms. Explicit outward scalar bounds separate numerical abstraction from conjunction.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
void add_constraint(const Constraint& c); void add_constraints(const Constraint_System& cs); void add_recycled_constraints(Constraint_System& cs);
VERIFICATION_CRITERIA: Normalize raw integer coefficients with GMP rationals; conjoin independent halfspaces with the entry set. Exercise both signs, common scales, equality, exact/inexact bounds, constants, empty receivers, trailing coordinates, copied/recycled batches, invalid dimensions and late unsupported descriptors. Check valid reuse after exceptions and independent result ownership.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeoperationsspec1.cc; tests/bdshapeoperationoracle.hh; tests/bdshapeoperationsfailure1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeoperationspublic1.cc; tests/BD_Shape/addconstraints1.cc; tests/BD_Shape/dimensioncontracts1.cc.
-
2. Addition of bounded-difference congruences UID: PPL-SPEC-001091 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_congruence(cg) shall admit congruence equalities whose linear form is a unary or coordinate-difference equality, together with constant tautologies and falsehoods. An admitted equality shall conjoin the two opposite outward-normalized inequalities described in 🔗 1. Addition of admitted bounded-difference constraints. A tautology shall have no effect; a falsehood shall make the result empty.
A nontrivial proper congruence or an unsupported nonconstant equality shall throw std::invalid_argument. Periodic spacing shall not be silently removed by an adding operation. add_congruences(cgs) and add_recycled_congruences(cgs) shall apply these admission and conjunction rules to the whole system.
A descriptor or system dimension above the receiver dimension shall throw std::invalid_argument before changing its represented set; smaller dimensions shall use zero trailing coefficients. Rejection of an unsupported single congruence shall preserve the entry set. A system operation need not undo earlier admitted additions if a later congruence is rejected.
The copying overloads shall preserve their source values. After a recycling call, the source system need only remain safely destructible, including after an exception. Result storage shall own its value independently of the source. Admission and dimension checks shall apply to empty receivers too.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible, except for recycled sources with an explicit destruction-only guarantee. No general rollback guarantee shall be inferred for such failures.
RATIONALE: A closed convex domain cannot encode nontrivial periodic spacing. An adding operation therefore requires explicit admission rather than treating a periodic descriptor as an unrequested convex approximation.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
void add_congruence(const Congruence& cg); void add_congruences(const Congruence_System& cgs); void add_recycled_congruences(Congruence_System& cgs);
VERIFICATION_CRITERIA: Use raw affine equalities and constant modular predicates. Check exact and outward-normalized equality conjunctions, both signs, constant true/false proper congruences, empty receivers, copied/recycled systems, source ownership, invalid dimensions and unsupported periodic or non-difference forms.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeoperationsspec1.cc; tests/bdshapeoperationoracle.hh; tests/bdshapeoperationsfailure1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeoperationspublic1.cc; tests/BD_Shape/addconstraints1.cc; tests/BD_Shape/dimensioncontracts1.cc.
-
3. Conservative constraint refinement UID: PPL-SPEC-001092 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: refine_with_constraint(c) and refine_with_constraints(cs) shall refine the receiver using supported unary and coordinate-difference constraints. Supported nonconstant strict inequalities shall first be relaxed to their non-strict counterparts. The resulting supported inequalities and equalities shall be normalized outward as in 🔗 1. Addition of admitted bounded-difference constraints. Unsupported nonconstant linear forms shall be ignored.
Constant descriptors shall retain their exact logical meaning: a false constant constraint, including a strict zero boundary, shall make the result empty; a tautology shall have no effect. Empty receivers shall remain empty. Relaxing a strict boundary shall not be interpreted as an exact test of the original conjunction's feasibility.
A completed result shall contain every entry point satisfying the input descriptors and shall equal the conjunction of the entry set with the supported, relaxed, outward-normalized descriptors. Copying refinement shall preserve the input descriptor or system. A larger descriptor or system dimension shall throw std::invalid_argument without changing the entry set; zero trailing coordinates shall be admitted for smaller source dimensions.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
RATIONALE: Refinement accepts a wider descriptor language than strict addition. Its explicit ignored-form and strict-boundary rules make the resulting loss of precision predictable.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
void refine_with_constraint(const Constraint& c); void refine_with_constraints(const Constraint_System& cs);
VERIFICATION_CRITERIA: Independently filter raw forms, relax strict nonconstant bounds, normalize supported bounds outward and conjoin halfspaces. Include a singleton on a rejected strict boundary, unsupported sums, constant strict falsehoods, exact/inexact equalities, empty receivers, batches, source preservation and incompatible dimensions.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeoperationsspec1.cc; tests/bdshapeoperationoracle.hh; tests/bdshapeoperationsfailure1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeoperationspublic1.cc; tests/BD_Shape/constraints1.cc; tests/BD_Shape/dimensioncontracts1.cc.
-
4. Conservative congruence refinement UID: PPL-SPEC-001093 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: refine_with_congruence(cg) and refine_with_congruences(cgs) shall conjoin supported unary or coordinate-difference equalities, with the outward scalar normalization in 🔗 1. Addition of admitted bounded-difference constraints. Unsupported nonconstant equalities shall be ignored.
An inconsistent proper congruence shall make the result empty. Every other proper congruence shall have no effect; in particular, periodic spacing shall not be interpreted as an equality. A constant equality shall retain its exact tautology or falsehood meaning. An empty receiver shall remain empty.
A completed result shall contain all entry points satisfying the supplied congruences, and shall denote precisely the entry set conjoined with the admitted outward-normalized equalities, unless a false constant descriptor makes it empty. The input descriptors shall preserve their values. Source dimensions at most the receiver dimension shall be admitted with zero trailing coordinates; larger dimensions shall throw std::invalid_argument without changing the receiver's represented set.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
RATIONALE: Equality information can refine a convex difference domain, while periodic information may require a deliberate conservative omission. Constant modular falsehoods still have exact empty-set meaning.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
void refine_with_congruence(const Congruence& cg); void refine_with_congruences(const Congruence_System& cgs);
VERIFICATION_CRITERIA: Use independent equality halfspaces and constant modular arithmetic. Check ignored proper periodic predicates, inconsistent proper constants, unsupported sums, positive/negative equality normalization, empty receivers, single/system agreement, descriptor preservation and dimension rejection.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeoperationsspec1.cc; tests/bdshapeoperationoracle.hh; tests/bdshapeoperationsfailure1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeoperationspublic1.cc; tests/BD_Shape/constraints1.cc; tests/BD_Shape/dimensioncontracts1.cc.
-
1. Addition of optimally supported box constraints UID: PPL-SPEC-001016 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: add_constraint(c) shall admit a dimension-compatible linear constraint with at most one nonzero homogeneous coefficient. A nonconstant strict inequality shall additionally require a profile supporting open endpoints. The successful result shall enclose the intersection of the entry box and the constraint and remain contained in the entry box. With exact admitted endpoints and openness, that intersection shall be represented exactly; otherwise the affected factor shall use its least supported outward interval enclosure. Constant truth or falsity shall leave the value unchanged or make it empty, including the zero-dimensional cases.
A constraint of greater ambient dimension, a non-interval constraint, or an unsupported nonconstant strict inequality shall throw std::invalid_argument. The support checks shall still apply to an empty receiver. add_constraints(cs) shall apply the same obligations to the conjunction of all supplied constraints; a support error may follow earlier successful additions, so the system form shall not promise rollback. System ambient dimension, including unused trailing coordinates, shall be checked before refinement. Const descriptors shall retain their values.
add_recycled_constraints(cs) shall have the same mathematical result and shall leave the supplied mutable system safely destructible on ordinary or exceptional return. can_recycle_constraint_systems() shall return false. No right to reuse a recycled system's prior contents shall be inferred from this capability value.
The valid-profile, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Allocation and endpoint exceptions shall retain their delegated guarantees without a general rollback promise.
RATIONALE: Separable constraints can be enforced directly; unsupported relational information must be distinguished from an accepted conservative refinement.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void add_constraint(const Constraint& c); void add_constraints(const Constraint_System& cs); void add_recycled_constraints(Constraint_System& cs); static bool can_recycle_constraint_systems();
VERIFICATION_CRITERIA: Derive exact intersections for constant and one-coordinate constraints, both coefficient signs, fractional boundaries and all admitted strictness. Check closed-only profiles, non-interval rejection even on empty receivers, unused system dimensions, bulk partial failure, returned capability, recycled lifetime, preserved const donors and resource failure.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxrefinementspec1.cc; tests/boxrefinementoracle.hh; tests/boxallocationfixture.hh; tests/boxpublic1.cc.
-
Incoming link from: 2. Box construction from supported congruences1
2. Addition of optimally supported box congruences UID: PPL-SPEC-001017 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: add_congruence(cg) shall admit a dimension-compatible equality congruence with at most one nonzero homogeneous coefficient, and constant tautological or inconsistent proper congruences. An equality shall have the same numerical enclosure as addition of its equivalent linear equality under 🔗 1. Addition of optimally supported box constraints. A tautology shall leave the receiver unchanged; an inconsistency shall make it empty. A nontrivial proper congruence or a relational equality shall throw std::invalid_argument, including when the receiver is already empty.
add_congruences(cgs) shall apply these obligations to the conjunction of its entries. The whole system's ambient dimension shall be checked before addition, even if its nonzero coefficients use fewer dimensions. Any input of greater ambient dimension shall throw std::invalid_argument. A bulk support error may follow earlier changes; no rollback shall be promised. Const congruences and systems shall retain their values.
add_recycled_congruences(cgs) shall give the same mathematical result and leave its supplied mutable system safely destructible on success or exception. can_recycle_congruence_systems() shall return false; the caller shall not rely on a recycled input retaining its prior contents.
The valid-profile, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Allocation and endpoint exceptions shall retain their delegated guarantees without a general rollback promise.
RATIONALE: An interval product can enforce separable equalities directly but cannot generally express a periodic lattice constraint.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void add_congruence(const Congruence& cg); void add_congruences(const Congruence_System& cgs); void add_recycled_congruences(Congruence_System& cgs); static bool can_recycle_congruence_systems();
VERIFICATION_CRITERIA: Compare supported equalities with exact rational singleton intersections. Exercise true and false constant proper congruences, relational equalities, positive-modulus nontrivial rejection, both coefficient signs, empty/zero-dimensional boxes, system dimension and partial failures, recycled lifetime and const-source preservation.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxrefinementspec1.cc; tests/boxrefinementoracle.hh; tests/boxallocationfixture.hh; tests/boxpublic1.cc.
-
3. Conservative box refinement by linear constraints UID: PPL-SPEC-001018 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For a dimension-compatible constraint c, refine_with_constraint(c) shall produce a box X’ satisfying X∩{x : c(x)} ⊆ X’ ⊆ X, where X is the receiver's entry set. Unlike optimal addition, refinement shall admit relational constraints and strict constraints under closed-only profiles, using outward supported bounds where necessary. It shall not reject a constraint solely because its exact intersection is not a box.
A constant inconsistency shall make the box empty; a constant tautology shall preserve it. A separable constraint shall refine its affected factor; relational constraints shall propagate necessary coordinate bounds and need not yield the least box enclosure. Empty shall remain empty. refine_with_constraints(cs) shall perform at most one refinement step per constraint in one traversal, stopping early on detected emptiness. The result may depend on traversal order; no fixed-point or least-enclosure guarantee shall be inferred.
Dimension mismatch, including excess system ambient dimension, shall throw std::invalid_argument before replacement. The receiver's ambient dimension and the supplied const descriptors shall remain unchanged.
The valid-profile, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Allocation and endpoint exceptions shall retain their delegated guarantees without a general rollback promise.
RATIONALE: Sound coordinate refinement can use relational information without pretending that a Cartesian box represents its full conjunction exactly.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void refine_with_constraint(const Constraint& c); void refine_with_constraints(const Constraint_System& cs);
VERIFICATION_CRITERIA: Check exact satisfying rational valuations remain enclosed and that results stay within the entry box. Include equality and both inequalities, zero/nonzero coefficient signs, open and closed-only profiles, constants, unbounded factors, empty/lazy states, single-pass systems and order-sensitive examples, preserved descriptors and dimension errors.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxrefinementspec1.cc; tests/boxrefinementoracle.hh; tests/boxallocationfixture.hh; tests/boxpublic1.cc; tests/Box/refinewithconstraints2.cc.
-
4. Conservative box refinement by linear congruences UID: PPL-SPEC-001019 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For a dimension-compatible congruence g, refine_with_congruence(g) shall produce X’ with X∩{x : g(x)} ⊆ X’ ⊆ X. An equality congruence shall use the linear-constraint refinement in 🔗 3. Conservative box refinement by linear constraints. A constant inconsistent proper congruence shall make the receiver empty. Other proper congruences may leave its box unchanged, retaining soundness without claiming an explicit lattice representation or periodic endpoint tightening.
refine_with_congruences(cgs) shall refine the conjunction by applying the supported per-entry refinement and may stop when emptiness is detected. It shall not require a fixed point or least box enclosure. Empty shall remain empty and zero-dimensional constants shall retain their logical meaning. Input congruences and systems shall remain unchanged. An input or system ambient dimension larger than the box dimension shall throw std::invalid_argument before replacement; the receiver dimension shall remain unchanged.
The valid-profile, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Allocation and endpoint exceptions shall retain their delegated guarantees without a general rollback promise.
RATIONALE: A sound periodic-constraint refinement can retain the original interval product when a stronger periodic representation is unavailable.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void refine_with_congruence(const Congruence& cg); void refine_with_congruences(const Congruence_System& cgs);
VERIFICATION_CRITERIA: Check exact equality refinements, constant proper truths/falsities, nontrivial periodic constraints whose satisfying samples are retained, negative affine terms, bulk equalities and periodic combinations, empty/zero-dimensional cases, unused system dimensions and source preservation.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxrefinementspec1.cc; tests/boxrefinementoracle.hh; tests/boxallocationfixture.hh; tests/boxpublic1.cc.
-
5. Controlled box constraint propagation UID: PPL-SPEC-001020 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For dimension-compatible linear constraints, propagation shall tighten coordinate bounds without deleting any entry point satisfying the supplied constraint or conjunction, and without enlarging the entry box. It shall accept equality and strict or nonstrict inequality constraints under the selected supported numerical profile, retaining required outward rounding and any openness the profile can represent. Constant contradictions shall make the box empty; tautologies and empty inputs shall retain their set meanings.
propagate_constraint(c) shall perform one propagation step for the constraint. propagate_constraints(cs, max_iterations) shall make at most max_iterations passes when that argument is positive, using each constraint at most once per pass unless emptiness is detected first. A pass leaving every interval unchanged shall terminate propagation early. A finite pass limit shall permit later calls to continue tightening the current box.
Zero, including the default argument, shall mean no pass limit and may lead to nontermination. Even reaching an unchanged pass shall not establish a least box enclosure of the conjunction. Traversal and intermediate rounding may affect the final precision. Greater constraint or system ambient dimension shall throw std::invalid_argument before replacement. The box dimension and const input descriptors shall remain unchanged.
The valid-profile, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Allocation and endpoint exceptions shall retain their delegated guarantees without a general rollback promise.
RATIONALE: Propagation must retain sound bounds while giving callers an explicit finite-work control for recurrences that need not stabilize.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void propagate_constraint(const Constraint& c); void propagate_constraints(const Constraint_System& cs, dimension_type max_iterations=0);
VERIFICATION_CRITERIA: Use independent exact rational satisfying valuations and coordinate limits, all coefficient signs, fractional arithmetic, strict/open bounds, unbounded terms, constants, empty/lazy states and mismatches. Exercise one versus several finite passes, continuation, early stability and empty-system termination. Test unlimited mode only on proven terminating examples; analyze its absence of a general convergence promise. Exercise finite native operands whose intermediate arithmetic overflows to infinity. Check that discarding an unusable infinite candidate retains a sound entry enclosure, including strict and nonstrict numerical result relations.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxrefinementspec1.cc; tests/boxrefinementoracle.hh; tests/boxallocationfixture.hh; tests/boxpublic1.cc. tests/Box/propagateconstraints1.cc; tests/Box/propagateconstraints2.cc; tests/Box/refinewithconstraints2.cc.
-
Incoming link from: 2. Copying congruence-system addition and refinement1
1. Single congruence addition and refinement UID: PPL-SPEC-001274 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000043 Grid intersection and grid hull (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_congruence(cg) and refine_with_congruence(cg) shall replace the receiver G by G∩{x ∣ cg(x)}. Equalities and proper congruences shall have their meanings in 🔗 1. Rational-grid values, coefficient profile and valid use. Tautologies shall preserve the grid and contradictions shall produce empty. Lower-dimensional rows shall be zero extended; excess declared row dimension shall throw std::invalid_argument before mutation, including for an empty receiver. The external row value shall be preserved.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Adding a congruence is an exact meet, including modular inconsistency that is detected only when descriptions are normalized.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void add_congruence(const Congruence& cg); void refine_with_congruence(const Congruence& cg);
VERIFICATION_CRITERIA: Cross equality, proper, tautological and contradictory rows with empty, singleton, periodic and continuous grids, both storage choices, pending contradictions and both cached descriptions. Check lower/excess dimensions and source preservation.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/addcongruence1.cc; tests/Grid/refinewithcongruences1.cc; tests/gridrefinementspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.
-
Incoming link from: 3. Recycling congruence-system addition1
2. Copying congruence-system addition and refinement UID: PPL-SPEC-001275 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000043 Grid intersection and grid hull (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_congruences(cgs) and refine_with_congruences(cgs) shall intersect the receiver with the conjunction of all input rows, exactly as repeated 🔗 1. Single congruence addition and refinement. An empty system shall preserve the grid. An independently supplied input shall retain its value, declared dimension and storage, including on exceptional return. The receiver's current congruence view may be supplied; its entry value shall be used before invalidation. Excess declared input dimension shall throw std::invalid_argument before mutation, even for no rows or an empty receiver.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Copying a conjunction must not depend on row order, redundancy or whether the source is a receiver-owned current view.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void add_congruences(const Congruence_System& cgs); void refine_with_congruences(const Congruence_System& cgs);
VERIFICATION_CRITERIA: Compare bulk and single-row exact meets with independent cosets. Include borrowed self systems, unused declared dimensions, empty systems, contradictions and source records.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/addcongruences1.cc; tests/Grid/refinewithcongruences1.cc; tests/gridrefinementspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.
-
3. Recycling congruence-system addition UID: PPL-SPEC-001276 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000043 Grid intersection and grid hull (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_congruences(std::move(cgs)) and add_recycled_congruences(cgs) shall produce the same mathematical grid and dimension-rejection behavior as 🔗 2. Copying congruence-system addition and refinement. The source shall be a separate writable system without receiver-owned storage. Its storage may be transferred; after successful or exceptional return it shall retain ownership sufficient for destruction, without a guarantee about its rows or suitability for queries.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Recycling changes source ownership permissions without changing conjunction semantics.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void add_congruences(Congruence_System&& cgs); void add_recycled_congruences(Congruence_System& cgs);
VERIFICATION_CRITERIA: Check copied and recycled systems against the same independent intersections, including empty, contradictory, lower-dimensional and excess-dimensional systems. Exercise allocation failures and destruction of both objects.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/addcongruences1.cc; tests/gridrefinementspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc; tests/gridconsuminginsertions1.cc.
-
Incoming link from: 5. Copying and recycling strict constraint-system addition1
4. Strict addition of a single linear constraint UID: PPL-SPEC-001277 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_constraint(c) shall intersect the receiver exactly with an equality or constant constraint. A constant true inequality shall preserve the grid; a constant false inequality shall produce empty. A nonconstant inequality shall throw std::invalid_argument when processed. An already marked empty receiver may return without processing a dimension-compatible row. Excess declared constraint dimension shall throw std::invalid_argument before mutation, even for empty.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: A grid can represent affine equalities and the two constant truth values; a general half-space is not a grid.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void add_constraint(const Constraint& c);
VERIFICATION_CRITERIA: Check equalities, strict/non-strict constant truth values, nonconstant inequalities, zero dimensions and dimension errors. Distinguish unsupported-row processing from the marked-empty early return.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/addconstraint1.cc; tests/gridrefinementspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc; tests/Grid/addconstraints1.cc.
-
5. Copying and recycling strict constraint-system addition UID: PPL-SPEC-001278 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_constraints(cs) and add_recycled_constraints(cs) shall process the conjunction using the supported-constraint rules in 🔗 4. Strict addition of a single linear constraint. Excess declared system dimension shall throw std::invalid_argument before mutation, even for no rows or empty. Copying shall preserve the source value, dimension and storage. Recycling requires a separate writable source and guarantees its destruction after return; it need not actually transfer its storage. When an unsupported inequality is reached, earlier accepted rows may already have changed the receiver; rollback shall not be assumed.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: System processing preserves exact supported meets but does not offer transactional rejection of a later unsupported row.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void add_constraints(const Constraint_System& cs); void add_recycled_constraints(Constraint_System& cs);
VERIFICATION_CRITERIA: Check empty and mixed supported systems, row ordering, a later unsupported inequality, source preservation, zero dimensions, excess declared dimensions and allocation failure ownership. Check coefficient storage transfer for an equality when source and destination representations match, and NNC equality rows with hidden epsilon coordinates, including dimension extension.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/addconstraints1.cc; tests/gridrefinementspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.
-
6. Conservative refinement by linear constraints UID: PPL-SPEC-001279 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: refine_with_constraint(c) and refine_with_constraints(cs) shall intersect with every equality and produce empty for an inconsistent constant constraint. Other inequalities shall be ignored. Thus the result shall contain the concrete constrained set and shall never introduce points outside the entry grid. Input values shall be preserved. Excess declared input dimension shall throw std::invalid_argument before mutation, including an empty receiver or system.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Conservative refinement can ignore unsupported half-spaces while still recognizing a false constant constraint.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void refine_with_constraint(const Constraint& c); void refine_with_constraints(const Constraint_System& cs);
VERIFICATION_CRITERIA: Compare with the conjunction of equalities and constant truth values; cross nonconstant inequalities, inconsistency, dimensions, source storage and cache histories.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/refinewithconstraints1.cc; tests/gridrefinementspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.
-
2. Constraint refinement through interval abstraction UID: PPL-SPEC-000719 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000021 Interval boundary membership (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
STATEMENT: add_constraint(c) shall replace receiving entry set A by an outward interval enclosure of its intersection with the interval abstraction of c described by 🔗 1. Interval construction from ordinary real constraints. The represented result shall retain every input value satisfying c and shall introduce no value outside A.
With exact conversion, supported openness and an interval-valued constraint, the result shall be the exact set intersection. A disequality shall first be replaced by its interval hull; this refinement shall not promise removal of the excluded point when that hull fills the puncture. An unconstrained constraint shall preserve A; a false constraint shall give empty. The receiver shall be initialized and valid, and the ordinary-real carrier and admitted relation set shall follow 🔗 1. Interval construction from ordinary real constraints. Separate constraint/cutoff objects shall remain unchanged.
Arguments shall be live and valid constraints under 🔗 4. Interval constraints retain relation and cutoff ownership; borrowed cutoffs shall remain live and retain stable values throughout the operation. Active finite rational cutoffs shall be canonical. Receiving boundary/information policies shall admit the result, including empty values where possible. Numerical conversion, policy, finite-range, resource, shared-temporary and caller-owned FPU prerequisites shall follow the selected endpoint operations. Access shall be synchronized against modification. No additional library initialization shall be required. Underlying numerical or allocation failure shall retain the underlying operation's guarantees. Returned I_Result values shall have the logical shape/status meanings of 🔗 1. Interval result possibilities and status-flag set operations; only established claims shall be reported.
RATIONALE: Intersecting with a sound interval abstraction gives conservative refinement while making its disequality precision explicit.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Interval<Boundary, Info>:
template <Interval_Constraint_Source C> I_Result add_constraint(const C& c);
VERIFICATION_CRITERIA: For all finite endpoint orders/topologies, compare refinement with the intersection of the original literal set and the independent constraint hull. Include empty and universe receivers, tautology, contradiction, equality, disequality, open boundaries and preserved cutoffs. Confirm satisfying-value inclusion and absence of points outside the entry interval.
SOURCE: src/Interval_defs.hh; src/Interval_templates.hh; tests/intervalconstructionspec1.cc.
-
4. Limited semantic octagonal extrapolation UID: PPL-SPEC-001217 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000065 Octagonal widening guarantees (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: With Y ⊆ X in the ascending operand order, limited_BHMZ05_extrapolation_assign shall improve the semantic widening of 🔗 3. Semantic octagonal widening and default widening alias using selected limits.
The supplied system shall have dimension no greater than the operands and shall contain no strict inequalities. Recognized limits shall be nonstrict unary inequalities and two-coordinate inequalities with equal absolute nonzero coefficients; equalities and other linear forms shall not be used as limiting inequalities. Normalize each recognized inequality to the signed forms of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens, rounding its bound outward in the selected profile. Select only normalized bounds satisfied by the receiver's entry set X. A rounded bound may be weaker than the original constraint; selection shall not promise that the result satisfies the original constraint.
Let L be the conjunction of the selected bounds and W the base operator's delayed or undelayed result. The final result shall denote W∩L, contain X and be contained in W. The base operator shall make its token decision before applying L; a limit that recovers all discarded information shall not refund a token. Positive tokens shall retain X.
An empty argument, empty receiver or zero-dimensional operands shall preserve the receiver's entry set without consuming a token. The supplied constraint system shall retain its value and ownership. Incompatible constraint dimensions and strict inequalities shall throw std::invalid_argument before changing the represented receiver or token counter, including in zero dimensions.
With a fixed finite limiting system, fixed dimension/profile, the admitted normalization and widening prerequisites, and a finite unreplenished token budget, the prescribed ascending recurrence shall retain finite stabilization. Arbitrarily changing the limiting system shall carry no such general guarantee.
The supported-profile, range, rounding, initialization, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Operands shall have equal ambient dimension and satisfy the stated mathematical inclusion; this inclusion is a caller precondition rather than a required runtime check. Unequal dimensions shall throw std::invalid_argument before changing the receiver's represented set or a supplied token counter. A distinct argument shall retain its represented set, although logically const operations may change its cached representation. Self-aliasing shall be admitted.
Underlying numerical, allocation and cooperative-abandonment failures may propagate. Owned temporary storage shall be released and surviving objects shall retain safely destructible ownership. Such failures shall not imply a general rollback guarantee. Successful results shall own their representation independently of the argument's lifetime.
RATIONALE: Satisfied supported limits recover selected information after widening; unsupported facets and stronger unrounded constraints cannot silently become extra guarantees of a weakly relational result.
INTERFACE: Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:
void limited_BHMZ05_extrapolation_assign(const Octagonal_Shape& y, const Constraint_System& cs, unsigned* tp = nullptr);
VERIFICATION_CRITERIA: Independently normalize recognized limits, determine satisfaction by the entry set, compute the semantic base widening and intersect the models. Cover all signs/scalings, ignored equalities and nonoctagonal rows, unsatisfied limits, outward half-unit integral bounds, tokens decided before limiting, fixed-limit ascending sequences, source preservation, aliases, empty/cache histories and rejected strict/dimension-incompatible systems.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 3.3, 4.2 and 7, widening up to bounds, semantic octagonal widening and outward approximation. BagnaraHRZ05SCP | Section 7, fixed finite limiting systems and token delay.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeconvergencespec1.cc; tests/octagonalshapeconvergenceallocationsspec1.cc; tests/octagonalshapeconvergencepublic1.cc; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh. tests/Octagonal_Shape/limitedbhmz05extrapolation1.cc.
-
6. Limited threshold octagonal extrapolation UID: PPL-SPEC-001219 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000065 Octagonal widening guarantees (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: With Y ⊆ X in the ascending operand order, limited_CC76_extrapolation_assign shall improve the default threshold extrapolation of 🔗 1. Default octagonal stop points using selected limits.
The supplied system shall have dimension no greater than the operands and shall contain no strict inequalities. Recognized limits shall be nonstrict unary inequalities and two-coordinate inequalities with equal absolute nonzero coefficients; equalities and other linear forms shall not be used as limiting inequalities. Normalize each recognized inequality to the signed forms of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens, rounding its bound outward in the selected profile. Select only normalized bounds satisfied by the receiver's entry set X. A rounded bound may be weaker than the original constraint; selection shall not promise that the result satisfies the original constraint.
Let L be the conjunction of the selected bounds and W the base operator's delayed or undelayed result. The final result shall denote W∩L, contain X and be contained in W. The base operator shall make its token decision before applying L; a limit that recovers all discarded information shall not refund a token. Positive tokens shall retain X.
An empty argument, empty receiver or zero-dimensional operands shall preserve the receiver's entry set without consuming a token. The supplied constraint system shall retain its value and ownership. Incompatible constraint dimensions and strict inequalities shall throw std::invalid_argument before changing the represented receiver or token counter, including in zero dimensions.
This limited operator shall not add a general finite-stabilization guarantee to relational CC76 extrapolation, even with a fixed finite limiting system.
The supported-profile, range, rounding, initialization, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Operands shall have equal ambient dimension and satisfy the stated mathematical inclusion; this inclusion is a caller precondition rather than a required runtime check. Unequal dimensions shall throw std::invalid_argument before changing the receiver's represented set or a supplied token counter. A distinct argument shall retain its represented set, although logically const operations may change its cached representation. Self-aliasing shall be admitted.
Underlying numerical, allocation and cooperative-abandonment failures may propagate. Owned temporary storage shall be released and surviving objects shall retain safely destructible ownership. Such failures shall not imply a general rollback guarantee. Successful results shall own their representation independently of the argument's lifetime.
RATIONALE: Limiting constraints and scalar thresholds serve different purposes. Limits can recover satisfied information after threshold extrapolation without turning the underlying CC76 method into a semantic widening.
INTERFACE: Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:
void limited_CC76_extrapolation_assign(const Octagonal_Shape& y, const Constraint_System& cs, unsigned* tp = nullptr);
VERIFICATION_CRITERIA: Use the independent doubled-unary/binary threshold model and independently selected limiting bounds, then compare their conjunction with the result. Include exact and outward-rounded limits, ignored equality/general rows, unsatisfied limits, token consumption before limiting, aliases, source and system preservation, empty/zero-dimensional inputs and all required invalid input rejections.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 3.1, 3.3, 4 and 7, relational extrapolation, limiting bounds and numerical propagation. BagnaraHRZ05SCP | Section 7, widening with tokens and fixed finite limits.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeconvergencespec1.cc; tests/octagonalshapeconvergenceallocationsspec1.cc; tests/octagonalshapeconvergencepublic1.cc; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh. tests/Octagonal_Shape/limitedcc76extrapolation1.cc.
-
Incoming link from: 3. Generalized interval-linear-form comparisons1
2. Conservative interval-linear-form inequality refinement UID: PPL-SPEC-001237 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For a supported native floating boundary type T, let X be the receiver's entry set and let L(x) and R(x) be the real value sets of its dimension-compatible interval linear-form arguments. Coefficient and constant choices shall be independent, including when the same form object is supplied twice. After refine_with_linear_form_inequality, the receiver shall have the same ambient dimension and denote a set Y satisfying
{x ∈ X ∣ ∃l ∈ L(x), r ∈ R(x) : l ≤ r} ⊆ Y ⊆ X.Valid empty coefficient or constant intervals shall be admitted; their empty choice set contributes no satisfying valuations, so a general conservative refinement may leave the input unchanged.
The general operation may lose precision. Comparisons involving constants only, including cancellation to a constant comparison, may leave the input unchanged.
For closed nonempty constant intervals and forms having at most one nonzero variable coefficient each, all such coefficients being singleton + 1 or − 1, consider a nonconstant comparison reducible to one unary or signed binary octagonal inequality. If the required constant endpoint subtraction and doubled-unary encoding are exact in the selected boundary profile, the result shall equal the intersection of X with that closed inequality, using the lower constant endpoint on the left and upper constant endpoint on the right. Opposite unit coefficients on the same coordinate shall therefore use the corresponding normalized ±2xi cut. All four sign combinations on distinct coordinates shall be covered. This precision clause shall not apply to a constant-only comparison.
Empty input shall remain empty. An argument form whose space dimension exceeds the receiver's shall throw std::invalid_argument before changing the represented set, including on empty input. Successful refinement shall preserve the source forms and leave a valid owned receiver.
The format shall satisfy its configured supported-format predicate. The interval coefficient representation and arithmetic shall satisfy 🔗 1. Interval-linear-form meaning and numerical prerequisites, including stored-value and endpoint-access prerequisites; coefficient and constant intervals shall be bounded. The caller shall provide and retain ownership of an upward FPU environment. For admitted inputs, the implementation shall respect the preconditions of its selected numerical policies when carrying out intermediate operations. Library calls shall not transfer ownership of the forms or change their coefficient values.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall hold. Borrowed forms and interval storage shall remain live throughout the call. Recoverable numerical and resource exceptions may propagate; discarded owned temporaries shall be released and the receiver shall remain safely destructible, without a rollback promise.
RATIONALE: A floating comparison filters existing correlated states; coefficient uncertainty and outward arithmetic must not discard a satisfying state.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::Octagonal_Shape<T>.
template <typename Interval_Info> void refine_with_linear_form_inequality( const Linear_Form<Interval<T, Interval_Info>>& left, const Linear_Form<Interval<T, Interval_Info>>& right);
VERIFICATION_CRITERIA: Partition coordinate signs independently, derive exact rational minimum-left/maximum-right affine inequalities, intersect each with the input halfspaces, and check every resulting piece is contained while the result stays inside the input. Cover unit, same-coordinate opposite unit, uncertain-sign, nonunit and sparse multiple-variable forms; exact and genuinely inexact arithmetic; correlations, recession directions, source aliases, bottom, dimension errors and owned-resource failures.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 4 and 7 (domain and floating arithmetic background). Mine04 | Sections 5 and 6.1, Tests (interval linear forms and relational guard abstraction).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; src/Interval_defs.hh; doc/definitions.dox; tests/Concrete_Expression/octagonalshape2.cc; tests/Concrete_Expression/octagonalreflection1.cc; tests/octagonalshapeintervalformspec1.cc; tests/octagonalshapeintervalformpublic1.cc; tests/octagonalshapeintervalformfailure1.cc.
-
3. Generalized interval-linear-form comparisons UID: PPL-SPEC-001238 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For the form value sets and numerical admission of 🔗 2. Conservative interval-linear-form inequality refinement, generalized_refine_with_linear_form_inequality shall preserve the ambient dimension and denote an enclosure of the input states satisfying its relation, without introducing states outside the input. The two sides shall use independent coefficient choices.
LESS_OR_EQUAL shall apply the left-to-right inequality refinement; GREATER_OR_EQUAL shall apply the reversed refinement. LESS_THAN and GREATER_THAN may use those same closed relaxations of the strict comparisons. EQUAL shall apply both non-strict orientations, retaining all states for which the two form value intervals overlap. NOT_EQUAL shall leave the represented set unchanged. No general least-result claim shall follow from these dispatch rules.
Both arguments shall undergo the documented dimension validation for every named relation, including NOT_EQUAL and empty receivers. Incompatibility shall throw std::invalid_argument before changing the represented set. A Relation_Symbol having the unnamed language-admissible value 0 or 7 shall throw std::runtime_error before mutation. Values outside the C++ enum's valid representation range are outside valid language use. Empty input and source-form values shall be preserved.
The format shall satisfy its configured supported-format predicate. The interval coefficient representation and arithmetic shall satisfy 🔗 1. Interval-linear-form meaning and numerical prerequisites, including stored-value and endpoint-access prerequisites; coefficient and constant intervals shall be bounded. The caller shall provide and retain ownership of an upward FPU environment. For admitted inputs, the implementation shall respect the preconditions of its selected numerical policies when carrying out intermediate operations. Library calls shall not transfer ownership of the forms or change their coefficient values.
The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall hold. Borrowed forms and interval storage shall remain live throughout the call. Recoverable numerical and resource exceptions may propagate; discarded owned temporaries shall be released and the receiver shall remain safely destructible, without a rollback promise.
RATIONALE: The relation selects the comparison orientation and its admissible closed relaxation; validation must not depend on the selected dispatch shortcut.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::Octagonal_Shape<T>.
template <typename Interval_Info> void generalized_refine_with_linear_form_inequality( const Linear_Form<Interval<T, Interval_Info>>& left, const Linear_Form<Interval<T, Interval_Info>>& right, Relation_Symbol relsym);
VERIFICATION_CRITERIA: Use the independent sign-partition guard oracle for all six named relations, equality overlap, strict boundary witnesses, shared form objects and disequality identity. Check dispatch against the appropriate basic orientations, source preservation, dimensions on every branch, valid unnamed enum rejection and failure channels.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 4 and 7 (journal background on octagonal shapes and floating implementation). Mine04 | Sections 5 and 6.1, Tests (interval-coefficient guard abstractions).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; src/Interval_defs.hh; doc/definitions.dox; tests/Concrete_Expression/octagonalshape2.cc; tests/Concrete_Expression/octagonalreflection1.cc; tests/octagonalshapeintervalformspec1.cc; tests/octagonalshapeintervalformpublic1.cc; tests/octagonalshapeintervalformfailure1.cc.
-
1. Addition of supported octagonal constraints UID: PPL-SPEC-001167 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000013 Meaning of linear constraints (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_constraint(c) shall conjoin the receiver with the target-profile normalization of the admitted constraint c. The nonconstant supported forms shall be unary bounds and signed two-coordinate bounds with equal nonzero coefficient magnitudes, including equalities. Constant tautologies shall have no effect; constant falsehoods shall make the receiver empty. Constant strict conditions shall retain their truth value. A nonconstant strict constraint or an unsupported nonconstant linear form shall throw std::invalid_argument without changing the receiver's represented set.
For a unary normalized inequality sxi ≤ b, its stored primitive bound shall be the least admitted target bound at least 2b in the doubled-unary encoding. For a binary normalized inequality sixi + sjxj ≤ b, the bound shall be the least admitted target bound at least b. Signs shall belong to { − 1, 1}. Each side of an equality shall have its own outward bound. The result shall be exactly the intersection of the entry set with these normalized target inequalities; when the normalized bounds are exact, this shall be the concrete conjunction. Every entry point satisfying c shall be retained.
add_constraints(cs) and add_recycled_constraints(cs) shall conjoin all admitted system rows with the same normalization and validation rules. A descriptor or system dimension at most the receiver dimension shall be accepted, with zero coefficients in omitted trailing coordinates. A larger dimension shall throw std::invalid_argument before changing the receiver's represented set. An empty receiver shall still undergo these validation rules.
An ordinary copying call shall preserve its source descriptor or system. The result shall not borrow source storage. After a recycled-system call, including exceptional return, the only required property of cs shall be safe destruction. A rejected system need not undo earlier accepted rows; no particular row visitation order shall be promised.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands and input descriptors shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved. Recycled sources shall retain their explicit destruction-only guarantee.
RATIONALE: An adding operation validates optimal support instead of silently discarding unsupported information. The doubled unary representation must be normalized before outward rounding, including when the storage type is integral.
INTERFACE: Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:
void add_constraint(const Constraint& c); void add_constraints(const Constraint_System& cs); void add_recycled_constraints(Constraint_System& cs);
VERIFICATION_CRITERIA: Normalize raw integer coefficients with exact GMP rationals, using all four binary sign combinations and unary doubled bounds. Conjoin the independent halfspaces with the entry real set. Cover equality, common scales, negative constants, exact and inexact normalization, tautology, falsehood, strict constant rows, unsupported forms, dimension validation on empty and nonempty receivers, ordinary and recycled systems, source ownership and partial batch failure. Do not query recycled donors beyond their destruction guarantee.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4, Definition 4 and Definition 5, coherent signed-normal encoding and rational strong closure.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/Octagonal_Shape.cc; tests/octagonalshapeoperationsspec1.cc; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapeoperationspublic1.cc; tests/Octagonal_Shape/constraints1.cc; tests/Octagonal_Shape/systemdimension1.cc; tests/octagonalshapeoperationsfailure1.cc; tests/boxallocationfixture.hh.
-
2. Addition of supported octagonal congruences UID: PPL-SPEC-001168 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000014 Meaning of linear congruences (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: add_congruence(cg) shall accept congruence equalities whose expression is an admitted unary or equal-magnitude signed two-coordinate equality, together with constant tautologies and falsehoods. An accepted equality shall conjoin the two outward-normalized inequalities defined in 🔗 1. Addition of supported octagonal constraints. A tautology shall have no effect; a falsehood shall make the receiver empty.
A nontrivial proper congruence or an unsupported nonconstant equality shall throw std::invalid_argument without changing the receiver's represented set. An adding call shall not silently discard a nontrivial periodic restriction. add_congruences(cgs) and add_recycled_congruences(cgs) shall apply these rules to the system.
A descriptor or system dimension above the receiver dimension shall throw std::invalid_argument before changing its represented set, including on an empty receiver. Smaller dimensions shall have zero trailing coefficients. Ordinary copying forms shall preserve their source values and shall not borrow their storage. A recycled system shall be required only to remain safely destructible after normal or exceptional return. If a later system row is rejected, preceding accepted rows need not be rolled back; no row visitation order shall be promised.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands and input descriptors shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved. Recycled sources shall retain their explicit destruction-only guarantee.
RATIONALE: Equality is convex and can be expressed by opposite octagonal bounds, while a nontrivial periodic congruence generally cannot. Explicit rejection keeps addition distinct from conservative refinement.
INTERFACE: Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:
void add_congruence(const Congruence& cg); void add_congruences(const Congruence_System& cgs); void add_recycled_congruences(Congruence_System& cgs);
VERIFICATION_CRITERIA: Derive equality halfspaces independently and apply the rational normalization oracle for 🔗 1. Addition of supported octagonal constraints. Include scaled unary and all signed binary equalities, constant true/false proper congruences, nontrivial periodic rows, unsupported equalities, trailing dimensions, empty states, ordinary/recycled batches and late rejection. Preserve copying inputs and safely destroy recycled inputs.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4, Definition 4 and Definition 5, coherent signed-normal encoding and rational strong closure.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/Octagonal_Shape.cc; tests/octagonalshapeoperationsspec1.cc; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapeoperationspublic1.cc; tests/Octagonal_Shape/congruences1.cc; tests/Octagonal_Shape/systemdimension1.cc; tests/octagonalshapeoperationsfailure1.cc; tests/boxallocationfixture.hh; tests/Octagonal_Shape/constraints1.cc.
-
3. Conservative refinement by linear constraints UID: PPL-SPEC-001169 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000013 Meaning of linear constraints (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: refine_with_constraint(c) shall refine the receiver by an admitted linear constraint without rejecting a row merely because its nonconstant form is not octagonal. A supported closed unary or equal-magnitude signed binary row shall have the outward-normalized conjunction in 🔗 1. Addition of supported octagonal constraints. A supported nonconstant strict inequality shall first be relaxed to its non-strict counterpart and then normalized. An unsupported nonconstant linear form shall have no effect.
Constant true rows shall have no effect and constant false rows shall make the receiver empty, including the strict false condition 0 > 0. An empty receiver shall remain empty. refine_with_constraints(cs) shall apply these rules to the entire conjunction. For entry set X, exact condition set C and result R, X∩C ⊆ R ⊆ X shall hold. For a system, the represented result shall be the intersection with all the retained, relaxed and outward-normalized rows; ignored rows shall impose no restriction.
Source dimensions at most the receiver dimension shall be admitted with zero trailing coefficients. A larger descriptor or system dimension shall throw std::invalid_argument before changing the receiver's represented set, including when the receiver is empty. Copying calls shall preserve source descriptors and own any resulting bounds independently. Exceptions during a system call need not roll back previously applied refinements.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands and input descriptors shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
RATIONALE: Filtering may conservatively relax strictness or omit unsupported rows, while adding has a stricter admission contract. The two operations must still agree on supported closed primitive normalization.
INTERFACE: Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:
void refine_with_constraint(const Constraint& c); void refine_with_constraints(const Constraint_System& cs);
VERIFICATION_CRITERIA: Conjoin independently normalized supported rows, relax nonconstant strict rows, and leave unsupported rows out of the expected conjunction. Verify exact result equality to that conjunction and containment of every original satisfying point. Cover constants, unsupported sparse forms, all signs, rounded cutoffs, empty/zero dimensions, late inconsistent rows, dimension errors, source preservation and safe failure cleanup.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4, Definition 4 and Definition 5, coherent signed-normal encoding and rational strong closure.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/Octagonal_Shape.cc; tests/octagonalshapeoperationsspec1.cc; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapeoperationspublic1.cc; tests/Octagonal_Shape/constraints1.cc; tests/Octagonal_Shape/systemdimension1.cc; tests/octagonalshapeoperationsfailure1.cc; tests/boxallocationfixture.hh.
-
4. Conservative refinement by congruences UID: PPL-SPEC-001170 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000014 Meaning of linear congruences (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: refine_with_congruence(cg) shall conjoin an octagonal congruence equality using the outward-normalized opposite inequalities in 🔗 1. Addition of supported octagonal constraints. An unsupported nonconstant equality shall have no effect. A proper constant false congruence shall make the receiver empty; other proper congruences shall have no effect. A tautology shall have no effect. The real carrier in 🔗 1. Octagonal values, numerical profiles and valid use shall remain unchanged; ignored periodic information shall not turn this call into an integer-valued state restriction.
refine_with_congruences(cgs) shall apply those rules to the conjunction. For entry set X, supplied congruence set C and result R, X∩C ⊆ R ⊆ X shall hold. The result shall equal the intersection with all accepted normalized equality rows, unless a false row makes it empty. Empty receivers shall remain empty.
Larger descriptor or system dimensions shall throw std::invalid_argument before changing the receiver's represented set, including on empty receivers. Smaller dimensions shall use zero trailing coefficients. Copying calls shall preserve their source values; result bounds shall not borrow source storage. A system call that throws need not roll back preceding accepted refinements.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands and input descriptors shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
RATIONALE: A convex octagonal refinement can retain supported equalities while ignoring nonconvex periodic information. Soundness concerns the real input states satisfying the congruence, not an implicit integer carrier.
INTERFACE: Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:
void refine_with_congruence(const Congruence& cg); void refine_with_congruences(const Congruence_System& cgs);
VERIFICATION_CRITERIA: Use independent rational equality halfspaces and direct truth tests for constant proper congruences. Exercise all signed binary equalities, unary halves, unsupported unequal-magnitude equalities, periodic rows, dimensions, empty receivers, copying systems and source lifetime. Require both contraction and preservation of states satisfying the original congruences.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4, Definition 4 and Definition 5, coherent signed-normal encoding and rational strong closure.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/Octagonal_Shape.cc; tests/octagonalshapeoperationsspec1.cc; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapeoperationspublic1.cc; tests/Octagonal_Shape/congruences1.cc; tests/Octagonal_Shape/systemdimension1.cc; tests/octagonalshapeoperationsfailure1.cc; tests/boxallocationfixture.hh; tests/Octagonal_Shape/constraints1.cc.
-
Incoming link from: 7. Octagonal construction from supported congruences1
6. Octagonal construction from supported constraints UID: PPL-SPEC-001151 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000013 Meaning of linear constraints (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from Constraint_System shall inherit its ambient dimension and describe the conjunction of its supported constraints, rounded outward where required by the coefficient profile. Supported nonconstant rows shall be weak inequalities or equalities with one nonzero coordinate coefficient, or two nonzero coordinate coefficients of equal absolute magnitude.
Normalization shall preserve the signs of both coordinates. For distinct coordinates, a(sixi + sjxj) ≤ b, with a > 0, shall use an outward approximation of b ⁄ a. Unary storage shall account for its doubled-coordinate encoding, so axi ≤ b shall use an outward approximation of 2b ⁄ a before interpreting the unary bound. Equality shall impose both corresponding weak inequalities. Exact representable normalized bounds shall retain their values. This shall give the optimal supported primitive bound in the selected profile; it shall not imply exact rational closure in a rounded profile.
Tautological rows shall impose no restriction; inconsistent rows shall make the represented conjunction empty. These constant-row meanings shall also apply to strict constant rows. A nontrivial strict row or non-octagonal row shall throw std::invalid_argument rather than silently being accepted as an exact supported descriptor. An empty constraint system shall give universe in the system's ambient dimension. The supplied system shall be preserved. can_recycle_constraint_systems() shall return false. Failed construction shall release its acquired resources.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
RATIONALE: Binary sign choices and the doubled unary encoding determine primitive precision; unsupported syntax needs an explicit rejection channel.
INTERFACE: Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library:
explicit Octagonal_Shape(const Constraint_System& cs); static bool can_recycle_constraint_systems();
VERIFICATION_CRITERIA: Normalize each row independently over rationals. Check all four binary signs, negative constants, equalities, doubled unary halves, rational third bounds and optimal outward primitive integer/native bounds. Include redundant and inconsistent conjunctions, strict tautology/inconsistency, unsupported strict and unequal-magnitude binary/general rows, empty systems with explicit ambient dimension, source preservation and failed-construction cleanup.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4, octagonal constraints and doubled unary encoding (PDF page index 9, zero-based).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/Octagonal_Shape.cc; tests/octagonalshapevaluesspec1.cc; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/octagonalshapevaluespublic1.cc; tests/Octagonal_Shape/constraints1.cc; tests/octagonalshapevaluesfailure1.cc; tests/Octagonal_Shape/congruences1.cc; tests/Octagonal_Shape/fromgrid1.cc; tests/Octagonal_Shape/dimensionlimits1.cc.
-
7. Octagonal construction from supported congruences UID: PPL-SPEC-001152 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000014 Meaning of linear congruences (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Construction from Congruence_System shall inherit its ambient dimension. A modulus-zero row shall be treated as its equality and shall use the supported signed unary/binary syntax and outward normalization in 🔗 6. Octagonal construction from supported constraints. Tautological congruences shall impose no restriction; inconsistent ones shall make the result empty. A nontrivial proper congruence or unsupported equality shall throw std::invalid_argument. Periodic solutions shall not be replaced by an integer-coordinate interpretation of the convex real carrier.
An empty congruence system shall produce universe in its ambient dimension. The source system shall be preserved. can_recycle_congruence_systems() shall return false. Failed construction shall release acquired resources.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
A source dimension above the destination profile's max_space_dimension() shall throw std::length_error before source normalization or allocation of the corresponding target matrix storage.
RATIONALE: Affine equalities can define an octagon; nontrivial periodic restrictions need a richer representation.
INTERFACE: Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library:
explicit Octagonal_Shape(const Congruence_System& cgs); static bool can_recycle_congruence_systems();
VERIFICATION_CRITERIA: Check signed unary/binary equality constructors, including half-integral fixed coordinates, implicit equality chains, redundant rows and source-system preservation. Include proper tautologies/inconsistencies, rejected nontrivial proper congruences and non-octagonal equalities, zero dimensions and explicit system dimensions. Check failed-construction cleanup.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/Octagonal_Shape.cc; tests/octagonalshapevaluesspec1.cc; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/octagonalshapevaluespublic1.cc; tests/Octagonal_Shape/congruences1.cc; tests/octagonalshapevaluesfailure1.cc; tests/Octagonal_Shape/dimensionlimits1.cc.
-
1. Lifted constraint addition and refinement UID: PPL-SPEC-001407 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Constraint addition and refinement shall apply the corresponding base operation to every disjunct, retaining union semantics and marking reduction unknown. Exact addition shall intersect each disjunct with the admitted constraint conjunction. Refinement shall preserve every point satisfying the input conjunction and satisfy the base precision guarantee, possibly ignoring unsupported restrictions. Topology and dimension rejection shall follow the base operation, including std::invalid_argument for incompatible inputs.
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.
RATIONALE: Intersection with a conjunction distributes over disjunction, while refinement may approximate at base level.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void add_constraint(const Constraint&); void add_constraints(const Constraint_System&); void refine_with_constraint(const Constraint&); void refine_with_constraints(const Constraint_System&);
VERIFICATION_CRITERIA: Check strict boundaries, equalities, contradictions, unsupported base rows, empty/nonempty collections and invalid arguments.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/addconstraints1.cc; tests/Powerset/argumentadmission1.cc; tests/Powerset/gridprimaryoperations1.cc; tests/Powerset/refinewith1.cc.
-
2. Lifted congruence addition and refinement UID: PPL-SPEC-001408 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Congruence addition and refinement shall apply the corresponding base operation to every disjunct, preserving union semantics and marking reduction unknown. Exact addition shall intersect with the admitted congruence conjunction; refinement shall be sound with the base precision guarantee. Proper modular restrictions shall not be converted into affine equalities. Dimension or unsupported exact-addition admission shall follow the base exception contract.
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.
RATIONALE: Congruences represent residue classes, so interpreting a proper congruence as equality would discard valid points.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void add_congruence(const Congruence&); void add_congruences(const Congruence_System&); void refine_with_congruence(const Congruence&); void refine_with_congruences(const Congruence_System&);
VERIFICATION_CRITERIA: Check residue classes, equality congruences, contradictory/tautological rows, approximate refinement and dimensional errors.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/addcongruences1.cc; tests/Powerset/argumentadmission1.cc; tests/Powerset/gridprimaryoperations1.cc; tests/Powerset/refinewith1.cc.
-
1. Sound polyhedral filtering by interval linear forms UID: PPL-SPEC-001376 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000084 Conservative arithmetic on interval linear forms (Specifies)
STATEMENT: For an admitted nonempty receiver, floating-point formats and bounded interval coefficients, linear-form refinement shall retain every receiver state satisfying some coefficient instantiation of the selected comparison, and shall introduce no state outside the receiver. The basic overload shall select less-than or less-or-equal by is_strict; a closed receiver may relax strictness. Generalized refinement shall apply both non-strict filters for equality, reverse operands for greater-than relations, and retain the receiver for disequality. Excess input dimension shall throw std::invalid_argument; an invalid relation enumeration shall throw std::runtime_error. If the form or its normalization overflows the admitted analysis range, refinement may leave the receiver unchanged rather than use an unsound finite coefficient. External forms shall preserve their values.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Interval coefficients describe a family of real affine expressions; sound filtering must retain the union of their feasible states.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename FP_Format, typename Interval_Info> void refine_with_linear_form_inequality( const Linear_Form<Interval<FP_Format, Interval_Info>>& left, const Linear_Form<Interval<FP_Format, Interval_Info>>& right, bool is_strict=false); template <typename FP_Format, typename Interval_Info> void generalized_refine_with_linear_form_inequality( const Linear_Form<Interval<FP_Format, Interval_Info>>& left, const Linear_Form<Interval<FP_Format, Interval_Info>>& right, Relation_Symbol);
VERIFICATION_CRITERIA: Enumerate endpoint and interior coefficient choices on literal boxes, exact dyadic coefficients, every relation symbol, strict/closed behavior, overflowing normalization and invalid dimensions.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/polyhedronintervalformspec1.cc.
-
3. Polyhedral refinement of a floating interval store UID: PPL-SPEC-001378 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000084 Conservative arithmetic on interval linear forms (Specifies)
STATEMENT: For a dimension-compatible floating interval box, store refinement shall intersect that store with a sound box enclosure of the receiver. It shall not change the polyhedron, and shall retain every point that belonged to both the entry store and the receiver. Directed conversion and endpoint inclusion shall follow the selected interval-profile contracts; the result need not be the best box enclosure of the intersection. Dimension incompatibility shall follow the box intersection's invalid-argument channel.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Intersecting sound enclosures is safe, while abstracting before intersection can lose relational precision.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename FP_Format, typename Interval_Info> void refine_fp_interval_abstract_store( Box<Interval<FP_Format, Interval_Info>>&) const;
VERIFICATION_CRITERIA: Check directed rational-to-floating endpoints, empty and dimension mismatch, source preservation and concrete intersection retention for relational examples.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/polyhedronintervalformspec1.cc.
-
1. Polyhedral constraint addition and refinement UID: PPL-SPEC-001338 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The rvalue add_constraints overload shall permit transferring owned rows through prepared insertion, with the compatibility and ownership guarantees of recycled insertion. Adding an admitted constraint or system shall compute its exact conjunction with the receiver. Closed addition shall reject strict rows with std::invalid_argument; NNC addition shall preserve their strictness. Refinement shall use the same conjunction for admitted topology-compatible rows. In a closed receiver, refinement by a strict inequality may relax it to the corresponding non-strict inequality; a false constant shall still yield empty. Trailing free dimensions shall be retained. Excess descriptor dimension shall throw std::invalid_argument. External const input shall be preserved. Recycled input may be consumed and need only remain safely destructible on return. Pending descriptions shall retain all previously added restrictions.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Closed polyhedra can conservatively relax a strict boundary during refinement, while exact addition must reject unrepresentable topology.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void add_constraint(const Constraint&); void add_constraints(const Constraint_System&); void add_constraints(Constraint_System&&); void add_recycled_constraints(Constraint_System&); void refine_with_constraint(const Constraint&); void refine_with_constraints(const Constraint_System&);
VERIFICATION_CRITERIA: Check pending and minimized histories, contradictions, strict topology admission/relaxation, zero dimensions, borrowed descriptor inputs and recycled ownership. Check strict zero contradictions separately from ordinary strict relaxation, with padded and unpadded dense/sparse rows, zero and positive dimensions, processed/pending histories, both refinement APIs and unchanged const inputs.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/addconstraint1.cc; tests/Polyhedron/addconstraints1.cc; tests/Polyhedron/addconstraints2.cc; tests/Polyhedron/refinewithconstraint1.cc; tests/Polyhedron/refinewithconstraints1.cc; tests/Polyhedron/recycledsystems1.cc. src/Constraint_System.cc; tests/systembulktransferspec1.cc.
-
Incoming link from: 6. Polyhedron construction from representable congruences1
2. Polyhedral congruence addition and conservative refinement UID: PPL-SPEC-001339 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Addition shall conjoin equality congruences exactly, ignore tautologies, and set empty for contradictions. A proper congruence that is neither constant-true nor constant-false shall throw std::invalid_argument. Refinement shall conjoin equality congruences exactly and may ignore proper congruences. Bulk refinement shall recognize contradictory proper congruences; single refinement in positive ambient dimension may retain the receiver for a proper congruence, including a contradiction. In zero dimensions it shall use the congruence's truth value. Excess descriptor dimension shall throw std::invalid_argument. Const external inputs shall be preserved; recycled inputs need only remain destructible. The source and receiver may have lower and higher dimensions respectively, with trailing coordinates free.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Periodic restrictions are generally nonconvex. Exact addition rejects nonrepresentable rows, while refinement provides an explicit conservative approximation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void add_congruence(const Congruence&); void add_congruences(const Congruence_System&); void add_recycled_congruences(Congruence_System&); void refine_with_congruence(const Congruence&); void refine_with_congruences(const Congruence_System&);
VERIFICATION_CRITERIA: Check equality, tautological and contradictory proper rows in single and bulk routes, rejected periodic additions, empty/zero dimensions and const/recycled input ownership.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/addcongruence1.cc; tests/Polyhedron/addcongruences1.cc; tests/Polyhedron/refinewithcongruence1.cc; tests/Polyhedron/refinewithcongruences1.cc.
-
6. Polyhedron construction from representable congruences UID: PPL-SPEC-001321 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Congruence-system construction shall inherit the input dimension and apply the exact addition semantics in 🔗 2. Polyhedral congruence addition and conservative refinement to universe. Equality congruences shall define affine equalities; tautologies shall impose no restriction and contradictions shall give empty. A proper congruence that is neither tautological nor contradictory shall throw std::invalid_argument. The const-input form shall preserve external source values. The recycling-tag form shall have the same mathematical result; recycling shall not be promised for congruences. can_recycle_constraint_systems() shall return true and can_recycle_congruence_systems() false.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Nontrivial periodic restrictions are generally not convex; the recycling capability describes available storage reuse rather than a semantic distinction.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const Congruence_System&); explicit NNC_Polyhedron(const Congruence_System&); static bool can_recycle_constraint_systems(); static bool can_recycle_congruence_systems();
VERIFICATION_CRITERIA: Check equalities, constant congruences, proper periodic rejection, source preservation, zero dimensions, structural limits and both capability values.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/addcongruences1.cc; tests/Polyhedron/recycledsystems1.cc; tests/Polyhedron/exceptions1.cc; tests/polyhedronvaluesspec1.cc.
-
1. Product descriptor addition, refinement and recycling UID: PPL-SPEC-001448 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Ordinary addition and refinement shall apply the corresponding operation to both components and mark reduction unknown. The intersection shall retain all source points satisfying the supplied restrictions, with component exactness and admission conditions. Exact-addition members shall require admission by each called component. Recycling shall first refine the nonconsuming component, then pass the system to a component advertising recycling; if neither advertises it, both shall use ordinary addition. The source may be consumed only after the other component has read it. Failure shall not promise rollback of either component or recycled input.
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.
RATIONALE: Information must reach both components before an input system is consumed.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void add_constraint(const Constraint&); void add_constraints(const Constraint_System&); void add_congruence(const Congruence&); void add_congruences(const Congruence_System&); void refine_with_constraint(const Constraint&); void refine_with_constraints(const Constraint_System&); void refine_with_congruence(const Congruence&); void refine_with_congruences(const Congruence_System&); void add_recycled_constraints(Constraint_System&); void add_recycled_congruences(Congruence_System&);
VERIFICATION_CRITERIA: Check addition/refinement, unsupported rows, recycling into either component and no-recycling paths, source consumption and post-mutation reduction.
SOURCE: 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/addcongruences1.cc; tests/Partially_Reduced_Product/refinewithcongruences1.cc; tests/Partially_Reduced_Product/refinewithconstraints1.cc.
-
4. Product construction from descriptor systems UID: PPL-SPEC-001436 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000421 Constraint and congruence refinement (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: 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.
RATIONALE: Consuming input for one component must occur only after the other has obtained its value.
INTERFACE: 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&);
VERIFICATION_CRITERIA: Check constraints/congruences, const/nonconst sources, dimension and contradiction handling, and distinct component precision.
SOURCE: 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.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001558 C generated affine transformations (Specified by)
- PPL-SPEC-001111 Rational affine image of one coordinate (Specified by)
- PPL-SPEC-001112 Rational affine preimage of one coordinate (Specified by)
- PPL-SPEC-001113 Single-coordinate generalized affine image (Specified by)
- PPL-SPEC-001114 Single-coordinate generalized affine preimage (Specified by)
- PPL-SPEC-001115 Expression-left generalized affine image (Specified by)
- PPL-SPEC-001116 Expression-left generalized affine preimage (Specified by)
- PPL-SPEC-001117 Single-coordinate bounded affine image (Specified by)
- PPL-SPEC-001118 Single-coordinate bounded affine preimage (Specified by)
- PPL-SPEC-001119 Native interval-affine image (Specified by)
- PPL-SPEC-001021 Single-coordinate affine box image (Specified by)
- PPL-SPEC-001022 Single-coordinate affine box preimage (Specified by)
- PPL-SPEC-001023 Generalized single-coordinate box image (Specified by)
- PPL-SPEC-001024 Generalized single-coordinate box preimage (Specified by)
- PPL-SPEC-001025 Generalized multi-coordinate box image (Specified by)
- PPL-SPEC-001026 Generalized multi-coordinate box preimage (Specified by)
- PPL-SPEC-001027 Bounded affine box image (Specified by)
- PPL-SPEC-001028 Bounded affine box preimage (Specified by)
- PPL-SPEC-001029 Interval-coefficient affine box image (Specified by)
- PPL-SPEC-001287 Exact rational affine image (Specified by)
- PPL-SPEC-001288 Exact rational affine preimage (Specified by)
- PPL-SPEC-001289 Generalized variable affine image (Specified by)
- PPL-SPEC-001290 Generalized variable affine preimage (Specified by)
- PPL-SPEC-001291 Generalized expression affine image (Specified by)
- PPL-SPEC-001292 Generalized expression affine preimage (Specified by)
- PPL-SPEC-001293 Bounded affine image abstraction (Specified by)
- PPL-SPEC-001294 Bounded affine preimage abstraction (Specified by)
- PPL-SPEC-001206 Rational affine image of one coordinate (Specified by)
- PPL-SPEC-001207 Rational affine preimage of one coordinate (Specified by)
- PPL-SPEC-001208 Single-coordinate generalized affine image (Specified by)
- PPL-SPEC-001209 Single-coordinate generalized affine preimage (Specified by)
- PPL-SPEC-001210 Expression-left generalized affine image (Specified by)
- PPL-SPEC-001211 Expression-left generalized affine preimage (Specified by)
- PPL-SPEC-001212 Single-coordinate bounded affine image (Specified by)
- PPL-SPEC-001213 Single-coordinate bounded affine preimage (Specified by)
- PPL-SPEC-001236 Native interval-affine image (Specified by)
- PPL-SPEC-001413 Lifted powerset image (Specified by)
- PPL-SPEC-001414 Lifted powerset preimage (Specified by)
- PPL-SPEC-001415 Lifted powerset generalized image (Specified by)
- PPL-SPEC-001416 Lifted powerset generalized preimage (Specified by)
- PPL-SPEC-001417 Lifted powerset bounded image (Specified by)
- PPL-SPEC-001418 Lifted powerset bounded preimage (Specified by)
- PPL-SPEC-001419 Lifted expression-to-expression affine relations (Specified by)
- PPL-SPEC-001420 Pointset-powerset coordinate growth (Specified by)
- PPL-SPEC-001421 Pointset-powerset projection and coordinate mapping (Specified by)
- PPL-SPEC-001422 Pointset-powerset dimension expansion and folding (Specified by)
- PPL-SPEC-001423 Pointset-powerset concatenation (Specified by)
- PPL-SPEC-001409 Lifted cylindrification (Specified by)
- PPL-SPEC-001424 Powerset topological closure and time elapse (Specified by)
- PPL-SPEC-001425 Powerset integer restriction and wrapping (Specified by)
- PPL-SPEC-001685 Two-coordinate full-rank equality projection (Specified by)
- PPL-SPEC-001686 Bounded coupled two-coordinate pair projection (Specified by)
- PPL-SPEC-001687 Exact one-dimensional continuous LP projection (Specified by)
- PPL-SPEC-001346 Exact rational polyhedral image (Specified by)
- PPL-SPEC-001347 Exact rational polyhedral preimage (Specified by)
- PPL-SPEC-001348 Polyhedral variable-update relational image (Specified by)
- PPL-SPEC-001349 Polyhedral variable-update relational preimage (Specified by)
- PPL-SPEC-001350 Polyhedral expression-update relational image (Specified by)
- PPL-SPEC-001351 Polyhedral expression-update relational preimage (Specified by)
- PPL-SPEC-001352 Exact bounded polyhedral affine image (Specified by)
- PPL-SPEC-001353 Exact bounded polyhedral affine preimage (Specified by)
- PPL-SPEC-001679 Bounded exact projection from current constraints (Specified by)
- PPL-SPEC-001345 Exact polyhedral cylindrification (Specified by)
- PPL-SPEC-001354 Polyhedral coordinate growth (Specified by)
- PPL-SPEC-001355 Exact polyhedral Cartesian concatenation (Specified by)
- PPL-SPEC-001356 Exact polyhedral coordinate deletion (Specified by)
- PPL-SPEC-001357 Exact partial coordinate mapping of polyhedra (Specified by)
- PPL-SPEC-001358 Polyhedral coordinate expansion (Specified by)
- PPL-SPEC-001359 Polyhedral coordinate folding (Specified by)
- PPL-SPEC-001683 Exact equality-pivot elimination (Specified by)
- PPL-SPEC-001684 Bounded exact coupled constraint projection (Specified by)
- PPL-SPEC-001377 Sound polyhedral image of interval linear forms (Specified by)
- PPL-SPEC-001452 Componentwise product image (Specified by)
- PPL-SPEC-001453 Componentwise product preimage (Specified by)
- PPL-SPEC-001454 Componentwise product generalized image (Specified by)
- PPL-SPEC-001455 Componentwise product generalized preimage (Specified by)
- PPL-SPEC-001456 Componentwise product bounded image (Specified by)
- PPL-SPEC-001457 Componentwise product bounded preimage (Specified by)
- PPL-SPEC-001458 Product expression-to-expression affine relations (Specified by)
- PPL-SPEC-001459 Product coordinate operations (Specified by)
- PPL-SPEC-001460 Product concatenation (Specified by)
- PPL-SPEC-001461 Product closure and time elapse (Specified by)
- PPL-SPEC-001462 Product integer-coordinate tightening (Specified by)
PPL shall provide forward-image and backward-preimage operations for the supported rational affine functions and relations of its pointset domains. Under their arithmetic preconditions, successful results shall contain the exact image or preimage defined by the operation, and the supported domain and transformation class shall determine the stated exactness or other precision guarantee.
Forward and backward analysis require a defined relational meaning even when a restricted domain approximates the result.
This shared soundness obligation does not weaken the exact deterministic rational guarantees in the linked polyhedral and grid obligations.
Verification covers forward and backward affine transfer operations, admitted relations and domain-specific precision. Related obligations: 🔗 4. Rational affine transformations of polyhedra, 🔗 4. Rational affine transformations of grids, 🔗 2. Sound successful floating-point linearization, 🔗 1. Meaning of successful exact and approximate results.
Derive images and inverse images independently for deterministic assignments, noninvertible maps and supported relational or bounded updates. Include negative scaling, equalities, strict conditions, empty sets and unconstrained variables. Check domain-specific exactness where guaranteed and sound inclusion elsewhere.
doc/definitions.dox: Images and Preimages of Affine Transfer Relations; Generalized Affine Relations; Single-Update Bounded Affine Relations. src/Polyhedron_defs.hh and src/Grid_defs.hh: exact deterministic affine operations. src/Box_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: restricted-domain affine approximations.
-
5. C generated affine transformations UID: PPL-SPEC-001558 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
STATEMENT: Affine image/preimage and generalized/bounded families shall interpret expression coefficients, denominator, relation symbol and affected coordinates exactly as the corresponding native operation. Pointer parameters shall denote live expressions and coefficient objects, with native supported aliasing and nonzero-denominator rules. Successful results shall preserve the native exactness or sound enclosure guarantee.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: Generated forwarding must retain the native mathematical and ownership contract.
INTERFACE: Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.
int ppl_Polyhedron_affine_image(ppl_Polyhedron_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Polyhedron_affine_preimage(ppl_Polyhedron_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Polyhedron_bounded_affine_image(ppl_Polyhedron_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Polyhedron_bounded_affine_preimage(ppl_Polyhedron_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Polyhedron_generalized_affine_image( ppl_Polyhedron_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Polyhedron_generalized_affine_preimage( ppl_Polyhedron_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Polyhedron_generalized_affine_image_lhs_rhs( ppl_Polyhedron_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Polyhedron_generalized_affine_preimage_lhs_rhs( ppl_Polyhedron_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Grid_affine_image(ppl_Grid_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Grid_affine_preimage(ppl_Grid_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Grid_bounded_affine_image(ppl_Grid_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Grid_bounded_affine_preimage(ppl_Grid_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Grid_generalized_affine_image(ppl_Grid_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Grid_generalized_affine_preimage(ppl_Grid_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Grid_generalized_affine_image_lhs_rhs( ppl_Grid_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Grid_generalized_affine_preimage_lhs_rhs( ppl_Grid_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Grid_generalized_affine_image_with_congruence( ppl_Grid_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d, ppl_const_Coefficient_t m); int ppl_Grid_generalized_affine_preimage_with_congruence( ppl_Grid_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d, ppl_const_Coefficient_t m); int ppl_Grid_generalized_affine_image_lhs_rhs_with_congruence( ppl_Grid_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs, ppl_const_Coefficient_t m); int ppl_Grid_generalized_affine_preimage_lhs_rhs_with_congruence( ppl_Grid_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs, ppl_const_Coefficient_t m); int ppl_Rational_Box_affine_image(ppl_Rational_Box_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Rational_Box_affine_preimage(ppl_Rational_Box_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Rational_Box_bounded_affine_image(ppl_Rational_Box_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Rational_Box_bounded_affine_preimage(ppl_Rational_Box_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Rational_Box_generalized_affine_image( ppl_Rational_Box_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Rational_Box_generalized_affine_preimage( ppl_Rational_Box_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Rational_Box_generalized_affine_image_lhs_rhs( ppl_Rational_Box_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Rational_Box_generalized_affine_preimage_lhs_rhs( ppl_Rational_Box_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_BD_Shape_mpz_class_affine_image(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_BD_Shape_mpz_class_affine_preimage(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_BD_Shape_mpz_class_bounded_affine_image( ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_BD_Shape_mpz_class_bounded_affine_preimage( ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_BD_Shape_mpz_class_generalized_affine_image( ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_BD_Shape_mpz_class_generalized_affine_preimage( ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_BD_Shape_mpz_class_generalized_affine_image_lhs_rhs( ppl_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_BD_Shape_mpz_class_generalized_affine_preimage_lhs_rhs( ppl_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_BD_Shape_mpq_class_affine_image(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_BD_Shape_mpq_class_affine_preimage(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_BD_Shape_mpq_class_bounded_affine_image( ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_BD_Shape_mpq_class_bounded_affine_preimage( ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_BD_Shape_mpq_class_generalized_affine_image( ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_BD_Shape_mpq_class_generalized_affine_preimage( ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_BD_Shape_mpq_class_generalized_affine_image_lhs_rhs( ppl_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_BD_Shape_mpq_class_generalized_affine_preimage_lhs_rhs( ppl_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Octagonal_Shape_mpz_class_affine_image( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_mpz_class_affine_preimage( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_mpz_class_bounded_affine_image( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_mpz_class_bounded_affine_preimage( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_mpz_class_generalized_affine_image( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_mpz_class_generalized_affine_preimage( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_mpz_class_generalized_affine_image_lhs_rhs( ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Octagonal_Shape_mpz_class_generalized_affine_preimage_lhs_rhs( ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Octagonal_Shape_mpq_class_affine_image( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_mpq_class_affine_preimage( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_mpq_class_bounded_affine_image( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_mpq_class_bounded_affine_preimage( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_mpq_class_generalized_affine_image( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_mpq_class_generalized_affine_preimage( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_mpq_class_generalized_affine_image_lhs_rhs( ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Octagonal_Shape_mpq_class_generalized_affine_preimage_lhs_rhs( ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Constraints_Product_C_Polyhedron_Grid_affine_image( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Constraints_Product_C_Polyhedron_Grid_affine_preimage( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Constraints_Product_C_Polyhedron_Grid_bounded_affine_image( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Constraints_Product_C_Polyhedron_Grid_bounded_affine_preimage( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Constraints_Product_C_Polyhedron_Grid_generalized_affine_image( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Constraints_Product_C_Polyhedron_Grid_generalized_affine_preimage( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Constraints_Product_C_Polyhedron_Grid_generalized_affine_image_lhs_rhs( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Constraints_Product_C_Polyhedron_Grid_generalized_affine_preimage_lhs_rhs( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Pointset_Powerset_C_Polyhedron_affine_image( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Pointset_Powerset_C_Polyhedron_affine_preimage( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Pointset_Powerset_C_Polyhedron_bounded_affine_image( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Pointset_Powerset_C_Polyhedron_bounded_affine_preimage( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Pointset_Powerset_C_Polyhedron_generalized_affine_image( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Pointset_Powerset_C_Polyhedron_generalized_affine_preimage( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Pointset_Powerset_C_Polyhedron_generalized_affine_image_lhs_rhs( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Pointset_Powerset_C_Polyhedron_generalized_affine_preimage_lhs_rhs( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Pointset_Powerset_NNC_Polyhedron_affine_image( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Pointset_Powerset_NNC_Polyhedron_affine_preimage( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Pointset_Powerset_NNC_Polyhedron_bounded_affine_image( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Pointset_Powerset_NNC_Polyhedron_bounded_affine_preimage( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Pointset_Powerset_NNC_Polyhedron_generalized_affine_image( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Pointset_Powerset_NNC_Polyhedron_generalized_affine_preimage( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Pointset_Powerset_NNC_Polyhedron_generalized_affine_image_lhs_rhs( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Pointset_Powerset_NNC_Polyhedron_generalized_affine_preimage_lhs_rhs( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Double_Box_affine_image(ppl_Double_Box_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Double_Box_affine_preimage(ppl_Double_Box_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Double_Box_bounded_affine_image(ppl_Double_Box_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Double_Box_bounded_affine_preimage(ppl_Double_Box_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Double_Box_generalized_affine_image( ppl_Double_Box_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Double_Box_generalized_affine_preimage( ppl_Double_Box_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Double_Box_generalized_affine_image_lhs_rhs( ppl_Double_Box_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Double_Box_generalized_affine_preimage_lhs_rhs( ppl_Double_Box_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_BD_Shape_double_affine_image(ppl_BD_Shape_double_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_BD_Shape_double_affine_preimage(ppl_BD_Shape_double_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_BD_Shape_double_bounded_affine_image(ppl_BD_Shape_double_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_BD_Shape_double_bounded_affine_preimage( ppl_BD_Shape_double_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_BD_Shape_double_generalized_affine_image( ppl_BD_Shape_double_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_BD_Shape_double_generalized_affine_preimage( ppl_BD_Shape_double_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_BD_Shape_double_generalized_affine_image_lhs_rhs( ppl_BD_Shape_double_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_BD_Shape_double_generalized_affine_preimage_lhs_rhs( ppl_BD_Shape_double_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Octagonal_Shape_double_affine_image(ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_double_affine_preimage(ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_double_bounded_affine_image( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_double_bounded_affine_preimage( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var, ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_double_generalized_affine_image( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_double_generalized_affine_preimage( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d); int ppl_Octagonal_Shape_double_generalized_affine_image_lhs_rhs( ppl_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs); int ppl_Octagonal_Shape_double_generalized_affine_preimage_lhs_rhs( ppl_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
VERIFICATION_CRITERIA: Check borrowed scalars/expressions, zero and negative denominators where admitted, dimension guards and literal image/preimage sets.
SOURCE: interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/polyhedra.c.
-
Incoming links from: 2. Rational affine preimage of one coordinate 3. Single-coordinate generalized affine image2
1. Rational affine image of one coordinate UID: PPL-SPEC-001111 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For an entry shape X ⊆ ℝn , a valid coordinate k , a dimension-compatible integer-coefficient affine expression e and a nonzero coefficient d , affine_image(k,e,d) shall replace the receiver with a bounded-difference shape containing
{y ∈ ℝn ∣ ∃x ∈ X : yk = e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.With exact rational boundary arithmetic, constant replacement and assignments xk : = xj + c , including self translation, shall give the exact image. Other affine expressions may require a conservative bounded-difference enclosure. Rounded profiles shall keep the delegated outward bounds. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: Transporting a correlated state through an assignment requires an old/new-coordinate relation; independent interval evaluation alone loses those correlations.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::BD_Shape<T>:
void affine_image(Variable var, const Linear_Expression& expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Project independent old/new halfspaces. Check constant, copy, translation, negation, nonunit scaling and multiple-variable forms; require exact rational equality for constant/copy/translation classes and sound inclusion elsewhere. Include negative denominators, bounded/unbounded sources, latent emptiness, cache histories and unchanged-coordinate constraints.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 3.2 and 7 (bounded-difference shape semantics and floating-point implementation background).
SOURCE: tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/BD_Shape_defs.hh; src/BD_Shape_templates.hh; tests/bdshapeaffinespec1.cc; tests/bdshapeaffineoracle.hh; tests/bdshapeaffineallocationsspec1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeaffinepublic1.cc; tests/BD_Shape/affineimage1.cc; tests/BD_Shape/affineimage2.cc.
-
Incoming link from: 4. Single-coordinate generalized affine preimage1
2. Rational affine preimage of one coordinate UID: PPL-SPEC-001112 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: With the coordinate, expression and denominator admitted by 🔗 1. Rational affine image of one coordinate , affine_preimage(k,e,d) shall contain every x ∈ ℝn whose successor, obtained by replacing coordinate k with e(x) ⁄ d , belongs to the entry post-state shape. Expression occurrences of the updated coordinate shall denote its pre-state value.
For xk : = xj + c , the post-state constraints shall be substituted using that expression. With exact rational boundary arithmetic, both self translation and distinct-coordinate copy plus translation shall give the exact bounded-difference preimage; in the distinct-coordinate case the pre-state xk shall be free. Rounded profiles shall preserve the corresponding outward substitutions and consistency checks. Other transformations shall give sound containing shapes; they need not compute the least bounded-difference enclosure even when the exact preimage is representable, as specified by WR_Affine_Preimage_Precision in the mathematical interface definitions. Invertible transformations shall use the same relational predecessor meaning as noninvertible ones. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: Backward transfer selects predecessors of the postcondition and must distinguish pre-state and post-state occurrences of an assigned variable.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::BD_Shape<T>:
void affine_preimage(Variable var, const Linear_Expression& expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Derive relational predecessors by eliminating new coordinates. Check the documented exact copy-plus-offset substitution with all scalar and difference postconditions, including contradictory consistency tests and fractional offsets. Cover self inverses, constants, noninvertible general maps, negative denominators and bottom. Check soundness rather than universal leastness outside the promised classes.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 3.2 and 7 (bounded-difference shape semantics and floating-point implementation background).
SOURCE: tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/BD_Shape_defs.hh; src/BD_Shape_templates.hh; tests/bdshapeaffinespec1.cc; tests/bdshapeaffineoracle.hh; tests/bdshapeaffineallocationsspec1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeaffinepublic1.cc; tests/BD_Shape/affinepreimage1.cc; tests/BD_Shape/negativeselfpreimage1.cc.
-
3. Single-coordinate generalized affine image UID: PPL-SPEC-001113 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For ⋈ ∈ { = , ≤ , ≥ } , the variable overload of generalized_affine_image(k,relsym,e,d) shall contain
{y ∣ ∃x ∈ X : yk ⋈ e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Equality shall have the behavior of 🔗 1. Rational affine image of one coordinate . A one-sided relation shall use the indicated quotient, including the sign of the denominator; it shall not silently turn a lower relation into an upper relation. The result may conservatively approximate the affine relation. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: A one-sided update nondeterministically chooses a successor satisfying its affine bound, while leaving all other coordinates framed.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::BD_Shape<T>:
void generalized_affine_image( Variable var, Relation_Symbol relsym, const Linear_Expression& expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Independently project equality and both non-strict relation directions. Compare equality with1111; include positive/negative denominators, self dependence, distinct-variable dependence, general expressions, unbounded inputs and infeasible relations. Check unchanged-coordinate constraints and rejected strict/disequality symbols.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 3.2 and 7 (bounded-difference shape semantics and floating-point implementation background).
SOURCE: tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/BD_Shape_defs.hh; src/BD_Shape_templates.hh; tests/bdshapeaffinespec1.cc; tests/bdshapeaffineoracle.hh; tests/bdshapeaffineallocationsspec1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeaffinepublic1.cc; tests/BD_Shape/generalizedaffineimage1.cc.
-
4. Single-coordinate generalized affine preimage UID: PPL-SPEC-001114 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For ⋈ ∈ { = , ≤ , ≥ } , the variable overload of generalized_affine_preimage(k,relsym,e,d) shall contain
{x ∣ ∃y ∈ X : yk ⋈ e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Equality shall have the behavior and class-specific precision of 🔗 2. Rational affine preimage of one coordinate . Other admitted relations may give sound nonleast bounded-difference enclosures according to the documented preimage approximation contract. The denominator sign shall be respected. The relation shall use the same old/new coordinate frame for self-dependent and non-self-dependent expressions. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: A predecessor exists when some framed successor satisfies the postcondition and the selected relation, not when every possible successor does.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::BD_Shape<T>:
void generalized_affine_preimage( Variable var, Relation_Symbol relsym, const Linear_Expression& expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Eliminate new coordinates independently, with equality and both inequality directions, sign-normalized denominators, self/non-self dependence and general affine expressions. Check equality delegation, empty postconditions, surviving-coordinate restrictions and invalid symbols.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 3.2 and 7 (bounded-difference shape semantics and floating-point implementation background).
SOURCE: tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/BD_Shape_defs.hh; src/BD_Shape_templates.hh; tests/bdshapeaffinespec1.cc; tests/bdshapeaffineoracle.hh; tests/bdshapeaffineallocationsspec1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeaffinepublic1.cc; tests/BD_Shape/generalizedaffinepreimage1.cc.
-
Incoming link from: 6. Expression-left generalized affine preimage1
5. Expression-left generalized affine image UID: PPL-SPEC-001115 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Let l and r be dimension-compatible affine expressions, U the coordinates with nonzero homogeneous coefficient in l , and ⋈ ∈ { = , ≤ , ≥ } . The expression overload of generalized_affine_image(l,relsym,r) shall contain
{y ∣ ∃x ∈ X : l(y) ⋈ r(x) ∧ ∀i ∉ U, yi = xi}.The left expression shall be interpreted in the new state and the right expression in the old state; exchanging them and reversing the relation shall not in general describe the same update. A constant left expression shall be a guard with every coordinate framed. Multiple updated coordinates may lose precision through a sound bounded-difference enclosure. Constraints involving only coordinates outside U shall remain valid. Separately stored source expressions shall remain unchanged; lhs and rhs may denote the same live expression.
For a constant left expression, a representable guard shall be added natively. Other guards shall receive one finite pass over native directions formed from each nonzero coefficient and each representable matching pair, in increasing coordinate order. For a guard expression e ≥ 0 and such a direction d , the finite infimum of the residual d − e shall supply d ≥ inf(d − e) . Equality shall also use its finite supremum to supply d ≤ sup(d − e) . Closure shall propagate earlier deductions before each direction is considered. Residual optimization shall preserve its supported correlations; returned rational bounds shall be inserted directly, without an intermediate scalar-interval conversion. This pass need not reach a fixed point or compute a least abstract intersection. General residuals may require linear programming.
When the homogeneous part of l has two nonzero coefficients and is representable as a bounded-difference expression up to scaling, the finite entry-state supremum of r shall be retained as an upper bound on the new l for EQUAL and LESS_OR_EQUAL. Its finite infimum shall be retained as a lower bound for EQUAL and GREATER_OR_EQUAL. These bounds shall be computed before forgetting updated coordinates and shall also apply to disjoint left/right supports. Rational boundaries shall retain the exact extrema; other boundary profiles shall retain their native outward guarantees. An unbounded direction shall add no finite bound.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. An expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: The support of the left expression determines which coordinates are assigned together; all occurrences on the right refer to the entry state.
Finite right-hand ranges are evaluated in the entry shape. Native optimization uses cached bounds for representable objectives and may invoke the linear programming solver for a general right expression. Saving those bounds before projection avoids confusing old and new occurrences of the same coordinate.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::BD_Shape<T>:
void generalized_affine_image(const Linear_Expression& lhs, Relation_Symbol relsym, const Linear_Expression& rhs);
VERIFICATION_CRITERIA: Check the retained left-expression ranges against an independently assembled old/new polyhedron followed by projection, and literal rational fixtures. Include positive/negative scaling, arbitrary right expressions, disjoint and overlapping supports, shared expressions, one-sided/unbounded ranges, framed coordinates, dense/sparse expressions and rational/floating/integral bounds.
Use independent old/new relations for constant, single-variable and multi-variable left sides, disjoint/overlapping supports, shared lhs/rhs, all admitted relations and rejected symbols. Check full frame constraints and soundness for approximate general updates rather than imposing an unsupported universal leastness requirement.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 3.2 and 7 (bounded-difference shape semantics and floating-point implementation background).
SOURCE: tests/generalizedaffineboundsspec1.cc; tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/BD_Shape_defs.hh; src/BD_Shape_templates.hh; tests/bdshapeaffinespec1.cc; tests/bdshapeaffineoracle.hh; tests/bdshapeaffineallocationsspec1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeaffinepublic1.cc; tests/BD_Shape/generalizedaffineimage2.cc; tests/BD_Shape/affinecachereduction1.cc.
-
6. Expression-left generalized affine preimage UID: PPL-SPEC-001116 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: With l , r , U and ⋈ admitted by 🔗 5. Expression-left generalized affine image , the expression overload of generalized_affine_preimage(l,relsym,r) shall contain
{x ∣ ∃y ∈ X : l(y) ⋈ r(x) ∧ ∀i ∉ U, yi = xi}.A constant left expression shall be a guard with every coordinate framed. Other forms may return sound nonleast bounded-difference enclosures as specified by the preimage approximation contract. Constraints involving only coordinates outside U shall remain valid. Separately stored source expressions shall remain unchanged; the same live expression may supply both lhs and rhs .
For a left expression with at least two nonzero homogeneous coefficients, the finite target-state infimum of l shall supply the necessary guard r ≥ infXl for EQUAL and LESS_OR_EQUAL; the finite supremum shall supply r ≤ supXl for EQUAL and GREATER_OR_EQUAL. These extrema shall be computed before forgetting updated coordinates. The guards shall be refined in the old-state coordinates using the same native native-direction approximation as constant-left images. An unbounded direction shall contribute no finite guard. Existing relational deductions and framed-coordinate constraints shall also be preserved. Rational boundary arithmetic shall use exact extrema; other profiles shall retain their native outward guarantees. These deductions need not give a least preimage enclosure.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. An expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: Expression-left backward transfer uses the same transition relation as the forward operation, with the postcondition placed on new coordinates.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::BD_Shape<T>:
void generalized_affine_preimage(const Linear_Expression& lhs, Relation_Symbol relsym, const Linear_Expression& rhs);
VERIFICATION_CRITERIA: Eliminate the new coordinates from relational postconditions for constant/single/multiple left supports, finite and unbounded target lhs ranges, disjoint and overlapping right supports, shared expressions and every admitted relation. Include empty/zero-dimensional guards, incompatibility and rejected symbols; retain every feasible predecessor.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 3.2 and 7 (bounded-difference shape semantics and floating-point implementation background).
SOURCE: tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/BD_Shape_defs.hh; src/BD_Shape_templates.hh; tests/bdshapeaffinespec1.cc; tests/bdshapeaffineoracle.hh; tests/bdshapeaffineallocationsspec1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeaffinepublic1.cc; tests/BD_Shape/generalizedaffinepreimage2.cc; tests/BD_Shape/generalizedaffinepreimage3.cc.
-
Incoming link from: 8. Single-coordinate bounded affine preimage1
7. Single-coordinate bounded affine image UID: PPL-SPEC-001117 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For admitted coordinate k , dimension-compatible expressions l, u and nonzero denominator d , bounded_affine_image(k,l,u,d) shall contain
{y ∣ ∃x ∈ X : l(x) ⁄ d ≤ yk ≤ u(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Both bounding expressions shall use the same entry state. A negative common denominator shall preserve the displayed quotient inequalities; the lower and upper argument roles shall not be exchanged merely because the denominator is negative. The bounds may depend on the replaced coordinate. The result may conservatively approximate this simultaneous relation. Constraints involving only unchanged coordinates shall remain valid. Both expressions and the denominator shall remain unchanged; lb_expr and ub_expr may refer to the same live expression.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: Two bounds constrain one nondeterministic assignment in a common old state; sequentially changing the variable would define a different relation.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::BD_Shape<T>:
void bounded_affine_image( Variable var, const Linear_Expression& lb_expr, const Linear_Expression& ub_expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Project both divided inequalities together. Cover equal and inconsistent bounds, self dependence in zero/one/both bounds, negative denominators, shared bound expressions, unbounded correlated inputs, empty input and invalid dimensions/zero denominators. Check simultaneous-transition soundness and unchanged-coordinate constraints.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 3.2 and 7 (bounded-difference shape semantics and floating-point implementation background).
SOURCE: tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/BD_Shape_defs.hh; src/BD_Shape_templates.hh; tests/bdshapeaffinespec1.cc; tests/bdshapeaffineoracle.hh; tests/bdshapeaffineallocationsspec1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeaffinepublic1.cc; tests/BD_Shape/boundedaffineimage1.cc.
-
8. Single-coordinate bounded affine preimage UID: PPL-SPEC-001118 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: With the coordinate, expressions and denominator admitted by 🔗 7. Single-coordinate bounded affine image , bounded_affine_preimage(k,l,u,d) shall contain
{x ∣ ∃y ∈ X : l(x) ⁄ d ≤ yk ≤ u(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.The two bounds shall be evaluated in the same pre-state, including when one or both contain xk . The result may be a sound nonleast bounded-difference enclosure under the documented preimage approximation contract. Any auxiliary coordinate used internally shall not remain in a successful result. Constraints involving only unchanged coordinates shall remain valid. Both source expressions and the denominator shall remain unchanged, including shared bound-expression arguments.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: Backward bounded transfer must find a single successor satisfying both old-state bounds and the complete postcondition.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::BD_Shape<T>:
void bounded_affine_preimage( Variable var, const Linear_Expression& lb_expr, const Linear_Expression& ub_expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Derive predecessors by eliminating new coordinates with both affine bounds present. Include zero/one/both-bound self dependence, constant and inconsistent pairs, positive/negative denominators and shared source expressions. Verify bottom preservation, unchanged-coordinate restrictions, final dimension and ownership when temporary coordinates are used.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 3.2 and 7 (bounded-difference shape semantics and floating-point implementation background).
SOURCE: tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/BD_Shape_defs.hh; src/BD_Shape_templates.hh; tests/bdshapeaffinespec1.cc; tests/bdshapeaffineoracle.hh; tests/bdshapeaffineallocationsspec1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeaffinepublic1.cc; tests/BD_Shape/boundedaffinepreimage1.cc.
-
9. Native interval-affine image UID: PPL-SPEC-001119 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For a supported native floating-point boundary type T , a valid coordinate k and a dimension-compatible Linear_Form<Interval<T,Interval_Info>> with bounded coefficient intervals Ai and bounded constant interval B , affine_form_image(k,lf) shall contain every successor
{y ∣ ∃x ∈ X, b ∈ B, ai ∈ Ai : yk = b + ∑iaixi ∧ ∀j ≠ k, yj = xj}.Coefficient and constant choices shall be independent as specified by 🔗 1. Interval-linear-form meaning and numerical prerequisites . The result shall use outward numerical bounds; interval uncertainty and the restricted difference-bound language may lose precision, without a general least-enclosure guarantee. Constraints involving only unchanged coordinates shall remain valid. The source form and its coefficient intervals shall retain their values. An empty coefficient or constant interval shall make the receiver empty.
The selected native format, interval representation, initialized numerical runtime, caller-owned upward FPU environment and arithmetic/resource prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use and 🔗 1. Interval-linear-form meaning and numerical prerequisites shall hold. Bounded intervals shall satisfy their stored-value and endpoint-access prerequisites. Unbounded coefficients are outside this operation's documented admission. Native availability shall follow the corresponding configured supported-format predicate.
The ambient dimension shall remain unchanged. Empty input shall remain empty after validation. An invalid selected coordinate or a form of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible, without an additional rollback guarantee. Callers shall synchronize shared owners and facilities.
RATIONALE: Interval coefficients represent independent uncertainty rather than fixed rational scalars; their choices must be included together with correlated input states.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::BD_Shape<T>:
template <typename Interval_Info> void affine_form_image( Variable var, const Linear_Form<Interval<T, Interval_Info>>& lf);
VERIFICATION_CRITERIA: Independently enumerate finite coefficient corners and project each old/new affine relation, then derive the union supports; check conservative inclusion with constant, ±unit, uncertain-sign and general coefficients, zero tails and unbounded source directions. Include supported formats, caller FPU preservation, source-form preservation, empty input/choice sets, dimension errors and resource failures.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 3.2 and 7 (bounded-difference shape semantics and floating-point implementation background).
SOURCE: doc/definitions.dox; src/BD_Shape_defs.hh; src/BD_Shape_templates.hh; tests/bdshapeaffinespec1.cc; tests/bdshapeaffineoracle.hh; tests/bdshapeaffineallocationsspec1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeaffinepublic1.cc; tests/Concrete_Expression/bdshape2.cc; src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Interval_defs.hh; tests/BD_Shape/affinecachereduction1.cc; tests/BD_Shape/affineunboundedproducts1.cc; tests/octagonalshapeintervalformspec1.cc; tests/octagonalshapeintervalformpublic1.cc.
-
Incoming links from: 2. Single-coordinate affine box preimage 3. Generalized single-coordinate box image2
1. Single-coordinate affine box image UID: PPL-SPEC-001021 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For a valid coordinate k, dimension-compatible affine expression e and nonzero coefficient d, affine_image(k,e,d) shall enclose every vector obtained from an entry point x by replacing only coordinate k with e(x) ⁄ d. The receiving interval shall be the outward interval evaluation of that affine expression on the entry factors, including its inhomogeneous term and the sign of d. Every other coordinate interval shall retain its entry represented set.
With exact rational endpoint operations and supported openness, the result shall be the least box containing this image. Finite numerical profiles shall retain their delegated outward enclosures, without a general best- approximation claim when intermediate arithmetic is inexact. Dependencies between the replaced coordinate and unchanged coordinates may be lost. The source expression shall remain unchanged.
A zero denominator, an invalid selected coordinate or an expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors stored separately from the receiver shall retain their values. A scalar argument borrowed from still-live receiver storage shall use its entry value. Such a borrowed view may reflect the resulting receiver. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
RATIONALE: A single affine assignment can retain each unchanged coordinate while abstracting the newly introduced correlations into an interval product.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void affine_image(Variable var, const Linear_Expression& expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Derive rational affine ranges and endpoint attainment from independent signed sums. Check constants, self-dependence, positive/negative denominators, fractional extrema, open/unbounded factors, lazy emptiness, dimension errors, explicit/default denominator and unchanged descriptors.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxaffinetransfersspec1.cc; tests/boxaffinetransferoracle.hh; tests/boxrefinementoracle.hh; tests/boxaffinepublic1.cc.
-
Incoming link from: 4. Generalized single-coordinate box preimage1
2. Single-coordinate affine box preimage UID: PPL-SPEC-001022 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: With coordinate, expression and denominator admitted by 🔗 1. Single-coordinate affine box image, affine_preimage(k,e,d) shall enclose every vector x whose image under x’k = e(x) ⁄ d, with all other coordinates unchanged, belongs to the entry box.
When the coefficient of xk in e is nonzero, the affine map is invertible. The result shall enclose the interval evaluation of its inverse on the entry box; with exact rational endpoint arithmetic and supported openness this shall be the least box preimage. When that coefficient is zero, the old value of xk is unconstrained by the assignment. The operation need not derive every additional restriction on other coordinates and need not compute the least box preimage, but shall retain every feasible predecessor. At coordinates other than the updated one, the result shall preserve the entry factor restrictions; feasibility filtering may tighten those factors. It may return empty only when no predecessor exists. The source expression shall remain unchanged.
A zero denominator, an invalid selected coordinate or an expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors stored separately from the receiver shall retain their values. A scalar argument borrowed from still-live receiver storage shall use its entry value. Such a borrowed view may reflect the resulting receiver. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
RATIONALE: Backward substitution requires existential predecessor semantics; an overwrite cannot retain a constraint on the previous value of its overwritten coordinate.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void affine_preimage(Variable var, const Linear_Expression& expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Use exact predecessor witnesses and independent inverse maps, including positive/negative self coefficients, constants and assignments independent of the old coordinate. Check consistency versus impossibility, conservative noninvertible precision, open bounds, empty/lazy states and input rejection.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxaffinetransfersspec1.cc; tests/boxaffinetransferoracle.hh; tests/boxrefinementoracle.hh; tests/boxaffinepublic1.cc.
-
Incoming link from: 4. Generalized single-coordinate box preimage1
3. Generalized single-coordinate box image UID: PPL-SPEC-001023 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For a valid coordinate k, dimension-compatible affine expression e, nonzero coefficient d and admitted comparison ⋈ , the variable overload of generalized_affine_image shall enclose every z for which an entry point x satisfies zk ⋈ e(x) ⁄ d and zi = xi for i ≠ k. It shall retain every other coordinate's entry factor. Equality shall have the behavior in 🔗 1. Single-coordinate affine box image. A one-sided relation shall retain the required finite outer bound and remove the opposite finite bound, using outward approximation and supported endpoint openness. With exact rational endpoint operations and supported openness, the result shall be the least Cartesian box for the specified relation: the target factor shall use the exact required extremum and its attainment. This shall not promise the exact relational image or a least result under inexact arithmetic.
The five admitted relation symbols shall be LESS_THAN, LESS_OR_EQUAL, EQUAL, GREATER_OR_EQUAL and GREATER_THAN. NOT_EQUAL shall throw std::invalid_argument. Other relation codes shall be outside the admitted interface.
A zero denominator, an invalid selected coordinate or an expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors stored separately from the receiver shall retain their values. A scalar argument borrowed from still-live receiver storage shall use its entry value. Such a borrowed view may reflect the resulting receiver. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
RATIONALE: Generalized assignment describes a relation on the new value of one coordinate, while the other coordinates remain unchanged.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void generalized_affine_image(Variable var, Relation_Symbol relsym, const Linear_Expression& expr, Coefficient_traits::const_reference denominator=Coefficient_one());
VERIFICATION_CRITERIA: Check exact rational old/new point pairs for all five admitted symbols, both denominator signs, strict endpoints, self and other-coordinate dependencies, unbounded factors, equality agreement, empty states, disequality rejection and dimension/zero-denominator errors.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxaffinetransfersspec1.cc; tests/boxaffinetransferoracle.hh; tests/boxrefinementoracle.hh; tests/boxaffinepublic1.cc.
-
4. Generalized single-coordinate box preimage UID: PPL-SPEC-001024 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For arguments and relation symbols admitted by 🔗 3. Generalized single-coordinate box image, the variable overload of generalized_affine_preimage shall enclose every predecessor x for which some entry-box point z satisfies zk ⋈ e(x) ⁄ d and zi = xi for i ≠ k. The result shall follow existential backward semantics, including reversal of a comparison when algebraically dividing by a negative coefficient. Equality shall retain 🔗 2. Single-coordinate affine box preimage. Noninvertible relations may forget predecessor information and shall not claim a least box result. Only infeasibility of the relation with the entry box shall permit an empty result. Every coordinate other than the updated one shall preserve its entry factor restriction; feasibility filtering may tighten that factor.
The five admitted relation symbols shall be LESS_THAN, LESS_OR_EQUAL, EQUAL, GREATER_OR_EQUAL and GREATER_THAN. NOT_EQUAL shall throw std::invalid_argument. Other relation codes shall be outside the admitted interface.
A zero denominator, an invalid selected coordinate or an expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors stored separately from the receiver shall retain their values. A scalar argument borrowed from still-live receiver storage shall use its entry value. Such a borrowed view may reflect the resulting receiver. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
RATIONALE: Backward reasoning must use the primed/unprimed relation and the sign of its coefficients, rather than simply reversing an assignment.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void generalized_affine_preimage(Variable var, Relation_Symbol relsym, const Linear_Expression& expr, Coefficient_traits::const_reference denominator=Coefficient_one());
VERIFICATION_CRITERIA: Construct independent rational predecessor/successor witnesses for all admitted relations, negative divisors and self coefficients, zero self coefficient, impossible constants, open bounds and unbounded values. Verify equality agreement and all argument rejections.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxaffinetransfersspec1.cc; tests/boxaffinetransferoracle.hh; tests/boxrefinementoracle.hh; tests/boxaffinepublic1.cc.
-
Incoming link from: 6. Generalized multi-coordinate box preimage1
5. Generalized multi-coordinate box image UID: PPL-SPEC-001025 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For dimension-compatible affine expressions l, r and an admitted comparison ⋈ , the expression overload of generalized_affine_image shall enclose every z for which an entry point x satisfies l(z) ⋈ r(x). For each coordinate absent from the homogeneous part of l, zi = xi shall additionally hold. A zero coefficient shall therefore leave a coordinate unchanged, irrespective of its explicit ambient dimension. When the left expression contains a coordinate, factors outside its nonzero support shall retain their entry represented sets. When the left expression is constant, the result may refine these unchanged factors within the entry box to enforce the relation.
Coordinates occurring on the left are updated together. The same coordinate may also occur on the right, where it denotes its entry value. Exchanging the two expressions and reversing the comparison shall not be treated as an equivalent update. An enclosure may lose correlations or retain infeasible points; no least box result shall be promised.
The five admitted relation symbols shall be LESS_THAN, LESS_OR_EQUAL, EQUAL, GREATER_OR_EQUAL and GREATER_THAN. NOT_EQUAL shall throw std::invalid_argument. Other relation codes shall be outside the admitted interface.
An expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors shall retain their values. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
RATIONALE: Primed left-hand coordinates and unprimed right-hand coordinates give an asymmetric simultaneous-update relation.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void generalized_affine_image(const Linear_Expression& lhs, Relation_Symbol relsym, const Linear_Expression& rhs);
VERIFICATION_CRITERIA: Enumerate independent rational old/new pairs with several left coordinates, shared and disjoint left/right coordinates, constant sides, zero coefficients, every admitted comparison and explicit dimensions. Check unchanged coordinates, sound enclosures, empty states and rejection of incompatible/disequality inputs.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxaffinetransfersspec1.cc; tests/boxaffinetransferoracle.hh; tests/boxrefinementoracle.hh; tests/boxaffinepublic1.cc.
-
6. Generalized multi-coordinate box preimage UID: PPL-SPEC-001026 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For the expression relation and admitted arguments in 🔗 5. Generalized multi-coordinate box image, the expression overload of generalized_affine_preimage shall enclose every x for which an entry-box point z satisfies l(z) ⋈ r(x) and zi = xi at every coordinate whose coefficient in l is zero. It shall use the left expression for successor values and the right expression for predecessor values, even when their coordinate sets overlap. At coordinates outside the original left expression's nonzero support, the result shall retain the entry factor restrictions, permitting sound tightening.
The result may lose constraints during existential abstraction and need not be the least box preimage. It shall not exclude a feasible predecessor or make the result empty merely because a relational predecessor set cannot be represented exactly. Const descriptors shall remain unchanged.
The five admitted relation symbols shall be LESS_THAN, LESS_OR_EQUAL, EQUAL, GREATER_OR_EQUAL and GREATER_THAN. NOT_EQUAL shall throw std::invalid_argument. Other relation codes shall be outside the admitted interface.
An expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors shall retain their values. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
RATIONALE: A simultaneous relation requires existential predecessor abstraction with the original primed-coordinate convention intact.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void generalized_affine_preimage(const Linear_Expression& lhs, Relation_Symbol relsym, const Linear_Expression& rhs);
VERIFICATION_CRITERIA: Use rational successor witnesses to check predecessor inclusion for shared/disjoint coordinate supports, constant left/right sides, all comparisons and signs, empty and unbounded boxes, preservation of input expressions and dimension/disequality rejection.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxaffinetransfersspec1.cc; tests/boxaffinetransferoracle.hh; tests/boxrefinementoracle.hh; tests/boxaffinepublic1.cc.
-
Incoming link from: 8. Bounded affine box preimage1
7. Bounded affine box image UID: PPL-SPEC-001027 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For a valid coordinate k, dimension-compatible affine lower and upper expressions l, u, and nonzero coefficient d, bounded_affine_image shall enclose all successor vectors z from entry points x satisfying l(x) ⁄ d ≤ zk ≤ u(x) ⁄ d and zi = xi for i ≠ k. A negative denominator shall keep these divided lower/upper meanings; it shall not silently exchange the supplied expressions.
The operation may refine feasibility of the lower/upper relation before updating the coordinate. Inconsistent divided bounds shall admit no successor, while partial feasibility shall retain all feasible successors. Conservative refinement and interval evaluation may lose precision; no least box enclosure shall be promised. The supplied expressions shall retain their values. Every coordinate other than the updated one shall preserve its entry factor restriction; feasibility filtering may tighten it.
With exact rational interval endpoints and two constant bound expressions, a nonempty input shall produce exactly the divided closed interval at the updated coordinate, retaining the other entry factors, when the divided lower bound does not exceed the divided upper bound. Reversed divided bounds shall produce empty. This special case shall not establish a general least-box guarantee for variable-dependent bounds.
A zero denominator, an invalid selected coordinate or an expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors stored separately from the receiver shall retain their values. A scalar argument borrowed from still-live receiver storage shall use its entry value. Such a borrowed view may reflect the resulting receiver. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
RATIONALE: Both bounds refer to the same predecessor state, so their ordering and dependencies must be retained when defining feasible successors.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void bounded_affine_image(Variable var, const Linear_Expression& lb_expr, const Linear_Expression& ub_expr, Coefficient_traits::const_reference denominator=Coefficient_one());
VERIFICATION_CRITERIA: Check independent rational predecessor/successor pairs for both denominator signs, constants, affine bounds with/without the overwritten coordinate, intersecting or contradictory bounds, strict source factors, unbounded values, empty states and invalid arguments.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxaffinetransfersspec1.cc; tests/boxaffinetransferoracle.hh; tests/boxrefinementoracle.hh; tests/boxaffinepublic1.cc.
-
8. Bounded affine box preimage UID: PPL-SPEC-001028 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For the bounded affine relation and arguments in 🔗 7. Bounded affine box image, bounded_affine_preimage shall enclose all predecessors x for which an entry-box successor z satisfies l(x) ⁄ d ≤ zk ≤ u(x) ⁄ d and zi = xi for i ≠ k. Both inequalities shall constrain the same successor value. Negative denominators and coefficients shall retain the mathematically required comparison directions. The result may lose precision through existential abstraction and need not be the least box preimage. It shall retain every feasible predecessor; only an infeasible relation may yield empty. Coordinates other than the updated one shall preserve the entry factor restrictions, permitting sound tightening by feasibility filtering.
With exact rational interval endpoints and two constant bound expressions, the result for a nonempty entry box shall be empty exactly when the divided closed interval is empty or has no point in common with the entry target factor. Otherwise, the old target coordinate shall become unconstrained and every other factor shall equal its entry factor. The entry factor's open endpoints shall govern whether a contact point is a common witness. This special case shall not establish a general least-box guarantee.
A zero denominator, an invalid selected coordinate or an expression of greater ambient dimension shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors stored separately from the receiver shall retain their values. A scalar argument borrowed from still-live receiver storage shall use its entry value. Such a borrowed view may reflect the resulting receiver. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
RATIONALE: Backward bounded assignment must retain a common successor witness for its lower and upper inequalities.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void bounded_affine_preimage(Variable var, const Linear_Expression& lb_expr, const Linear_Expression& ub_expr, Coefficient_traits::const_reference denominator=Coefficient_one());
VERIFICATION_CRITERIA: Check rational predecessor witnesses against an independent two-inequality model, with positive/negative denominators and coefficients, self/other dependencies, constant and inconsistent bounds, open/unbounded successor factors, empty states and rejection paths.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxaffinetransfersspec1.cc; tests/boxaffinetransferoracle.hh; tests/boxrefinementoracle.hh; tests/boxaffinepublic1.cc.
-
9. Interval-coefficient affine box image UID: PPL-SPEC-001029 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For a valid coordinate k and dimension-compatible Linear_Form<ITV> with nonempty bounded coefficient intervals, affine_form_image shall require a supported native floating boundary profile. It shall enclose every successor obtained from an entry point x by replacing coordinate k with a value of B + ∑iAixi, where the constant B and coefficients Ai are chosen from the supplied form's intervals. Every other coordinate shall retain its entry factor.
The range shall use outward interval arithmetic on the entry box, including the old value of the replaced coordinate wherever it occurs. Neither successive occurrences nor coordinate choices shall create an exactness claim beyond that interval enclosure. The form shall remain unchanged and an empty box shall remain empty. Dimension checks shall occur even for an empty receiver. An exact-arithmetic boundary profile shall not be an admitted instantiation of this floating-boundary interface.
An expression of greater ambient dimension or an invalid selected coordinate shall throw std::invalid_argument before replacement, including on empty input.
The receiver shall retain its ambient dimension; empty input shall remain empty. Const input descriptors shall retain their values. The numerical, initialization, lifetime and synchronization prerequisites in 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Escaping allocation and arithmetic exceptions shall retain their delegated guarantees without a general rollback promise.
RATIONALE: An interval linear form carries an enclosure of possible assignment expressions, whose evaluation must remain sound after projection into a Cartesian domain.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void affine_form_image(Variable var, const Linear_Form<ITV>& lf);
VERIFICATION_CRITERIA: Use exact rational coefficient and coordinate samples under every available native boundary format in its required initialized FPU mode, checking direction preservation. Check constant/trailing dimensions, uncertain signs and zero coefficients, self-dependence, outward non-dyadic bounds, unchanged other factors and form, empty/lazy states, dimension rejection and compile-time boundary admission.
BIBLIOGRAPHY: Mine04 | Section 5, interval linear forms and intervalization (PDF page index 6, zero-based).
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxaffinetransfersspec1.cc; tests/boxaffinetransferoracle.hh; tests/boxrefinementoracle.hh; tests/boxaffinepublic1.cc.
-
1. Exact rational affine image UID: PPL-SPEC-001287 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000044 Rational affine transformations of grids (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: affine_image(var, expr, denominator) shall assign the exact image under x’v = e(x) ⁄ d, with all other coordinates unchanged. denominator defaults to one. The entry denominator value shall be used even when borrowed from a receiver-owned congruence or generator. External expression and scalar values shall be preserved. Zero denominator, an invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers.
Bounded-coefficient congruence substitution shall clear the denominator, replace the target coefficient and form complete exact coefficients before admission. Proper constants may be reduced modulo the new positive modulus; all coefficients and that modulus may be divided by their common positive factor. Homogeneous coefficients shall not be reduced modulo a modulus. Numeric generator reductions shall complete each subtraction before admission and shall preserve every integer-parameter period. In a discrete generator system, a common physical factor of every point/parameter coordinate and divisor may be cancelled during elimination and restored afterwards. Such working-scale cancellation shall preserve the previous strong-form storage scale and shall not rescale one lattice direction independently.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: An affine transformation maps supporting points, integer parameters and real directions exactly; entry scalar capture prevents descriptor invalidation from changing the transformation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void affine_image(Variable var, const Linear_Expression& expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Use independent rational generator transformations for invertible and singular maps, negative denominators, all cache histories, borrowed scalar owners, zero values and dimension rejection.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Congruence.cc; src/Grid_templates.hh; tests/Grid/affineimage1.cc; tests/Grid/affineimage2.cc; tests/gridoperationsspec1.cc; tests/gridaffineborrow1.cc; tests/gridoperationsfailure1.cc.
-
2. Exact rational affine preimage UID: PPL-SPEC-001288 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000044 Rational affine transformations of grids (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: affine_preimage(var, expr, denominator) shall assign exactly the set of x whose image under x’v = e(x) ⁄ d, with other coordinates unchanged, belongs to the entry receiver. denominator defaults to one. It shall use the entry denominator value even when borrowed from receiver-owned descriptions, and preserve external inputs. Zero denominator, invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers.
Bounded-coefficient congruence substitution shall clear the denominator, replace the target coefficient and form complete exact coefficients before admission. Proper constants may be reduced modulo the new positive modulus; all coefficients and that modulus may be divided by their common positive factor. Homogeneous coefficients shall not be reduced modulo a modulus. Numeric generator reductions shall complete each subtraction before admission and shall preserve every integer-parameter period. In a discrete generator system, a common physical factor of every point/parameter coordinate and divisor may be cancelled during elimination and restored afterwards. Such working-scale cancellation shall preserve the previous strong-form storage scale and shall not rescale one lattice direction independently.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Substitution in congruences computes inverse images even when the transformation is singular.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void affine_preimage(Variable var, const Linear_Expression& expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Check independently substituted congruences, invertible/singular maps, constants, negative denominators, fractional phases, borrowed scalars and invalid arguments under every cache history.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Congruence.cc; src/Grid_templates.hh; tests/Grid/affinepreimage1.cc; tests/Grid/affinepreimage2.cc; tests/gridoperationsspec1.cc; tests/gridaffineborrow1.cc; tests/gridoperationsfailure1.cc.
-
3. Generalized variable affine image UID: PPL-SPEC-001289 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000044 Rational affine transformations of grids (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For EQUAL, generalized_affine_image(var, relsym, expr, denominator, modulus) shall assign the exact relational image under x’v = e(x) ⁄ d + mk, k ∈ Z, with other coordinates unchanged. Zero modulus shall mean ordinary affine image; either sign of a nonzero modulus shall denote the same period. Defaults are denominator one and modulus zero. Borrowed scalars shall use their entry values. For an ordered inequality and zero modulus, it shall conservatively cylindrify the target. NOT_EQUAL and ordered relations with nonzero modulus are unsupported and shall throw std::invalid_argument before mutation, including on empty receivers. Zero denominator and dimension errors shall likewise be rejected before mutation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: An integer target period represents modular nondeterminism; ignoring an ordered bound still gives a sound coarse grid abstraction.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void generalized_affine_image(Variable var, Relation_Symbol relsym, const Linear_Expression& expr, Coefficient_traits::const_reference denominator = Coefficient_one(), Coefficient_traits::const_reference modulus = Coefficient_zero());
VERIFICATION_CRITERIA: Check every ordered relation with positive/negative nonzero moduli on marked-empty, unclassified contradictory and nonempty receivers. Require rejection without receiver mutation; zero-modulus ordered relations retain their documented coordinate frame.
Use independent rational image generators plus the target period, signed and zero moduli, singular maps, borrowed denominators/moduli, inequality cylindrification and rejection controls.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: tests/Grid/affineadmission1.cc; tests/affinecontractmatrix1.cc; src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/generalizedaffineimage1.cc; tests/Grid/generalizedaffineimage2.cc; tests/gridoperationsspec1.cc; tests/gridaffineborrow1.cc; tests/gridoperationsfailure1.cc.
-
4. Generalized variable affine preimage UID: PPL-SPEC-001290 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000044 Rational affine transformations of grids (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: generalized_affine_preimage(var, relsym, expr, denominator, modulus) shall assign the exact inverse relational image for the EQUAL relation in [LINK: PPL-SPEC-001289]. Defaults, modulus sign, borrowed entry values and rejection scope shall be the same. Ordered inequalities with zero modulus shall conservatively cylindrify the target coordinate of the entry receiver.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Inverse modular substitution must retain both denominator and modulus until the induced inverse period has been formed.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void generalized_affine_preimage(Variable var, Relation_Symbol relsym, const Linear_Expression& expr, Coefficient_traits::const_reference denominator = Coefficient_one(), Coefficient_traits::const_reference modulus = Coefficient_zero());
VERIFICATION_CRITERIA: Check every ordered relation with positive/negative nonzero moduli on marked-empty, unclassified contradictory and nonempty receivers. Require rejection without receiver mutation; zero-modulus ordered relations retain their documented coordinate frame.
Check rational range and congruence substitution independently for unit, negative, nonunit and zero target coefficients, signed moduli, singular preimages, borrowed scalar owners and relation/dimension errors.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: tests/Grid/affineadmission1.cc; tests/affinecontractmatrix1.cc; src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/generalizedaffinepreimage1.cc; tests/Grid/generalizedaffinepreimage2.cc; tests/gridoperationsspec1.cc; tests/gridaffineborrow1.cc; tests/gridoperationsfailure1.cc.
-
5. Generalized expression affine image UID: PPL-SPEC-001291 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000044 Rational affine transformations of grids (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For EQUAL, generalized_affine_image(lhs, relsym, rhs, modulus) shall assign the exact image of the relation lhs(x’) − rhs(x) ∈ mZ, where the coordinates with nonzero coefficients in lhs may change simultaneously and all other coordinates are unchanged. Zero modulus means equality and is the default; modulus sign is immaterial. Constant lhs shall constrain the old state without assigning a coordinate. The modulus shall use its entry value even if borrowed. Ordered inequalities with zero modulus shall conservatively cylindrify the assigned coordinates. NOT_EQUAL or an ordered relation with nonzero modulus shall throw std::invalid_argument before mutation, including on empty receivers. Excess expression dimensions shall likewise be rejected before mutation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: The expression overload is a simultaneous relation, so it must preserve the pre-update meaning of the right-hand side.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void generalized_affine_image(const Linear_Expression& lhs, Relation_Symbol relsym, const Linear_Expression& rhs, Coefficient_traits::const_reference modulus = Coefficient_zero());
VERIFICATION_CRITERIA: Check every ordered relation with positive/negative nonzero moduli on marked-empty, unclassified contradictory and nonempty receivers. Require rejection without receiver mutation; zero-modulus ordered relations retain their documented coordinate frame.
Check independent projected generator/range calculations for overlapping and disjoint expression supports, constant sides, signed/zero moduli, borrowed moduli, inequality cylindrification and invalid dimensions.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: tests/Grid/affineadmission1.cc; tests/affinecontractmatrix1.cc; src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/generalizedaffineimage3.cc; tests/gridoperationsspec1.cc; tests/gridaffineborrow1.cc; tests/gridoperationsfailure1.cc.
-
6. Generalized expression affine preimage UID: PPL-SPEC-001292 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000044 Rational affine transformations of grids (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: generalized_affine_preimage(lhs, relsym, rhs, modulus) shall assign the exact inverse relational image of EQUAL as defined in [LINK: PPL-SPEC-001291]. Assigned coordinates are those occurring in lhs; all others are shared between old and new states. Default modulus, sign, borrowed entry-value and rejection rules shall be the same. Ordered inequalities with zero modulus shall conservatively cylindrify those coordinates of the entry receiver.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: The inverse relation constrains the old right-hand-side value by the possible new left-hand-side values.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void generalized_affine_preimage(const Linear_Expression& lhs, Relation_Symbol relsym, const Linear_Expression& rhs, Coefficient_traits::const_reference modulus = Coefficient_zero());
VERIFICATION_CRITERIA: Check every ordered relation with positive/negative nonzero moduli on marked-empty, unclassified contradictory and nonempty receivers. Require rejection without receiver mutation; zero-modulus ordered relations retain their documented coordinate frame.
Use independent rational range and congruence calculations for both expression supports, constant cases, signed periods, borrowed moduli, inequalities and dimension/relation rejection.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: tests/Grid/affineadmission1.cc; tests/affinecontractmatrix1.cc; src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/generalizedaffinepreimage3.cc; tests/gridoperationsspec1.cc; tests/gridaffineborrow1.cc; tests/gridoperationsfailure1.cc.
-
Incoming link from: 8. Bounded affine preimage abstraction1
7. Bounded affine image abstraction UID: PPL-SPEC-001293 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounded_affine_image(var, lb_expr, ub_expr, denominator) shall return the cylindrification of the entry receiver in var, preserving ambient dimension and its projection on all other coordinates. This is a conservative abstraction of the bounded affine image; it need not detect infeasible bounds or retain equal bounds. The denominator defaults to one. Zero denominator, invalid target or excess dimension of either bound shall throw std::invalid_argument before mutation, including empty.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: The Grid interface deliberately uses a coarse forgetting operation for bounded assignments.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void bounded_affine_image(Variable var, const Linear_Expression& lb_expr, const Linear_Expression& ub_expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Check equality with independently projected grids for equal, reversed, constant and variable bounds, either denominator sign, empty inputs and each invalid bound/target/denominator.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/boundedaffineimage1.cc; tests/gridoperationsspec1.cc; tests/gridaffineborrow1.cc; tests/gridoperationsfailure1.cc.
-
8. Bounded affine preimage abstraction UID: PPL-SPEC-001294 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounded_affine_preimage(var, lb_expr, ub_expr, denominator) shall return the cylindrification of the entry receiver in var. It shall preserve dimension and all restrictions among other coordinates, and conservatively contain the concrete bounded-relation preimage. It need not detect infeasible bounds. Default and rejection rules shall be as in 🔗 7. Bounded affine image abstraction.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Forgetting the updated coordinate is sound for the bounded preimage even when sharper relational information could be computed.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void bounded_affine_preimage(Variable var, const Linear_Expression& lb_expr, const Linear_Expression& ub_expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Compare with independent projection and free-coordinate restoration for equal/reversed bounds, singular cases, empty and invalid arguments.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/boundedaffinepreimage1.cc; tests/gridoperationsspec1.cc; tests/gridaffineborrow1.cc; tests/gridoperationsfailure1.cc.
-
1. Rational affine image of one coordinate UID: PPL-SPEC-001206 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For an entry shape X ⊆ ℝn , a valid coordinate k , a dimension-compatible integer-coefficient affine expression e and a nonzero coefficient d , affine_image(k,e,d) shall replace the receiver with an octagonal shape containing
{y ∈ ℝn ∣ ∃x ∈ X : yk = e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.With exact rational boundary arithmetic, constant replacement and assignments xk : = sxj + c with s ∈ { − 1, 1} , including signed self translation, shall give the exact image. Other affine expressions may require a conservative octagonal enclosure. Rounded profiles shall keep the delegated outward bounds. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: Transporting a correlated state through an assignment requires an old/new-coordinate relation; independent interval evaluation alone loses those correlations.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::Octagonal_Shape<T>:
void affine_image(Variable var, const Linear_Expression& expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Project independent old/new halfspaces. Check constant, copy, translation, negation, nonunit scaling and multiple-variable forms. Under unbounded exact rational arithmetic, require equality for constant/signed-copy/translation classes and sound inclusion elsewhere; other profiles retain their stated enclosure guarantees. Include negative denominators, bounded/unbounded sources, latent emptiness, cache histories and unchanged-coordinate constraints. Exercise finite implied bounds exposed by translation after earlier positive or negative saturation; check receiver validity before and after subsequent semantic queries.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 4 and 7 (octagonal semantics and floating-point implementation background).
SOURCE: tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeaffinespec1.cc; tests/octagonalshapeaffinepublic1.cc; tests/octagonalshapeaffineallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeaffineoracle.hh; tests/octagonalshapeconversionoracle.hh; tests/octagonalshapevalueoracle.hh; tests/octagonalshapesaturationspec1.cc.
-
Incoming link from: 4. Single-coordinate generalized affine preimage1
2. Rational affine preimage of one coordinate UID: PPL-SPEC-001207 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: With the coordinate, expression and denominator admitted by 🔗 1. Rational affine image of one coordinate , affine_preimage(k,e,d) shall contain every x ∈ ℝn whose successor, obtained by replacing coordinate k with e(x) ⁄ d , belongs to the entry post-state shape. Expression occurrences of the updated coordinate shall denote its pre-state value.
With exact rational boundary arithmetic, a signed self translation xk : = sxk + c with s ∈ { − 1, 1} shall give the exact preimage. Other transformations shall give sound containing octagons; they need not compute the least octagonal enclosure even when the exact preimage is representable, as specified by WR_Affine_Preimage_Precision in the mathematical interface definitions. In particular, constant and distinct-coordinate assignments need not retain every representable predecessor constraint. Rounded profiles shall retain the selected outward arithmetic guarantees. Invertible transformations shall use the same relational predecessor meaning as noninvertible ones. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: Backward transfer selects predecessors of the postcondition and must distinguish pre-state and post-state occurrences of an assigned variable.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::Octagonal_Shape<T>:
void affine_preimage(Variable var, const Linear_Expression& expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Derive relational predecessors by eliminating new coordinates. Check exact signed self inverses, including fractional translations. Check containment for constants, distinct-coordinate copies, noninvertible general maps and negative denominators without imposing a leastness promise. Include empty postconditions, correlated frames and nonrepresentable rounded bounds.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 4 and 7 (octagonal semantics and floating-point implementation background).
SOURCE: tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeaffinespec1.cc; tests/octagonalshapeaffinepublic1.cc; tests/octagonalshapeaffineallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeaffineoracle.hh; tests/octagonalshapeconversionoracle.hh; tests/octagonalshapevalueoracle.hh.
-
3. Single-coordinate generalized affine image UID: PPL-SPEC-001208 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For ⋈ ∈ { = , ≤ , ≥ } , the variable overload of generalized_affine_image(k,relsym,e,d) shall contain
{y ∣ ∃x ∈ X : yk ⋈ e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Equality shall have the behavior of 🔗 1. Rational affine image of one coordinate . A one-sided relation shall use the indicated quotient, including the sign of the denominator; it shall not silently turn a lower relation into an upper relation. The result may conservatively approximate the affine relation. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: A one-sided update nondeterministically chooses a successor satisfying its affine bound, while leaving all other coordinates framed.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::Octagonal_Shape<T>:
void generalized_affine_image( Variable var, Relation_Symbol relsym, const Linear_Expression& expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Independently project equality and both non-strict relation directions. Compare equality with 🔗 1. Rational affine image of one coordinate ; include positive/negative denominators, self dependence, distinct-variable dependence, general expressions, unbounded inputs and infeasible relations. Check unchanged-coordinate constraints and rejected strict/disequality symbols.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 4 and 7 (octagonal semantics and floating-point implementation background).
SOURCE: tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeaffinespec1.cc; tests/octagonalshapeaffinepublic1.cc; tests/octagonalshapeaffineallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeaffineoracle.hh; tests/octagonalshapeconversionoracle.hh; tests/octagonalshapevalueoracle.hh.
-
4. Single-coordinate generalized affine preimage UID: PPL-SPEC-001209 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For ⋈ ∈ { = , ≤ , ≥ } , the variable overload of generalized_affine_preimage(k,relsym,e,d) shall contain
{x ∣ ∃y ∈ X : yk ⋈ e(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Equality shall have the behavior and class-specific precision of 🔗 2. Rational affine preimage of one coordinate . Other admitted relations may give sound nonleast octagonal enclosures according to the documented preimage approximation contract. The denominator sign shall be respected. The relation shall use the same old/new coordinate frame for self-dependent and non-self-dependent expressions. Constraints involving only unchanged coordinates shall remain valid. The source expression and denominator shall keep their values.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: A predecessor exists when some framed successor satisfies the postcondition and the selected relation, not when every possible successor does.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::Octagonal_Shape<T>:
void generalized_affine_preimage( Variable var, Relation_Symbol relsym, const Linear_Expression& expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Eliminate new coordinates independently, with equality and both inequality directions, sign-normalized denominators, self/non-self dependence and general affine expressions. Check equality delegation, empty postconditions, surviving-coordinate restrictions and invalid symbols.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 4 and 7 (octagonal semantics and floating-point implementation background).
SOURCE: tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeaffinespec1.cc; tests/octagonalshapeaffinepublic1.cc; tests/octagonalshapeaffineallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeaffineoracle.hh; tests/octagonalshapeconversionoracle.hh; tests/octagonalshapevalueoracle.hh.
-
Incoming link from: 6. Expression-left generalized affine preimage1
5. Expression-left generalized affine image UID: PPL-SPEC-001210 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Let l and r be dimension-compatible affine expressions, U the coordinates with nonzero homogeneous coefficient in l , and ⋈ ∈ { = , ≤ , ≥ } . The expression overload of generalized_affine_image(l,relsym,r) shall contain
{y ∣ ∃x ∈ X : l(y) ⋈ r(x) ∧ ∀i ∉ U, yi = xi}.The left expression shall be interpreted in the new state and the right expression in the old state; exchanging them and reversing the relation shall not in general describe the same update. A constant left expression shall be a guard with every coordinate framed. Multiple updated coordinates may lose precision through a sound octagonal enclosure. Constraints involving only coordinates outside U shall remain valid. Separately stored source expressions shall remain unchanged; lhs and rhs may denote the same live expression.
For a constant left expression, a representable guard shall be added natively. Other guards shall receive one finite pass over native directions formed from each nonzero coefficient and each representable matching pair, in increasing coordinate order. For a guard expression e ≥ 0 and such a direction d , the finite infimum of the residual d − e shall supply d ≥ inf(d − e) . Equality shall also use its finite supremum to supply d ≤ sup(d − e) . Closure shall propagate earlier deductions before each direction is considered. Residual optimization shall preserve its supported correlations; returned rational bounds shall be inserted directly, without an intermediate scalar-interval conversion. This pass need not reach a fixed point or compute a least abstract intersection. General residuals may require linear programming.
When the homogeneous part of l has two nonzero coefficients and is representable as an octagonal expression up to scaling, the finite entry-state supremum of r shall be retained as an upper bound on the new l for EQUAL and LESS_OR_EQUAL. Its finite infimum shall be retained as a lower bound for EQUAL and GREATER_OR_EQUAL. These bounds shall be computed before forgetting updated coordinates and shall also apply to disjoint left/right supports. Rational boundaries shall retain the exact extrema; other boundary profiles shall retain their native outward guarantees. An unbounded direction shall add no finite bound.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. An expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: The support of the left expression determines which coordinates are assigned together; all occurrences on the right refer to the entry state.
Finite right-hand ranges are evaluated in the entry shape. Native optimization uses cached bounds for representable objectives and may invoke the linear programming solver for a general right expression. Saving those bounds before projection avoids confusing old and new occurrences of the same coordinate.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::Octagonal_Shape<T>:
void generalized_affine_image(const Linear_Expression& lhs, Relation_Symbol relsym, const Linear_Expression& rhs);
VERIFICATION_CRITERIA: Check the retained left-expression ranges against an independently assembled old/new polyhedron followed by projection, and literal rational fixtures. Include positive/negative scaling, arbitrary right expressions, disjoint and overlapping supports, shared expressions, one-sided/unbounded ranges, framed coordinates, dense/sparse expressions and rational/floating/integral bounds.
Use independent old/new relations for constant, single-variable and multi-variable left sides, disjoint/overlapping supports, shared lhs/rhs, all admitted relations and rejected symbols. Check full frame constraints and soundness for approximate general updates rather than imposing an unsupported universal leastness requirement.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 4 and 7 (octagonal semantics and floating-point implementation background).
SOURCE: tests/generalizedaffineboundsspec1.cc; tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeaffinespec1.cc; tests/octagonalshapeaffinepublic1.cc; tests/octagonalshapeaffineallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeaffineoracle.hh; tests/octagonalshapeconversionoracle.hh; tests/octagonalshapevalueoracle.hh.
-
6. Expression-left generalized affine preimage UID: PPL-SPEC-001211 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: With l , r , U and ⋈ admitted by 🔗 5. Expression-left generalized affine image , the expression overload of generalized_affine_preimage(l,relsym,r) shall contain
{x ∣ ∃y ∈ X : l(y) ⋈ r(x) ∧ ∀i ∉ U, yi = xi}.A constant left expression shall be a guard with every coordinate framed. Other forms may return sound nonleast octagonal enclosures as specified by the preimage approximation contract. Constraints involving only coordinates outside U shall remain valid. Separately stored source expressions shall remain unchanged; the same live expression may supply both lhs and rhs .
For a left expression with at least two nonzero homogeneous coefficients, the finite target-state infimum of l shall supply the necessary guard r ≥ infXl for EQUAL and LESS_OR_EQUAL; the finite supremum shall supply r ≤ supXl for EQUAL and GREATER_OR_EQUAL. These extrema shall be computed before forgetting updated coordinates. The guards shall be refined in the old-state coordinates using the same native native-direction approximation as constant-left images. An unbounded direction shall contribute no finite guard. Existing relational deductions and framed-coordinate constraints shall also be preserved. Rational boundary arithmetic shall use exact extrema; other profiles shall retain their native outward guarantees. These deductions need not give a least preimage enclosure.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. An expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Strict inequality and disequality relation symbols shall throw std::invalid_argument before changing the represented set, including on empty input.
The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: Expression-left backward transfer uses the same transition relation as the forward operation, with the postcondition placed on new coordinates.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::Octagonal_Shape<T>:
void generalized_affine_preimage(const Linear_Expression& lhs, Relation_Symbol relsym, const Linear_Expression& rhs);
VERIFICATION_CRITERIA: Eliminate the new coordinates from relational postconditions for constant/single/multiple left supports, finite and unbounded target lhs ranges, disjoint and overlapping right supports, shared expressions and every admitted relation. Include empty/zero-dimensional guards, incompatibility and rejected symbols; retain every feasible predecessor.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 4 and 7 (octagonal semantics and floating-point implementation background).
SOURCE: tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeaffinespec1.cc; tests/octagonalshapeaffinepublic1.cc; tests/octagonalshapeaffineallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeaffineoracle.hh; tests/octagonalshapeconversionoracle.hh; tests/octagonalshapevalueoracle.hh.
-
Incoming link from: 8. Single-coordinate bounded affine preimage1
7. Single-coordinate bounded affine image UID: PPL-SPEC-001212 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For admitted coordinate k , dimension-compatible expressions l, u and nonzero denominator d , bounded_affine_image(k,l,u,d) shall contain
{y ∣ ∃x ∈ X : l(x) ⁄ d ≤ yk ≤ u(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.Both bounding expressions shall use the same entry state. A negative common denominator shall preserve the displayed quotient inequalities; the lower and upper argument roles shall not be exchanged merely because the denominator is negative. The bounds may depend on the replaced coordinate. The result may conservatively approximate this simultaneous relation. Constraints involving only unchanged coordinates shall remain valid. Both expressions and the denominator shall remain unchanged; lb_expr and ub_expr may refer to the same live expression.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: Two bounds constrain one nondeterministic assignment in a common old state; sequentially changing the variable would define a different relation.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::Octagonal_Shape<T>:
void bounded_affine_image( Variable var, const Linear_Expression& lb_expr, const Linear_Expression& ub_expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Project both divided inequalities together. Cover equal and inconsistent bounds, self dependence in zero/one/both bounds, negative denominators, shared bound expressions, unbounded correlated inputs, empty input and invalid dimensions/zero denominators. Check simultaneous-transition soundness and unchanged-coordinate constraints.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 4 and 7 (octagonal semantics and floating-point implementation background).
SOURCE: tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeaffinespec1.cc; tests/octagonalshapeaffinepublic1.cc; tests/octagonalshapeaffineallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeaffineoracle.hh; tests/octagonalshapeconversionoracle.hh; tests/octagonalshapevalueoracle.hh.
-
8. Single-coordinate bounded affine preimage UID: PPL-SPEC-001213 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: With the coordinate, expressions and denominator admitted by 🔗 7. Single-coordinate bounded affine image , bounded_affine_preimage(k,l,u,d) shall contain
{x ∣ ∃y ∈ X : l(x) ⁄ d ≤ yk ≤ u(x) ⁄ d ∧ ∀i ≠ k, yi = xi}.The two bounds shall be evaluated in the same pre-state, including when one or both contain xk . The result may be a sound nonleast octagonal enclosure under the documented preimage approximation contract. Any auxiliary coordinate used internally shall not remain in a successful result. Constraints involving only unchanged coordinates shall remain valid. Both source expressions and the denominator shall remain unchanged, including shared bound-expression arguments.
The ambient dimension shall remain unchanged on successful return. Empty input shall remain empty after argument validation. A zero denominator, a selected coordinate outside the receiver or an expression of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. The real-set interpretation, admitted boundary profiles, initialized runtime, numerical-intermediate, synchronization and resource conditions of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Exactness clauses refer to exact rational boundary arithmetic; native or integral bounds shall retain the selected arithmetic operations' outward guarantees. Const expression and denominator arguments may share still-live source storage. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible. No additional rollback guarantee is imposed.
RATIONALE: Backward bounded transfer must find a single successor satisfying both old-state bounds and the complete postcondition.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::Octagonal_Shape<T>:
void bounded_affine_preimage( Variable var, const Linear_Expression& lb_expr, const Linear_Expression& ub_expr, Coefficient_traits::const_reference denominator = Coefficient_one());
VERIFICATION_CRITERIA: Derive predecessors by eliminating new coordinates with both affine bounds present. Include zero/one/both-bound self dependence, constant and inconsistent pairs, positive/negative denominators and shared source expressions. Verify bottom preservation, unchanged-coordinate restrictions, final dimension and ownership when temporary coordinates are used.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 4 and 7 (octagonal semantics and floating-point implementation background).
SOURCE: tests/shapeunsignedaffinespec1.cc; doc/definitions.dox; src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeaffinespec1.cc; tests/octagonalshapeaffinepublic1.cc; tests/octagonalshapeaffineallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeaffineoracle.hh; tests/octagonalshapeconversionoracle.hh; tests/octagonalshapevalueoracle.hh.
-
1. Native interval-affine image UID: PPL-SPEC-001236 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For a supported native floating-point boundary type T, a valid coordinate k and a dimension-compatible Linear_Form<Interval<T,Interval_Info>> with bounded coefficient intervals Ai and bounded constant interval B, affine_form_image(k,lf) shall contain every successor
{y ∣ ∃x ∈ X, b ∈ B, ai ∈ Ai : yk = b + ∑iaixi ∧ ∀j ≠ k, yj = xj}.Coefficient and constant choices shall be independent as specified by 🔗 1. Interval-linear-form meaning and numerical prerequisites . The result shall use outward numerical bounds; interval uncertainty and the restricted octagonal language may lose precision, without a general least-enclosure guarantee. Constraints involving only unchanged coordinates shall remain valid. The source form and its coefficient intervals shall retain their values. An empty coefficient or constant interval shall make the receiver empty.
The selected native format, interval representation, initialized numerical runtime, caller-owned upward FPU environment and arithmetic/resource prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use and 🔗 1. Interval-linear-form meaning and numerical prerequisites shall hold. Bounded intervals shall satisfy their stored-value and endpoint-access prerequisites. Unbounded coefficients are outside this operation's documented admission. Native availability shall follow the corresponding configured supported-format predicate.
The ambient dimension shall remain unchanged. Empty input shall remain empty after validation. An invalid selected coordinate or a form of greater ambient dimension shall throw std::invalid_argument before changing the represented set, including on empty input. Allocation and numerical exceptions may propagate; discarded temporaries shall release owned storage and the receiver shall remain destructible, without an additional rollback guarantee. Callers shall synchronize shared owners and facilities.
RATIONALE: Interval coefficients represent independent uncertainty rather than fixed rational scalars; their choices must be included together with correlated input states.
INTERFACE: Public header: <ppl.hh>; member of Parma_Polyhedra_Library::Octagonal_Shape<T>:
template <typename Interval_Info> void affine_form_image( Variable var, const Linear_Form<Interval<T, Interval_Info>>& lf);
VERIFICATION_CRITERIA: Independently enumerate finite coefficient corners and project each old/new affine relation, then derive the union supports; check conservative inclusion with constant, ±unit, uncertain-sign and general coefficients, zero tails and unbounded source directions. Include supported formats, caller FPU preservation, source-form preservation, empty input/choice sets, dimension errors and resource failures.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 4 and 7 (journal background on octagonal shapes and floating implementation). Mine04 | Sections 5 and 6.1, Assignments (interval-coefficient affine transfer).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; src/Interval_defs.hh; doc/definitions.dox; tests/Concrete_Expression/octagonalshape1.cc; tests/Concrete_Expression/octagonalreflection1.cc; tests/octagonalshapeintervalformspec1.cc; tests/octagonalshapeintervalformpublic1.cc; tests/octagonalshapeintervalformfailure1.cc.
-
Incoming link from: 1. Componentwise product image1
1. Lifted powerset image UID: PPL-SPEC-001413 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: affine_image shall lift the corresponding base image to every disjunct. Its mathematical target shall be the set of allowed successors of states in the old receiver; the new coordinate shall equal e ⁄ d. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
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.
RATIONALE: The transfer distributes over union only when every disjunct uses the same entry relation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void affine_image(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent per-disjunct calculations; cover borrowed constraint/generator scalars, one/many disjuncts, positive/negative denominators, empty states and invalid arguments.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/affineborrow1.cc; tests/Powerset/affineimage1.cc; tests/Powerset/affinepreimage1.cc; tests/Powerset/argumentadmission1.cc.
-
Incoming link from: 2. Componentwise product preimage1
2. Lifted powerset preimage UID: PPL-SPEC-001414 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: affine_preimage shall lift the corresponding base preimage to every disjunct. Its mathematical target shall be the set of source states having an allowed successor in the old receiver; the new coordinate shall equal e ⁄ d. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
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.
RATIONALE: The transfer distributes over union only when every disjunct uses the same entry relation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void affine_preimage(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent per-disjunct calculations; cover borrowed constraint/generator scalars, one/many disjuncts, positive/negative denominators, empty states and invalid arguments.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/affineborrow1.cc; tests/Powerset/affineimage1.cc; tests/Powerset/affinepreimage1.cc; tests/Powerset/argumentadmission1.cc.
-
Incoming link from: 3. Componentwise product generalized image1
3. Lifted powerset generalized image UID: PPL-SPEC-001415 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: generalized_affine_image shall lift the corresponding base generalized image to every disjunct. Its mathematical target shall be the set of allowed successors of states in the old receiver; v in the result shall satisfy v ⋈ e ⁄ d relative to the unchanged coordinates. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
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.
RATIONALE: The transfer distributes over union only when every disjunct uses the same entry relation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void generalized_affine_image(Variable, Relation_Symbol, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent per-disjunct calculations; cover borrowed constraint/generator scalars, one/many disjuncts, positive/negative denominators, empty states and invalid arguments.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/affineborrow1.cc; tests/Powerset/affineimage1.cc; tests/Powerset/affinepreimage1.cc; tests/Powerset/argumentadmission1.cc.
-
Incoming link from: 4. Componentwise product generalized preimage1
4. Lifted powerset generalized preimage UID: PPL-SPEC-001416 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: generalized_affine_preimage shall lift the corresponding base generalized preimage to every disjunct. Its mathematical target shall be the set of source states having an allowed successor in the old receiver; v in the result shall satisfy v ⋈ e ⁄ d relative to the unchanged coordinates. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
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.
RATIONALE: The transfer distributes over union only when every disjunct uses the same entry relation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void generalized_affine_preimage(Variable, Relation_Symbol, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent per-disjunct calculations; cover borrowed constraint/generator scalars, one/many disjuncts, positive/negative denominators, empty states and invalid arguments.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/affineborrow1.cc; tests/Powerset/affineimage1.cc; tests/Powerset/affinepreimage1.cc; tests/Powerset/argumentadmission1.cc.
-
Incoming link from: 5. Componentwise product bounded image1
5. Lifted powerset bounded image UID: PPL-SPEC-001417 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounded_affine_image shall lift the corresponding base bounded image to every disjunct. Its mathematical target shall be the set of allowed successors of states in the old receiver; the new coordinate shall satisfy ℓ ⁄ d ≤ v ≤ u ⁄ d using the written rational bounds. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
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.
RATIONALE: The transfer distributes over union only when every disjunct uses the same entry relation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void bounded_affine_image(Variable, const Linear_Expression&, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent per-disjunct calculations; cover borrowed constraint/generator scalars, one/many disjuncts, positive/negative denominators, empty states and invalid arguments.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/affineborrow1.cc; tests/Powerset/affineimage1.cc; tests/Powerset/affinepreimage1.cc; tests/Powerset/argumentadmission1.cc.
-
Incoming link from: 6. Componentwise product bounded preimage1
6. Lifted powerset bounded preimage UID: PPL-SPEC-001418 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounded_affine_preimage shall lift the corresponding base bounded preimage to every disjunct. Its mathematical target shall be the set of source states having an allowed successor in the old receiver; the new coordinate shall satisfy ℓ ⁄ d ≤ v ≤ u ⁄ d using the written rational bounds. Other coordinates shall be retained as defined by the base relation. The union shall inherit the base transfer's soundness and exactness.
Every disjunct shall use the same nonzero denominator value supplied at entry, even when it is borrowed from a receiver constraint, generator, divisor or inhomogeneous term that mutation later changes or invalidates. Capturing that entry value shall not depend on disjunct count. The base operation's dimension, relation-symbol and topology admission shall apply; invalid arguments shall throw std::invalid_argument.
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.
RATIONALE: The transfer distributes over union only when every disjunct uses the same entry relation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void bounded_affine_preimage(Variable, const Linear_Expression&, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent per-disjunct calculations; cover borrowed constraint/generator scalars, one/many disjuncts, positive/negative denominators, empty states and invalid arguments.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/affineborrow1.cc; tests/Powerset/affineimage1.cc; tests/Powerset/affinepreimage1.cc; tests/Powerset/argumentadmission1.cc.
-
Incoming link from: 7. Product expression-to-expression affine relations1
7. Lifted expression-to-expression affine relations UID: PPL-SPEC-001419 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Expression overloads shall lift the base relation ℓ’ ⋈ r to every disjunct, modifying the coordinates present in the left expression according to the base generalized-affine contract. Image shall collect allowed successors; preimage shall collect source states with an allowed successor in the old receiver. Shared left/right variables shall retain their before/after interpretation. Dimension, relation and topology admission shall follow the base member, with std::invalid_argument for invalid inputs.
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.
RATIONALE: Generalized relations distinguish new left-hand coordinates from old right-hand coordinates even when variable names overlap.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void generalized_affine_image(const Linear_Expression&, Relation_Symbol, const Linear_Expression&); void generalized_affine_preimage(const Linear_Expression&, Relation_Symbol, const Linear_Expression&);
VERIFICATION_CRITERIA: Check overlapping/disjoint variable supports, constant left expressions, strict and equality relations and base rejection.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/affineimage1.cc; tests/Powerset/affinepreimage1.cc; tests/Powerset/argumentadmission1.cc.
-
1. Pointset-powerset coordinate growth UID: PPL-SPEC-001420 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Embedding shall extend each disjunct with m unconstrained trailing coordinates, denoting S×Rm. Projecting growth shall extend with m zero coordinates, denoting S×{0}m. Empty shall retain empty meaning and acquire the new ambient dimension. Zero growth shall preserve the value. Growth exceeding the structural dimension limit shall throw std::length_error before extent-proportional allocation or dimension arithmetic overflow.
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.
RATIONALE: Even an empty collection has an ambient dimension which must be updated and range-checked.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void add_space_dimensions_and_embed(dimension_type); void add_space_dimensions_and_project(dimension_type);
VERIFICATION_CRITERIA: Check free versus zero added coordinates, empty collections, zero growth and reserved/overflowing extents.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/gridprimaryoperations1.cc; tests/Powerset/spacedims1.cc.
-
2. Pointset-powerset projection and coordinate mapping UID: PPL-SPEC-001421 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Removal shall existentially project out the selected coordinates of every disjunct and compact remaining indices in order. Higher removal shall retain exactly the requested prefix. Mapping shall use an injective partial map with in-range source dimensions and compact destination range, retaining mapped coordinates and existentially eliminating the others. Empty map shall produce dimension zero. Empty collections shall still acquire the correct result dimension. Invalid removal extents shall throw std::invalid_argument; mapping shall meet 🔗 1. Public partial coordinate-map type and valid use– 🔗 8. Coordinate-map diagnostic printing and output failures and the base map's stated preconditions.
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.
RATIONALE: Projection is not setting removed coordinates to zero, and dimension bookkeeping cannot depend on stored nonempty disjuncts.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void remove_space_dimensions(const Variables_Set&); void remove_higher_space_dimensions(dimension_type); template <typename Partial_Function> void map_space_dimensions(const Partial_Function&);
VERIFICATION_CRITERIA: Check sparse projection, permutation/partial/empty maps, fractional witnesses, empty collections and invalid extents.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/gridprimaryoperations1.cc; tests/Powerset/spacedims1.cc.
-
3. Pointset-powerset dimension expansion and folding UID: PPL-SPEC-001422 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
STATEMENT: Expansion shall add m independent copies of the selected coordinate's base-domain restrictions using the base expansion operation. Folding shall merge selected coordinates into the retained destination by base folding and remove the folded coordinates. They shall lift per disjunct, update ambient dimension and inherit base soundness and precision. Variables shall be in range, fold destination shall be outside the folded set, and growth shall respect structural limits; invalid variables/sets shall throw std::invalid_argument and excessive growth std::length_error.
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.
RATIONALE: Independent expansion differs from imposing equality between duplicate coordinates; folding may approximate unions of projections.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void expand_space_dimension(Variable, dimension_type); void fold_space_dimensions(const Variables_Set&, Variable);
VERIFICATION_CRITERIA: Check relational expansion, independent duplicate values, folding with retained indices, empty sets and invalid dimensions. Fold previously reduced incomparable disjuncts into identical universes, and compare the public universe result with an unreduced-entry control in closed/NNC polyhedra, bounded-difference, octagonal and rational-box powersets.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/spacedims1.cc.
-
4. Pointset-powerset concatenation UID: PPL-SPEC-001423 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
STATEMENT: Concatenation shall collect base concatenations for every pair of reduced disjuncts in receiver-then-argument coordinate order, representing S×T when base concatenation is exact and otherwise its sound base approximation. Empty input shall give empty in the sum dimension. Self-concatenation shall be supported. The sum dimension shall be range-checked without unsigned wraparound; excessive extent shall throw std::length_error.
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.
RATIONALE: Cartesian product distributes over both input unions and includes ambient dimensions of empty inputs.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void concatenate_assign(const Pointset_Powerset&);
VERIFICATION_CRITERIA: Check cross-pair products, coordinate order, empty/self inputs and overflowing sums.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/cancellation1.cc; tests/powersetinterruptedproducts1.cc; tests/Powerset/concatenate1.cc.
-
3. Lifted cylindrification UID: PPL-SPEC-001409 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Specifies)
STATEMENT: unconstrain shall cylindrify each disjunct in the selected coordinates while retaining ambient dimension and mark reduction unknown. The resulting union shall have the base operation's exactness and arithmetic guarantees. An empty variable set shall preserve the value. Out-of-range variables shall throw std::invalid_argument.
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.
RATIONALE: Existential projection followed by unconstrained embedding distributes over finite unions.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void unconstrain(Variable); void unconstrain(const Variables_Set&);
VERIFICATION_CRITERIA: Check relational disjuncts, scalar/set overload agreement, empty variable sets and invalid dimensions.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/contractvalues1.cc; tests/Powerset/gridprimaryoperations1.cc; tests/Powerset/spacedims1.cc.
-
7. Powerset topological closure and time elapse UID: PPL-SPEC-001424 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Topological closure shall close every disjunct; for a finite collection of exact base closures the result shall be the exact closure of the union. Time elapse shall collect all pairwise base time-elapse results, denoting the corresponding union of p + tv for admitted states, velocities and t ≥ 0, with the base precision contract. Empty state or velocity collections shall follow the base time-elapse semantics. Dimension-incompatible time operands shall throw std::invalid_argument.
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.
RATIONALE: Closure distributes over finite unions, while velocities require a cross-product lifting.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void topological_closure_assign(); void time_elapse_assign(const Pointset_Powerset&);
VERIFICATION_CRITERIA: Check open boundary closure, zero/nonzero velocities, separated disjunct pairs, empty inputs and base approximation. Close an initially reduced antichain whose new boundary makes a disjunct redundant, then request omega-reduction and compare the remaining geometry. Exercise NNC polyhedra and open rational boxes, shared-source preservation, empty and zero-dimensional collections, and exact identity closure for closed polyhedra, grids, BD/octagonal shapes and interval boxes without openness.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/closure1.cc.
-
8. Powerset integer restriction and wrapping UID: PPL-SPEC-001425 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Integer restriction shall apply the selected base tightening to each disjunct, preserve all points integral in the selected coordinates and retain a subset of the old union; no optimality shall be promised. Wrapping shall apply the base bounded-integer conversion to every disjunct with the supplied width, representation, overflow mode, optional constraints and precision controls. It shall inherit 🔗 1. Mathematical interpretation of bounded-integer wrapping attributes and base wrapping semantics, including sound overflow behavior and variable/constraint admission. Reduction shall become unknown after either operation.
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.
RATIONALE: Disjunction must retain all selected integral states and all admitted wrapped outcomes.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
void drop_some_non_integer_points(Complexity_Class=ANY_COMPLEXITY); void drop_some_non_integer_points(const Variables_Set&, Complexity_Class=ANY_COMPLEXITY); void wrap_assign(const Variables_Set&, Bounded_Integer_Type_Width, Bounded_Integer_Type_Representation, Bounded_Integer_Type_Overflow, const Constraint_System* = nullptr, unsigned=16, bool=true);
VERIFICATION_CRITERIA: Check fractional disjuncts, selected versus all coordinates and small-width modular/undefined/impossible overflow controls.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/contractvalues1.cc; tests/Powerset/gridprimaryoperations1.cc.
-
Incoming link from: 2. Bounded exact coupled constraint projection1
1. Two-coordinate full-rank equality projection UID: PPL-SPEC-001685 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: try_binary_equality_projection(vars) shall require a valid unmarked receiver with current constraints, no pending generators, at least five ambient dimensions, at most 64 stored rows and a nonempty in-range selection. It shall reject bounded coefficient profiles and selections other than two. Let the selected coordinates in ascending order be x, y.
Scan the logical input rows in order. Select the first equality with a nonzero x coefficient. For this row's selected coefficients a, b, scan subsequent equalities for coefficients c, d with ad − bc ≠ 0, using exact GMP arithmetic. Without such a later row, return false. This opportunistic scan need not find an earlier independent row preceding its selected first pivot.
After this rank test, copy the owned rows and eliminate x with that pivot using 🔗 1. Exact equality-pivot elimination. Choose a remaining equality with nonzero y coefficient, preferring 1 or − 1, and eliminate y with the same kernel. Such a second pivot shall exist. Compact the two coordinates, retaining the other coordinates' order, and swap in a completed same-topology polyhedron. True shall denote the exact projection 🔗 4. Exact polyhedral coordinate deletion, with no increase in logical row count.
False shall preserve all receiver state and allocate no C++ storage. The determinant preflight may allocate GMP temporary storage. Exceptions shall obey 🔗 1. Polyhedral values, coefficient profile and valid use; rejection preservation shall not impose a stronger exceptional-completion guarantee.
RATIONALE: A nonzero determinant makes the two equations uniquely determine the two selected coordinates for every retained assignment. Eliminating one coordinate leaves a nonzero coefficient for the other in an independent equation. Positive equality substitution preserves every weak or strict relation and yields the exact existential projection. Each pass removes one pivot, so no pair generation or row growth is needed.
INTERFACE: Private member of Parma_Polyhedra_Library::Polyhedron.
bool try_binary_equality_projection(const Variables_Set& vars);
VERIFICATION_CRITERIA: Compare literal and independently materialized generator projections through the public API. Cover both pivot signs, nonunit coefficients, independent and dependent cycles, row order, additional inequalities/equalities, strict boundaries, constants, absent columns and noncontiguous coordinates. Check exact rejection state and zero C++ allocation before copying. Exercise owned-row allocation failures, profile selection, cache histories and reload.
BIBLIOGRAPHY: Williams86 | Sections on elimination and Fourier's method (exact real projection). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC membership and strict boundaries).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_chdims.cc; tests/Polyhedron/advancedprojection1.cc; tests/Polyhedron/advancedprojectionpolicy1.cc; tests/Polyhedron/advancedprojectionfailure1.cc.
-
Incoming link from: 2. Bounded exact coupled constraint projection1
2. Bounded coupled two-coordinate pair projection UID: PPL-SPEC-001686 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: try_binary_pair_projection(vars) shall require a valid unmarked receiver with current constraints, no pending generators, at least five ambient dimensions, at most 64 stored rows and a nonempty in-range selection. It shall reject bounded coefficient profiles, selections other than two, and any logical equality row. Let x, y be selected in ascending order.
Preflight shall count positive, negative and zero x coefficients. Reject more than 16 positive/negative pairs or more than 64 predicted owned rows. Predict the signs in the next y column: unchanged zero-x rows retain their signs, and a pair ax > 0, bx < 0 has the sign of − byxa + ayxb. These calculations shall use exact GMP arithmetic. Tautological combinations may be counted conservatively. Reject more than 16 predicted second-column pairs or 64 predicted owned rows. Both checks shall precede scratch-row copying. False shall preserve every receiver field and allocate no C++ storage; GMP preflight temporaries are permitted.
For each selected coordinate, retain its zero-coefficient rows. For every pair ax + r▹0 and − bx + s▹0, with a, b > 0 and g = gcd(a, b), emit the positive combination (b ⁄ g)r + (a ⁄ g)s. It shall be strict exactly when either input row is strict. Omit tautologies. The conservative preflight shall bound the actual pair and row counts in both passes. At most 32 pairs shall be generated; each scratch vector shall contain at most 64 logical rows.
Compact the selected coordinates only after their coefficients are zero. True shall replace the receiver with the exact projection 🔗 4. Exact polyhedral coordinate deletion, preserving topology and surviving-coordinate order. Only a completed temporary polyhedron shall be swapped in. Common lifetime, arithmetic and exceptional-completion conditions 🔗 1. Polyhedral values, coefficient profile and valid use shall apply without strengthening them to the false-result guarantee.
RATIONALE: Pairwise lower/upper compatibility is necessary and sufficient for a real coordinate to exist. A strict bound requires strict compatibility in its pair. Positive gcd-reduced combinations preserve these conditions exactly. Their remaining-column signs equal the preflight signs, since division by a positive gcd does not change a sign. Removing tautologies only decreases the predicted counts, proving the second pass's work bounds.
INTERFACE: Private member of Parma_Polyhedra_Library::Polyhedron.
bool try_binary_pair_projection(const Variables_Set& vars);
VERIFICATION_CRITERIA: Compare all open/closed input-pair combinations with literal projections and an independent generator route. Cover both signs, zero columns, gcd reduction, tautologies, constant false rows, coupled and noncontiguous coordinates, one-sided passes, exact pair/row limits and conservative rejection. Check unchanged rejection state, zero C++ allocation on rejected preflight and allocation failures after acceptance. Include both matrix layouts and every admitted coefficient profile, preserving the generator fallback elsewhere.
BIBLIOGRAPHY: Williams86 | Sections on elimination and Fourier's method (exact real projection). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC membership and strict boundaries).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_chdims.cc; tests/Polyhedron/advancedprojection1.cc; tests/Polyhedron/advancedprojectionpolicy1.cc; tests/Polyhedron/advancedprojectionfailure1.cc.
-
Incoming link from: 2. Bounded exact coupled constraint projection1
3. Exact one-dimensional continuous LP projection UID: PPL-SPEC-001687 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: try_interval_projection(vars) shall require a valid unmarked receiver with current constraints, no pending generators and a nonempty in-range selection. It shall reject bounded coefficient profiles, ambient dimensions outside 10 through 16, selections leaving other than one coordinate, descriptions with fewer than twice the ambient dimension or more than 64 stored rows, and descriptions with any logical equality or strict inequality. These rejections shall preserve all receiver state and allocate no C++ storage. The dispatch in 🔗 2. Bounded exact coupled constraint projection shall invoke it only for necessarily closed receivers; its weak-row computation shall preserve the supplied receiver's topology.
Find the sole surviving original coordinate and construct one continuous MIP_Problem from the original constraint system, with that coordinate as the minimization objective. Select PRICING_TEXTBOOK before solving, so pricing shall use coefficient arithmetic rather than floating-point weights. Do not designate integer coordinates or introduce auxiliary ones.
An infeasible lower solve shall replace the receiver with a same-topology empty polyhedron of dimension one. Otherwise retain a finite exact lower value p ⁄ q as qv ≥ p, and omit an unbounded lower bound. Change the same model to maximization, reusing its feasible state and basis. Its result shall remain feasible. Retain a finite upper value r ⁄ s as sv ≤ r, and omit an unbounded upper bound. Denominators shall be positive. Both finite endpoints shall be included. The completed interval shall be the exact real projection 🔗 4. Exact polyhedral coordinate deletion.
Only a completed same-topology result shall be swapped into the receiver. The dimension, initialization, synchronization, resource and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use and the continuous incremental MIP model shall apply. Exceptions shall not strengthen the common guarantees to the false-result preservation guarantee.
RATIONALE: A linear image of a convex set on the real line is an interval. For a nonempty rational polyhedron described by weak inequalities, each finite linear-programming extremum is attained. Its exact lower and upper extrema therefore determine the entire closed interval, including singletons, half-lines and the whole line. Two continuous solves can avoid constructing all original generators. Reusing the model avoids rebuilding its constraints and feasible basis, and textbook pricing avoids floating-point weight work.
INTERFACE: Private member of Parma_Polyhedra_Library::Polyhedron.
bool try_interval_projection(const Variables_Set& vars);
VERIFICATION_CRITERIA: Compare public projections with literal closed intervals and an independent generator route. Cover finite rational endpoints, one/both unbounded sides, empty sets, singletons, lower-dimensional descriptions and different surviving indices. Check dimension, row-count, selection and relation rejection, closed dispatch versus NNC fallback, exact pricing and both storage layouts. Verify rejection state, zero C++ allocation on rejection, reload, cache histories and allocation failures. Include an interrupted solve, destruction of the failed receiver and a successful retry on an independent copy of the original input, under the common resource contract.
BIBLIOGRAPHY: Meyer74 | Abstract (existence of finite optima with rational constraint coefficients). Williams86 | Sections on elimination and Fourier's method (exact real projection).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_chdims.cc; tests/Polyhedron/advancedprojection1.cc; tests/Polyhedron/advancedprojectionpolicy1.cc; tests/Polyhedron/advancedprojectionfailure1.cc.
-
Incoming links from: 3. Polyhedral variable-update relational image 4. Polyhedral variable-update relational preimage2
1. Exact rational polyhedral image UID: PPL-SPEC-001346 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be exactly {F(x) ∣ x ∈ P} for the entry receiver P, where F(x)v = e(x) ⁄ d and F(x)i = xi for i ≠ v. The denominator shall default to one and its entry value shall be used even when borrowed from receiver-owned constraints or generators. External expressions and scalars shall preserve their values. Zero denominator, invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers. Singular and constant transformations shall retain the same exactness guarantee; NNC boundary membership shall be preserved.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Rational substitution and generator transport define exact forward and backward affine transformations. Capturing an entry scalar prevents representation changes from changing the transformation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void affine_image(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Check independent rational point images and substituted constraints, singular/constant maps, both denominator signs, all cache histories, borrowed scalar origins and invalid-input preservation.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/affineimage1.cc; tests/Polyhedron/affineimage2.cc; tests/Polyhedron/affinepreimage1.cc; tests/Polyhedron/affinepreimagepending1.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc.
-
2. Exact rational polyhedral preimage UID: PPL-SPEC-001347 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be exactly {x ∣ F(x) ∈ P} for the entry receiver P, where F(x)v = e(x) ⁄ d and F(x)i = xi for i ≠ v. The denominator shall default to one and its entry value shall be used even when borrowed from receiver-owned constraints or generators. External expressions and scalars shall preserve their values. Zero denominator, invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers. Singular and constant transformations shall retain the same exactness guarantee; NNC boundary membership shall be preserved.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Rational substitution and generator transport define exact forward and backward affine transformations. Capturing an entry scalar prevents representation changes from changing the transformation.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void affine_preimage(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Check independent rational point images and substituted constraints, singular/constant maps, both denominator signs, all cache histories, borrowed scalar origins and invalid-input preservation.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/affineimage1.cc; tests/Polyhedron/affineimage2.cc; tests/Polyhedron/affinepreimage1.cc; tests/Polyhedron/affinepreimagepending1.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc; src/Constraint_System.cc.
-
3. Polyhedral variable-update relational image UID: PPL-SPEC-001348 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be exactly the set of new states x’ related to some entry state x. The relation shall be x’v ⋈ e(x) ⁄ d with other coordinates unchanged. EQUAL, LESS_OR_EQUAL and GREATER_OR_EQUAL shall be supported; NNC receivers shall also support LESS_THAN and GREATER_THAN. Disequality, strict relations on closed receivers, zero denominator, invalid target or excess expression dimension shall throw std::invalid_argument before mutation. Denominator default, entry-value borrowing and external-source preservation shall follow 🔗 1. Exact rational polyhedral image.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Relational updates add existentially chosen target values; reversing a relation must retain its denominator sign and strictness.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void generalized_affine_image(Variable, Relation_Symbol, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Check literal interval relations, all admitted symbols, negative denominators, missing target terms, borrowed scalars, open endpoints and rejected symbols/dimensions.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/generalizedaffineimage1.cc; tests/Polyhedron/generalizedaffineimage2.cc; tests/Polyhedron/generalizedaffinepreimage1.cc; tests/Polyhedron/generalizedaffinepreimage2.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc.
-
4. Polyhedral variable-update relational preimage UID: PPL-SPEC-001349 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be exactly the set of old states x having a related state x’ in the entry receiver. The relation shall be x’v ⋈ e(x) ⁄ d with other coordinates unchanged. EQUAL, LESS_OR_EQUAL and GREATER_OR_EQUAL shall be supported; NNC receivers shall also support LESS_THAN and GREATER_THAN. Disequality, strict relations on closed receivers, zero denominator, invalid target or excess expression dimension shall throw std::invalid_argument before mutation. Denominator default, entry-value borrowing and external-source preservation shall follow 🔗 1. Exact rational polyhedral image.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Relational updates add existentially chosen target values; reversing a relation must retain its denominator sign and strictness.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void generalized_affine_preimage(Variable, Relation_Symbol, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Check literal interval relations, all admitted symbols, negative denominators, missing target terms, borrowed scalars, open endpoints and rejected symbols/dimensions.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/generalizedaffineimage1.cc; tests/Polyhedron/generalizedaffineimage2.cc; tests/Polyhedron/generalizedaffinepreimage1.cc; tests/Polyhedron/generalizedaffinepreimage2.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc.
-
5. Polyhedral expression-update relational image UID: PPL-SPEC-001350 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be the exact image of the entry receiver under the relation lhs(x’) ⋈ rhs(x), with every coordinate whose coefficient in lhs is zero unchanged between states. Coordinates occurring in lhs shall be updated jointly, including shared variables with rhs. An identically constant lhs shall impose a filter on the old state. Admitted and rejected relation symbols shall follow 🔗 3. Polyhedral variable-update relational image. Excess dimension in either expression shall throw std::invalid_argument. External expressions shall preserve their values.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: A multi-coordinate left expression constrains a relation among new coordinates; it does not define independent assignments to them.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void generalized_affine_image(const Linear_Expression& lhs, Relation_Symbol, const Linear_Expression& rhs);
VERIFICATION_CRITERIA: Check shared/disjoint supports, constant left/right expressions, singular relations, all admitted symbols, NNC strictness and independently eliminated product-state constraints.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/generalizedaffineimage1.cc; tests/Polyhedron/generalizedaffineimage2.cc; tests/Polyhedron/generalizedaffinepreimage1.cc; tests/Polyhedron/generalizedaffinepreimage2.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc.
-
6. Polyhedral expression-update relational preimage UID: PPL-SPEC-001351 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be the exact preimage of the entry receiver under the relation lhs(x’) ⋈ rhs(x), with every coordinate whose coefficient in lhs is zero unchanged between states. Coordinates occurring in lhs shall be updated jointly, including shared variables with rhs. An identically constant lhs shall impose a filter on the old state. Admitted and rejected relation symbols shall follow 🔗 3. Polyhedral variable-update relational image. Excess dimension in either expression shall throw std::invalid_argument. External expressions shall preserve their values.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: A multi-coordinate left expression constrains a relation among new coordinates; it does not define independent assignments to them.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void generalized_affine_preimage(const Linear_Expression& lhs, Relation_Symbol, const Linear_Expression& rhs);
VERIFICATION_CRITERIA: Check shared/disjoint supports, constant left/right expressions, singular relations, all admitted symbols, NNC strictness and independently eliminated product-state constraints.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/generalizedaffineimage1.cc; tests/Polyhedron/generalizedaffineimage2.cc; tests/Polyhedron/generalizedaffinepreimage1.cc; tests/Polyhedron/generalizedaffinepreimage2.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc.
-
7. Exact bounded polyhedral affine image UID: PPL-SPEC-001352 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be exactly the image under ℓ(x) ⁄ d ≤ x’v ≤ u(x) ⁄ d, with all other coordinates unchanged. Both bounds shall use the same old-state values, including when either bound mentions the target. An impossible lower/upper pair shall admit no transition. Negative denominators shall divide the two expressions as written, without silently exchanging their lower/upper roles. The denominator shall default to one and retain its entry value when borrowed from receiver-owned descriptions. Zero denominator, invalid target or excess bound-expression dimension shall throw std::invalid_argument before mutation. External inputs shall preserve their values; NNC input boundary membership shall be retained.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: The bounded relation is conjunction of two old-to-new affine inequalities; temporary dimensions must not change the scalar or mix old and new bound values.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void bounded_affine_image(Variable, const Linear_Expression& lower, const Linear_Expression& upper, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Check independent product-state elimination, target-dependent bounds, empty transition sets, both denominator signs, borrowed scalars, fractional/strict boundaries and invalid arguments.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/boundedaffineimage1.cc; tests/Polyhedron/boundedaffinepreimage1.cc; tests/Polyhedron/boundedaffineimageempty1.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc.
-
8. Exact bounded polyhedral affine preimage UID: PPL-SPEC-001353 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The result shall be exactly the preimage under ℓ(x) ⁄ d ≤ x’v ≤ u(x) ⁄ d, with all other coordinates unchanged. Both bounds shall use the same old-state values, including when either bound mentions the target. An impossible lower/upper pair shall admit no transition. Negative denominators shall divide the two expressions as written, without silently exchanging their lower/upper roles. The denominator shall default to one and retain its entry value when borrowed from receiver-owned descriptions. Zero denominator, invalid target or excess bound-expression dimension shall throw std::invalid_argument before mutation. External inputs shall preserve their values; NNC input boundary membership shall be retained.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: The bounded relation is conjunction of two old-to-new affine inequalities; temporary dimensions must not change the scalar or mix old and new bound values.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void bounded_affine_preimage(Variable, const Linear_Expression& lower, const Linear_Expression& upper, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Check independent product-state elimination, target-dependent bounds, empty transition sets, both denominator signs, borrowed scalars, fractional/strict boundaries and invalid arguments.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/boundedaffineimage1.cc; tests/Polyhedron/boundedaffinepreimage1.cc; tests/Polyhedron/boundedaffineimageempty1.cc; tests/polyhedronaffinespec1.cc; tests/polyhedronaffineoracle.hh; tests/polyhedralaffineborrow1.cc.
-
Incoming link from: 4. Exact polyhedral coordinate deletion1
1. Bounded exact projection from current constraints UID: PPL-SPEC-001679 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For an unmarked receiver with current constraints and no pending generators, try_constraint_projection(vars) shall attempt the exact real-coordinate projection specified by 🔗 4. Exact polyhedral coordinate deletion. The selection shall be nonempty and in range. Surviving coordinates shall retain their relative order, and the receiver's closed or NNC topology shall be preserved.
The attempt shall reject dimensions below five or descriptions containing more than 64 stored rows. For a selected coordinate, an equality with a nonzero coefficient or inequalities of both coefficient signs shall reject the one-sided path. Otherwise every row involving any selected coordinate shall be discarded, and all other rows shall be retained with compacted coordinates. Strict inequalities shall retain their membership meaning. This path shall be available for every supported coefficient profile.
For GMP coefficients, algebraic elimination shall additionally be attempted. If more than one coordinate is selected, each input row shall mention at most one selected coordinate, or the bounded coupled planner in 🔗 2. Bounded exact coupled constraint projection shall be attempted instead. This independence restriction shall not apply to the one-sided path. Prefer a pivot whose coefficient is 1 or − 1. For an equality E = ax + r = 0 and another row C = bx + s▹0, with b ≠ 0 and g = gcd(|a|, |b|), replace that row by (|a| ⁄ g)C − sgn(a)(b ⁄ g)E▹0. The shared equality kernel 🔗 1. Exact equality-pivot elimination shall implement this substitution. The original relation kind shall be preserved. Rows independent of the pivot shall be transferred unchanged and tautological results omitted. Each eliminated equality shall reduce the predicted stored-row bound by one; one-sided elimination shall subtract the number of rows involving that coordinate. A predicted count above 64 shall reject the attempt before scratch copying. Bounded-coefficient profiles shall retain only the one-sided path, adding no elimination products to their admitted range.
For GMP coefficients, a selected coordinate without an equality pivot may also have both coefficient signs. At most 16 positive/negative pairs per coordinate and a predicted stored-row bound of 64 shall be admitted. For ax + r▹0 and − bx + s▹0, with a, b > 0 and g = gcd(a, b), emit the cancelled positive combination (b ⁄ g)r + (a ⁄ g)s▹0. It shall be strict exactly when either input is strict. Rows with zero coefficient shall be retained, and tautological combinations omitted. The predicted row count for a coordinate without an equality shall replace its positive and negative rows by their pair count. These counts shall be checked before copying or coefficient algebra. Independence of selected coordinates makes the counts stable across elimination and bounds the total emitted pair count by 64. Bounded-coefficient profiles shall retain only the one-sided path.
A false result shall preserve all receiver state, including materialized caches. Rejection shall precede scratch-row copying and coefficient algebra. A true result shall replace the receiver with the completed exact projection; no particular minimal representation is required. Temporary rows and cancellation factors shall own their storage, and only a completed temporary polyhedron shall be swapped into the receiver. The local row-emission closure shall compact rows only after their selected coefficients are zero, preserve relation kind and topology, and transfer the compacted rows to the output system.
The lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply. Common failure guarantees shall not be strengthened by the boolean rejection guarantee: arithmetic and resource exceptions remain subject to that common contract.
RATIONALE: For a fixed retained point, finitely many one-sided bounds on a real coordinate can all be satisfied by choosing its value sufficiently far in the permitted direction. Repeating this argument proves exact elimination of several one-sided coordinates, including coupled rows. Row copying and coordinate compaction preserve every unaffected relation.
Multiplying a relation by a positive scalar preserves its kind. Subtracting a multiple of an equality preserves equivalence on that equality; dividing cancellation factors by their positive gcd reduces intermediate growth. Independence prevents elimination from changing another selected coordinate's rows, so eligibility and work limits can be checked upfront. Opposite-sign pairs express every lower/upper compatibility condition. A strict bound requires strict compatibility in that pair. All compatible finite bounds admit a real witness, proving exactness. Independent pair results mention no remaining selected coordinate; the predicted final row bound therefore also bounds the total pair count.
INTERFACE: Private member in Parma_Polyhedra_Library::Polyhedron; implementation in src/Polyhedron_chdims.cc.
bool try_constraint_projection(const Variables_Set& vars);
VERIFICATION_CRITERIA: Compare with literal projections and with the existing generator route on closed and NNC sets. Cover positive, negative and absent selected coefficients, coupled one-sided coordinates, constant false rows, all/none coordinate selection, open boundaries, reload, source/cache histories and selection rejection. Directly check both dimension and stored-row limits, exact accepted results, unchanged state on rejection, and allocation failures before and after completed result replacement. Cover positive/negative and unit/nonunit pivots, duplicate and contradictory rows, unaffected-row transfers, independence rejection, coupled-planner delegation and profile selection. Check every strictness combination, gcd reduction, pair and predicted-row limits, multicoordinate independent pairs and generator fallback.
BIBLIOGRAPHY: Williams86 | Sections on elimination and Fourier's method (exact real projection). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC membership and strict boundaries).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_chdims.cc; tests/Polyhedron/constraintprojection1.cc; tests/Polyhedron/constraintprojectionpolicy1.cc; tests/Polyhedron/constraintprojectionfailure1.cc.
-
1. Exact polyhedral cylindrification UID: PPL-SPEC-001345 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Cylindrification shall forget restrictions on the selected coordinates while preserving exactly the projection onto all other coordinates. Ambient dimension shall be retained. Empty shall remain empty, and an empty coordinate selection shall be a no-op. Coordinates outside the receiver shall throw std::invalid_argument before mutation.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Forgetting a coordinate is existential elimination followed by adding that coordinate freely, not deleting every row that mentions it.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void unconstrain(Variable); void unconstrain(const Variables_Set&);
VERIFICATION_CRITERIA: Check coupled equalities/inequalities, strict projected boundaries, empty selections, invalid indices, empty and pending descriptions.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/unconstrain1.cc; src/Polyhedron_chdims.cc.
-
2. Polyhedral coordinate growth UID: PPL-SPEC-001354 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Adding m coordinates shall append them after the old coordinates. add_space_dimensions_and_embed(m) shall form the Cartesian product with Rm; add_space_dimensions_and_project(m) shall append exactly m zero coordinates. Empty shall remain empty in the enlarged dimension. Zero growth shall be a no-op. Exceeding the selected topology's structural dimension limit shall throw std::length_error before extent-dependent allocation; unsigned dimension arithmetic shall not wrap.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Free extension and zero extension have different meanings despite sharing the same new ambient dimension.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void add_space_dimensions_and_embed(dimension_type m); void add_space_dimensions_and_project(dimension_type m);
VERIFICATION_CRITERIA: Check independent Cartesian/zero products, both topologies, empty/universe, pending histories, zero growth and reserved/overflow extents.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/addspacedims1.cc; tests/Polyhedron/addspacedims2.cc; src/Polyhedron_chdims.cc.
-
3. Exact polyhedral Cartesian concatenation UID: PPL-SPEC-001355 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Concatenation shall assign the exact Cartesian product of the entry receiver and operand, with receiver coordinates followed by operand coordinates. The resulting dimension shall be the sum. Empty shall be absorbing; zero-dimensional universe shall be an identity. Self-concatenation shall use independent copies of the entry value. Incompatible topologies shall throw std::invalid_argument and excessive combined dimension std::length_error before extent-dependent allocation. A distinct operand shall preserve its value.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Concatenation combines independently chosen tuples and must not introduce equalities between copies.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void concatenate_assign(const Polyhedron&);
VERIFICATION_CRITERIA: Check literal products, self products, both operand orders for zero dimensions, strict endpoints, empty and dimension/topology rejection. Check current C, current G and both saturation orientations, constraint-heavy fallbacks, zero leading saturation columns across GMP limb boundaries and subsequent pending-row processing against literal Cartesian products.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/concatenate1.cc; src/Polyhedron_chdims.cc.
-
4. Exact polyhedral coordinate deletion UID: PPL-SPEC-001356 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Coordinate deletion shall existentially project away exactly the selected coordinates and pack surviving coordinates in their previous relative order. Removing higher dimensions shall retain the prefix of the requested length. Empty shall remain empty in the resulting dimension. Projection of nonempty onto no coordinates shall be zero-dimensional universe. Empty selection or an unchanged prefix length shall preserve the value. An invalid selection or a requested prefix longer than the receiver shall throw std::invalid_argument before mutation.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Projection retains consequences among surviving coordinates, including strict boundary information.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void remove_space_dimensions(const Variables_Set&); void remove_higher_space_dimensions(dimension_type);
VERIFICATION_CRITERIA: Check relational elimination, unbounded directions that vanish, all/none/prefix selection, zero dimensions, pending histories and rejected indices. Compare the constraint and generator routes under 🔗 1. Bounded exact projection from current constraints, including unchanged rejection state, profile selection and allocation failures.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/removespacedims1.cc; tests/Polyhedron/removespacedims2.cc; src/Polyhedron_chdims.cc; tests/Polyhedron/constraintprojection1.cc; tests/Polyhedron/constraintprojectionpolicy1.cc; tests/Polyhedron/constraintprojectionfailure1.cc.
-
5. Exact partial coordinate mapping of polyhedra UID: PPL-SPEC-001357 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For an admitted partial mapping from old coordinate indices to a dense set {0, …, m − 1}, the operation shall delete unmapped coordinates and rename the remaining ones exactly. The mapping shall be injective on its domain and m ≤ n; an equal-size map shall therefore be a permutation. The mapping object shall implement has_empty_codomain(), max_in_codomain() and maps(i,j) with the entry mapping's consistent answers. Empty codomain shall project onto zero dimensions. The maximum shall be requested at most once and maps at most once per old coordinate. Mappings violating these prerequisites shall have no result guarantee; a defensive invalid-argument check shall not make every malformed map admitted.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: An injective dense image distinguishes projection/permutation from coordinate identification or addition of unconstrained dimensions.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename Partial_Function> void map_space_dimensions(const Partial_Function&);
VERIFICATION_CRITERIA: Check independent permutations and partial projections, disappearing directions, empty and zero dimensions, custom mapping call counts and both current representation routes.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/mapspacedims1.cc; src/Polyhedron_chdims.cc.
-
6. Polyhedral coordinate expansion UID: PPL-SPEC-001358 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Expansion of coordinate v by m shall append m coordinates, each an independent copy of v conditional on the other old coordinates. Writing an old state as (z, xv), the result shall consist exactly of states (z, xv, t1, …, tm) for which (z, xv) ∈ P and each (z, ti) ∈ P. The copies need not equal one another. Invalid v shall throw std::invalid_argument and excessive dimension growth std::length_error. Zero expansion shall preserve the value.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Expansion replicates a coordinate relation while allowing independent values consistent with the shared context.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void expand_space_dimension(Variable v, dimension_type m);
VERIFICATION_CRITERIA: Check literal interval copies, context-dependent relations, strict endpoints, non-equality between copies, empty, zero growth and dimension guards.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/expandspacedim1.cc; tests/Polyhedron/expandspacedim2.cc; src/Polyhedron_chdims.cc.
-
7. Polyhedral coordinate folding UID: PPL-SPEC-001359 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Folding coordinates in vars into dest shall take the least polyhedron of the receiver's topology containing the union of the projections that place either the old destination or one folded coordinate at the surviving destination position, and then delete the folded coordinates. Remaining coordinates shall retain relative order. dest shall be a valid coordinate outside vars; all selected coordinates shall be valid, otherwise std::invalid_argument shall be thrown. Empty selection shall be a no-op.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Folding merges alternative coordinate origins through a polyhedral hull rather than requiring their values to agree.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void fold_space_dimensions(const Variables_Set& vars, Variable dest);
VERIFICATION_CRITERIA: Compare with independently permuted/projected hulls, strict boundaries, destinations before/after deleted coordinates, empty selection and invalid overlap/indices. Compare the result with the hull of independent affine images of the entry value followed by projection, for closed and NNC topology, dense/sparse rows, zero/single/multiple noncontiguous sources, different destination positions, rational correlations, rays, lines and pending or minimized caches.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/foldspacedims1.cc; tests/Polyhedron/foldspacedims2.cc; src/Polyhedron_chdims.cc.
-
1. Exact equality-pivot elimination UID: PPL-SPEC-001683 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: With GMP coefficients, project_constraint_equality(rows, v, pivot) shall require owned valid rows of one ambient dimension, an in-range pivot index, an equality at that index and a nonzero pivot coefficient of v. For the pivot E = ax + r = 0 and another row C = bx + s▹0, a nonzero b shall be cancelled by (|a| ⁄ g)C − sgn(a)(b ⁄ g)E, where g = gcd(|a|, |b|). The relation kind shall be retained. Rows with zero coefficient shall be transferred unchanged; tautological results shall be omitted. The pivot shall be removed, every remaining coefficient of v shall be zero, and the result shall represent the exact existential elimination of that coordinate. Row count shall not increase.
The row vector shall retain its ambient coordinate numbering; physical coordinate compaction belongs to its caller. Temporaries shall own their data. Exceptions shall obey 🔗 1. Polyhedral values, coefficient profile and valid use without a rollback guarantee for this scratch vector. The receiver shall not be modified by scratch-vector failures before the caller's completed-result replacement.
RATIONALE: The multiplier of the original relation is positive, so equality, weak and strict inequality meanings are preserved. On the pivot equality, subtracting its multiple preserves equivalence. The pivot determines the eliminated coordinate uniquely from every assignment satisfying the substituted rows; existential elimination is therefore exact. Dividing cancellation factors by their positive gcd reduces coefficient growth.
INTERFACE: File-local helper in the unnamed namespace of src/Polyhedron_chdims.cc.
void project_constraint_equality(std::vector<Constraint>& rows, Variable v, size_t pivot);
VERIFICATION_CRITERIA: Through public coordinate removal and the production projection selector, exercise both pivot signs, unit and nonunit coefficients, all relation kinds, gcd reduction, unchanged rows, tautological and contradictory results. Compare literal projections and an independently materialized generator route. Exercise allocation failures and verify valid receiver state.
BIBLIOGRAPHY: Williams86 | Sections on elimination and Fourier's method (exact real projection). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC membership and strict boundaries).
SOURCE: src/Polyhedron_chdims.cc; tests/Polyhedron/constraintprojection1.cc; tests/Polyhedron/constraintprojectionpolicy1.cc; tests/Polyhedron/coupledprojection1.cc; tests/Polyhedron/coupledprojectionpolicy1.cc; tests/Polyhedron/coupledprojectionfailure1.cc.
-
2. Bounded exact coupled constraint projection UID: PPL-SPEC-001684 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: try_coupled_equality_projection(vars) shall require an unmarked receiver with current constraints, no pending generators, ambient dimension at least five, at most 64 stored rows and a nonempty in-range selection. It shall attempt the exact projection 🔗 4. Exact polyhedral coordinate deletion, preserving topology and relative coordinate order. With bounded coefficients it shall reject. With GMP coefficients, selections above four coordinates shall delegate to 🔗 3. Exact one-dimensional continuous LP projection only for necessarily closed receivers, returning its result; other such selections shall reject.
For each equality record the support on selected coordinates in bounded stack metadata. Repeatedly select an equality whose support on remaining selected coordinates is exactly one coordinate, record that coordinate, and remove it from the remaining set. When peeling stops, inspect remaining selected coordinates in ascending order. If an equality has nonzero support on the coordinate being inspected, delegate to 🔗 1. Two-coordinate full-rank equality projection and return its result. Otherwise opposite signs shall delegate to 🔗 2. Bounded coupled two-coordinate pair projection and return its result. The structural planner itself uses only support/sign queries; the delegated preflights may use exact coefficient algebra. Absent selected columns shall impose no restriction.
After an admissible plan is found, copy the owned rows. For each planned coordinate choose an equality with nonzero coefficient and zero coefficients on all later planned and residual selected coordinates, preferring coefficient 1 or − 1, and apply 🔗 1. Exact equality-pivot elimination. Such a pivot shall exist. After substitution discard rows involving any residual selected coordinate. Compact the retained rows, preserve their relations, and replace the receiver only by swapping in a completed same-topology polyhedron. On this structural equality/one-sided path, at most four substitution passes shall occur and row count shall not exceed its input bound. Delegated paths shall obey their respective contracts and work bounds. A false result shall preserve every receiver field and shall allocate no C++ storage. The delegated rank and sign preflights may perform GMP coefficient algebra before returning false. Exceptions shall obey 🔗 1. Polyhedral values, coefficient profile and valid use, without strengthening its guarantees to the false-result preservation guarantee.
RATIONALE: A leaf pivot has zero coefficients on every other remaining selected coordinate. Substitution consequently multiplies those coefficients by a positive nonzero factor, preserving their supports. The static support plan remains valid, later pivots remain available and no pairwise row generation is necessary. Every pivot removes one row and possibly tautologies, bounding the work without building a generator description.
A residual coordinate has no equality coefficient and a globally consistent inequality sign. A chosen pivot has zero residual coefficients, so every substitution preserves those signs. For each assignment of retained coordinates satisfying unaffected rows, send all residual variables far enough in their permitted directions. Every row involving them then grows positively, also satisfying strict inequalities. Dropping these rows is therefore exact even with several coupled residual coordinates.
INTERFACE: Private member of Parma_Polyhedra_Library::Polyhedron.
bool try_coupled_equality_projection(const Variables_Set& vars);
VERIFICATION_CRITERIA: Compare literal results and an independent generator route on closed and NNC systems. Cover reversed elimination order, selected support patterns, signed/unit/nonunit pivots, redundant or inconsistent rows, noncontiguous dimensions, one through four selected coordinates and exact limits. Check singular-cycle, large-selection and bounded-profile rejection, complete unchanged ASCII state and zero C++ allocation on rejection. Exercise public cache histories, reload, random systems and allocation failures.
Cover no, partial and complete equality plans, positive/negative and absent residual columns, coupled residual strict and weak rows, and rejection of remaining equalities or opposite-sign inequalities. Independently verify their mathematical projections and unchanged state on every rejection.
BIBLIOGRAPHY: Williams86 | Sections on elimination and Fourier's method (exact real projection). BagnaraHZ10CGTA | Sections 2.1–2.3 (NNC membership and strict boundaries).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_chdims.cc; tests/Polyhedron/coupledprojection1.cc; tests/Polyhedron/coupledprojectionpolicy1.cc; tests/Polyhedron/coupledprojectionfailure1.cc.
-
2. Sound polyhedral image of interval linear forms UID: PPL-SPEC-001377 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000084 Conservative arithmetic on interval linear forms (Specifies)
STATEMENT: For an admitted nonempty receiver and a linear form with bounded interval coefficients in a supported floating-point format, affine-form image shall contain every target state produced by an admitted coefficient instantiation, with other coordinates unchanged in the concrete transition. The result may conservatively lose correlations. It shall preserve dimension and topology. Invalid target or excess form dimension shall throw std::invalid_argument. If the form or normalization overflows the analysis range, returning universe shall be permitted. External forms shall preserve their values. Arithmetic and rounding prerequisites of the selected interval and floating-expression profiles shall apply.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Normalization separates interval uncertainty from exact rational coefficients; an overflowing abstraction must widen instead of silently discard concrete outcomes.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename FP_Format, typename Interval_Info> void affine_form_image(Variable, const Linear_Form<Interval<FP_Format, Interval_Info>>&);
VERIFICATION_CRITERIA: Compare exact dyadic images with rational transforms, enumerate uncertain coefficients, include subnormals, cancellation, unbounded state coordinates, overflow fallback and argument rejection.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/polyhedronintervalformspec1.cc.
-
1. Componentwise product image UID: PPL-SPEC-001452 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: affine_image shall apply the base transfer relation described in 🔗 1. Lifted powerset image to both components and mark reduction unknown. The resulting intersection shall soundly contain the image of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
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.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void affine_image(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: 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/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
2. Componentwise product preimage UID: PPL-SPEC-001453 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: affine_preimage shall apply the base transfer relation described in 🔗 2. Lifted powerset preimage to both components and mark reduction unknown. The resulting intersection shall soundly contain the preimage of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
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.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void affine_preimage(Variable, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: 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/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
3. Componentwise product generalized image UID: PPL-SPEC-001454 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: generalized_affine_image shall apply the base transfer relation described in 🔗 3. Lifted powerset generalized image to both components and mark reduction unknown. The resulting intersection shall soundly contain the generalized image of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
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.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void generalized_affine_image(Variable, Relation_Symbol, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: 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/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
4. Componentwise product generalized preimage UID: PPL-SPEC-001455 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: generalized_affine_preimage shall apply the base transfer relation described in 🔗 4. Lifted powerset generalized preimage to both components and mark reduction unknown. The resulting intersection shall soundly contain the generalized preimage of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
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.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void generalized_affine_preimage(Variable, Relation_Symbol, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: 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/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
5. Componentwise product bounded image UID: PPL-SPEC-001456 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounded_affine_image shall apply the base transfer relation described in 🔗 5. Lifted powerset bounded image to both components and mark reduction unknown. The resulting intersection shall soundly contain the bounded image of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
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.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void bounded_affine_image(Variable, const Linear_Expression&, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: 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/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
6. Componentwise product bounded preimage UID: PPL-SPEC-001457 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounded_affine_preimage shall apply the base transfer relation described in 🔗 6. Lifted powerset bounded preimage to both components and mark reduction unknown. The resulting intersection shall soundly contain the bounded preimage of the old product intersection. Component transfer exactness alone shall not promise exactness of the product relation, because independently witnessed outcomes can lose cross-component correlation.
Both components shall use the same nonzero denominator value supplied at entry, even when it is borrowed from either component's constraints, generators, divisor or inhomogeneous term. The first component mutation shall not change what denominator is passed to the second. Component dimension, relation-symbol and topology admission shall apply, including the stated std::invalid_argument conditions.
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.
RATIONALE: A componentwise relation is sound only if it uses one common entry relation; it can still overapproximate the intersection transfer.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void bounded_affine_preimage(Variable, const Linear_Expression&, const Linear_Expression&, Coefficient_traits::const_reference=Coefficient_one());
VERIFICATION_CRITERIA: Compare independent component operations, borrow from either component, cover constraint/generator origins, signs and invalid arguments, and check concrete source/successor inclusion.
SOURCE: 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/affineborrow1.cc; tests/Partially_Reduced_Product/affineimage1.cc; tests/Partially_Reduced_Product/boundedaffineimage1.cc; tests/Partially_Reduced_Product/generalizedaffineimage1.cc.
-
7. Product expression-to-expression affine relations UID: PPL-SPEC-001458 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Expression overloads shall apply the base generalized relation in 🔗 7. Lifted expression-to-expression affine relations to each component and mark reduction unknown. The resulting intersection shall soundly contain the corresponding image or preimage of the old product intersection, with no extra precision claim based only on component exactness. Overlapping expression supports, admissible relation symbols, dimensions and topology shall follow both component contracts.
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.
RATIONALE: Independent component witnesses can lose correlations even for exact base relations.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void generalized_affine_image(const Linear_Expression&, Relation_Symbol, const Linear_Expression&); void generalized_affine_preimage(const Linear_Expression&, Relation_Symbol, const Linear_Expression&);
VERIFICATION_CRITERIA: Check shared/disjoint variable supports, constants, componentwise equivalence and sound concrete relation samples.
SOURCE: 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/generalizedaffineimage1.cc.
-
1. Product coordinate operations UID: PPL-SPEC-001459 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
STATEMENT: Coordinate members shall perform the corresponding base operation on both components with identical indices, counts and maps. Growth shall add free coordinates for embedding and zero coordinates for projecting growth. Removal and mapping shall existentially eliminate omitted coordinates and compact or permute retained coordinates. Expansion and folding shall use the base independent-copy and merge semantics. Cylindrification shall reduce first and free selected coordinates without changing dimension. Results shall soundly contain the corresponding transformation of the old intersection; exact base projections alone shall not establish exact product projection. Both components shall retain equal ambient dimension on successful return. Variable/map admission and structural dimension limits shall follow both base contracts.
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.
RATIONALE: Existential coordinate operations can lose conjunction correlations when applied independently to components.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void unconstrain(Variable); void unconstrain(const Variables_Set&); void add_space_dimensions_and_embed(dimension_type); void add_space_dimensions_and_project(dimension_type); void remove_space_dimensions(const Variables_Set&); void remove_higher_space_dimensions(dimension_type); template <typename Partial_Function> void map_space_dimensions(const Partial_Function&); void expand_space_dimension(Variable, dimension_type); void fold_space_dimensions(const Variables_Set&, Variable);
VERIFICATION_CRITERIA: Check all members, coordinate order and dimensions, relational projection examples, empty values, invalid variables and growth bounds.
SOURCE: 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/spacedims1.cc.
-
2. Product concatenation UID: PPL-SPEC-001460 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Specifies)
STATEMENT: Concatenation shall concatenate corresponding components in receiver- then-argument coordinate order. The resulting common dimension shall be the sum, subject to both structural limits. With exact component concatenation the intersection shall represent the exact Cartesian product of the input product sets, because the coordinate blocks are independent. Self-concatenation shall be supported. Lazy reduction state shall be retained only when both operands are already marked reduced; component limit errors may propagate without rollback.
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.
RATIONALE: Cartesian products on disjoint coordinate blocks commute with component conjunction.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void concatenate_assign(const Partially_Reduced_Product&);
VERIFICATION_CRITERIA: Check coordinate order, separate restrictions, empty and self inputs, reduction-state combinations and excessive extents.
SOURCE: 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/concatenate1.cc.
-
5. Product closure and time elapse UID: PPL-SPEC-001461 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Closure shall apply each component's closure. Time elapse shall reduce both products, then time-elapse corresponding component pairs. The resulting intersection shall soundly contain the respective closure or time-elapse set of the original product. Component exactness shall not imply concrete product exactness, since closure or existential elapsed-time witnesses need not commute with intersection. Common ambient dimension and base arithmetic/admission conditions shall apply.
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.
RATIONALE: Independent elapsed-time or limiting witnesses can overapproximate a jointly constrained transition.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void topological_closure_assign(); void time_elapse_assign(const Partially_Reduced_Product&);
VERIFICATION_CRITERIA: Check open/closed component boundaries, velocities, different component precision, empty values and sound concrete samples.
SOURCE: 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/timeelapse1.cc; tests/Partially_Reduced_Product/topclosure1.cc.
-
6. Product integer-coordinate tightening UID: PPL-SPEC-001462 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000422 Sound affine forward and backward transfers (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Integer tightening shall reduce first, apply the corresponding base restriction to both components and mark reduction unknown. The result shall lie within the old product and retain every old point integral in all selected coordinates. The overload without a variable set shall select all coordinates. The complexity argument shall limit the base algorithms used; no optimal integer hull or complete integer-feasibility decision shall be promised.
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.
RATIONALE: Each component can tighten safely without proving a complete integer abstraction of their intersection.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
void drop_some_non_integer_points(Complexity_Class=ANY_COMPLEXITY); void drop_some_non_integer_points(const Variables_Set&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check partial/all coordinate selection, fractional boundaries, preserved integral points and component-policy reapplication.
SOURCE: 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/dropsomenonintegerpoints1.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001128 Bounded-difference time evolution by nonnegative rates (Specified by)
- PPL-SPEC-001039 Least box enclosure of nonnegative real-time progression (Specified by)
- PPL-SPEC-001303 Integer-time-elapse grid abstraction (Specified by)
- PPL-SPEC-001222 Octagonal time evolution by nonnegative rates (Specified by)
- PPL-SPEC-001360 Nonnegative polyhedral time elapse (Specified by)
- PPL-SPEC-001361 Positive polyhedral time elapse (Specified by)
PPL shall provide its supported pointset time-elapse operations with a defined domain-specific progression semantics. Under the arithmetic preconditions, a completed result shall contain every state generated by that semantics: nonnegative real-time multiples for ordinary polyhedral time elapse and integer multiples for grid time elapse. Any positive-time variant shall distinguish strictly positive time from the ordinary variant, and exactness or least-domain-enclosure guarantees shall be stated for the supported operation.
The progression parameter and the abstract domain hull both affect time-elapse meaning; grid progression is not ordinary continuous-time progression.
Verification covers time-elapse operations, progression parameters, topology and domain-specific hull guarantees. Related obligations: 🔗 1. Meaning of successful exact and approximate results, 🔗 9. Topological closure and closure approximation.
Independently derive generated sets and their required domain enclosures. Include zero time, negative direction values, strictly positive-time boundary cases where supported, empty source or direction sets and grid examples whose generated set is not itself a grid. Check only the precision promised for the assessed domain and variant. Where abstract-element and generator rate descriptions are both supported, verify their semantic equivalence, input preservation and compatibility rules.
HalbwachsPR97 | Whole work (background on continuous time-elapse analysis). BenerecettiFM13 | Whole work (background on polyhedral safety control and time-elapse analysis).
doc/definitions.dox: Time-Elapse Operator; Positive Time-Elapse Operator; Grid Time-Elapse. src/Polyhedron_defs.hh: ordinary and positive-time operations. src/Grid_defs.hh: grid progression. src/Box_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: time-elapse abstractions.
-
1. Bounded-difference time evolution by nonnegative rates UID: PPL-SPEC-001128 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Let X be the receiver's entry set and Y the rate argument's entry set, of the same ambient dimension n. time_elapse_assign shall replace the receiver by the least bounded-difference enclosure in the selected target profile of
E(X, Y) = {p + λq ∣ p ∈ X, q ∈ Y, λ ≥ 0}.The abstraction and outward profile conversion shall have the meaning and arithmetic prerequisites of 🔗 2. Complexity-sensitive bounded-difference conversion from polyhedra. The carrier shall remain real even when the stored bounds are integers. A nonempty zero-dimensional pair shall remain the nonempty zero-dimensional value. Either empty operand shall make the result empty: a rate witness is required even at zero elapsed time. These meanings shall not depend on whether emptiness was already classified.
For nonempty operands under exact rational arithmetic, each unary or difference normal v shall retain the entry support supp ∈ Xv⋅p precisely when supq ∈ Yv⋅q ≤ 0; a positive or unbounded rate support shall make that result direction unbounded. Already unbounded state supports shall remain unbounded. Different coordinates shall share the same elapsed time; their correlations may be lost only by the stated bounded-difference abstraction.
Self-aliasing shall use both entry values. A distinct rate shape shall remain unchanged. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver or rate value.
The rate argument shall remain live and valid. A distinct rate argument shall preserve its represented value, and result storage shall remain independent of its lifetime.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general receiver rollback guarantee shall be inferred.
RATIONALE: A rate set controls directions of unbounded evolution; zero elapsed time preserves states only when a rate witness exists. Primitive support bounds distinguish rate direction from independent coordinate translation.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
void time_elapse_assign(const BD_Shape& y);
VERIFICATION_CRITERIA: Independently project exact rational state and rate supports and derive each retained or infinite result bound. Cross-check a homogenized common-time model on correlated examples. Exercise all rate signs, zero rates, lines, rays, fractional states, empty and lazy-empty operands, dimension zero, self-aliases, cache histories, profile conversions, source preservation and dimension rejection. Inject allocation failures in a separate executable.
BIBLIOGRAPHY: HalbwachsPR97 | Sections 4.3.1–4.3.2, time-elapse operator; PDF page index 20 (zero-based).
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeevolutionspec1.cc; tests/bdshapeevolutionoracle.hh; tests/bdshapeevolutionfailure1.cc; tests/boxallocationfixture.hh; tests/bdshapeconvergenceoracle.hh; tests/bdshapeoperationoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/wrappingoracle.hh; tests/boxqueryoracle.hh; tests/bdshapeevolutionpublic1.cc; src/Polyhedron_public.cc; tests/BD_Shape/timeelapse1.cc.
-
2. Least box enclosure of nonnegative real-time progression UID: PPL-SPEC-001039 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For the receiver's entry set X and the argument's entry set Y of the same ambient dimension, time_elapse_assign(y) shall replace the receiver by the least box of its admitted interval profile containing
{x + ty ∣ x ∈ X, y ∈ Y, t ∈ ℝ, t ≥ 0}.The progression parameter shall be one common nonnegative real number for all coordinates. The result shall be the Cartesian enclosure of this progression set; it need not preserve relationships induced by the common time. Where the interval profile can express the exact coordinate ranges, the enclosure shall be exact as a box. Zero time shall preserve every entry receiver point when the direction set is nonempty. If either entry set is empty, the result shall be empty, including in dimension zero. Finite extremal values retained from the receiver shall retain their inclusion or exclusion, and unbounded progression shall be represented as an unbounded coordinate direction.
The ambient dimension shall remain unchanged. A distinct y shall retain its set and dimension; self-aliasing shall use both entry sets. Unequal ambient dimensions shall throw std::invalid_argument before modifying the receiver, including when either operand is empty.
The validity, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Delegated interval operations shall retain their scalar range, resource, shared-temporary and caller-owned FPU prerequisites. These operations shall impose no additional library initialization on otherwise valid calls. Dimension-error reporting shall retain the context required by 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. Numerical or allocation exceptions may leave a partly updated receiver; no aggregate rollback shall be inferred.
RATIONALE: A shared progression time can create relations between coordinates even when states and directions are boxes; the least Cartesian enclosure must distinguish that loss of correlation from unsoundness.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void time_elapse_assign(const Box& y);
VERIFICATION_CRITERIA: Construct an independent positive-time homogenized rational constraint system, eliminate state, displacement and time coordinates, and combine its coordinate ranges with zero-time states. Check all signs, zero rates, strict zero endpoints, finite and unbounded directions, fractional states, empty/lazy states, dimension zero, common-time correlation loss, self-aliasing, distinct-source preservation and dimension errors before mutation. Check native endpoint profiles without requiring rounded arithmetic absent from the operation.
BIBLIOGRAPHY: HalbwachsPR97 | Sections 4.3.1–4.3.2, time-elapse operator; PDF page index 20 (zero-based).
SOURCE: src/Box_defs.hh; src/Box_templates.hh; src/Interval_defs.hh; tests/boxnormalizationandtimespec1.cc; tests/boxnormalizationoracle.hh; tests/boxnormalizationpublic1.cc; tests/Box/timeelapse1.cc.
-
1. Integer-time-elapse grid abstraction UID: PPL-SPEC-001303 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: time_elapse_assign(y) shall assign the least grid containing {p + μq ∣ p ∈ X, q ∈ Y, μ ∈ Z}. The multiplier is integer time, including negative integers. Either empty operand shall yield empty. The distinct operand value and receiver dimension shall be preserved. Unequal dimensions shall throw std::invalid_argument before mutation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Integer multiples of supporting points become discrete parameters; replacing integer time with real time would unnecessarily lose modular information.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void time_elapse_assign(const Grid& y);
VERIFICATION_CRITERIA: Construct independent supporting-point/parameter/line hulls for integer time; distinguish fractional/discrete periods from real rays. Include zero dimensions, self operands, empty and dimension rejection.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/timeelapse1.cc; tests/gridoperationsspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.
-
1. Octagonal time evolution by nonnegative rates UID: PPL-SPEC-001222 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Let X be the receiver's entry set and Y the rate argument's entry set, of the same ambient dimension n. time_elapse_assign shall replace the receiver by the least octagonal enclosure in the selected target profile of
E(X, Y) = {p + λq ∣ p ∈ X, q ∈ Y, λ ≥ 0}.The abstraction and outward profile conversion shall have the meaning and arithmetic prerequisites of 🔗 2. Complexity-sensitive octagonal conversion from polyhedra for ANY_COMPLEXITY. Primitive bounds shall follow the signed supports and unary doubling of 🔗 1. Closed octagonal support hull of geometric generators. The carrier shall remain real even when the stored bounds are integers. A nonempty zero-dimensional pair shall remain the nonempty zero-dimensional value. Either empty operand shall make the result empty: a rate witness is required even at zero elapsed time. These meanings shall not depend on whether emptiness was already classified.
For nonempty operands under exact rational arithmetic, each signed normal v ∈ {±2ei, ±ei±ej (i < j)} with finite entry support supp ∈ Xv⋅p shall retain that bound precisely when supq ∈ Yv⋅q ≤ 0; a positive or unbounded rate support shall make that result direction unbounded. Already unbounded state supports shall remain unbounded. Different coordinates shall share the same elapsed time; their correlations may be lost only by the stated octagonal abstraction.
Self-aliasing shall use both entry values. A distinct rate shape shall remain unchanged. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver or rate value.
The rate argument shall remain live and valid. A distinct rate argument shall preserve its represented value, and result storage shall remain independent of its lifetime.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership and remain safely destructible. No general receiver rollback guarantee shall be inferred.
RATIONALE: A rate set controls directions of unbounded evolution; zero elapsed time preserves states only when a rate witness exists. Primitive support bounds distinguish rate direction from independent coordinate translation.
INTERFACE: Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:
void time_elapse_assign(const Octagonal_Shape& y);
VERIFICATION_CRITERIA: Independently project exact rational state and rate supports and derive each retained or infinite result bound. Cross-check a homogenized common-time model on correlated examples. Exercise all rate signs, zero rates, lines, rays, fractional states, empty and lazy-empty operands, dimension zero, self-aliases, cache histories, profile conversions, source preservation and dimension rejection. Inject allocation failures in a separate executable.
BIBLIOGRAPHY: HalbwachsPR97 | Sections 4.3.1–4.3.2, time-elapse operator; PDF page indices 19–20 (zero-based).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeevolutionspec1.cc; tests/octagonalshapeevolutionoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeevolutionoracle.hh; tests/octagonalshapeevolutionfailure1.cc; tests/boxallocationfixture.hh; tests/bdshapeconvergenceoracle.hh; tests/bdshapeoperationoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/wrappingoracle.hh; tests/boxqueryoracle.hh; tests/octagonalshapeevolutionpublic1.cc; src/Polyhedron_public.cc; tests/Octagonal_Shape/timeelapse1.cc.
-
Incoming link from: 4. C generated domain transformations1
1. Nonnegative polyhedral time elapse UID: PPL-SPEC-001360 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Ordinary time elapse shall compute the least polyhedron of the receiver's topology containing {p + tq ∣ p ∈ P, q ∈ Q, t ≥ 0}, using the entry receiver P and operand Q. Empty in either operand shall give empty. Dimension and topology shall agree, otherwise std::invalid_argument shall be thrown. A distinct operand shall retain its represented value. The progression scalar shall be real, not integral, and zero time shall be admitted for nonempty operands.
The generator-system overload shall interpret its input as the rate polyhedron described by that system, using the receiver's topology. The rate system shall have the same ambient dimension as the receiver. An empty rate system shall give the empty result. A nonempty system without an included point, or a closed receiver with a user-visible closure point in the system, shall raise std::invalid_argument. These argument checks shall precede updates of the receiver. An independent input generator system shall retain its value and representation. If the input is a borrowed generator view of the receiver, the operation shall read its entry generators before any receiver update; the view shall then follow 🔗 2. Equivalent borrowed polyhedral descriptions. A singleton zero rate shall preserve the receiver's represented set.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: The cone of an NNC rate polyhedron may require a polyhedral enclosure, and closing the result is required by a closed target. Generator input permits a caller that already has a rate description to avoid constructing a rate polyhedron. For nonempty operands, the least polyhedral result is the sum of the initial set and the closed rate cone: every valid strict or nonstrict halfspace must admit nonnegative progression along each rate, and hence along that closed cone.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void time_elapse_assign(const Polyhedron&); void time_elapse_assign(const Generator_System& rates);
VERIFICATION_CRITERIA: Check literal rate cones, zero rates, open rate boundaries, original states at zero time, empty operands, self aliasing and compatibility rejection. Compare generator-input results with independently known cones and with the polyhedron-input overload. Cover unpaired NNC points and closure points, rays, lines, latent empty and pending receivers, both cache states, borrowed receiver generators, zero dimensions and validation before receiver updates. Exercise the powerset time-elapse callback with closed, NNC and recursive powerset operands.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/timeelapse1.cc; tests/Polyhedron/timeelapse2.cc; tests/Polyhedron/timeelapsegenerators1.cc.
-
2. Positive polyhedral time elapse UID: PPL-SPEC-001361 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Positive time elapse shall compute the least polyhedron of the receiver's topology containing {p + tq ∣ p ∈ P, q ∈ Q, t > 0}. Zero time shall not be introduced merely by the definition; zero rates may nevertheless retain entry states. A closed receiver shall take the closed polyhedral enclosure. Both rate topologies shall be admitted by this variant. Dimensions shall agree, otherwise std::invalid_argument shall be thrown. Empty in either operand shall give empty. A distinct operand shall retain its value.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Strictly positive time can exclude initial boundary states; a closed result necessarily adds their appropriate limits.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
// Members of C_Polyhedron and NNC_Polyhedron: void positive_time_elapse_assign(const Polyhedron&);
VERIFICATION_CRITERIA: Check independent positive cones, excluded/retained origins, zero rates, empty and zero-dimensional operands, cross-topology rates and dimension mismatch.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/nncpostimeelapse1.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001100 Least closed bounded-difference abstraction of subtraction (Specified by)
- PPL-SPEC-000979 Same-profile abstract box difference (Specified by)
- PPL-SPEC-001284 Least-grid abstraction of set difference (Specified by)
- PPL-SPEC-001175 Least closed octagonal abstraction of subtraction (Specified by)
- PPL-SPEC-001343 Polyhedral enclosure of set difference (Specified by)
PPL shall provide abstract set-difference operations for its documented supported pointset domains. Under their arithmetic preconditions, a completed result shall contain every point in the first operand that is absent from the second; exactness or least-domain-enclosure guarantees shall be defined per domain rather than assuming that every result is the set-theoretic difference.
A difference of representable sets can be nonconvex or outside the result domain, so a sound abstract difference may retain removed points or fill gaps.
Verification covers abstract difference operations, compatibility conditions and per-domain exactness or enclosure guarantees. Related obligations: 🔗 3. Polyhedral intersection and hull, 🔗 3. Grid intersection and grid hull, 🔗 5. Lifted operations on finite pointset powersets, 🔗 1. Meaning of successful exact and approximate results.
Compare with independently derived set differences for overlapping, disjoint, equal and empty operands. Include removal of a boundary, an equality and an interior region. For products, check both component-exclusion alternatives, all supported reduction policies and component orders, and a singleton at zero subtracted by an odd-integer grid. Include self-subtraction, empty and zero-dimensional cases, dimension mismatch, nonintegral witnesses and histories that change reduction state. Check sound inclusion and any domain-specific optimality, without requiring the abstract result to be disjoint from the second operand.
doc/definitions.dox: Convex Polyhedral Difference. src/Polyhedron_defs.hh, src/Box_defs.hh, src/Grid_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: abstract difference contracts. src/Pointset_Powerset_defs.hh: powerset difference. src/Partially_Reduced_Product_defs.hh and src/Partially_Reduced_Product_inlines.hh; tests/Partially_Reduced_Product/difference1.cc and tests/Partially_Reduced_Product/directproduct3.cc.
-
11. Least closed bounded-difference abstraction of subtraction UID: PPL-SPEC-001100 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000424 Abstract set-difference semantics (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: difference_assign(y) shall replace the receiver by the least target-profile bounded-difference enclosure of the set of entry points absent from y. In an unbounded exact rational profile this shall be the least closed bounded-difference hull of the concrete difference. A finite normal supremum shall use the least admitted outward target bound.
The result may retain removed boundary points or fill a gap between surviving components, as required by closure and convex template abstraction. Removing an equality or a boundary shall not be interpreted as removing its closed convex limit points. If the concrete difference is empty, the result shall be empty; self-subtraction shall therefore be empty.
Dimensions shall agree; mismatch shall throw std::invalid_argument before changing either represented set. Empty/universe and zero-dimensional operands shall obey the same subtraction-and-enclosure meaning. A distinct source shall preserve its represented set, and result ownership shall be independent of its lifetime.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
RATIONALE: A concrete difference need not be closed or convex. Taking support over its strict exclusion alternatives defines the least closed template enclosure without incorrectly requiring the result to be disjoint from the removed operand.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
void difference_assign(const BD_Shape& y);
VERIFICATION_CRITERIA: Form each strict complement of the subtrahend's raw halfspaces, intersect with the entry set and take primitive support suprema over feasible alternatives using independent rational elimination. Include equalities, removed boundaries, interior holes, alternating constraints, aliases, empty/universe/zero dimensions, numerical target profiles and mismatch errors. Compare dense and irredundant defining bases, cold and cached histories, and removal that leaves the original closed hull. Include disjointness, interior holes, boundary faces and complementary equality branches, with proper facet cuts as controls; preserve distinct-source geometry and ownership.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeoperationsspec1.cc; tests/bdshapeoperationoracle.hh; tests/bdshapeoperationsfailure1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeoperationspublic1.cc; tests/BD_Shape/difference1.cc; tests/BD_Shape/dimensioncontracts1.cc.
-
7. Same-profile abstract box difference UID: PPL-SPEC-000979 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000424 Abstract set-difference semantics (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For same-profile boxes of equal ambient dimension, difference_assign(y) shall replace the receiver by the least box of that profile containing the set-theoretic difference of the two entry values. It may retain removed points when the difference is not itself representable as a box. With exact rational endpoints and supported openness this shall be the Cartesian interval hull of the exact difference.
Empty subtraction, subtraction from empty, self-subtraction, coverage and zero-dimensional cases shall follow their set meanings. Removal of a boundary shall preserve the remaining endpoint's required openness where representable. A difference split into separate pieces shall use their least same-profile enclosure. A distinct donor shall retain its represented value, self-aliasing shall be admitted and ambient dimension shall remain. Dimension mismatch shall throw std::invalid_argument before replacement.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
RATIONALE: Differences of Cartesian products can be disconnected; their box abstraction must state its precision instead of implying set-theoretic exactness.
INTERFACE: Public header: <ppl.hh>; member excerpt for Box<ITV> in Parma_Polyhedra_Library:
void difference_assign(const Box& y);
VERIFICATION_CRITERIA: Independently derive exact differences and their coordinate projections for zero, one and several dimensions. Cover equality, containment, disjointness, a single non-contained factor, multiple exclusion alternatives, removed open/closed boundaries, interior holes, empty/lazy states, self-subtraction, donor preservation and mismatch.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxsetoperationsspec1.cc; tests/boxsetoracle.hh; tests/boxpublic1.cc; tests/Box/difference1.cc.
-
4. Least-grid abstraction of set difference UID: PPL-SPEC-001284 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000424 Abstract set-difference semantics (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: difference_assign(y) shall assign the least rational grid containing X⧵Y. Removing a superset shall yield empty; removing disjoint or empty shall preserve X. When the difference is the other coset of an index-two subgroup, that coset shall be retained exactly. In other cases the least grid may be the whole entry receiver. The operand shall retain its value. Unequal dimensions shall throw std::invalid_argument before mutation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Grid difference must distinguish a single remaining coset from a complement whose grid hull is unchanged.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void difference_assign(const Grid& y);
VERIFICATION_CRITERIA: Use exact subgroup-index and phase calculations, index-two complements, partial overlap, continuous and singleton factors, coupled coordinates, empty/self operands and dimension errors. Check exact integer-grid complement cosets, disjoint cosets, equality cuts and singleton factors in different dimensions, both representations and pending or minimized caches. After operand destruction, verify the result, invariants, independent copies and self difference.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/griddifference1.cc; tests/gridoperationsspec1.cc; tests/gridoperationsfailure1.cc.
-
5. Least closed octagonal abstraction of subtraction UID: PPL-SPEC-001175 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000424 Abstract set-difference semantics (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: difference_assign(y) shall replace the receiver by the least closed target-profile octagonal enclosure of the concrete real difference X⧵Y of the entry sets. It shall retain every point of X absent from Y. Its precision shall concern the whole relational sets.
For each encoded octagonal normal, the result shall impose the strongest bound expressible in the target profile that is valid on the concrete difference. Finite support suprema shall be computed with their exact boundary meaning before outward target rounding, including doubled unary bounds. Closing a strict complement may retain boundary points removed by subtraction, and a convex enclosure may fill a gap between surviving pieces. For example, removing x0 + x1 = 0 from 0 ≤ x0 + x1 ≤ 2 shall leave the same closed octagonal enclosure. The result shall not be required to be disjoint from Y.
Self-subtraction and subtraction of universe shall give empty. Subtraction of empty shall preserve the entry set. An empty receiver shall remain empty.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
RATIONALE: Strict complements and disjunctions generally leave the closed convex octagonal domain. Least closed abstraction retains precise supports while allowing removed boundary points and gaps to be filled.
INTERFACE: Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:
void difference_assign(const Octagonal_Shape& y);
VERIFICATION_CRITERIA: Represent the concrete difference as strict-complement branches of the second operand. Use independent rational elimination for branch feasibility and all signed support suprema, then outward-round the resulting primitive bounds. Verify the least target-profile hull, not just containment. Include interior removals, an equality, a boundary face, signed lower-dimensional sets, fractional witnesses, unbounded/empty/universe/zero-dimensional cases, self subtraction, source preservation and dimension errors. Compare dense and irredundant defining bases, cold and cached histories, and removal that leaves the original closed hull. Include disjointness, interior holes, boundary faces and complementary equality branches, with proper facet cuts as controls; preserve distinct-source geometry and ownership.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4, Definition 4 and Definition 5, coherent signed-normal encoding and rational strong closure.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/Octagonal_Shape.cc; tests/octagonalshapeoperationsspec1.cc; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapeoperationspublic1.cc; tests/Octagonal_Shape/difference1.cc; doc/definitions.dox; tests/octagonalshapeoperationsfailure1.cc; tests/boxallocationfixture.hh.
-
6. Polyhedral enclosure of set difference UID: PPL-SPEC-001343 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000424 Abstract set-difference semantics (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Difference assignment shall return the smallest polyhedron of the receiver's topology containing the set-theoretic difference of the entry receiver and operand. The closed variant shall close the convex polyhedral difference where needed. It shall not claim that the result excludes every operand point. Empty difference shall return empty. difference_assign shall be equivalent to poly_difference_assign. Dimension/topology mismatch shall throw std::invalid_argument; a distinct operand shall preserve its value.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Set difference can be nonconvex or nonclosed, so representability determines the required hull and closure.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void poly_difference_assign(const Polyhedron&); void difference_assign(const Polyhedron&);
VERIFICATION_CRITERIA: Check interval subtraction, holes whose convex hull restores removed points, endpoint exclusions, self difference, empty/universe and mismatch rejection. Check closed and NNC difference against literal halfspace complements and restored convex hulls, with dense/sparse systems, different dimensions and pending or minimized caches. After operand destruction, verify the result, invariants, alias entry point, independent copies and self difference.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/polydifference1.cc; tests/Polyhedron/polydifference2.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001132 Topological closure identity for bounded-difference values (Specified by)
- PPL-SPEC-001038 Exact topological closure of boxes (Specified by)
- PPL-SPEC-001306 Grid topological closure (Specified by)
- PPL-SPEC-001226 Topological closure identity for octagonal values (Specified by)
- PPL-SPEC-001364 Exact polyhedral topological closure (Specified by)
- PPL-SPEC-001322 Closed and NNC value conversion (Specified by)
- PPL-SPEC-001323 Polyhedron conversion from boxes (Specified by)
PPL shall provide topological-closure operations for its supported real pointset domains. Under their arithmetic preconditions, completed results shall contain the exact topological closure of the input. For primitive domains whose admitted representation can express that closure, the result shall be exact; compound-domain closure shall retain its stated precision and shall not inherit exactness solely from exact component closures.
Closing component sets and then intersecting them need not equal closing their intersection. Ordinary topological closure is also distinct from graph normalization used internally by weakly relational domains.
Verification covers topological-closure operations and the supported topology, endpoint policies and compound precision. Related obligations: 🔗 1. Interval boundary membership, 🔗 1. Closed and non-necessarily-closed polyhedra, 🔗 4. Intersection meaning of product domains, 🔗 3. Preservation by representation-only changes.
Independently derive closures of open and partially open sets, closed sets and empty sets. Check identity on closed primitive sets and exactness where the profile admits the closed endpoints. For compound domains, examine cases where component intersections lose boundary points or are empty and verify the stated containment or stronger guarantee.
src/Polyhedron_defs.hh: topological closure. src/Box_defs.hh and src/Interval_defs.hh: closing supported interval bounds. src/Grid_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: closed primitive domains. src/Partially_Reduced_Product_defs.hh: componentwise closure.
-
5. Topological closure identity for bounded-difference values UID: PPL-SPEC-001132 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000425 Topological closure and closure approximation (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: topological_closure_assign shall preserve the represented set and ambient dimension of every valid bounded-difference value. These values are already topologically closed under 🔗 1. Bounded-difference values, numerical profiles and valid use, including lower-dimensional sets, unbounded sets, universe and empty values in every supported dimension. The operation shall not be interpreted as a demand to run graph shortest-path closure or to change a graph-normalization cache.
An unclassified inconsistent representation shall continue to denote empty; forcing an emptiness query shall not be a precondition for this identity. Storage ownership and validity shall be preserved. No additional numerical rounding setup or library initialization beyond the valid object's existing context shall be required; the caller's FPU rounding direction shall remain unchanged.
RATIONALE: Topological closure is a semantic operation on represented points. Closed difference inequalities already express a closed set, independently of whether their graph representation has been normalized.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
void topological_closure_assign();
VERIFICATION_CRITERIA: Compare exact independent halfspace denotations before and after repeated calls on empty/lazy-empty/universe, affine, bounded and unbounded models. Check dimensions, source lifetime/ownership, numerical profiles and caller-FPU preservation without requiring graph-cache changes.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeevolutionspec1.cc; tests/bdshapeevolutionoracle.hh; tests/bdshapeevolutionfailure1.cc; tests/boxallocationfixture.hh; tests/bdshapeconvergenceoracle.hh; tests/bdshapeoperationoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/wrappingoracle.hh; tests/boxqueryoracle.hh; tests/bdshapeevolutionpublic1.cc.
-
1. Exact topological closure of boxes UID: PPL-SPEC-001038 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000425 Topological closure and closure approximation (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: topological_closure_assign() shall replace the receiver by its exact topological closure over the ordinary real carrier. It shall include each finite boundary point of a nonempty factor while preserving that boundary's value and retaining unbounded directions. Empty, including a product with an unclassified empty factor, shall remain empty. The ambient dimension shall remain unchanged. The operation shall be idempotent and shall preserve an already closed box. A closed-only interval profile shall not introduce a distinct value merely because no openness bits are stored.
Finite endpoint closure and policy admission shall follow 🔗 5. Interval closure and endpoint exclusion; closing factors shall not turn an empty product into a nonempty one.
The validity, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Delegated interval operations shall retain their scalar range, resource, shared-temporary and caller-owned FPU prerequisites. These operations shall impose no additional library initialization on otherwise valid calls. Exceptions escaping a delegated interval operation may leave a partly updated receiver; no aggregate rollback shall be inferred.
RATIONALE: A finite Cartesian product of nonempty real intervals has the product of their closures; the empty case must be treated separately.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void topological_closure_assign();
VERIFICATION_CRITERIA: Compare exact rational Cartesian closures for strict, closed, half-open, singleton, unbounded, classified and lazy-empty factors in dimensions zero through three. Check containment, endpoint identity, idempotence and ambient dimension. Instantiate open-capable and closed-only numerical profiles; check active native endpoint payloads and valid calls without extra Init.
SOURCE: src/Box_defs.hh; src/Box_templates.hh; src/Interval_defs.hh; tests/boxnormalizationandtimespec1.cc; tests/boxnormalizationoracle.hh; tests/boxnormalizationpublic1.cc.
-
4. Grid topological closure UID: PPL-SPEC-001306 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000425 Topological closure and closure approximation (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: topological_closure_assign() shall preserve the receiver's mathematical value and ambient dimension. Every represented rational grid, including empty, is closed in its ambient real topology.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: A rational grid is a finite-dimensional sum of a real subspace and a discrete lattice; it has no excluded limit points.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void topological_closure_assign();
VERIFICATION_CRITERIA: Check empty, zero-dimensional, discrete, continuous and mixed grids with both descriptions and redundant generators.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/topclosure1.cc; tests/gridoperationsspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.
-
5. Topological closure identity for octagonal values UID: PPL-SPEC-001226 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000425 Topological closure and closure approximation (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: topological_closure_assign shall preserve the represented set and ambient dimension of every valid octagonal value. These values are already topologically closed under 🔗 1. Octagonal values, numerical profiles and valid use, including lower-dimensional sets, unbounded sets, universe and empty values in every supported dimension. The operation shall preserve the owned representation and cache state. It shall not run strong closure, tight integer closure, allocation or numerical arithmetic, nor invoke cooperative-abandonment callbacks.
An unclassified inconsistent representation shall continue to denote empty; forcing an emptiness query shall not be a precondition for this identity. Storage ownership and validity shall be preserved. No additional numerical rounding setup or library initialization beyond the valid object's existing context shall be required; the caller's FPU rounding direction shall remain unchanged.
RATIONALE: Topological closure is a semantic operation on represented points. Closed signed unary and binary inequalities already express a closed set, independently of whether their graph representation has been normalized.
INTERFACE: Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:
void topological_closure_assign();
VERIFICATION_CRITERIA: Compare exact independent halfspace denotations before and after repeated calls on empty/lazy-empty/universe, affine, bounded and unbounded models. Check dimensions, source lifetime/ownership, numerical profiles and caller-FPU preservation without requiring graph-cache changes.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4, rational octagonal graphs and shapes defined by non-strict signed inequalities; PDF page index 8 (zero-based).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeevolutionspec1.cc; tests/octagonalshapeevolutionoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeevolutionoracle.hh; tests/octagonalshapeevolutionfailure1.cc; tests/boxallocationfixture.hh; tests/bdshapeconvergenceoracle.hh; tests/bdshapeoperationoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/wrappingoracle.hh; tests/boxqueryoracle.hh; tests/octagonalshapeevolutionpublic1.cc.
-
5. Exact polyhedral topological closure UID: PPL-SPEC-001364 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000425 Topological closure and closure approximation (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Closure assignment shall replace the receiver by its exact real topological closure. A closed receiver shall retain its value. NNC closure shall include the missing boundary points while preserving dimension, equalities and recession behavior. Empty and zero-dimensional values shall remain unchanged. Repetition shall be idempotent.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Closure changes membership at limits without changing the affine hull or introducing unrelated points.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void topological_closure_assign();
VERIFICATION_CRITERIA: Check half-open intervals, lower-dimensional open sets, latent empty strict systems, both representation routes and idempotence. Check generator-derived receivers with both representations minimized before closure, including multiple boundary points that become unsorted on insertion; verify the exact closed generator hull, invariants and idempotence.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/topclosure1.cc.
-
Incoming link from: 3. Owned polyhedron copying, assignment and exchange1
7. Closed and NNC value conversion UID: PPL-SPEC-001322 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000032 Equivalent polyhedral representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000425 Topological closure and closure approximation (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Conversion or assignment from closed to NNC shall preserve the represented set and dimension exactly. Conversion or assignment from NNC to closed shall produce the exact topological closure, including empty and lower-dimensional sets. The complexity argument shall not reduce this precision. Sources shall retain their values; successful assignment shall return its receiver by reference. Changing topology shall occur through the selected value type's conversion, without exposing a receiver with the wrong topology.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Closed targets cannot retain excluded boundary points, whereas NNC targets can represent every closed polyhedron unchanged.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
explicit C_Polyhedron(const NNC_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); explicit NNC_Polyhedron(const C_Polyhedron&, Complexity_Class=ANY_COMPLEXITY); C_Polyhedron& operator=(const NNC_Polyhedron&); NNC_Polyhedron& operator=(const C_Polyhedron&);
VERIFICATION_CRITERIA: Check open and half-open intervals, empty inconsistent strict systems, singletons, free coordinates, source preservation and assignments across dimensions.
BIBLIOGRAPHY: BagnaraHZ10CGTA | Sections 2.1–2.3, Theorems 2.1 and 2.3, Definition 2.2 (closed and NNC generator semantics).
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/cnncconversion1.cc; tests/Polyhedron/topclosure1.cc; tests/polyhedronvaluesspec1.cc.
-
8. Polyhedron conversion from boxes UID: PPL-SPEC-001323 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Specifies)
- PPL-LLR-000425 Topological closure and closure approximation (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Box conversion shall preserve dimension and source value. NNC conversion shall represent the source box exactly, including open endpoints; closed conversion shall represent its exact topological closure. Infinite endpoints shall impose no finite bound. The complexity argument shall not affect the result. Structural dimension overflow shall throw std::length_error.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Finite rational interval bounds translate to axis-aligned affine constraints; closing the target changes only endpoint inclusion.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
template <typename Interval> explicit C_Polyhedron(const Box<Interval>&, Complexity_Class=ANY_COMPLEXITY); template <typename Interval> explicit NNC_Polyhedron(const Box<Interval>&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check empty, zero-dimensional, finite/infinite and open/closed endpoint combinations, selected interval profiles and structural bounds.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/frombox1.cc; tests/Polyhedron/frombox2.cc; tests/polyhedronvaluesspec1.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001101 Meet-preserving simplification in a context (Specified by)
- PPL-SPEC-000980 Context-preserving box simplification (Specified by)
- PPL-SPEC-001285 Context-preserving grid simplification (Specified by)
- PPL-SPEC-000722 Meet-preserving interval context simplification (Specified by)
- PPL-SPEC-000723 Interval construction disjoint from a supplied context (Specified by)
- PPL-SPEC-001176 Meet-preserving octagonal simplification in a context (Specified by)
- PPL-SPEC-001344 Polyhedral context-preserving simplification (Specified by)
PPL shall provide its supported context-based simplification operations. Under their arithmetic preconditions, simplification shall preserve the intersection of the input set with the supplied context and satisfy the domain's stated simplification guarantee. Preservation inside the context shall not be presented as preservation or enlargement of the whole input outside that context unless the operation also guarantees it.
Primitive-domain simplification can be an enlargement, while powerset simplification may discard disjuncts disjoint from the context. Both must retain the relevant intersection.
Verification covers context-simplification operations, intersection-preservation guarantees, simplification measures and result meanings. Related obligations: 🔗 2. Meaning-preserving removal of redundant disjuncts, 🔗 2. Interpretation of sufficient property tests, 🔗 3. Preservation by representation-only changes.
Independently compare the original and resulting intersections with the context. Include empty and disjoint contexts, redundant conditions, primitive-domain enlargement and powerset removal of context-disjoint disjuncts. Check the operation's stated simplification measure and interpret any Boolean result using its one-sided or exact guarantee.
doc/definitions.dox: Meet-Preserving Enlargement and Simplification; Powerset Meet-Preserving Simplification. src/Pointset_Powerset_defs.hh: discarding disjuncts outside context and return meaning. src/Polyhedron_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: primitive simplification contracts.
-
12. Meet-preserving simplification in a context UID: PPL-SPEC-001101 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000426 Context-preserving simplification (Specifies)
- PPL-LLR-000302 Interpretation of sufficient property tests (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: simplify_using_context_assign(y) shall return a bounded-difference simplification R of the entry receiver X using the entry context Y, satisfying
X ⊆ R, R∩Y = X∩Y.The cardinality of a minimized constraint representation of R shall not exceed that of X. Identity shall be an admitted result; a strict enlargement or decrease in constraints shall not be required on every call. The Boolean result shall satisfy: false implies the entry intersection is empty. A true result may be inconclusive about nonemptiness.
The context shall preserve its entry represented set when it is distinct from the receiver. Self-aliasing shall obey the same meet-preservation and enlargement clauses using the entry value for both operands. Empty receivers, empty contexts, universe, lower-dimensional and zero-dimensional sets shall be admitted.
Dimensions shall agree; mismatch shall throw std::invalid_argument before changing either represented set. Result storage shall remain independent of a distinct context's later lifetime or mutation. Representation-only normalization shall preserve the mathematical entry values.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
RATIONALE: Contextual simplification may discard restrictions supplied by the context while preserving exactly the relevant intersection. Enlargement and constraint-count simplification are separate obligations.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
bool simplify_using_context_assign(const BD_Shape& y);
VERIFICATION_CRITERIA: Check enlargement and both intersection inclusions with independent rational halfspaces. Count an independent affine equation basis plus distinct facet faces for the minimized-representation measure. Check false-result disjointness, no required strict progress, empty/disjoint/universal contexts, aliases, exact and rounded profiles, context preservation and dimension errors.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeoperationsspec1.cc; tests/bdshapeoperationoracle.hh; tests/bdshapeoperationsfailure1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeoperationspublic1.cc; tests/BD_Shape/simplifyusingcontext1.cc; tests/BD_Shape/dimensioncontracts1.cc.
-
8. Context-preserving box simplification UID: PPL-SPEC-000980 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000426 Context-preserving simplification (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For same-profile boxes of equal ambient dimension, let X and Y be the receiver and context entry sets. simplify_using_context_assign(y) shall produce a box X’ with X ⊆ X’ and X’∩Y = X∩Y, keeping ambient dimension. The operation may discard bounds made redundant by the context. It shall not promise a unique or maximally enlarged result.
A false return shall establish X∩Y = ⌀; a true return shall retain the intersection-preservation guarantee without an additional exact nonemptiness claim. Empty contexts and receivers and zero-dimensional values shall follow these set obligations. A distinct context's represented value shall remain unchanged. With the receiver also used as context, entry-value semantics shall still apply. Dimension mismatch shall throw std::invalid_argument before replacement.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
RATIONALE: Bounds may be removed outside the relevant context while the original constrained intersection and primitive-domain enlargement are preserved.
INTERFACE: Public header: <ppl.hh>; member excerpt for Box<ITV> in Parma_Polyhedra_Library:
bool simplify_using_context_assign(const Box& y);
VERIFICATION_CRITERIA: Check input inclusion and equality of the original/result intersections with an independent product model. Include redundant bounds, disjoint factors at every position, empty and universe contexts, empty receiver, open endpoints, unbounded factors, zero dimensions, self-context and mismatch. Interpret the Boolean using its stated one-sided guarantee.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxsetoperationsspec1.cc; tests/boxsetoracle.hh; tests/boxpublic1.cc; tests/Box/simplifyusingcontext1.cc.
-
5. Context-preserving grid simplification UID: PPL-SPEC-001285 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000426 Context-preserving simplification (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: simplify_using_context_assign(y) shall produce X’ satisfying X’∩Y = X∩Y. A false return shall imply X∩Y = ⌀; true need not prove nonemptiness. Simplification may enlarge the receiver and need not be maximal or preserve it outside the context. The operand's mathematical value shall be preserved unless it is the receiver itself. Unequal dimensions shall throw std::invalid_argument before mutation.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Only behavior within the context is observable to context-based simplification clients.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
bool simplify_using_context_assign(const Grid& y);
VERIFICATION_CRITERIA: Compare intersections before and after simplification for coupled rational cosets, equality/continuous factors, empty contexts, self context and multiple caches; check false-return soundness and dimensions.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/simplifyusingcontext1.cc; tests/gridoperationsspec1.cc; tests/gridoperationsfailure1.cc.
-
2. Meet-preserving interval context simplification UID: PPL-SPEC-000722 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000021 Interval boundary membership (Specifies)
- PPL-LLR-000426 Context-preserving simplification (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: simplify_using_context_assign(y) shall replace entry interval A by a valid interval S satisfying A ⊆ S and S∩C = A∩C, where C is the entry context. It shall return true exactly when that intersection is nonempty. An empty receiver or context shall return false without changing the receiver.
For disjoint nonempty intervals, a receiver lying below its context shall retain its separating upper bound and remove its lower bound; a receiver lying above shall retain its separating lower bound and remove its upper bound. For intersecting intervals, each finite receiver bound made redundant by a finite context bound shall be removed. The operation shall not promise a unique or globally minimal representation. Endpoint membership shall be respected when deciding separation and redundancy. Self-aliasing shall be permitted and shall retain the entry-context intersection.
Operands shall be live, initialized and valid intervals over the declared ordinary real carrier. Active rational payloads shall be canonical. The selected numerical operations shall satisfy their range, resource, policy, shared-temporary and caller-owned FPU prerequisites. The result shall be admitted by the receiving boundary/information policy. Access shall be synchronized with modification. Separate interval sources shall remain unchanged. No additional library initialization shall be required. Underlying numerical or allocation failure shall retain the underlying operation's guarantees; no general rollback guarantee shall be implied.
RATIONALE: Context simplification can remove bounds while preserving precisely the information relevant inside the context.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Interval<Boundary, Info>:
template <Interval_Like From> bool simplify_using_context_assign(const From& y);
VERIFICATION_CRITERIA: Compare original/result intersections with an independent endpoint-and-cell model over every finite endpoint topology, empty sets, rays, universes and self-aliasing. Check exact Boolean meaning, whole-input inclusion, unchanged separate contexts and expected removal of redundant or nonseparating bounds.
SOURCE: src/Interval_defs.hh; src/Interval_templates.hh; tests/intervalcontextspec1.cc; tests/Box/intervalcontracts1.cc.
-
3. Interval construction disjoint from a supplied context UID: PPL-SPEC-000723 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000021 Interval boundary membership (Specifies)
- PPL-LLR-000426 Context-preserving simplification (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: empty_intersection_assign(y) shall replace the receiver by a valid interval disjoint from the supplied entry context C. An empty context shall give universe. Otherwise it shall prefer a representable nonempty component on the lower side of C, then one on the upper side; if neither can be represented, it shall give empty. The policy shall admit an empty result. The original receiver contents shall not restrict the result, and the context may alias the receiver.
Under exact open rational boundaries over the ordinary real carrier, a finite lower context endpoint shall give its entire lower complement component, with complementary endpoint membership; otherwise a finite upper endpoint shall give its entire upper complement component. An ordinary real universe shall give empty. More generally, conversion of a complement cutoff shall round inward to avoid context values. Where a closed-only discrete boundary type must exclude an exact cutoff, the adjacent representable boundary shall be used when available. For dense closed-only rational boundaries at a closed context endpoint, no inclusion-maximal cutoff exists; the deterministic interior cutoff shall differ by one toward the selected component's interior. Included infinities shall be considered only under policies that admit and represent them; a lone infinity may itself form a representable complement component. An unrepresentable component shall not be reported as nonempty.
Operands shall be live, initialized and valid intervals over the declared declared carrier. Active rational payloads shall be canonical. The selected numerical operations shall satisfy their range, resource, policy, shared-temporary and caller-owned FPU prerequisites. The result shall be admitted by the receiving boundary/information policy. Access shall be synchronized with modification. Separate interval sources shall remain unchanged. No additional library initialization shall be required. Underlying numerical or allocation failure shall retain the underlying operation's guarantees; no general rollback guarantee shall be implied.
RATIONALE: Constructing a disjoint interval requires inward conversion and a deterministic component choice; dense closed-only rational boundaries do not support a universal maximal-cutoff promise.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Interval<Boundary, Info>:
template <Interval_Like From> void empty_intersection_assign(const From& y);
VERIFICATION_CRITERIA: Check exhaustive ordinary rational contexts against literal complement components, including every open/closed boundary, rays, empty/universe, independent old receiver values and self-aliasing. Check cross-boundary inward rounding, closed integer/floating adjacent cutoffs, bounded endpoint exhaustion, dense closed rational fallback and admitted infinity singletons with the existing dedicated interval regressions.
SOURCE: src/Interval_defs.hh; src/Interval_templates.hh; tests/intervalcontextspec1.cc; tests/Box/intervalcontracts1.cc.
-
6. Meet-preserving octagonal simplification in a context UID: PPL-SPEC-001176 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000426 Context-preserving simplification (Specifies)
- PPL-LLR-000302 Interpretation of sufficient property tests (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: simplify_using_context_assign(y) shall replace entry receiver X by an octagonal simplification R using entry context Y, satisfying
R∩Y = X∩Y.The cardinality of a minimized constraint representation of R shall not exceed that of X. An unchanged receiver shall be an admitted result; strict progress shall not be required on every call. The Boolean result shall satisfy: false implies the entry intersection is empty. A true return need not certify nonemptiness.
For self-aliasing, the context shall mean the entry receiver, so the meet-preservation equation shall be R∩X = X. A distinct context shall preserve its entry denotation. Empty/disjoint contexts, empty receivers and zero-dimensional values shall be admitted.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return, including a Boolean false return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
RATIONALE: The caller needs exactly the behavior observable in the supplied context. A reduction in the minimum representation size is a simplification measure; intersection preservation alone does not specify the receiver's outside context points.
INTERFACE: Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:
bool simplify_using_context_assign(const Octagonal_Shape& y);
VERIFICATION_CRITERIA: Independently conjoin entry and result halfspaces with the unchanged context and compare their real denotations using rational elimination. For compact cases derive minimum octagonal representation counts from affine rank and independent signed supporting faces. Check cardinality nonincrease and false-result implication without requiring progress or equating true with nonempty. Include disjoint/empty/universe contexts, self alias, relational equalities, rounded half-sum cases, unchanged sources and dimension errors.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4, Definition 4 and Definition 5, coherent signed-normal encoding and rational strong closure.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/Octagonal_Shape.cc; tests/octagonalshapeoperationsspec1.cc; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapeoperationspublic1.cc; tests/Octagonal_Shape/simplifyusingcontext1.cc; doc/definitions.dox; tests/octagonalshapeoperationsfailure1.cc; tests/boxallocationfixture.hh.
-
7. Polyhedral context-preserving simplification UID: PPL-SPEC-001344 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000426 Context-preserving simplification (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For compatible operands, simplification shall return a polyhedron containing the entry receiver and having the same intersection with the context. A false result shall certify that this intersection is empty; true shall not alone establish nonemptiness. The context shall preserve its value. The operation need not preserve the receiver outside the context or return a unique simplification. Dimension/topology mismatch shall throw std::invalid_argument.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Constraints irrelevant under the context can be removed without changing states that matter within it.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool simplify_using_context_assign(const Polyhedron&);
VERIFICATION_CRITERIA: Check independent intersections before/after, implication and disjoint contexts, true/false outcomes, self context and pending representations.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/simplifyusingcontext1.cc; tests/Polyhedron/simplifyusingcontext2.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001129 Integer-point restriction on every bounded-difference coordinate (Specified by)
- PPL-SPEC-001130 Selected-coordinate integer restriction of bounded-difference values (Specified by)
- PPL-SPEC-001040 Selected-coordinate integer-point normalization of boxes (Specified by)
- PPL-SPEC-001304 Exact integer-coordinate restriction (Specified by)
- PPL-SPEC-001223 Integer-point restriction on every octagonal coordinate (Specified by)
- PPL-SPEC-001224 Selected-coordinate integer restriction of octagonal values (Specified by)
- PPL-SPEC-001666 Bounded Chvatal half-pair refinement (Specified by)
- PPL-SPEC-001362 Integer-point-preserving polyhedral restriction (Specified by)
PPL shall provide integer-point restriction for the documented supported pointset domains and selected-coordinate variants. Under the arithmetic preconditions, the result shall contain every input point integral on the selected coordinates and shall introduce no point outside the input set. Grid restriction shall compute the exact intersection with those integer-coordinate requirements; other domains shall retain their stated precision without implying that every remaining point is integral.
A sound integer restriction may leave noninteger points in a convex abstraction, while rational grids can represent the selected integer restriction exactly.
Verification covers integer-restriction operations, selected-coordinate interpretation and exact versus approximate guarantees. Related obligations: 🔗 4. Preservation of integer points during octagonal refinement, 🔗 1. Rational-grid meaning, 🔗 1. Meaning of successful exact and approximate results.
Compare selected-coordinate integer points before and after restriction using independent enumeration in bounded examples and analytic descriptions in unbounded cases. Check exact lattice intersection for grids, unselected fractional coordinates, an empty coordinate selection and empty inputs. For approximate domains, verify preservation without requiring elimination of all fractional points.
src/Grid_defs.hh: exact integer lattice intersection and selected-coordinate semantics. src/Polyhedron_defs.hh, src/Box_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: discarding some noninteger points.
-
Incoming link from: 3. Selected-coordinate integer restriction of bounded-difference values1
2. Integer-point restriction on every bounded-difference coordinate UID: PPL-SPEC-001129 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For the receiver's entry set X ⊆ ℝn, drop_some_non_integer_points(complexity) shall produce a bounded-difference set R satisfying
X∩ℤn ⊆ R ⊆ X.The ambient dimension shall be preserved. An empty receiver shall remain empty, including an unclassified inconsistent system. Zero-dimensional empty and nonempty values shall retain their distinct meanings. Selected complexity classes shall bound permitted algorithmic work without changing which integer points must be preserved.
The result may retain noninteger points. No least-integer-hull, strict precision improvement or removal of every fractional point shall be required. Integer storage of bounds shall not change the represented real carrier. An exact rational description with integral unary and difference bounds already equals the convex hull of its integer points and shall therefore retain its represented set under these inclusions.
Any evaluated scalar floor, conversion and bound adjustment shall satisfy the selected arithmetic profile's numerical and range prerequisites.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general receiver rollback guarantee shall be inferred.
RATIONALE: Integer restriction may improve a real convex abstraction while preserving every integer solution. Integral difference inequalities already define an integral polyhedron, so real interior points can remain.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
void drop_some_non_integer_points( Complexity_Class complexity = ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Enumerate all integer candidates in independently bounded rational examples and verify their preservation; independently verify result inclusion in the entry halfspaces. Include fractional fixed points, negative and nonadjacent differences, affine equality fibers, unbounded integral rays, cache histories, zero dimensions, all supported complexity choices and admitted exact/inexact profiles. Do not treat an identity result as a failure without a stronger stated guarantee.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeevolutionspec1.cc; tests/bdshapeevolutionoracle.hh; tests/bdshapeevolutionfailure1.cc; tests/boxallocationfixture.hh; tests/bdshapeconvergenceoracle.hh; tests/bdshapeoperationoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/wrappingoracle.hh; tests/boxqueryoracle.hh; tests/bdshapeevolutionpublic1.cc; tests/BD_Shape/dropsomenonintegerpoints1.cc.
-
3. Selected-coordinate integer restriction of bounded-difference values UID: PPL-SPEC-001130 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Let S be the coordinates named by vars and X the receiver's entry set. drop_some_non_integer_points(vars,complexity) shall produce a bounded-difference set R with the same ambient dimension such that
{p ∈ X ∣ pi ∈ ℤ for every i ∈ S} ⊆ R ⊆ X.Unselected coordinates shall retain their real interpretation. Their bounds may tighten through relations with selected coordinates; their fractional values shall not be discarded solely for being noninteger. An empty selection shall preserve the entry set. Empty, lazy-empty and zero-dimensional meanings shall be preserved. The global overload of 🔗 2. Integer-point restriction on every bounded-difference coordinate shall have the meaning of selecting every coordinate. All admitted complexity choices shall retain this preservation obligation; no least-hull or mandatory strict improvement shall be inferred.
Every selected coordinate shall be within the receiver dimension. An excess coordinate shall throw std::invalid_argument before represented-set modification, including for empty receivers and integral-bound profiles. The valid-use conditions of 🔗 1. Public coordinate-index set and value lifecycle shall govern the selection.
Any evaluated scalar floor, conversion and bound adjustment shall satisfy the selected arithmetic profile's numerical and range prerequisites. The selection shall remain live, valid and unchanged throughout the call.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general receiver rollback guarantee shall be inferred.
RATIONALE: Mixed integer and real modeling requires preserving whole real fibers above selected integer coordinates. Relational propagation may tighten an unselected coordinate without making it integral.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
void drop_some_non_integer_points( const Variables_Set& vars, Complexity_Class complexity = ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Independently enumerate selected integer assignments in bounded examples, retain exact rational free-coordinate slices and prove each slice is contained in the result by elimination. Check result inclusion in the entry set separately. Cover empty/full/nonadjacent selections, fractional unselected frames, one-coordinate versus joint restriction, translated equalities, unbounded slices, repeated histories, dimension rejection and preserved selection ownership.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeevolutionspec1.cc; tests/bdshapeevolutionoracle.hh; tests/bdshapeevolutionfailure1.cc; tests/boxallocationfixture.hh; tests/bdshapeconvergenceoracle.hh; tests/bdshapeoperationoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/wrappingoracle.hh; tests/boxqueryoracle.hh; tests/bdshapeevolutionpublic1.cc; tests/BD_Shape/dropsomenonintegerpoints1.cc.
-
3. Selected-coordinate integer-point normalization of boxes UID: PPL-SPEC-001040 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: drop_some_non_integer_points(complexity) shall normalize every factor; drop_some_non_integer_points(vars,complexity) shall normalize exactly the selected coordinates. The result shall introduce no point outside the entry box and shall preserve every entry point integral on the selected coordinates. Unselected factors and the ambient dimension shall retain their meanings. An empty selection shall preserve the box; an empty receiver, including a product with a hidden empty factor, shall remain empty. Each admitted complexity argument shall have the same mathematical meaning for these Box operations.
For ordinary real factors satisfying the exact endpoint and unit-adjustment preconditions of 🔗 2. Interval endpoint normalization around integer points, each selected factor shall become the least interval hull of its integer points. A factor with no integer point shall make the product empty. A varying interval between distinct integer endpoints may retain noninteger interior points: the operation shall not change the underlying real carrier into an integer carrier. Selected unbounded directions shall retain their unbounded meaning. Normalization shall be idempotent. Closed factors with integral boundary storage shall already have the required endpoint meaning.
A selected variable outside the receiver dimension shall throw std::invalid_argument before modification, including for empty or closed-only boxes. The selected-coordinate set shall remain unchanged.
The validity, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Delegated interval operations shall retain their scalar range, resource, shared-temporary and caller-owned FPU prerequisites. These operations shall impose no additional library initialization on otherwise valid calls. Dimension-error reporting shall retain the context required by 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. Numerical or allocation exceptions may leave a partly updated receiver; no aggregate rollback shall be inferred.
RATIONALE: The Cartesian hull of selected-coordinate integer solutions tightens endpoint ranges while allowing real values between retained integers and leaving unselected coordinates unrestricted.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
void drop_some_non_integer_points( Complexity_Class complexity = ANY_COMPLEXITY); void drop_some_non_integer_points( const Variables_Set& vars, Complexity_Class complexity = ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Enumerate independent integer candidates around every finite rational boundary and form their Cartesian interval hull, retaining analytically unbounded tails. Compare all coordinate selections and complexity values; check open integral and fractional endpoints, negative boundaries, no integer solution, unselected fractional factors, empty selection, lazy empty, dimension zero and idempotence. Check selected-source preservation and dimension exceptions, exact native open-capable endpoints and the closed-integral identity path under the delegated range prerequisites.
SOURCE: src/Box_defs.hh; src/Box_templates.hh; src/Interval_defs.hh; tests/boxnormalizationandtimespec1.cc; tests/boxnormalizationoracle.hh; tests/boxnormalizationpublic1.cc.
-
2. Exact integer-coordinate restriction UID: PPL-SPEC-001304 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: drop_some_non_integer_points(complexity) shall intersect exactly with Zn. The overload with vars shall instead require integrality exactly on those coordinates. Unselected coordinates need not be integral; an empty selection is identity. Every complexity value shall give this exact result. Out-of-range selected indices shall throw std::invalid_argument before mutation, including empty.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: Coordinate integrality is itself a conjunction of congruences and is exactly representable by grids.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void drop_some_non_integer_points(Complexity_Class complexity = ANY_COMPLEXITY); void drop_some_non_integer_points(const Variables_Set& vars, Complexity_Class complexity = ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Check independently intersected rational cosets with integer coordinate constraints, fractional phases, all/selected/no coordinates, coupled lattices, empty and invalid indices.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/dropnonintegerpoints1.cc; tests/gridoperationsspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.
-
Incoming link from: 3. Selected-coordinate integer restriction of octagonal values1
2. Integer-point restriction on every octagonal coordinate UID: PPL-SPEC-001223 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Specifies)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For the receiver's entry set X ⊆ ℝn, drop_some_non_integer_points(complexity) shall produce an octagonal set R satisfying
X∩ℤn ⊆ R ⊆ X.The ambient dimension shall be preserved. An empty receiver shall remain empty, including an unclassified inconsistent system. Zero-dimensional empty and nonempty values shall retain their distinct meanings. Selected complexity classes shall bound permitted algorithmic work without changing which integer points must be preserved.
The result may retain noninteger points. No least-integer-hull, strict precision improvement or removal of every fractional point shall be required. Integer storage of bounds shall not change the represented real carrier. Integral octagonal bounds shall not imply an integral polyhedron: doubled unary bounds and signed binary relations may retain half-integral points. An identity result shall be admitted even for an integral-bound profile whose entry set has no integer points; tight integer closure shall not be required by this interface.
Any evaluated scalar floor, conversion and bound adjustment shall satisfy the selected arithmetic profile's numerical and range prerequisites.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership and remain safely destructible. No general receiver rollback guarantee shall be inferred.
RATIONALE: Integer restriction may improve a real convex abstraction while preserving every integer solution. Integral stored bounds can still admit half-integral real points, so this interface need not compute tight integer closure.
INTERFACE: Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:
void drop_some_non_integer_points( Complexity_Class complexity = ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Enumerate all integer candidates in independently bounded rational examples and verify their preservation; independently verify result inclusion in the entry halfspaces. Include fractional fixed points, negative and nonadjacent differences, affine equality fibers, unbounded integral rays, cache histories, zero dimensions, all supported complexity choices and admitted exact/inexact profiles. Do not treat an identity result as a failure without a stronger stated guarantee.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 4 and 6, especially Definitions 12–13 and the tightening rule (7); rational and integer octagonal semantics, PDF page indices 8 and 17 (zero-based).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeevolutionspec1.cc; tests/octagonalshapeevolutionoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeevolutionoracle.hh; tests/octagonalshapeevolutionfailure1.cc; tests/boxallocationfixture.hh; tests/bdshapeconvergenceoracle.hh; tests/bdshapeoperationoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/wrappingoracle.hh; tests/boxqueryoracle.hh; tests/octagonalshapeevolutionpublic1.cc; tests/Octagonal_Shape/dropsomenonintegerpoints1.cc.
-
3. Selected-coordinate integer restriction of octagonal values UID: PPL-SPEC-001224 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Specifies)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Let S be the coordinates named by vars and X the receiver's entry set. drop_some_non_integer_points(vars,complexity) shall produce an octagonal set R with the same ambient dimension such that
{p ∈ X ∣ pi ∈ ℤ for every i ∈ S} ⊆ R ⊆ X.Unselected coordinates shall retain their real interpretation. Their bounds may tighten through relations with selected coordinates; their fractional values shall not be discarded solely for being noninteger. An empty selection shall preserve the entry set. Empty, lazy-empty and zero-dimensional meanings shall be preserved. The global overload of 🔗 2. Integer-point restriction on every octagonal coordinate shall have the meaning of selecting every coordinate. All admitted complexity choices shall retain this preservation obligation; no least-hull or mandatory strict improvement shall be inferred.
Every selected coordinate shall be within the receiver dimension. An excess coordinate shall throw std::invalid_argument before represented-set modification, including for empty receivers and integral-bound profiles. The valid-use conditions of 🔗 1. Public coordinate-index set and value lifecycle shall govern the selection.
Any evaluated scalar floor, conversion and bound adjustment shall satisfy the selected arithmetic profile's numerical and range prerequisites. The selection shall remain live, valid and unchanged throughout the call.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership and remain safely destructible. No general receiver rollback guarantee shall be inferred.
RATIONALE: Mixed integer and real modeling requires preserving whole real fibers above selected integer coordinates. Relational propagation may tighten an unselected coordinate without making it integral.
INTERFACE: Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:
void drop_some_non_integer_points( const Variables_Set& vars, Complexity_Class complexity = ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Independently enumerate selected integer assignments in bounded examples, retain exact rational free-coordinate slices and prove each slice is contained in the result by elimination. Check result inclusion in the entry set separately. Cover empty/full/nonadjacent selections, fractional unselected frames, one-coordinate versus joint restriction, translated equalities, unbounded slices, repeated histories, dimension rejection and preserved selection ownership.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 4 and 6, especially Definitions 12–13 and the tightening rule (7); rational and integer octagonal semantics, PDF page indices 8 and 17 (zero-based).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeevolutionspec1.cc; tests/octagonalshapeevolutionoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeevolutionoracle.hh; tests/octagonalshapeevolutionfailure1.cc; tests/boxallocationfixture.hh; tests/bdshapeconvergenceoracle.hh; tests/bdshapeoperationoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/wrappingoracle.hh; tests/boxqueryoracle.hh; tests/octagonalshapeevolutionpublic1.cc; tests/Octagonal_Shape/dropsomenonintegerpoints1.cc.
-
Incoming link from: 4. C generated domain transformations1
1. Bounded Chvatal half-pair refinement UID: PPL-SPEC-001666 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000449 Bounded Chvatal half-pair refinement (Specifies)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Specifies)
STATEMENT: refine_with_chvatal_cuts(max_pair_tests) shall first perform the existing all-coordinate drop_some_non_integer_points() with its default complexity. For a nonempty result and positive budget, it shall inspect at most max_pair_tests distinct unordered pairs of nonstrict inequalities from that result's minimized constraint description, in nested iterator order. Equalities shall not consume the pair budget. All pairs shall refer to that entry description; cuts shall be applied together after pair examination, without iterating the cutting pass.
For a pair ax + b ≥ 0, cx + d ≥ 0, it shall add ((a + c) ⁄ 2)x + ⌊(b + d) ⁄ 2⌋ ≥ 0 when the summed normal is componentwise even and the summed constant is odd. Pairs with an even constant or any odd summed normal coordinate shall add no cut. Ambient dimension and closed topology shall be preserved. The result shall be a subset of the entry set and contain every entry point in Zn.
Zero budget shall perform only the existing tightening. Empty shall remain empty. The budget shall bound pair examination, not minimization or conversion work. A finite budget may produce different refinements for different minimized-row orders; no exact integer hull or representation-independent budgeted result shall be promised.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions of 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions. No general rollback after an arithmetic or resource exception is required beyond that common contract.
RATIONALE: Adding two valid inequalities and dividing by two gives ((a + c) ⁄ 2)x + (b + d) ⁄ 2 ≥ 0. If the normal is integral, its value at x ∈ Zn is an integer, so flooring the constant retains every integer solution. An even constant gives an already implied real inequality; an odd normal does not justify this rounding. The triangle x ≥ 0, y ≥ 0, x + y ≤ 1, − x + y ≤ 0 yields y ≤ 0 from the last two inequalities, excluding (1 ⁄ 2, 1 ⁄ 2) retained by separate-row tightening. New cuts need not describe the complete integer hull.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library; member of C_Polyhedron.
void refine_with_chvatal_cuts(dimension_type max_pair_tests);
VERIFICATION_CRITERIA: Derive literal cuts and independently enumerate integer witnesses in translated/reflected triangles. Compare the examined prefix with a public-API pair oracle, including negative-odd floor, odd-normal/even-constant rejection, equality rows, exact budget exhaustion, zero budget, empty, zero-dimensional, affine and unbounded cases. Check no enlargement, reload and repeated refinement.
BIBLIOGRAPHY: Chvatal73DM | Whole work (Chvatal cutting-plane background). NemhauserW88 | Whole work (integer-programming background).
SOURCE: src/C_Polyhedron_defs.hh; src/C_Polyhedron.cc; tests/Polyhedron/chvatalcuts1.cc; doc/definitions.dox.
-
3. Integer-point-preserving polyhedral restriction UID: PPL-SPEC-001362 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Restriction shall return a polyhedron contained in the entry receiver that retains every entry point integral in the selected coordinates. The all-coordinate overload shall select all coordinates. Remaining points need not all be integral; no optimality guarantee shall be made, including under ANY_COMPLEXITY. Limited complexity may leave the value unchanged rather than materializing an expensive representation. Empty coordinate selection shall be a no-op. The selection shall contain only valid receiver coordinates.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Rounding individual constraints can remove fractional states without computing the integer hull.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void drop_some_non_integer_points(Complexity_Class=ANY_COMPLEXITY); void drop_some_non_integer_points(const Variables_Set&, Complexity_Class=ANY_COMPLEXITY);
VERIFICATION_CRITERIA: Enumerate bounded integer tuples independently, confirm retention and no enlargement, include subset selection, strict bounds, pending/cache and complexity-policy histories.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/dropsomenonintegerpoints1.cc; tests/Polyhedron/dropsomenonintegerpoints2.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001564 C bounded integer wrapping (Specified by)
- PPL-SPEC-001131 Bounded-integer wrapping and guarded evolution of difference shapes (Specified by)
- PPL-SPEC-001041 Mathematical interpretation of bounded-integer wrapping attributes (Specified by)
- PPL-SPEC-001042 Interval abstraction of wrapped integer images with refinement (Specified by)
- PPL-SPEC-001043 Box bounded-integer wrapping, overflow choices and guard refinement (Specified by)
- PPL-SPEC-001305 Bounded-integer wrapping abstraction (Specified by)
- PPL-SPEC-001225 Bounded-integer wrapping and guarded evolution of octagonal shapes (Specified by)
- PPL-SPEC-001363 Sound bounded-integer wrapping in polyhedra (Specified by)
For coordinates assumed to denote integer values, PPL shall provide bounded-integer abstraction for the supported modeled widths, representations and overflow interpretations. Under the computational arithmetic preconditions, results shall conservatively contain the selected concrete arithmetic outcomes. Wrapping shall mean modular reduction interpreted in the selected signed or unsigned representation; undefined-result overflow shall permit arbitrary arithmetic results; impossible-overflow semantics shall include only transitions in which overflow does not affect the state.
Modeled machine overflow is a property of the analyzed arithmetic, not a permission for the arithmetic computing its abstraction to overflow.
Modeled 128-bit behavior does not introduce a global 128-bit coefficient choice or a public native 128-bit scalar profile. The cited conference work provides background on the wrapping construction described in the manual.
Verification covers bounded-integer abstraction and wrapping operations, supported widths, input assumptions, guards and precision controls. Related obligations: 🔗 1. Identity of modeled numeric types, 🔗 3. Conservative directed numerical bounds, 🔗 1. Meaning of successful exact and approximate results.
Derive independent concrete outcomes at signed and unsigned range boundaries for each assessed width and overflow mode. Include negative unwrapped values, joint and coordinatewise approximation choices, supplied guard conditions and range-crossing values. Check the specifically supported 128-bit cases without assuming native scalar support, and keep arithmetic-result uncertainty distinct from other effects of language undefined behavior.
SimonK07 | Whole work (background on wrapping-based bounded-integer analysis).
doc/definitions.dox: Approximating Bounded Integers; Wrapping Operator. src/globals_types.hh: modeled widths, representations and overflow meanings. src/wrap_assign.hh: shared bounded-integer abstraction. src/Polyhedron_defs.hh and src/Grid_defs.hh: wrapping contracts and integer-coordinate assumptions.
-
11. C bounded integer wrapping UID: PPL-SPEC-001564 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Specifies)
STATEMENT: Generated wrap functions shall interpret the selected coordinate set, width, signedness, overflow mode, guard system, complexity threshold and individual/joint option as the corresponding native bounded-integer wrapping operation. Width and representation shall define the same finite integer range; permitted approximations shall remain sound. The guard argument shall address a readable constraint-system handle. A null handle stored at that address shall denote absent guards; the address itself shall be non-null.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: Generated forwarding must retain the native mathematical and ownership contract.
INTERFACE: Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.
int ppl_Polyhedron_wrap_assign( ppl_Polyhedron_t ph, ppl_dimension_type ds[], size_t n, enum ppl_enum_Bounded_Integer_Type_Width w, enum ppl_enum_Bounded_Integer_Type_Representation r, enum ppl_enum_Bounded_Integer_Type_Overflow o, const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold, int wrap_individually); int ppl_Grid_wrap_assign(ppl_Grid_t ph, ppl_dimension_type ds[], size_t n, enum ppl_enum_Bounded_Integer_Type_Width w, enum ppl_enum_Bounded_Integer_Type_Representation r, enum ppl_enum_Bounded_Integer_Type_Overflow o, const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold, int wrap_individually); int ppl_Rational_Box_wrap_assign( ppl_Rational_Box_t ph, ppl_dimension_type ds[], size_t n, enum ppl_enum_Bounded_Integer_Type_Width w, enum ppl_enum_Bounded_Integer_Type_Representation r, enum ppl_enum_Bounded_Integer_Type_Overflow o, const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold, int wrap_individually); int ppl_BD_Shape_mpz_class_wrap_assign( ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n, enum ppl_enum_Bounded_Integer_Type_Width w, enum ppl_enum_Bounded_Integer_Type_Representation r, enum ppl_enum_Bounded_Integer_Type_Overflow o, const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold, int wrap_individually); int ppl_BD_Shape_mpq_class_wrap_assign( ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n, enum ppl_enum_Bounded_Integer_Type_Width w, enum ppl_enum_Bounded_Integer_Type_Representation r, enum ppl_enum_Bounded_Integer_Type_Overflow o, const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold, int wrap_individually); int ppl_Octagonal_Shape_mpz_class_wrap_assign( ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n, enum ppl_enum_Bounded_Integer_Type_Width w, enum ppl_enum_Bounded_Integer_Type_Representation r, enum ppl_enum_Bounded_Integer_Type_Overflow o, const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold, int wrap_individually); int ppl_Octagonal_Shape_mpq_class_wrap_assign( ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n, enum ppl_enum_Bounded_Integer_Type_Width w, enum ppl_enum_Bounded_Integer_Type_Representation r, enum ppl_enum_Bounded_Integer_Type_Overflow o, const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold, int wrap_individually); int ppl_Double_Box_wrap_assign( ppl_Double_Box_t ph, ppl_dimension_type ds[], size_t n, enum ppl_enum_Bounded_Integer_Type_Width w, enum ppl_enum_Bounded_Integer_Type_Representation r, enum ppl_enum_Bounded_Integer_Type_Overflow o, const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold, int wrap_individually); int ppl_BD_Shape_double_wrap_assign( ppl_BD_Shape_double_t ph, ppl_dimension_type ds[], size_t n, enum ppl_enum_Bounded_Integer_Type_Width w, enum ppl_enum_Bounded_Integer_Type_Representation r, enum ppl_enum_Bounded_Integer_Type_Overflow o, const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold, int wrap_individually); int ppl_Octagonal_Shape_double_wrap_assign( ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n, enum ppl_enum_Bounded_Integer_Type_Width w, enum ppl_enum_Bounded_Integer_Type_Representation r, enum ppl_enum_Bounded_Integer_Type_Overflow o, const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold, int wrap_individually);
VERIFICATION_CRITERIA: Check width/sign/overflow combinations, exact modular witnesses, absent/present guards, supported integer-coordinate selections and native soundness conditions.
SOURCE: interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc.
-
4. Bounded-integer wrapping and guarded evolution of difference shapes UID: PPL-SPEC-001131 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: wrap_assign shall interpret widths, representations and overflow modes under 🔗 1. Mathematical interpretation of bounded-integer wrapping attributes. For the receiver's entry set X and selected coordinate set S, the result shall conservatively contain every concrete selected-integer outcome, filtered by a supplied guard on the resulting coordinates. Unselected coordinates of each concrete outcome shall retain their entry values. The returned set shall remain a bounded-difference abstraction; relational implications, modular disjunctions and guard precision may be approximated.
For OVERFLOW_WRAPS, each selected integer shall be reduced to its signed or unsigned residue. OVERFLOW_IMPOSSIBLE shall preserve every transition whose selected input integers are within the modeled machine range and may discard overflowing transitions. OVERFLOW_UNDEFINED shall permit every modeled bounded-integer result after an overflowing arithmetic result; no particular residue shall be selected as its required meaning. Result bounds shall retain the profile's outward-conversion conditions. This arithmetic-result interpretation shall not claim to model other effects of language undefined behavior.
The selection and any nonnull guard shall satisfy their documented coordinate-dependency admission: the guard may use general or strict linear rows, but shall depend only on selected coordinates and its ambient dimension shall not exceed the selection dimension. Each selected coordinate shall be within the receiver dimension. Violating these dimension bounds shall throw std::invalid_argument before represented-set modification, including empty receivers and selections. Nonzero guard coefficients outside the selection shall be outside this contract's admitted inputs. A supplied guard shall use the valid descriptor context of 🔗 1. Constraint relation meaning and numerical prerequisites and 🔗 14. Constraint-system conjunction, construction and shared contradiction.
With an empty selection and null guard the receiver's represented set shall be unchanged. With a supplied dimension-compatible constant guard it shall perform conservative refinement; a false constant shall make the result empty. Empty receivers shall remain empty. Fractional input points on selected coordinates may be discarded, and fractional points may remain inside the result. A lower complexity_threshold or wrap_individually=true may permit less precision, but shall not permit loss of any required concrete outcome. No universal least-hull, progress or monotonic-precision guarantee between different parameter choices shall be inferred.
Only named width, representation and overflow enumerators shall be admitted. Modeled 128-bit widths shall not require a native 128-bit scalar or a 128-bit configured coefficient. Actual intermediate machine-limit, quadrant, translation, conversion and descriptor arithmetic shall satisfy the selected backend's supported range and numerical prerequisites. In particular, a modeled width alone shall not establish that configured Coefficient can compute every intermediate power of two or translation. Variables shall use 🔗 1. Public coordinate-index set and value lifecycle's valid-use conditions.
The selection and any supplied guard shall remain live, valid and unchanged throughout the call. Their independent storage shall remain owned by the caller.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general receiver rollback guarantee shall be inferred.
RATIONALE: Wrapping interprets equivalence classes of machine integers while a relational abstraction preserves only representable consequences. Guard refinement must concern translated values and must remain sound when precision limits force a coarser result.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
void wrap_assign(const Variables_Set& vars, Bounded_Integer_Type_Width w, Bounded_Integer_Type_Representation r, Bounded_Integer_Type_Overflow o, const Constraint_System* cs_p = nullptr, unsigned complexity_threshold = 16, bool wrap_individually = true);
VERIFICATION_CRITERIA: Independently enumerate selected integer input slices and derive residues with unbounded division and nonnegative remainders. For overflow uncertainty enumerate admitted machine values in small widths and use analytic machine-range models at larger widths. Apply guards to resulting slices, then check inclusion by rational elimination. Cover signed/unsigned, all three overflow choices, all modeled widths including 128 with capable arithmetic, fractional free frames, unbounded inputs, null/strict/constant/relational guards, sparse padded dependencies, both precision flags, several thresholds, ownership and early dimension rejection. Keep generic delegated checks distinct from BD-specific interface checks.
BIBLIOGRAPHY: SimonK07 | Sections 2.2 and 5.1–5.4, bounded interpretations, explicit wrapping and guard precision; PDF page indices 2 and 7–10 (zero-based).
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeevolutionspec1.cc; tests/bdshapeevolutionoracle.hh; tests/bdshapeevolutionfailure1.cc; tests/boxallocationfixture.hh; tests/bdshapeconvergenceoracle.hh; tests/bdshapeoperationoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/wrappingoracle.hh; tests/boxqueryoracle.hh; tests/bdshapeevolutionpublic1.cc; src/wrap_assign.hh; tests/BD_Shape/wrap1.cc.
-
Incoming links from: 4. Bounded-integer wrapping and guarded evolution of difference shapes 2. Interval abstraction of wrapped integer images with refinement 3. Box bounded-integer wrapping, overflow choices and guard refinement 4. Bounded-integer wrapping and guarded evolution of octagonal shapes 8. Powerset integer restriction and wrapping5
1. Mathematical interpretation of bounded-integer wrapping attributes UID: PPL-SPEC-001041 STATUS: APPROVED COMPONENT: NUMERICS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: The modeled attributes identified by 🔗 1. Modeled bounded-integer type identity shall have the following mathematical meanings. A width w shall describe M = 2w. The unsigned value range shall be the integers in [0, M − 1]; the signed two's-complement range shall be the integers in [ − M ⁄ 2, M ⁄ 2 − 1].
For an unwrapped integer z, unsigned wrapping shall choose the unique integer r in the unsigned range congruent to z modulo M. Signed wrapping shall choose r when r < M ⁄ 2 and r − M otherwise. Negative unwrapped values shall use the same nonnegative unsigned residue, independently of a host language's signed remainder convention.
OVERFLOW_WRAPS shall use this modular interpretation. OVERFLOW_UNDEFINED shall permit arbitrary modeled result values after overflow, rather than choosing a particular residue; this arithmetic-result abstraction shall not model every other possible effect of language undefined behavior. OVERFLOW_IMPOSSIBLE shall retain only the transitions whose unwrapped result is within the selected value range.
A modeled width, including 128 bits, shall not assert the existence of a native scalar type or a configured coefficient type of that width. The numerical operations computing an abstraction shall retain their separate computational range and availability prerequisites. Attribute identity and factory/getter behavior shall remain as specified by 🔗 1. Modeled bounded-integer type identity.
RATIONALE: Modeled overflow and host arithmetic have separate mathematical roles: unbounded intermediate arithmetic determines which bounded result interpretation applies.
INTERFACE: Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.
enum Bounded_Integer_Type_Width { BITS_8=8, BITS_16=16, BITS_32=32, BITS_64=64, BITS_128=128 }; enum Bounded_Integer_Type_Representation { UNSIGNED, SIGNED_2_COMPLEMENT }; enum Bounded_Integer_Type_Overflow { OVERFLOW_WRAPS, OVERFLOW_UNDEFINED, OVERFLOW_IMPOSSIBLE };
VERIFICATION_CRITERIA: Compare actual interval/Box operations with literal integer division and nonnegative remainder oracles. Check both encodings, all five modeled widths, negative values, period boundaries, signed half-period boundaries and the distinct three overflow interpretations. Exercise 128-bit modeled limits through GMP endpoint storage without assuming a native int128 type; reuse the metadata identity checks of 🔗 1. Modeled bounded-integer type identity.
BIBLIOGRAPHY: SimonK07 | Section 2.2, binary signed/unsigned semantics; PDF page index 2 (zero-based).
SOURCE: src/globals_types.hh; doc/definitions.dox: Approximating Bounded Integers.
tests/wrappingspec1.cc; tests/wrappingoracle.hh; tests/wrappingpublic1.cc.
-
2. Interval abstraction of wrapped integer images with refinement UID: PPL-SPEC-001042 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000021 Interval boundary membership (Specifies)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For the receiver's entry interval X, an admitted width and representation from 🔗 1. Mathematical interpretation of bounded-integer wrapping attributes, and the entry interval J denoted by refinement, wrap_assign shall produce an interval containing every
{wrapw, r(z) ∣ z ∈ X∩ℤ}∩J.The completed interval shall be contained in the receiving profile's outward interval conversion of J; exact conversion shall imply containment in J itself. refinement may denote an arbitrary valid interval or singleton; it need not lie inside the modeled value range. A refinement inside that range shall therefore bound the completed result to that range. An empty receiver shall remain empty. A receiver unbounded in either direction may conservatively become the refinement itself, and noninteger input points need not all be eliminated. No universal least-hull or complete integer filtering guarantee shall be inferred. With exact arithmetic, closed integral endpoints and a closed integral refinement inside the modeled range, the result shall be the least interval hull of the retained wrapped integer images.
The receiver may be the refinement interval, and a singleton refinement may borrow either of its boundary objects. Those calls shall use both entry values. A refinement with distinct storage shall retain its value. Returned I_Result shape and definite status claims shall have the meanings of 🔗 1. Interval result possibilities and status-flag set operations for the whole operation, including its entry-to-result change claims.
The validity, policy, active-payload, lifetime and synchronization conditions of 🔗 1. Interval types, initial storage and independent value copies shall apply. The selected backend shall support any actually evaluated power-of-two subtraction and signed/unsigned residue at the supplied exponent, as specified by its scalar contracts. Exact precision claims shall require exact endpoint conversion, modular arithmetic and any intermediate unit adjustment. Computational range failures, resources, shared temporaries and caller-owned FPU state shall retain those scalar contracts. An admitted modeled width alone shall not establish these backend capabilities. Valid calls shall require no additional PPL initialization. Underlying failures may leave partly updated storage; there shall be no aggregate rollback guarantee.
RATIONALE: A refinement can clip a modular image without making the modular image itself convex; entry-value aliases and truthful aggregate result claims remain independent obligations.
INTERFACE: Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.
// Member of Interval<Boundary,Info>: template <Interval_Source From> I_Result wrap_assign(Bounded_Integer_Type_Width w, Bounded_Integer_Type_Representation r, const From& refinement);
VERIFICATION_CRITERIA: Check returned logical shape and entry-to-result change claims on full-period assignment, split/join and intersection paths, including unchanged copied refinements, receiving aliases, borrowed scalars, empty inputs and signed residues. Enumerate concrete wrapped integers in bounded translated intervals using an independent quotient/remainder oracle. Include all endpoint topologies, fractions, one/full/multiple periods, sign discontinuities, empty/ray/universe inputs and arbitrary refinements inside, partly outside and disjoint from the modeled range. Check witness containment, refinement containment and the stated closed-integral least-hull guarantee. Exercise distinct-source preservation, same-interval and borrowed-boundary aliases, meaningful shape/change flags and native/GMP admitted backend prerequisites.
BIBLIOGRAPHY: SimonK07 | Sections 5.1–5.4, explicit wrapping; PDF page indices 7–10 (zero-based).
SOURCE: src/Interval_defs.hh; src/Boundary_defs.hh;
tests/wrappingspec1.cc; tests/wrappingoracle.hh; tests/wrappingpublic1.cc; tests/intervalresultsspec1.cc.
-
3. Box bounded-integer wrapping, overflow choices and guard refinement UID: PPL-SPEC-001043 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: wrap_assign shall interpret the selected coordinates as bounded integers using 🔗 1. Mathematical interpretation of bounded-integer wrapping attributes. It shall conservatively contain every selected concrete result obtained from the receiver's entry integer-valued selected coordinates under the requested overflow interpretation. The represented result shall remain a box, so modular disjunctions and relations may be approximated. Fractional points on selected coordinates may be discarded, and retained interior points need not all be integers.
Without a supplied guard, OVERFLOW_WRAPS shall use modular images; OVERFLOW_IMPOSSIBLE shall intersect each selected factor with the modeled value range. Under OVERFLOW_UNDEFINED, a factor already contained in the rational half-open interval from the modeled minimum through one past its maximum may be retained; a potentially overflowing factor may be forgotten and replaced by the modeled closed integer range. No-overflow factors shall not be discarded merely because another factor can overflow.
A nonnull cs_p shall denote a guard on the resulting coordinates. The completed box shall conservatively contain the guard-filtered selected integer results; it need not satisfy every guard row. In particular, relational rows and rows mentioning unselected coordinates may be ignored by this specialization. Interval rows for selected coordinates may refine their target ranges. A false constant row shall make the result empty. The guarded undefined-overflow path may forget a selected coordinate to universe when overflow is possible; no universal post-guard containment or least-result guarantee shall be inferred.
With an empty selection, no bounded-type limits or residues shall be required. A null guard shall preserve the receiver; a supplied guard shall perform conservative refinement under 🔗 3. Conservative box refinement by linear constraints, which may affect otherwise unselected coordinates. Empty, including a hidden empty factor, shall remain empty. Ambient dimension shall remain unchanged. For a nonempty selection, unselected factor meanings shall remain unchanged unless the entire product becomes empty. A distinct supplied guard and the selection set shall retain their mathematical values. complexity_threshold and wrap_individually shall not change this Box specialization's result.
An excess selected coordinate or guard ambient dimension shall throw std::invalid_argument before receiver modification, including for empty receivers. Guard dimension shall be checked even with an empty selection. Only the named width, representation and overflow attributes shall be admitted; no outcome shall be specified for invalid enum values.
The validity, numerical, lifetime and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Selected modular evaluation shall retain 🔗 2. Interval abstraction of wrapped integer images with refinement's backend prerequisites. Modeled limit construction shall use unbounded integer arithmetic independent of configured Coefficient range; conversion into an endpoint profile shall retain that profile's representability and outward-rounding conditions. A guard shall retain its descriptor context, coefficient-intermediate range and refinement prerequisites; dimension reporting shall retain the initialized context of 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. Otherwise valid calls shall require no additional library initialization. Underlying resource/numerical failures may leave a partially updated box.
RATIONALE: A Cartesian abstraction can preserve concrete bounded-integer outcomes while losing modular disjunctions and relational guard precision; the overflow interpretation and empty-selection path determine different operations.
INTERFACE: Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.
// Member of Box<ITV>: void wrap_assign(const Variables_Set& vars, Bounded_Integer_Type_Width w, Bounded_Integer_Type_Representation r, Bounded_Integer_Type_Overflow o, const Constraint_System* cs_p = nullptr, unsigned complexity_threshold = 16, bool wrap_individually = true);
VERIFICATION_CRITERIA: Compare bounded concrete integer enumeration against exact modular, possible-overflow and impossible-overflow models. Check all widths with GMP limits, native admitted widths, selected/unselected axes, closed/open and fractional factors, full periods, unbounded and lazy-empty values. Exercise all overflow modes, null/empty/false/selected/relational/unselected guards, empty selections, both precision flags and several thresholds, dimension prechecks and preserved source descriptors. Check analytic wide limits and capability independence from configured Coefficient storage.
BIBLIOGRAPHY: SimonK07 | Sections 5.1–5.4, explicit wrapping and guard precision; PDF page indices 7–10 (zero-based).
SOURCE: src/Box_defs.hh; src/Box_templates.hh; tests/Box/wrap1.cc; tests/Box/wraplimits1.cc; tests/Box/wrapguard1.cc; tests/Box/wrapcontracts2.cc;
tests/wrappingspec1.cc; tests/wrappingoracle.hh; tests/wrappingpublic1.cc.
-
3. Bounded-integer wrapping abstraction UID: PPL-SPEC-001305 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: wrap_assign(vars,w,r,o,cs_p,complexity_threshold,wrap_individually) shall conservatively abstract bounded-integer conversion on the selected coordinates, with modulus M = 2w and the signed or unsigned range selected by r. Coordinates supplied as bounded integers are assumed integral. Unselected coordinates and their projection shall be preserved. Empty selections are identity. Any out-of-range selected index, or an optional constraint system of excess dimension, shall throw std::invalid_argument before mutation. The optional constraints and the two precision controls need not improve the result.
For OVERFLOW_WRAPS, a constant integer shall map to its unique in-range residue. A discrete coordinate shall retain its entry period together with period M, except that a period divisible by M shall collapse to the unique in-range residue. Rational periods shall first determine their possible integer residues; no possible integer shall yield empty. A constant noninteger shall yield empty. Real line directions may be retained conservatively. For OVERFLOW_IMPOSSIBLE, no in-range possible integer shall yield empty, one shall fix the coordinate, and multiple values may retain the original periodic abstraction. For OVERFLOW_UNDEFINED, overflow may forget the coordinate's value while retaining integrality; an already representable constant may be retained. No global optimality for correlated coordinates is required.
The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.
RATIONALE: A full-period multiple has one machine residue; representing it as an infinite modular coset loses a representable singleton.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.
void wrap_assign(const Variables_Set& vars, Bounded_Integer_Type_Width w, Bounded_Integer_Type_Representation r, Bounded_Integer_Type_Overflow o, const Constraint_System* cs_p = nullptr, unsigned complexity_threshold = 16, bool wrap_individually = true);
VERIFICATION_CRITERIA: Enumerate signed/unsigned rational one-coordinate cosets and integer representatives independently for wrapping and impossible overflow. Check exact/larger/nonmultiple periods, negative phases, constants, continuous directions, correlated untouched coordinates, empty selections and dimension errors.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.
SOURCE: src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/wrap1.cc; tests/gridoperationsspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.
-
4. Bounded-integer wrapping and guarded evolution of octagonal shapes UID: PPL-SPEC-001225 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: wrap_assign shall interpret widths, representations and overflow modes under 🔗 1. Mathematical interpretation of bounded-integer wrapping attributes. For the receiver's entry set X and selected coordinate set S, the result shall conservatively contain every concrete selected-integer outcome, filtered by a supplied guard on the resulting coordinates. Unselected coordinates of each concrete outcome shall retain their entry values. The returned set shall remain a octagonal abstraction; relational implications, modular disjunctions and guard precision may be approximated.
For OVERFLOW_WRAPS, each selected integer shall be reduced to its signed or unsigned residue. OVERFLOW_IMPOSSIBLE shall preserve every transition whose selected input integers are within the modeled machine range and may discard overflowing transitions. OVERFLOW_UNDEFINED shall permit every modeled bounded-integer result after an overflowing arithmetic result; no particular residue shall be selected as its required meaning. Result bounds shall retain the profile's outward-conversion conditions. This arithmetic-result interpretation shall not claim to model other effects of language undefined behavior.
The selection and any nonnull guard shall satisfy their documented coordinate-dependency admission: the guard may use general or strict linear rows, but shall depend only on selected coordinates and its ambient dimension shall not exceed vars.space_dimension(). Each selected coordinate shall be within the receiver dimension. Violating these dimension bounds shall throw std::invalid_argument before represented-set modification, including empty receivers and selections. Nonzero guard coefficients outside the selection shall be outside this contract's admitted inputs. A supplied guard shall use the valid descriptor context of 🔗 1. Constraint relation meaning and numerical prerequisites and 🔗 14. Constraint-system conjunction, construction and shared contradiction.
With an empty selection and null guard the receiver's represented set shall be unchanged. With a supplied dimension-compatible constant guard it shall perform conservative refinement; a false constant shall make the result empty. Empty receivers shall remain empty. Fractional input points on selected coordinates may be discarded, and fractional points may remain inside the result. A lower complexity_threshold or wrap_individually=true may permit less precision, but shall not permit loss of any required concrete outcome. No universal least-hull, progress or monotonic-precision guarantee between different parameter choices shall be inferred.
Only named width, representation and overflow enumerators shall be admitted. Modeled 128-bit widths shall not require a native 128-bit scalar or a 128-bit configured coefficient. Actual intermediate machine-limit, quadrant, translation, conversion and descriptor arithmetic shall satisfy the selected backend's supported range and numerical prerequisites. In particular, a modeled width alone shall not establish that configured Coefficient can compute every intermediate power of two or translation. Variables shall use 🔗 1. Public coordinate-index set and value lifecycle's valid-use conditions.
The selection and any supplied guard shall remain live, valid and unchanged throughout the call. Their independent storage shall remain owned by the caller.
The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership and remain safely destructible. No general receiver rollback guarantee shall be inferred.
RATIONALE: Wrapping interprets equivalence classes of machine integers while a relational abstraction preserves only representable consequences. Guard refinement must concern translated values and must remain sound when precision limits force a coarser result. The wrapping-specific source supplies machine-integer residue and guard semantics beyond the journal paper's octagonal representation results.
INTERFACE: Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:
void wrap_assign(const Variables_Set& vars, Bounded_Integer_Type_Width w, Bounded_Integer_Type_Representation r, Bounded_Integer_Type_Overflow o, const Constraint_System* cs_p = nullptr, unsigned complexity_threshold = 16, bool wrap_individually = true);
VERIFICATION_CRITERIA: Independently enumerate selected integer input slices and derive residues with unbounded division and nonnegative remainders. For overflow uncertainty enumerate admitted machine values in small widths and use analytic machine-range models at larger widths. Apply guards to resulting slices, then check inclusion by rational elimination. Cover signed/unsigned, all three overflow choices, all modeled widths including 128 with capable arithmetic, fractional free frames, unbounded inputs, null/strict/constant/relational guards, sparse padded dependencies, both precision flags, several thresholds, ownership and early dimension rejection. Keep generic delegated checks distinct from octagon-specific interface checks.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Sections 4 and 7, octagonal representation and outward arithmetic, PDF page indices 8 and 20–23 (zero-based). SimonK07 | Sections 2.2 and 5.1–5.4, bounded interpretations, explicit wrapping and guard precision; PDF page indices 2 and 7–10 (zero-based).
SOURCE: src/wrap_assign.hh; src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapeevolutionspec1.cc; tests/octagonalshapeevolutionoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeevolutionoracle.hh; tests/octagonalshapeevolutionfailure1.cc; tests/boxallocationfixture.hh; tests/bdshapeconvergenceoracle.hh; tests/bdshapeoperationoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/wrappingoracle.hh; tests/boxqueryoracle.hh; tests/octagonalshapeevolutionpublic1.cc; src/wrap_assign.hh; tests/Octagonal_Shape/wrap1.cc.
-
4. Sound bounded-integer wrapping in polyhedra UID: PPL-SPEC-001363 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For selected coordinates assumed integral, wrapping shall conservatively represent the outcomes for the selected modeled width and signed or unsigned representation. OVERFLOW_WRAPS shall reduce modulo 2w and choose the representative in the modeled range. OVERFLOW_IMPOSSIBLE shall retain only nonoverflowing outcomes; OVERFLOW_UNDEFINED shall permit arbitrary results on overflowing transitions. Unselected coordinates shall retain their correlations as far as the documented polyhedral abstraction preserves them. Optional constraints shall restrict the output state, may mention only selected coordinates, and may guide the partition of wrapping translations. All selected indices and optional descriptors shall be dimension-compatible; dimension mismatches shall throw std::invalid_argument. The complexity threshold and individual-wrapping flag may trade precision for work; they shall not exclude concrete outcomes.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Modeled machine overflow is distinct from overflow of the coefficients computing a sound enclosure.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
void wrap_assign(const Variables_Set&, Bounded_Integer_Type_Width, Bounded_Integer_Type_Representation, Bounded_Integer_Type_Overflow, const Constraint_System* = nullptr, unsigned complexity_threshold=16, bool wrap_individually=true);
VERIFICATION_CRITERIA: Enumerate small integer input sets and modular representatives, include signed endpoints, cross-coordinate relations, optional constraints, every overflow policy and both wrapping modes.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/wrap1.cc; tests/Polyhedron/wrap2.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001555 C generated domain observations (Specified by)
- PPL-SPEC-001098 Certified set-theoretic union (Specified by)
- PPL-SPEC-001099 Certified integer-point union (Specified by)
- PPL-SPEC-001063 Ambient and affine dimension of bounded-difference values (Specified by)
- PPL-SPEC-001064 Owned constraint and affine-equality exports of bounded-difference values (Specified by)
- PPL-SPEC-001065 Ordinary classification of bounded-difference values (Specified by)
- PPL-SPEC-001066 Bounded-difference set relations, equality and compatible hashes (Specified by)
- PPL-SPEC-001067 Relations between bounded-difference values and linear constraints (Specified by)
- PPL-SPEC-001068 Relations between bounded-difference values and linear congruences (Specified by)
- PPL-SPEC-001069 Subsumption of geometric generators by bounded-difference values (Specified by)
- PPL-SPEC-001071 Constant affine values and zero frequency on bounded-difference sets (Specified by)
- PPL-SPEC-001052 Rectilinear distance between Box endpoint tuples (Specified by)
- PPL-SPEC-001053 Euclidean distance between Box endpoint tuples (Specified by)
- PPL-SPEC-001054 Maximum-coordinate distance between Box endpoint tuples (Specified by)
- PPL-SPEC-001055 Box endpoint-distance domain, workspaces and dispatch (Specified by)
- PPL-SPEC-001032 Affine boundedness, extrema and witnesses on boxes (Specified by)
- PPL-SPEC-001033 Detection of constant affine values and zero frequency (Specified by)
- PPL-SPEC-000973 Box relations with linear constraints (Specified by)
- PPL-SPEC-000974 Box relations with linear congruences (Specified by)
- PPL-SPEC-000975 Box subsumption of geometric generators (Specified by)
- PPL-SPEC-000978 Conditional exact union of boxes (Specified by)
- PPL-SPEC-001579 Rectilinear distance between generator points (Specified by)
- PPL-SPEC-001580 Euclidean distance between generator points (Specified by)
- PPL-SPEC-001581 Maximum-coordinate distance between generator points (Specified by)
- PPL-SPEC-001582 Generator-distance admission, workspaces and dispatch (Specified by)
- PPL-SPEC-001653 Admitted generator-distance evaluation kernel (Specified by)
- PPL-SPEC-001251 Exact grid equality and inequality (Specified by)
- PPL-SPEC-001252 Equality-compatible grid hashing (Specified by)
- PPL-SPEC-001253 Exact grid containment (Specified by)
- PPL-SPEC-001254 Exact strict grid containment (Specified by)
- PPL-SPEC-001255 Exact grid disjointness (Specified by)
- PPL-SPEC-001256 Exact grid relation with a congruence (Specified by)
- PPL-SPEC-001257 Exact grid relation with a linear constraint (Specified by)
- PPL-SPEC-001258 Exact grid subsumption of grid generators (Specified by)
- PPL-SPEC-001259 Exact grid subsumption of polyhedral generators (Specified by)
- PPL-SPEC-001265 Exact directional boundedness of affine expressions on grids (Specified by)
- PPL-SPEC-001270 Exact affine-image frequency and closest value on rational grids (Specified by)
- PPL-SPEC-001248 Ambient and affine grid dimensions (Specified by)
- PPL-SPEC-001249 Exact foundational grid classification (Specified by)
- PPL-SPEC-001173 Certified real set-theoretic union of octagonal values (Specified by)
- PPL-SPEC-001174 Exact integer-point unions of octagonal values (Specified by)
- PPL-SPEC-001153 Ambient and affine dimension of octagonal values (Specified by)
- PPL-SPEC-001154 Owned constraint and affine-equality exports of octagonal values (Specified by)
- PPL-SPEC-001155 Ordinary classification of octagonal values (Specified by)
- PPL-SPEC-001156 Octagonal set relations, equality and compatible hashes (Specified by)
- PPL-SPEC-001157 Relations between octagonal values and linear constraints (Specified by)
- PPL-SPEC-001158 Relations between octagonal values and linear congruences (Specified by)
- PPL-SPEC-001159 Subsumption of geometric generators by octagonal values (Specified by)
- PPL-SPEC-001161 Constant affine values and zero frequency on octagonal sets (Specified by)
- PPL-SPEC-001399 Pointset-powerset empty and universe queries (Specified by)
- PPL-SPEC-001401 Pointset-powerset structural shape queries (Specified by)
- PPL-SPEC-001402 Pointset-powerset structural set relations (Specified by)
- PPL-SPEC-001403 Geometric powerset coverage and equality (Specified by)
- PPL-SPEC-001404 Pointset-powerset directional bound tests (Specified by)
- PPL-SPEC-001405 Pointset-powerset extrema and witnesses (Specified by)
- PPL-SPEC-001406 Pointset-powerset descriptor relations (Specified by)
- PPL-SPEC-001326 Polyhedron ambient and affine dimensions (Specified by)
- PPL-SPEC-001329 Exact elementary polyhedral predicates (Specified by)
- PPL-SPEC-001330 Exact integer-point existence in polyhedra (Specified by)
- PPL-SPEC-001331 Polyhedral set comparison and hashing (Specified by)
- PPL-SPEC-001332 Exact polyhedron relation with a constraint (Specified by)
- PPL-SPEC-001333 Exact polyhedron relation with a generator (Specified by)
- PPL-SPEC-001334 Exact polyhedron relation with a congruence (Specified by)
- PPL-SPEC-001335 Polyhedral coordinate and expression boundedness (Specified by)
- PPL-SPEC-001336 Exact rational polyhedral extrema and witnesses (Specified by)
- PPL-SPEC-001337 Constant affine-expression frequency in polyhedra (Specified by)
- PPL-SPEC-001444 Component-based product property tests (Specified by)
- PPL-SPEC-001445 Component-based product descriptor relations (Specified by)
- PPL-SPEC-001446 Component-selected product bounds and witnesses (Specified by)
- PPL-SPEC-001447 Product component order and equality (Specified by)
- PPL-SPEC-000541 Constraint-relation assertion values and named factories (Specified by)
- PPL-SPEC-000542 Constraint-relation value copying and lifetime (Specified by)
- PPL-SPEC-000543 Constraint-relation conjunction, subtraction and implication (Specified by)
- PPL-SPEC-000544 Constraint-relation flag encoding and validity (Specified by)
- PPL-SPEC-000545 Constraint-relation textual output and stream failures (Specified by)
- PPL-SPEC-000546 Generator-relation assertion values and named factories (Specified by)
- PPL-SPEC-000547 Generator-relation value copying and lifetime (Specified by)
- PPL-SPEC-000548 Generator-relation conjunction, subtraction and implication (Specified by)
- PPL-SPEC-000549 Generator-relation flag encoding and validity (Specified by)
- PPL-SPEC-000550 Generator-relation textual output and stream failures (Specified by)
PPL shall provide mathematical-property and set-relation query families for its supported pointset domains, including emptiness and the domain-appropriate inclusion, equality, disjointness and boundedness capabilities. For each supported query, the per-domain guarantee shall identify whether its outcome is an exact decision, a sufficient test or an inconclusive result; a guarantee for a primitive domain shall not be assumed for a compound domain or a different numeric profile.
The general logical rule for sufficient tests does not identify which query capabilities exist or which conclusions their domains support.
Query availability and guarantees depend on domain and profile; uniform exactness and every query family are not required from every domain.
Verification covers domain-property, comparison and relation query operations and their per-domain result classifications. Related obligations: 🔗 3. Meaning of geometric powerset comparisons, 🔗 2. Interpretation of sufficient property tests, 🔗 14. Directional bounds, extrema and attainment.
Inspect the allocation of query families and guarantees to supported domains and profiles. Compare representative answers with independent finite or geometric models, including empty and zero-dimensional sets and compound objects whose nonempty components have an empty intersection. Exercise positive, negative and admitted inconclusive outcomes according to the identified guarantee.
doc/definitions.dox: Generic Operations on Semantic Geometric Descriptors; Relation-With Operators. src/Box_defs.hh, src/Grid_defs.hh, src/Polyhedron_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: property and set queries. src/Partially_Reduced_Product_defs.hh: sufficient componentwise tests.
-
2. C generated domain observations UID: PPL-SPEC-001555 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
STATEMENT: Predicates, containment/equality, dimension and relation queries shall return the corresponding native outcomes or flags. Bounds, optimization and frequency functions shall assign their native exact or sound values and admitted witnesses only when their operation reports success. Caller-supplied coefficient/witness outputs shall obey native nonaliasing restrictions. False or inconclusive results shall not be interpreted as a numerical proof beyond the native contract.
The selected-coordinate integer-point query shall decide existence with exactly the listed coordinates integral and all others real. An empty list shall test ordinary feasibility. Out-of-space indices shall be rejected and the represented input shall be preserved, as specified in 🔗 1. Selected-coordinate integer-point existence.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: Generated forwarding must retain the native mathematical and ownership contract.
INTERFACE: Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.
int ppl_Polyhedron_contains_integer_point_in_dimensions( ppl_const_Polyhedron_t ph, const ppl_dimension_type ds[], size_t n); int ppl_Polyhedron_space_dimension(ppl_const_Polyhedron_t ph, ppl_dimension_type *m); int ppl_Polyhedron_affine_dimension(ppl_const_Polyhedron_t ph, ppl_dimension_type *m); int ppl_Polyhedron_relation_with_Constraint(ppl_const_Polyhedron_t ph, ppl_const_Constraint_t c); int ppl_Polyhedron_relation_with_Generator(ppl_const_Polyhedron_t ph, ppl_const_Generator_t c); int ppl_Polyhedron_relation_with_Congruence(ppl_const_Polyhedron_t ph, ppl_const_Congruence_t c); int ppl_Polyhedron_is_empty(ppl_const_Polyhedron_t ph); int ppl_Polyhedron_is_universe(ppl_const_Polyhedron_t ph); int ppl_Polyhedron_is_bounded(ppl_const_Polyhedron_t ph); int ppl_Polyhedron_contains_integer_point(ppl_const_Polyhedron_t ph); int ppl_Polyhedron_is_topologically_closed(ppl_const_Polyhedron_t ph); int ppl_Polyhedron_is_discrete(ppl_const_Polyhedron_t ph); int ppl_Polyhedron_bounds_from_above(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le); int ppl_Polyhedron_bounds_from_below(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le); int ppl_Polyhedron_maximize(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Polyhedron_minimize(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Polyhedron_maximize_with_point(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Polyhedron_minimize_with_point(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Polyhedron_frequency(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_Polyhedron_contains_Polyhedron(ppl_const_Polyhedron_t x, ppl_const_Polyhedron_t y); int ppl_Polyhedron_strictly_contains_Polyhedron(ppl_const_Polyhedron_t x, ppl_const_Polyhedron_t y); int ppl_Polyhedron_is_disjoint_from_Polyhedron(ppl_const_Polyhedron_t x, ppl_const_Polyhedron_t y); int ppl_Polyhedron_OK(ppl_const_Polyhedron_t ph); int ppl_Polyhedron_constrains(ppl_Polyhedron_t ph, ppl_dimension_type var); int ppl_Polyhedron_external_memory_in_bytes(ppl_const_Polyhedron_t ps, size_t *sz); int ppl_Polyhedron_total_memory_in_bytes(ppl_const_Polyhedron_t ps, size_t *sz); int ppl_Grid_space_dimension(ppl_const_Grid_t ph, ppl_dimension_type *m); int ppl_Grid_affine_dimension(ppl_const_Grid_t ph, ppl_dimension_type *m); int ppl_Grid_relation_with_Constraint(ppl_const_Grid_t ph, ppl_const_Constraint_t c); int ppl_Grid_relation_with_Generator(ppl_const_Grid_t ph, ppl_const_Generator_t c); int ppl_Grid_relation_with_Congruence(ppl_const_Grid_t ph, ppl_const_Congruence_t c); int ppl_Grid_is_empty(ppl_const_Grid_t ph); int ppl_Grid_is_universe(ppl_const_Grid_t ph); int ppl_Grid_is_bounded(ppl_const_Grid_t ph); int ppl_Grid_contains_integer_point(ppl_const_Grid_t ph); int ppl_Grid_is_topologically_closed(ppl_const_Grid_t ph); int ppl_Grid_is_discrete(ppl_const_Grid_t ph); int ppl_Grid_bounds_from_above(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le); int ppl_Grid_bounds_from_below(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le); int ppl_Grid_maximize(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Grid_minimize(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Grid_maximize_with_point(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Grid_minimize_with_point(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Grid_frequency(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_Grid_contains_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y); int ppl_Grid_strictly_contains_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y); int ppl_Grid_is_disjoint_from_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y); int ppl_Grid_OK(ppl_const_Grid_t ph); int ppl_Grid_constrains(ppl_Grid_t ph, ppl_dimension_type var); int ppl_Grid_external_memory_in_bytes(ppl_const_Grid_t ps, size_t *sz); int ppl_Grid_total_memory_in_bytes(ppl_const_Grid_t ps, size_t *sz); int ppl_Rational_Box_space_dimension(ppl_const_Rational_Box_t ph, ppl_dimension_type *m); int ppl_Rational_Box_affine_dimension(ppl_const_Rational_Box_t ph, ppl_dimension_type *m); int ppl_Rational_Box_relation_with_Constraint(ppl_const_Rational_Box_t ph, ppl_const_Constraint_t c); int ppl_Rational_Box_relation_with_Generator(ppl_const_Rational_Box_t ph, ppl_const_Generator_t c); int ppl_Rational_Box_relation_with_Congruence(ppl_const_Rational_Box_t ph, ppl_const_Congruence_t c); int ppl_Rational_Box_is_empty(ppl_const_Rational_Box_t ph); int ppl_Rational_Box_is_universe(ppl_const_Rational_Box_t ph); int ppl_Rational_Box_is_bounded(ppl_const_Rational_Box_t ph); int ppl_Rational_Box_contains_integer_point(ppl_const_Rational_Box_t ph); int ppl_Rational_Box_is_topologically_closed(ppl_const_Rational_Box_t ph); int ppl_Rational_Box_is_discrete(ppl_const_Rational_Box_t ph); int ppl_Rational_Box_bounds_from_above(ppl_const_Rational_Box_t ph, ppl_const_Linear_Expression_t le); int ppl_Rational_Box_bounds_from_below(ppl_const_Rational_Box_t ph, ppl_const_Linear_Expression_t le); int ppl_Rational_Box_maximize(ppl_const_Rational_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Rational_Box_minimize(ppl_const_Rational_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Rational_Box_maximize_with_point(ppl_const_Rational_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Rational_Box_minimize_with_point(ppl_const_Rational_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Rational_Box_frequency(ppl_const_Rational_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_Rational_Box_contains_Rational_Box(ppl_const_Rational_Box_t x, ppl_const_Rational_Box_t y); int ppl_Rational_Box_strictly_contains_Rational_Box(ppl_const_Rational_Box_t x, ppl_const_Rational_Box_t y); int ppl_Rational_Box_is_disjoint_from_Rational_Box(ppl_const_Rational_Box_t x, ppl_const_Rational_Box_t y); int ppl_Rational_Box_OK(ppl_const_Rational_Box_t ph); int ppl_Rational_Box_constrains(ppl_Rational_Box_t ph, ppl_dimension_type var); int ppl_Rational_Box_external_memory_in_bytes(ppl_const_Rational_Box_t ps, size_t *sz); int ppl_Rational_Box_total_memory_in_bytes(ppl_const_Rational_Box_t ps, size_t *sz); int ppl_BD_Shape_mpz_class_space_dimension(ppl_const_BD_Shape_mpz_class_t ph, ppl_dimension_type *m); int ppl_BD_Shape_mpz_class_affine_dimension(ppl_const_BD_Shape_mpz_class_t ph, ppl_dimension_type *m); int ppl_BD_Shape_mpz_class_relation_with_Constraint( ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Constraint_t c); int ppl_BD_Shape_mpz_class_relation_with_Generator( ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Generator_t c); int ppl_BD_Shape_mpz_class_relation_with_Congruence( ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Congruence_t c); int ppl_BD_Shape_mpz_class_is_empty(ppl_const_BD_Shape_mpz_class_t ph); int ppl_BD_Shape_mpz_class_is_universe(ppl_const_BD_Shape_mpz_class_t ph); int ppl_BD_Shape_mpz_class_is_bounded(ppl_const_BD_Shape_mpz_class_t ph); int ppl_BD_Shape_mpz_class_contains_integer_point( ppl_const_BD_Shape_mpz_class_t ph); int ppl_BD_Shape_mpz_class_is_topologically_closed( ppl_const_BD_Shape_mpz_class_t ph); int ppl_BD_Shape_mpz_class_is_discrete(ppl_const_BD_Shape_mpz_class_t ph); int ppl_BD_Shape_mpz_class_bounds_from_above(ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le); int ppl_BD_Shape_mpz_class_bounds_from_below(ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le); int ppl_BD_Shape_mpz_class_maximize(ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_BD_Shape_mpz_class_minimize(ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_BD_Shape_mpz_class_maximize_with_point( ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_BD_Shape_mpz_class_minimize_with_point( ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_BD_Shape_mpz_class_frequency(ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_BD_Shape_mpz_class_contains_BD_Shape_mpz_class( ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y); int ppl_BD_Shape_mpz_class_strictly_contains_BD_Shape_mpz_class( ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y); int ppl_BD_Shape_mpz_class_is_disjoint_from_BD_Shape_mpz_class( ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y); int ppl_BD_Shape_mpz_class_OK(ppl_const_BD_Shape_mpz_class_t ph); int ppl_BD_Shape_mpz_class_constrains(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var); int ppl_BD_Shape_mpz_class_external_memory_in_bytes( ppl_const_BD_Shape_mpz_class_t ps, size_t *sz); int ppl_BD_Shape_mpz_class_total_memory_in_bytes( ppl_const_BD_Shape_mpz_class_t ps, size_t *sz); int ppl_BD_Shape_mpq_class_space_dimension(ppl_const_BD_Shape_mpq_class_t ph, ppl_dimension_type *m); int ppl_BD_Shape_mpq_class_affine_dimension(ppl_const_BD_Shape_mpq_class_t ph, ppl_dimension_type *m); int ppl_BD_Shape_mpq_class_relation_with_Constraint( ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Constraint_t c); int ppl_BD_Shape_mpq_class_relation_with_Generator( ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Generator_t c); int ppl_BD_Shape_mpq_class_relation_with_Congruence( ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Congruence_t c); int ppl_BD_Shape_mpq_class_is_empty(ppl_const_BD_Shape_mpq_class_t ph); int ppl_BD_Shape_mpq_class_is_universe(ppl_const_BD_Shape_mpq_class_t ph); int ppl_BD_Shape_mpq_class_is_bounded(ppl_const_BD_Shape_mpq_class_t ph); int ppl_BD_Shape_mpq_class_contains_integer_point( ppl_const_BD_Shape_mpq_class_t ph); int ppl_BD_Shape_mpq_class_is_topologically_closed( ppl_const_BD_Shape_mpq_class_t ph); int ppl_BD_Shape_mpq_class_is_discrete(ppl_const_BD_Shape_mpq_class_t ph); int ppl_BD_Shape_mpq_class_bounds_from_above(ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le); int ppl_BD_Shape_mpq_class_bounds_from_below(ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le); int ppl_BD_Shape_mpq_class_maximize(ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_BD_Shape_mpq_class_minimize(ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_BD_Shape_mpq_class_maximize_with_point( ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_BD_Shape_mpq_class_minimize_with_point( ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_BD_Shape_mpq_class_frequency(ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_BD_Shape_mpq_class_contains_BD_Shape_mpq_class( ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y); int ppl_BD_Shape_mpq_class_strictly_contains_BD_Shape_mpq_class( ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y); int ppl_BD_Shape_mpq_class_is_disjoint_from_BD_Shape_mpq_class( ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y); int ppl_BD_Shape_mpq_class_OK(ppl_const_BD_Shape_mpq_class_t ph); int ppl_BD_Shape_mpq_class_constrains(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var); int ppl_BD_Shape_mpq_class_external_memory_in_bytes( ppl_const_BD_Shape_mpq_class_t ps, size_t *sz); int ppl_BD_Shape_mpq_class_total_memory_in_bytes( ppl_const_BD_Shape_mpq_class_t ps, size_t *sz); int ppl_Octagonal_Shape_mpz_class_space_dimension( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type *m); int ppl_Octagonal_Shape_mpz_class_affine_dimension( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type *m); int ppl_Octagonal_Shape_mpz_class_relation_with_Constraint( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Constraint_t c); int ppl_Octagonal_Shape_mpz_class_relation_with_Generator( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Generator_t c); int ppl_Octagonal_Shape_mpz_class_relation_with_Congruence( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Congruence_t c); int ppl_Octagonal_Shape_mpz_class_is_empty( ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_Octagonal_Shape_mpz_class_is_universe( ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_Octagonal_Shape_mpz_class_is_bounded( ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_Octagonal_Shape_mpz_class_contains_integer_point( ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_Octagonal_Shape_mpz_class_is_topologically_closed( ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_Octagonal_Shape_mpz_class_is_discrete( ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_Octagonal_Shape_mpz_class_bounds_from_above( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le); int ppl_Octagonal_Shape_mpz_class_bounds_from_below( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le); int ppl_Octagonal_Shape_mpz_class_maximize( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Octagonal_Shape_mpz_class_minimize( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Octagonal_Shape_mpz_class_maximize_with_point( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Octagonal_Shape_mpz_class_minimize_with_point( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Octagonal_Shape_mpz_class_frequency( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_Octagonal_Shape_mpz_class_contains_Octagonal_Shape_mpz_class( ppl_const_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y); int ppl_Octagonal_Shape_mpz_class_strictly_contains_Octagonal_Shape_mpz_class( ppl_const_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y); int ppl_Octagonal_Shape_mpz_class_is_disjoint_from_Octagonal_Shape_mpz_class( ppl_const_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y); int ppl_Octagonal_Shape_mpz_class_OK(ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_Octagonal_Shape_mpz_class_constrains(ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var); int ppl_Octagonal_Shape_mpz_class_external_memory_in_bytes( ppl_const_Octagonal_Shape_mpz_class_t ps, size_t *sz); int ppl_Octagonal_Shape_mpz_class_total_memory_in_bytes( ppl_const_Octagonal_Shape_mpz_class_t ps, size_t *sz); int ppl_Octagonal_Shape_mpq_class_space_dimension( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type *m); int ppl_Octagonal_Shape_mpq_class_affine_dimension( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type *m); int ppl_Octagonal_Shape_mpq_class_relation_with_Constraint( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Constraint_t c); int ppl_Octagonal_Shape_mpq_class_relation_with_Generator( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Generator_t c); int ppl_Octagonal_Shape_mpq_class_relation_with_Congruence( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Congruence_t c); int ppl_Octagonal_Shape_mpq_class_is_empty( ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_Octagonal_Shape_mpq_class_is_universe( ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_Octagonal_Shape_mpq_class_is_bounded( ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_Octagonal_Shape_mpq_class_contains_integer_point( ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_Octagonal_Shape_mpq_class_is_topologically_closed( ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_Octagonal_Shape_mpq_class_is_discrete( ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_Octagonal_Shape_mpq_class_bounds_from_above( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le); int ppl_Octagonal_Shape_mpq_class_bounds_from_below( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le); int ppl_Octagonal_Shape_mpq_class_maximize( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Octagonal_Shape_mpq_class_minimize( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Octagonal_Shape_mpq_class_maximize_with_point( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Octagonal_Shape_mpq_class_minimize_with_point( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Octagonal_Shape_mpq_class_frequency( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_Octagonal_Shape_mpq_class_contains_Octagonal_Shape_mpq_class( ppl_const_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y); int ppl_Octagonal_Shape_mpq_class_strictly_contains_Octagonal_Shape_mpq_class( ppl_const_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y); int ppl_Octagonal_Shape_mpq_class_is_disjoint_from_Octagonal_Shape_mpq_class( ppl_const_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y); int ppl_Octagonal_Shape_mpq_class_OK(ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_Octagonal_Shape_mpq_class_constrains(ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var); int ppl_Octagonal_Shape_mpq_class_external_memory_in_bytes( ppl_const_Octagonal_Shape_mpq_class_t ps, size_t *sz); int ppl_Octagonal_Shape_mpq_class_total_memory_in_bytes( ppl_const_Octagonal_Shape_mpq_class_t ps, size_t *sz); int ppl_Constraints_Product_C_Polyhedron_Grid_space_dimension( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type *m); int ppl_Constraints_Product_C_Polyhedron_Grid_affine_dimension( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type *m); int ppl_Constraints_Product_C_Polyhedron_Grid_relation_with_Constraint( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Constraint_t c); int ppl_Constraints_Product_C_Polyhedron_Grid_relation_with_Generator( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Generator_t c); int ppl_Constraints_Product_C_Polyhedron_Grid_relation_with_Congruence( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Congruence_t c); int ppl_Constraints_Product_C_Polyhedron_Grid_is_empty( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph); int ppl_Constraints_Product_C_Polyhedron_Grid_is_universe( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph); int ppl_Constraints_Product_C_Polyhedron_Grid_is_bounded( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph); int ppl_Constraints_Product_C_Polyhedron_Grid_is_topologically_closed( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph); int ppl_Constraints_Product_C_Polyhedron_Grid_is_discrete( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph); int ppl_Constraints_Product_C_Polyhedron_Grid_bounds_from_above( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Linear_Expression_t le); int ppl_Constraints_Product_C_Polyhedron_Grid_bounds_from_below( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Linear_Expression_t le); int ppl_Constraints_Product_C_Polyhedron_Grid_maximize( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Constraints_Product_C_Polyhedron_Grid_minimize( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Constraints_Product_C_Polyhedron_Grid_maximize_with_point( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Constraints_Product_C_Polyhedron_Grid_minimize_with_point( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Constraints_Product_C_Polyhedron_Grid_contains_Constraints_Product_C_Polyhedron_Grid( ppl_const_Constraints_Product_C_Polyhedron_Grid_t x, ppl_const_Constraints_Product_C_Polyhedron_Grid_t y); int ppl_Constraints_Product_C_Polyhedron_Grid_strictly_contains_Constraints_Product_C_Polyhedron_Grid( ppl_const_Constraints_Product_C_Polyhedron_Grid_t x, ppl_const_Constraints_Product_C_Polyhedron_Grid_t y); int ppl_Constraints_Product_C_Polyhedron_Grid_is_disjoint_from_Constraints_Product_C_Polyhedron_Grid( ppl_const_Constraints_Product_C_Polyhedron_Grid_t x, ppl_const_Constraints_Product_C_Polyhedron_Grid_t y); int ppl_Constraints_Product_C_Polyhedron_Grid_OK( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph); int ppl_Constraints_Product_C_Polyhedron_Grid_constrains( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var); int ppl_Constraints_Product_C_Polyhedron_Grid_external_memory_in_bytes( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ps, size_t *sz); int ppl_Constraints_Product_C_Polyhedron_Grid_total_memory_in_bytes( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ps, size_t *sz); int ppl_Pointset_Powerset_C_Polyhedron_space_dimension( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type *m); int ppl_Pointset_Powerset_C_Polyhedron_affine_dimension( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type *m); int ppl_Pointset_Powerset_C_Polyhedron_relation_with_Constraint( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Constraint_t c); int ppl_Pointset_Powerset_C_Polyhedron_relation_with_Generator( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Generator_t c); int ppl_Pointset_Powerset_C_Polyhedron_relation_with_Congruence( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Congruence_t c); int ppl_Pointset_Powerset_C_Polyhedron_is_empty( ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_Pointset_Powerset_C_Polyhedron_is_universe( ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_Pointset_Powerset_C_Polyhedron_is_bounded( ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_Pointset_Powerset_C_Polyhedron_contains_integer_point( ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_Pointset_Powerset_C_Polyhedron_is_topologically_closed( ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_Pointset_Powerset_C_Polyhedron_is_discrete( ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_Pointset_Powerset_C_Polyhedron_bounds_from_above( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t le); int ppl_Pointset_Powerset_C_Polyhedron_bounds_from_below( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t le); int ppl_Pointset_Powerset_C_Polyhedron_maximize( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Pointset_Powerset_C_Polyhedron_minimize( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Pointset_Powerset_C_Polyhedron_maximize_with_point( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Pointset_Powerset_C_Polyhedron_minimize_with_point( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Pointset_Powerset_C_Polyhedron_contains_Pointset_Powerset_C_Polyhedron( ppl_const_Pointset_Powerset_C_Polyhedron_t x, ppl_const_Pointset_Powerset_C_Polyhedron_t y); int ppl_Pointset_Powerset_C_Polyhedron_strictly_contains_Pointset_Powerset_C_Polyhedron( ppl_const_Pointset_Powerset_C_Polyhedron_t x, ppl_const_Pointset_Powerset_C_Polyhedron_t y); int ppl_Pointset_Powerset_C_Polyhedron_is_disjoint_from_Pointset_Powerset_C_Polyhedron( ppl_const_Pointset_Powerset_C_Polyhedron_t x, ppl_const_Pointset_Powerset_C_Polyhedron_t y); int ppl_Pointset_Powerset_C_Polyhedron_OK( ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_Pointset_Powerset_C_Polyhedron_constrains( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var); int ppl_Pointset_Powerset_C_Polyhedron_external_memory_in_bytes( ppl_const_Pointset_Powerset_C_Polyhedron_t ps, size_t *sz); int ppl_Pointset_Powerset_C_Polyhedron_total_memory_in_bytes( ppl_const_Pointset_Powerset_C_Polyhedron_t ps, size_t *sz); int ppl_Pointset_Powerset_NNC_Polyhedron_space_dimension( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type *m); int ppl_Pointset_Powerset_NNC_Polyhedron_affine_dimension( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type *m); int ppl_Pointset_Powerset_NNC_Polyhedron_relation_with_Constraint( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Constraint_t c); int ppl_Pointset_Powerset_NNC_Polyhedron_relation_with_Generator( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Generator_t c); int ppl_Pointset_Powerset_NNC_Polyhedron_relation_with_Congruence( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Congruence_t c); int ppl_Pointset_Powerset_NNC_Polyhedron_is_empty( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_Pointset_Powerset_NNC_Polyhedron_is_universe( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_Pointset_Powerset_NNC_Polyhedron_is_bounded( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_Pointset_Powerset_NNC_Polyhedron_contains_integer_point( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_Pointset_Powerset_NNC_Polyhedron_is_topologically_closed( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_Pointset_Powerset_NNC_Polyhedron_is_discrete( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_Pointset_Powerset_NNC_Polyhedron_bounds_from_above( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Linear_Expression_t le); int ppl_Pointset_Powerset_NNC_Polyhedron_bounds_from_below( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Linear_Expression_t le); int ppl_Pointset_Powerset_NNC_Polyhedron_maximize( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Pointset_Powerset_NNC_Polyhedron_minimize( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Pointset_Powerset_NNC_Polyhedron_maximize_with_point( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Pointset_Powerset_NNC_Polyhedron_minimize_with_point( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Pointset_Powerset_NNC_Polyhedron_contains_Pointset_Powerset_NNC_Polyhedron( ppl_const_Pointset_Powerset_NNC_Polyhedron_t x, ppl_const_Pointset_Powerset_NNC_Polyhedron_t y); int ppl_Pointset_Powerset_NNC_Polyhedron_strictly_contains_Pointset_Powerset_NNC_Polyhedron( ppl_const_Pointset_Powerset_NNC_Polyhedron_t x, ppl_const_Pointset_Powerset_NNC_Polyhedron_t y); int ppl_Pointset_Powerset_NNC_Polyhedron_is_disjoint_from_Pointset_Powerset_NNC_Polyhedron( ppl_const_Pointset_Powerset_NNC_Polyhedron_t x, ppl_const_Pointset_Powerset_NNC_Polyhedron_t y); int ppl_Pointset_Powerset_NNC_Polyhedron_OK( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_Pointset_Powerset_NNC_Polyhedron_constrains( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var); int ppl_Pointset_Powerset_NNC_Polyhedron_external_memory_in_bytes( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps, size_t *sz); int ppl_Pointset_Powerset_NNC_Polyhedron_total_memory_in_bytes( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps, size_t *sz); int ppl_Double_Box_space_dimension(ppl_const_Double_Box_t ph, ppl_dimension_type *m); int ppl_Double_Box_affine_dimension(ppl_const_Double_Box_t ph, ppl_dimension_type *m); int ppl_Double_Box_relation_with_Constraint(ppl_const_Double_Box_t ph, ppl_const_Constraint_t c); int ppl_Double_Box_relation_with_Generator(ppl_const_Double_Box_t ph, ppl_const_Generator_t c); int ppl_Double_Box_relation_with_Congruence(ppl_const_Double_Box_t ph, ppl_const_Congruence_t c); int ppl_Double_Box_is_empty(ppl_const_Double_Box_t ph); int ppl_Double_Box_is_universe(ppl_const_Double_Box_t ph); int ppl_Double_Box_is_bounded(ppl_const_Double_Box_t ph); int ppl_Double_Box_contains_integer_point(ppl_const_Double_Box_t ph); int ppl_Double_Box_is_topologically_closed(ppl_const_Double_Box_t ph); int ppl_Double_Box_is_discrete(ppl_const_Double_Box_t ph); int ppl_Double_Box_bounds_from_above(ppl_const_Double_Box_t ph, ppl_const_Linear_Expression_t le); int ppl_Double_Box_bounds_from_below(ppl_const_Double_Box_t ph, ppl_const_Linear_Expression_t le); int ppl_Double_Box_maximize(ppl_const_Double_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Double_Box_minimize(ppl_const_Double_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Double_Box_maximize_with_point(ppl_const_Double_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Double_Box_minimize_with_point(ppl_const_Double_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Double_Box_frequency(ppl_const_Double_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_Double_Box_contains_Double_Box(ppl_const_Double_Box_t x, ppl_const_Double_Box_t y); int ppl_Double_Box_strictly_contains_Double_Box(ppl_const_Double_Box_t x, ppl_const_Double_Box_t y); int ppl_Double_Box_is_disjoint_from_Double_Box(ppl_const_Double_Box_t x, ppl_const_Double_Box_t y); int ppl_Double_Box_OK(ppl_const_Double_Box_t ph); int ppl_Double_Box_constrains(ppl_Double_Box_t ph, ppl_dimension_type var); int ppl_Double_Box_external_memory_in_bytes(ppl_const_Double_Box_t ps, size_t *sz); int ppl_Double_Box_total_memory_in_bytes(ppl_const_Double_Box_t ps, size_t *sz); int ppl_BD_Shape_double_space_dimension(ppl_const_BD_Shape_double_t ph, ppl_dimension_type *m); int ppl_BD_Shape_double_affine_dimension(ppl_const_BD_Shape_double_t ph, ppl_dimension_type *m); int ppl_BD_Shape_double_relation_with_Constraint(ppl_const_BD_Shape_double_t ph, ppl_const_Constraint_t c); int ppl_BD_Shape_double_relation_with_Generator(ppl_const_BD_Shape_double_t ph, ppl_const_Generator_t c); int ppl_BD_Shape_double_relation_with_Congruence(ppl_const_BD_Shape_double_t ph, ppl_const_Congruence_t c); int ppl_BD_Shape_double_is_empty(ppl_const_BD_Shape_double_t ph); int ppl_BD_Shape_double_is_universe(ppl_const_BD_Shape_double_t ph); int ppl_BD_Shape_double_is_bounded(ppl_const_BD_Shape_double_t ph); int ppl_BD_Shape_double_contains_integer_point(ppl_const_BD_Shape_double_t ph); int ppl_BD_Shape_double_is_topologically_closed(ppl_const_BD_Shape_double_t ph); int ppl_BD_Shape_double_is_discrete(ppl_const_BD_Shape_double_t ph); int ppl_BD_Shape_double_bounds_from_above(ppl_const_BD_Shape_double_t ph, ppl_const_Linear_Expression_t le); int ppl_BD_Shape_double_bounds_from_below(ppl_const_BD_Shape_double_t ph, ppl_const_Linear_Expression_t le); int ppl_BD_Shape_double_maximize(ppl_const_BD_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_BD_Shape_double_minimize(ppl_const_BD_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_BD_Shape_double_maximize_with_point(ppl_const_BD_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_BD_Shape_double_minimize_with_point(ppl_const_BD_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_BD_Shape_double_frequency(ppl_const_BD_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_BD_Shape_double_contains_BD_Shape_double(ppl_const_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y); int ppl_BD_Shape_double_strictly_contains_BD_Shape_double( ppl_const_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y); int ppl_BD_Shape_double_is_disjoint_from_BD_Shape_double( ppl_const_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y); int ppl_BD_Shape_double_OK(ppl_const_BD_Shape_double_t ph); int ppl_BD_Shape_double_constrains(ppl_BD_Shape_double_t ph, ppl_dimension_type var); int ppl_BD_Shape_double_external_memory_in_bytes(ppl_const_BD_Shape_double_t ps, size_t *sz); int ppl_BD_Shape_double_total_memory_in_bytes(ppl_const_BD_Shape_double_t ps, size_t *sz); int ppl_Octagonal_Shape_double_space_dimension( ppl_const_Octagonal_Shape_double_t ph, ppl_dimension_type *m); int ppl_Octagonal_Shape_double_affine_dimension( ppl_const_Octagonal_Shape_double_t ph, ppl_dimension_type *m); int ppl_Octagonal_Shape_double_relation_with_Constraint( ppl_const_Octagonal_Shape_double_t ph, ppl_const_Constraint_t c); int ppl_Octagonal_Shape_double_relation_with_Generator( ppl_const_Octagonal_Shape_double_t ph, ppl_const_Generator_t c); int ppl_Octagonal_Shape_double_relation_with_Congruence( ppl_const_Octagonal_Shape_double_t ph, ppl_const_Congruence_t c); int ppl_Octagonal_Shape_double_is_empty(ppl_const_Octagonal_Shape_double_t ph); int ppl_Octagonal_Shape_double_is_universe( ppl_const_Octagonal_Shape_double_t ph); int ppl_Octagonal_Shape_double_is_bounded( ppl_const_Octagonal_Shape_double_t ph); int ppl_Octagonal_Shape_double_contains_integer_point( ppl_const_Octagonal_Shape_double_t ph); int ppl_Octagonal_Shape_double_is_topologically_closed( ppl_const_Octagonal_Shape_double_t ph); int ppl_Octagonal_Shape_double_is_discrete( ppl_const_Octagonal_Shape_double_t ph); int ppl_Octagonal_Shape_double_bounds_from_above( ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le); int ppl_Octagonal_Shape_double_bounds_from_below( ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le); int ppl_Octagonal_Shape_double_maximize(ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Octagonal_Shape_double_minimize(ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Octagonal_Shape_double_maximize_with_point( ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Octagonal_Shape_double_minimize_with_point( ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Octagonal_Shape_double_frequency(ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_Octagonal_Shape_double_contains_Octagonal_Shape_double( ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y); int ppl_Octagonal_Shape_double_strictly_contains_Octagonal_Shape_double( ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y); int ppl_Octagonal_Shape_double_is_disjoint_from_Octagonal_Shape_double( ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y); int ppl_Octagonal_Shape_double_OK(ppl_const_Octagonal_Shape_double_t ph); int ppl_Octagonal_Shape_double_constrains(ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var); int ppl_Octagonal_Shape_double_external_memory_in_bytes( ppl_const_Octagonal_Shape_double_t ps, size_t *sz); int ppl_Octagonal_Shape_double_total_memory_in_bytes( ppl_const_Octagonal_Shape_double_t ps, size_t *sz); int ppl_Polyhedron_equals_Polyhedron(ppl_const_Polyhedron_t x, ppl_const_Polyhedron_t y); int ppl_Grid_equals_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y); int ppl_Rational_Box_has_upper_bound(ppl_Rational_Box_t ps, ppl_dimension_type var, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *pclosed); int ppl_Rational_Box_has_lower_bound(ppl_Rational_Box_t ps, ppl_dimension_type var, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *pclosed); int ppl_Rational_Box_equals_Rational_Box(ppl_const_Rational_Box_t x, ppl_const_Rational_Box_t y); int ppl_BD_Shape_mpz_class_equals_BD_Shape_mpz_class( ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y); int ppl_BD_Shape_mpq_class_equals_BD_Shape_mpq_class( ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y); int ppl_Octagonal_Shape_mpz_class_equals_Octagonal_Shape_mpz_class( ppl_const_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y); int ppl_Octagonal_Shape_mpq_class_equals_Octagonal_Shape_mpq_class( ppl_const_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y); int ppl_Constraints_Product_C_Polyhedron_Grid_equals_Constraints_Product_C_Polyhedron_Grid( ppl_const_Constraints_Product_C_Polyhedron_Grid_t x, ppl_const_Constraints_Product_C_Polyhedron_Grid_t y); int ppl_Pointset_Powerset_C_Polyhedron_geometrically_equals_Pointset_Powerset_C_Polyhedron( ppl_const_Pointset_Powerset_C_Polyhedron_t x, ppl_const_Pointset_Powerset_C_Polyhedron_t y); int ppl_Pointset_Powerset_C_Polyhedron_equals_Pointset_Powerset_C_Polyhedron( ppl_const_Pointset_Powerset_C_Polyhedron_t x, ppl_const_Pointset_Powerset_C_Polyhedron_t y); int ppl_Pointset_Powerset_NNC_Polyhedron_geometrically_equals_Pointset_Powerset_NNC_Polyhedron( ppl_const_Pointset_Powerset_NNC_Polyhedron_t x, ppl_const_Pointset_Powerset_NNC_Polyhedron_t y); int ppl_Pointset_Powerset_NNC_Polyhedron_equals_Pointset_Powerset_NNC_Polyhedron( ppl_const_Pointset_Powerset_NNC_Polyhedron_t x, ppl_const_Pointset_Powerset_NNC_Polyhedron_t y); int ppl_Double_Box_has_upper_bound(ppl_Double_Box_t ps, ppl_dimension_type var, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *pclosed); int ppl_Double_Box_has_lower_bound(ppl_Double_Box_t ps, ppl_dimension_type var, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *pclosed); int ppl_Double_Box_equals_Double_Box(ppl_const_Double_Box_t x, ppl_const_Double_Box_t y); int ppl_BD_Shape_double_equals_BD_Shape_double(ppl_const_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y); int ppl_Octagonal_Shape_double_equals_Octagonal_Shape_double( ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y); int ppl_Pointset_Powerset_C_Polyhedron_geometrically_covers_Pointset_Powerset_C_Polyhedron( ppl_const_Pointset_Powerset_C_Polyhedron_t x, ppl_const_Pointset_Powerset_C_Polyhedron_t y); int ppl_Pointset_Powerset_C_Polyhedron_size( ppl_const_Pointset_Powerset_C_Polyhedron_t ps, size_t *sz); int ppl_Pointset_Powerset_NNC_Polyhedron_geometrically_covers_Pointset_Powerset_NNC_Polyhedron( ppl_const_Pointset_Powerset_NNC_Polyhedron_t x, ppl_const_Pointset_Powerset_NNC_Polyhedron_t y); int ppl_Pointset_Powerset_NNC_Polyhedron_size( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps, size_t *sz); int ppl_Grid_relation_with_Grid_Generator(ppl_const_Grid_t ph, ppl_const_Grid_Generator_t c);
VERIFICATION_CRITERIA: Compare literal empty/universe, containment, relation flags and bounded/unbounded optimization/frequency results for configured arithmetic types.
SOURCE: interfaces/C/tests/newoperations.c; interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/domains.c; interfaces/C/tests/polyhedra.c.
-
9. Certified set-theoretic union UID: PPL-SPEC-001098 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000053 Bounded-difference intersection and upper bounds (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000302 Interpretation of sufficient property tests (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: upper_bound_assign_if_exact(y) shall return true only when the receiver's completed represented set is exactly the set-theoretic union of the two entry sets. On false, the receiver shall preserve its entry represented set. A distinct y shall preserve its entry set on either outcome. Closure and reduction may change internal representations without changing these values.
For mpq_class and mpz_class boundary types, the operation shall return true if and only if the union is a bounded-difference shape. A bounded integer or native floating profile may return false when it cannot certify exactness, even if the union is representable. Such a false result shall not imply that the union is unrepresentable.
The dimensions shall be equal; mismatch shall throw std::invalid_argument before changing represented sets. Self-union, empty identities, universe and zero-dimensional cases shall satisfy the same exactness rules. A successful receiver shall own its resulting value independently of a distinct source.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
RATIONALE: A certified join distinguishes a representable concrete union from a containing abstract upper bound. Numerical certification may be incomplete while every reported success remains exact.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
bool upper_bound_assign_if_exact(const BD_Shape& y);
VERIFICATION_CRITERIA: Build the support hull independently and decide whether it has a point outside both operands by rational elimination of paired strict complements. Require complete decisions for unbounded exact profiles, unchanged sets on false, exact true results for all profiles, aliases, incompatible dimensions, unbounded correlated sets and cache histories.
BIBLIOGRAPHY: BagnaraHZ10CGTA | Section 5.2, Theorem 5.2 (PDF index 16).
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeoperationsspec1.cc; tests/bdshapeoperationoracle.hh; tests/bdshapeoperationsfailure1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeoperationspublic1.cc; tests/BD_Shape/upperboundifexact1.cc; tests/BD_Shape/dimensioncontracts1.cc.
-
10. Certified integer-point union UID: PPL-SPEC-001099 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000053 Bounded-difference intersection and upper bounds (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000302 Interpretation of sufficient property tests (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: integer_upper_bound_assign_if_exact(y) shall be available for an integral boundary type T. Its exactness shall concern integer valuations: on true, every integer point in the resulting shape shall belong to at least one entry operand, and every integer point of either operand shall belong to the result. The result shall be the integer upper bound, namely the least rational bounded-difference enclosure containing those input integer points.
With mpz_class boundaries the decision shall be complete: true shall hold exactly when that integer upper bound introduces no additional integer point. A bounded integral profile may return false if it cannot certify exactness. A false result shall preserve the receiver's entry represented set; it shall not certify a missing integer point for an incomplete profile.
This guarantee shall not identify integer-point union with real set-theoretic union. For example, joining the real singletons at zero and one can be exact for integer points while including nonintegral points between them. Dimensions shall agree, with std::invalid_argument on mismatch before changing represented sets. A distinct source shall preserve its entry set, and self-union/empty/zero-dimensional inputs shall retain their mathematical meanings.
The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.
Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.
RATIONALE: A gap in a real union can contain no integer point. Integer exactness therefore uses a different decision problem while still returning a real bounded-difference representation.
INTERFACE: Public header: <ppl.hh>; member excerpts for BD_Shape<T> in Parma_Polyhedra_Library:
bool integer_upper_bound_assign_if_exact(const BD_Shape& y);
VERIFICATION_CRITERIA: For independently bounded integral examples enumerate every integer point in the support hull and compare with both operands, using proven finite coordinate limits. Check adjacent versus separated singletons, multidimensional correlated unions, complete GMP decisions, sound bounded-profile successes, false preservation, aliases and dimension errors. Include a real-inexact/integer-exact counterexample.
BIBLIOGRAPHY: BagnaraHZ10CGTA | Section 5.3, Theorem 5.4 and Example 5.5 (PDF indices 19-20).
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeoperationsspec1.cc; tests/bdshapeoperationoracle.hh; tests/bdshapeoperationsfailure1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeoperationspublic1.cc; tests/BD_Shape/integerupperboundifexact1.cc; tests/BD_Shape/dimensioncontracts1.cc.
-
8. Ambient and affine dimension of bounded-difference values UID: PPL-SPEC-001063 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: space_dimension() shall return the ambient coordinate count independently of emptiness, boundedness or affine constraints. affine_dimension() shall return zero for empty and otherwise the dimension of the smallest affine subspace containing the represented set. Both zero-dimensional values shall have affine dimension zero. Implicit unary/difference equalities and relationally redundant descriptions shall be included in this determination; stored rounded entries shall not be assumed to certify an equality unless the represented set satisfies it.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
RATIONALE: Ambient coordinate identity and the dimension of the represented affine hull describe different properties.
INTERFACE: Public header: <ppl.hh>; excerpts for BD_Shape<T> and related free functions in Parma_Polyhedra_Library:
dimension_type space_dimension() const; dimension_type affine_dimension() const;
VERIFICATION_CRITERIA: Compute rational affine-hull ranks independently from exact implied equalities. Include fixed coordinates, difference-linked free coordinates, redundant chains, full-dimensional, empty and zero-dimensional values and rounded/native equality histories.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapevaluesspec1.cc; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapevaluespublic1.cc; tests/BD_Shape/affinedimension1.cc.
-
9. Owned constraint and affine-equality exports of bounded-difference values UID: PPL-SPEC-001064 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: constraints() shall return an owned, dimension-preserving constraint system whose conjunction denotes the receiver. minimized_constraints() shall additionally provide an irredundant defining conjunction: removing any emitted nontrivial row shall enlarge the represented set. No unique row order or unique equality basis shall be required. Exported finite bounds shall have their exact stored mathematical values; no integer-bound profile shall silently change real coordinates into integer coordinates.
congruences() and minimized_congruences() shall return owned equality congruences defining the receiver's affine hull, retaining the same ambient and affine dimensions. They shall not replace the represented inequalities or invent periodic restrictions. Their nonempty equality system shall be a basis of the affine restrictions; empty shall export inconsistency. Zero-dimensional universe shall export a tautological conjunction; zero-dimensional empty shall export an inconsistent one.
Exported descriptors shall remain usable and independent after source mutation or destruction. Source normalization shall preserve its represented value; canonical row order or a particular redundant basis shall not be inferred beyond the declared minimization result.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
RATIONALE: Geometric defining inequalities and affine-hull equalities convey distinct information and need independent ownership.
INTERFACE: Public header: <ppl.hh>; excerpts for BD_Shape<T> and related free functions in Parma_Polyhedra_Library:
Constraint_System constraints() const; Constraint_System minimized_constraints() const; Congruence_System congruences() const; Congruence_System minimized_congruences() const;
VERIFICATION_CRITERIA: Compare exported inequality conjunctions with independent rational source sets and equality spans with independently computed affine hulls. Include implicit equalities, redundant rows, empty/zero dimensions, exact native endpoints and lifetime/mutation independence.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapevaluesspec1.cc; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapevaluespublic1.cc; tests/BD_Shape/constraints1.cc; tests/BD_Shape/minconstraints1.cc; tests/BD_Shape/congruences1.cc.
-
10. Ordinary classification of bounded-difference values UID: PPL-SPEC-001065 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The ordinary classification calls shall report their named mathematical properties of the represented set: emptiness, universe, discreteness, topological closure, boundedness and existence of an integer point. Every bounded-difference value shall be topologically closed. A nonempty convex value shall be discrete exactly when it is a singleton; empty shall be discrete and bounded. Zero-dimensional universe shall be nonempty, universe, bounded, discrete and contain its integer empty tuple; zero-dimensional empty shall contain no integer point.
constrains(var) shall report whether the represented set imposes a restriction on that coordinate, including relational restrictions; empty shall constrain each valid coordinate. A variable outside the ambient dimension shall throw std::invalid_argument. These decisions shall not confuse stored integer bounds with an integer-only carrier.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
RATIONALE: Closed convex geometry, lattice witnesses and syntactic bound types must remain separate classifications.
INTERFACE: Public header: <ppl.hh>; excerpts for BD_Shape<T> and related free functions in Parma_Polyhedra_Library:
bool is_empty() const; bool is_universe() const; bool is_discrete() const; bool is_topologically_closed() const; bool is_bounded() const; bool contains_integer_point() const; bool constrains(Variable var) const;
VERIFICATION_CRITERIA: Use independent rational feasibility, affine dimension, recession directions and integer witness models. Include fractional singletons without integer points, nonempty integral-bound shapes, relational restrictions, free axes, emptiness, zero dimensions and invalid variables.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapevaluesspec1.cc; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapevaluespublic1.cc; tests/BD_Shape/empty1.cc; tests/BD_Shape/universe1.cc; tests/BD_Shape/discrete1.cc; tests/BD_Shape/bounded1.cc; tests/BD_Shape/containsintegerpoint1.cc; tests/BD_Shape/constrains1.cc.
-
11. Bounded-difference set relations, equality and compatible hashes UID: PPL-SPEC-001066 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For dimension-compatible operands, contains, strictly_contains and is_disjoint_from shall report mathematical set containment, proper containment and empty intersection. Equal nonempty or empty sets shall not strictly contain each other; every nonempty value shall strictly contain empty. The zero-dimensional values shall obey the same set rules. Dimension-incompatible relation calls shall throw std::invalid_argument.
Equality shall require equal ambient dimensions and equal represented sets; inequality shall be its logical complement. Different redundant/closure descriptions of the same set shall compare equal. Equal values shall have equal hash codes; collisions between unequal values shall be permitted. hash_code shall not modify the represented set.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
RATIONALE: Set relations and hash compatibility must depend on values rather than redundant matrix descriptions.
INTERFACE: Public header: <ppl.hh>; excerpts for BD_Shape<T> and related free functions in Parma_Polyhedra_Library:
bool contains(const BD_Shape& y) const; bool strictly_contains(const BD_Shape& y) const; bool is_disjoint_from(const BD_Shape& y) const; int32_t hash_code() const; template <typename T> bool operator==(const BD_Shape<T>& x,const BD_Shape<T>& y); // Inequality uses C++20 rewriting of operator==.
VERIFICATION_CRITERIA: Check Boolean inequality expressions in both operand orders through C++20 equality rewriting, retaining the stated equality and mismatch behavior. Determine inclusion and disjointness by independent exact rational implication/feasibility. Cover equivalent redundant systems, strict inclusion, empty/zero dimensions, different dimensions, self relations and equal-value hash compatibility across cache histories.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapevaluesspec1.cc; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapevaluespublic1.cc; tests/BD_Shape/contains1.cc; tests/BD_Shape/disjoint1.cc; tests/BD_Shape/equality1.cc; tests/BD_Shape/semanticqueries1.cc.
-
12. Relations between bounded-difference values and linear constraints UID: PPL-SPEC-001067 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000013 Meaning of linear constraints (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: relation_with(c) shall return the Poly_Con_Relation flags describing the whole represented set relative to the constraint: inclusion, disjointness, saturation when its affine expression vanishes throughout the set and strict intersection as defined by 🔗 1. Constraint-relation assertion values and named factories. The supplied row need not have bounded-difference syntax. A constraint within the ambient dimension shall not alter the represented set. A descriptor dimension above the receiver's shall throw std::invalid_argument. Empty and constant-row cases shall retain their set-theoretic flag combinations.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
RATIONALE: A restricted representation can still answer semantic queries about arbitrary linear halfspaces and hyperplanes.
INTERFACE: Public header: <ppl.hh>; excerpts for BD_Shape<T> and related free functions in Parma_Polyhedra_Library:
Poly_Con_Relation relation_with(const Constraint& c) const;
VERIFICATION_CRITERIA: Project arbitrary rational affine forms independently and derive every relation flag from the attained range. Include unary, difference and general correlated forms, weak/strict/equality relations, constants, empty/zero dimensions and incompatible descriptors.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapevaluesspec1.cc; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapevaluespublic1.cc; tests/BD_Shape/relations1.cc; tests/BD_Shape/relations2.cc; tests/BD_Shape/relations3.cc; tests/BD_Shape/relations4.cc.
-
13. Relations between bounded-difference values and linear congruences UID: PPL-SPEC-001068 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000014 Meaning of linear congruences (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: relation_with(cg) shall classify the represented set relative to the congruence using the declared Poly_Con_Relation semantics. Modulus zero shall mean equality. For a proper modulus, inclusion shall require every source point to satisfy the residue condition; disjointness shall mean no source point does. For a nonempty receiver, saturation shall mean that the affine image consists of one value belonging to the eligible modulus lattice; the value need not be zero. These tests shall use the real convex source set rather than treating integer bounds as integer coordinates. Arbitrary admitted affine congruence syntax shall be queryable even when it is not representable by a bounded-difference value. Descriptor dimension above the receiver's shall throw std::invalid_argument.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
RATIONALE: A query can test periodic conditions without adding their nonconvex solution set to the representation.
INTERFACE: Public header: <ppl.hh>; excerpts for BD_Shape<T> and related free functions in Parma_Polyhedra_Library:
Poly_Con_Relation relation_with(const Congruence& cg) const;
VERIFICATION_CRITERIA: Combine independent rational affine ranges with exact integer-multiple tests. Check constant satisfied/unsatisfied residues, equality modulus, ranges meeting or avoiding residue levels, continuous nonconstant ranges, empty/zero dimensions and dimension rejection.
SOURCE: src/Shape_Congruence_Queries.hh; tests/shapeconstantqueryspec1.cc; src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapevaluesspec1.cc; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapevaluespublic1.cc; tests/BD_Shape/relations1.cc; tests/BD_Shape/relations2.cc; tests/BD_Shape/relations3.cc; tests/BD_Shape/relations4.cc; tests/BD_Shape/semanticqueries1.cc; tests/shapequerycertificatespec1.cc.
-
14. Subsumption of geometric generators by bounded-difference values UID: PPL-SPEC-001069 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000015 Distinct meanings of geometric generators (Specifies)
- PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: relation_with(g) shall return Poly_Gen_Relation::subsumes() exactly when the represented set subsumes the generator under 🔗 6. Generator-relation assertion values and named factories. An ordinary point or closure point shall use its rational coordinates; closure points shall obey the same membership test because this domain is closed. A ray shall satisfy every represented homogeneous direction inequality, and a line shall satisfy each corresponding homogeneous equality. Empty shall subsume no generator. A generator dimension above the receiver's shall throw std::invalid_argument; a lower-dimensional generator shall have zero additional coordinates.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
RATIONALE: Point membership and recession directions require different homogeneous tests; closedness identifies point and closure-point membership.
INTERFACE: Public header: <ppl.hh>; excerpts for BD_Shape<T> and related free functions in Parma_Polyhedra_Library:
Poly_Gen_Relation relation_with(const Generator& g) const;
VERIFICATION_CRITERIA: Check independent rational point substitution and homogeneous ray/line evaluation against source inequalities. Include divisor signs/canonical values, relational restrictions, zero trailing coordinates, empty/zero dimensions and incompatible descriptors. Exercise pairs with two infinite bounds, either one-sided finite bound, two finite bounds and equalities, for all four generator kinds and both descriptor representations against literal substitution.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapevaluesspec1.cc; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapevaluespublic1.cc; tests/BD_Shape/relations1.cc; tests/BD_Shape/relations2.cc; tests/BD_Shape/relations3.cc; tests/BD_Shape/relations4.cc.
-
16. Constant affine values and zero frequency on bounded-difference sets UID: PPL-SPEC-001071 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: frequency(expr,fn,fd,vn,vd) shall return true exactly when the nonempty receiver assigns one unique real value to the affine expression. On true, fn/fd shall be 0/1 and vn/vd shall be that exact constant with positive canonical denominator. Nonconstant and empty cases shall return false and leave all four outputs unchanged. Constant expressions and zero-dimensional universe shall follow the same rule. An expression dimension above the receiver's shall throw std::invalid_argument. The four scalar output objects shall be pairwise distinct.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
RATIONALE: A convex real set supports a single affine value or a continuum, rather than a nonzero lattice frequency.
INTERFACE: Public header: <ppl.hh>; excerpts for BD_Shape<T> and related free functions in Parma_Polyhedra_Library:
bool frequency(const Linear_Expression& expr,Coefficient& fn,Coefficient& fd, Coefficient& vn,Coefficient& vd) const;
VERIFICATION_CRITERIA: Determine constancy by independent rational affine ranges/equality spans. Include correlated fixed differences on unbounded sets, fractional constants, free directions, empty/zero dimensions, negative/zero values, canonical outputs, unchanged sentinels and dimension rejection. Include sparse expressions with zero gaps, cancellations caused by successive substitutions, both expression representations and expressions with fewer declared dimensions than the receiver.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapevaluesspec1.cc; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapevaluespublic1.cc; tests/BD_Shape/frequency1.cc; tests/BD_Shape/sparsefrequency1.cc.
-
Incoming link from: 4. Box endpoint-distance domain, workspaces and dispatch1
1. Rectilinear distance between Box endpoint tuples UID: PPL-SPEC-001052 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000003 Conservative directed numerical bounds (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For the endpoint differences dj of 🔗 4. Box endpoint-distance domain, workspaces and dispatch, rectilinear_distance_assign shall compute the requested directed bound on
D1(X, Y) = ∑jdj.This shall be a distance of endpoint descriptions, not the minimum distance between a point of each box. Openness shall not affect it. With exact rational temporary arithmetic and an exactly representable output, the finite sum shall be returned exactly.
The source interpretation, exceptional dimensional/empty/infinite cases, false-output preservation, numerical directions, workspace choices and lifetime conditions of 🔗 4. Box endpoint-distance domain, workspaces and dispatch shall apply to every overload. With supported arithmetic and representable intermediates, a completed upward result shall be at least the exact distance and a completed downward result at most the exact distance. A numerical or resource failure shall not establish a successful directed-bound result. Both sources shall retain their values and dimensions.
RATIONALE: Endpoint descriptions give a deterministic numerical comparison of boxes; its meaning differs from geometric point-to-set separation.
INTERFACE: Public header: <ppl.hh>; PPL free functions:
template <typename To, typename ITV> bool rectilinear_distance_assign( Checked_Number<To,Extended_Number_Policy>& result, const Box<ITV>& x, const Box<ITV>& y, Rounding_Dir dir); template <typename Temp, typename To, typename ITV> bool rectilinear_distance_assign( Checked_Number<To,Extended_Number_Policy>& result, const Box<ITV>& x, const Box<ITV>& y, Rounding_Dir dir); template <typename Work, typename To, typename ITV> bool rectilinear_distance_assign( Checked_Number<To,Extended_Number_Policy>& result, const Box<ITV>& x, const Box<ITV>& y, Rounding_Dir dir, Work& tmp0, Work& tmp1, Work& tmp2);
VERIFICATION_CRITERIA: Independently flatten rational product descriptions and sum their absolute finite endpoint differences. Check exact sums, both source orders, all three overload forms, supplied scratch/result overlaps, identical owners, open/closed descriptions with equal endpoints, unbounded positions, empty and zero-dimensional conventions, mismatch sentinels and directed native output bounds.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; src/distances_defs.hh; src/distances_inlines.hh; tests/boxdistancesspec1.cc; tests/boxdistanceoracle.hh; tests/boxdistancespublic1.cc; tests/Box/intervalcontracts1.cc; tests/boxrationalmetrictemporaries1.cc.
-
Incoming link from: 4. Box endpoint-distance domain, workspaces and dispatch1
2. Euclidean distance between Box endpoint tuples UID: PPL-SPEC-001053 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000003 Conservative directed numerical bounds (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For the endpoint differences dj of 🔗 4. Box endpoint-distance domain, workspaces and dispatch, euclidean_distance_assign shall compute the requested directed bound on
D2(X, Y) = √( ∑jd2j).Each squared contribution shall preserve the requested bound on this nonnegative endpoint distance, including when conversions into a temporary format are inexact. This endpoint-tuple norm shall not be identified with the minimum set distance or general Euclidean Hausdorff distance between the represented boxes. Openness shall not affect it. A rational temporary square root shall retain the enclosure and precision conditions of 🔗 2. Finite rational square root at the selected irrational precision and 🔗 3. Selection and ownership of irrational rational precision; no universal exactness of a rational perfect-square input or universal fixed error width shall be inferred beyond those contracts.
The source interpretation, exceptional dimensional/empty/infinite cases, false-output preservation, numerical directions, workspace choices and lifetime conditions of 🔗 4. Box endpoint-distance domain, workspaces and dispatch shall apply to every overload. With supported arithmetic and representable intermediates, a completed upward result shall be at least the exact distance and a completed downward result at most the exact distance. A numerical or resource failure shall not establish a successful directed-bound result. Both sources shall retain their values and dimensions.
RATIONALE: A directed bound on a sum of squares requires bounds on nonnegative contributions; squaring a negative lower approximation does not preserve that ordering.
INTERFACE: Public header: <ppl.hh>; PPL free functions:
template <typename To, typename ITV> bool euclidean_distance_assign( Checked_Number<To,Extended_Number_Policy>& result, const Box<ITV>& x, const Box<ITV>& y, Rounding_Dir dir); template <typename Temp, typename To, typename ITV> bool euclidean_distance_assign( Checked_Number<To,Extended_Number_Policy>& result, const Box<ITV>& x, const Box<ITV>& y, Rounding_Dir dir); template <typename Work, typename To, typename ITV> bool euclidean_distance_assign( Checked_Number<To,Extended_Number_Policy>& result, const Box<ITV>& x, const Box<ITV>& y, Rounding_Dir dir, Work& tmp0, Work& tmp1, Work& tmp2);
VERIFICATION_CRITERIA: Compute the exact rational sum of squared endpoint differences independently. Check directed results by exact squaring with the appropriate sign condition; include zero, Pythagorean and irrational norms, rational precision choices, inexact temporary conversions, matching/mismatching unbounded endpoints, all overloads and result/scratch overlaps, dimension mismatch and scalar range/resource prerequisites.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; src/distances_defs.hh; src/distances_inlines.hh; tests/boxdistancesspec1.cc; tests/boxdistanceoracle.hh; tests/boxdistancespublic1.cc; tests/Box/intervalcontracts1.cc; tests/boxrationalmetrictemporaries1.cc.
-
Incoming link from: 4. Box endpoint-distance domain, workspaces and dispatch1
3. Maximum-coordinate distance between Box endpoint tuples UID: PPL-SPEC-001054 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000003 Conservative directed numerical bounds (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For the endpoint differences dj of 🔗 4. Box endpoint-distance domain, workspaces and dispatch, l_infinity_distance_assign shall compute the requested directed bound on
D∞(X, Y) = maxjdj,with value zero for an empty finite endpoint tuple. Openness shall not affect this endpoint comparison. With exact rational temporary arithmetic and an exactly representable output, the finite maximum shall be returned exactly.
The source interpretation, exceptional dimensional/empty/infinite cases, false-output preservation, numerical directions, workspace choices and lifetime conditions of 🔗 4. Box endpoint-distance domain, workspaces and dispatch shall apply to every overload. With supported arithmetic and representable intermediates, a completed upward result shall be at least the exact distance and a completed downward result at most the exact distance. A numerical or resource failure shall not establish a successful directed-bound result. Both sources shall retain their values and dimensions.
RATIONALE: The largest endpoint displacement is a separate norm from the sum and sum-of-squares comparisons and needs its own infinity and zero conventions.
INTERFACE: Public header: <ppl.hh>; PPL free functions:
template <typename To, typename ITV> bool l_infinity_distance_assign( Checked_Number<To,Extended_Number_Policy>& result, const Box<ITV>& x, const Box<ITV>& y, Rounding_Dir dir); template <typename Temp, typename To, typename ITV> bool l_infinity_distance_assign( Checked_Number<To,Extended_Number_Policy>& result, const Box<ITV>& x, const Box<ITV>& y, Rounding_Dir dir); template <typename Work, typename To, typename ITV> bool l_infinity_distance_assign( Checked_Number<To,Extended_Number_Policy>& result, const Box<ITV>& x, const Box<ITV>& y, Rounding_Dir dir, Work& tmp0, Work& tmp1, Work& tmp2);
VERIFICATION_CRITERIA: Independently compute the maximum endpoint difference. Check exact rational and directed native results, ties, zero-contribution coordinates, every coordinate as unique maximum, source symmetry, all overloads and admitted scratch/result overlaps, equal endpoints with different openness, unbounded positions and dimension/empty conventions.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; src/distances_defs.hh; src/distances_inlines.hh; tests/boxdistancesspec1.cc; tests/boxdistanceoracle.hh; tests/boxdistancespublic1.cc; tests/Box/intervalcontracts1.cc; tests/boxrationalmetrictemporaries1.cc.
-
Incoming links from: 1. Rectilinear distance between Box endpoint tuples 1. Rectilinear distance between Box endpoint tuples 2. Euclidean distance between Box endpoint tuples 2. Euclidean distance between Box endpoint tuples 3. Maximum-coordinate distance between Box endpoint tuples 3. Maximum-coordinate distance between Box endpoint tuples6
4. Box endpoint-distance domain, workspaces and dispatch UID: PPL-SPEC-001055 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For equally dimensioned nonempty ordinary-real boxes, each finite lower or upper endpoint shall occupy its corresponding position in a tuple of 2n endpoints. A position finite in both boxes shall contribute dj = |ej(X) − ej(Y)|. A matching unbounded lower position or matching unbounded upper position shall contribute zero; a position unbounded in exactly one source shall make each supported distance positive infinity. Endpoint openness shall be ignored, so boxes differing only in endpoint inclusion may have distance zero.
Two empty boxes of equal ambient dimension shall have distance zero; exactly one empty box shall have positive-infinite distance. These conventions shall apply also in dimension zero, distinguishing zero-dimensional empty from universe. Unequal ambient dimensions shall return false before modifying the result or caller-supplied scratch objects. Equal dimensions shall return true on successful numerical completion, with the assigned distance specified by 🔗 1. Rectilinear distance between Box endpoint tuples, 🔗 2. Euclidean distance between Box endpoint tuples or 🔗 3. Maximum-coordinate distance between Box endpoint tuples. A Boolean success shall not imply exactness of a rounded value.
The default overload shall allocate three Checked_Number<To,Extended_Number_Policy> workspaces. The overload with an explicit scalar temporary type Temp shall instead allocate three Checked_Number<Temp,Extended_Number_Policy> workspaces. The supplied workspace overload shall use the actual Work type of its three references, which may be an admitted raw or checked numerical type. Each scalar conversion, subtraction, accumulation, square, square root and final assignment shall satisfy its backend's representability, numerical failure, resource, shared-temporary, nontrapping and caller-owned FPU conditions. Native floating conversions or computations shall retain their configured availability and hardware prerequisites. Rational square-root precision shall remain stable throughout a dependent call.
Calls evaluating a finite endpoint difference shall use ROUND_UP or ROUND_DOWN, optionally with ROUND_STRICT_RELATION. They shall not require endpoint conversions to be exact solely to establish a directed bound. Paths assigning only the exact zero or positive-infinite exceptional value shall admit any otherwise valid direction request for that scalar assignment. Sources shall satisfy 🔗 1. Cartesian box values, coordinate identity and valid use; no NaN or included-infinity element shall be introduced into their ordinary-real carrier. An output profile shall support positive infinity whenever that outcome is reachable. Otherwise valid calls shall require no additional library initialization beyond the selected numerical/thread prerequisites.
The three supplied scratch objects shall be pairwise distinct and have storage disjoint from both source boxes. Their entry numerical values need not be initialized when the call overwrites them before reading. The result shall have live assignable storage disjoint from the source boxes; it may coincide with any one scratch object or its compatible raw storage. Result and scratch aliases shall use source values on entry. The same box may be supplied for both sources. Source factor views shall retain their read-only contract 🔗 7. Empty-aware borrowed coordinate interval access. Callers shall synchronize access, including cached emptiness updates, and preserve object/borrowed-storage lifetimes. Failures other than ordinary dimension mismatch shall retain the selected scalar policy's permitted partial output/scratch state, with no aggregate rollback guarantee.
The generic l_m_distance_assign helper shall apply these rules when instantiated with the library's rectilinear, Euclidean or maximum-coordinate specialization for that same workspace type. The sum, sum-of-squares/square-root and maximum accumulation shall use the shared numerical specializations of 🔗 17. Rectilinear distance between bound-entry arrays, 🔗 18. Euclidean distance between bound-entry arrays and 🔗 19. Maximum-coordinate distance between bound-entry arrays, respectively. The source tuple here shall consist of Box endpoints, with the Box admission and overlap conditions stated above.
RATIONALE: Source tuples, aliases and numeric setup define when a directed endpoint-distance result is meaningful; endpoint norms do not distinguish all topological differences between boxes.
INTERFACE: Public header: <ppl.hh>; PPL free functions:
template <typename Specialization, typename Work, typename To, typename ITV> bool l_m_distance_assign( Checked_Number<To,Extended_Number_Policy>& result, const Box<ITV>& x, const Box<ITV>& y, Rounding_Dir dir, Work& tmp0, Work& tmp1, Work& tmp2);
VERIFICATION_CRITERIA: Check the three named specialization dispatches against independent endpoint norms, including shared and mismatching infinite positions, classified/lazy emptiness, every zero-dimensional pair and unequal dimensions. Instantiate default, explicit scalar and raw/checked supplied workspaces; exercise result aliases to each scratch object and identical input owners. Preserve result and all scratch sentinels on dimension mismatch. Compare directed bounds under inexact conversions without imposing exact-source-conversion admission; check pure valid calls without additional Init and native availability guards.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; src/distances_defs.hh; src/distances_inlines.hh; tests/boxdistancesspec1.cc; tests/boxdistanceoracle.hh; tests/boxdistancespublic1.cc; tests/Box/intervalcontracts1.cc; tests/boxrationalmetrictemporaries1.cc.
-
3. Affine boundedness, extrema and witnesses on boxes UID: PPL-SPEC-001032 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: bounds_from_above(expr) and bounds_from_below(expr) shall decide exactly whether the affine expression's values over the receiver are bounded in the indicated direction. Empty shall be bounded in both directions. Zero coefficients shall not make an otherwise bounded objective unbounded because of unused coordinate factors.
maximize shall return true exactly when the receiver is nonempty and the objective is bounded above. On true, its numerator and positive denominator shall give the exact supremum as a reduced fraction, and maximum shall be true exactly when some receiver point attains it. minimize shall analogously report the exact infimum and attainment. A constant objective on any nonempty box shall be attained, including in zero dimensions. Ordinary false shall preserve every supplied output. Numerator and denominator outputs shall be distinct.
The generator overloads shall additionally return a point in the receiver when the extremum is attained, and a closure point in its topological closure when it is not attained. Its coordinates, including coordinates absent from the expression, shall satisfy the respective membership condition, and its objective value shall equal the reported extremum. Omitted generator coordinates shall have their declared zero-extension meaning. A witness shall not be accepted merely because it gives the correct objective value.
An expression's ambient dimension greater than the box dimension shall throw std::invalid_argument before changing outputs, including for an empty receiver or a constant expression with excess declared dimension. The represented box, its dimension and the supplied expression shall retain their values. The profile, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Expressions and generators shall retain their descriptor prerequisites; creating output generators and reporting dimension errors shall retain the context of 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. Numerical intermediate and output representability shall follow the selected coefficient profile. Reported allocation or numerical exceptions may leave outputs partly assigned; ordinary false-result preservation shall not imply exception rollback.
RATIONALE: An exact extremum, its attainment and a valid extremizing witness are separate mathematical obligations.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
bool bounds_from_above(const Linear_Expression& expr) const; bool bounds_from_below(const Linear_Expression& expr) const; bool maximize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& maximum) const; bool maximize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& maximum, Generator& g) const; bool minimize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& minimum) const; bool minimize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& minimum, Generator& g) const;
VERIFICATION_CRITERIA: Project an independently constrained objective coordinate using exact rational elimination. Cover all coefficient signs, strict and closed boundaries, fractional endpoints, unused bounded and unbounded coordinates, constant objectives, empty and zero-dimensional boxes and lazy emptiness. Check reduced fractions, attainment, every coordinate of point/closure-point witnesses and exact objective evaluation. Verify all false-result sentinels, dimension errors before output replacement and selected numerical/resource failure outcomes.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxqueriesspec1.cc; tests/boxqueryoracle.hh; tests/boxqueriespublic1.cc. tests/Box/max_min1.cc; tests/Box/interval1.cc;
-
4. Detection of constant affine values and zero frequency UID: PPL-SPEC-001033 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: frequency(expr,fn,fd,vn,vd) shall return true exactly when the receiver is nonempty and the expression has one value throughout it. On true, fn and fd shall be zero and one, respectively, while vn/vd shall be that exact value as a reduced fraction with positive denominator. A coordinate with zero expression coefficient shall not prevent constancy even when its factor varies or is unbounded. For boxes this success shall express a unique value, not a nonzero periodic frequency. Empty shall return false. Zero-dimensional universe shall return the expression's constant term with zero frequency.
Ordinary false shall preserve all four supplied output values. Those outputs shall be distinct. Greater expression ambient dimension shall throw std::invalid_argument before output replacement, including when the receiver is empty. The expression and the represented box and its ambient dimension shall retain their values.
The profile, numerical, lifetime and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Expression descriptors and dimension error reporting shall retain their initialized-context prerequisites. Coefficient intermediate and output representability and reported range failures shall follow the configured coefficient profile. Allocation or numerical exceptions may leave output values partly assigned; ordinary false-result preservation shall not imply exception rollback.
RATIONALE: A Cartesian product has a discrete affine image only when the expression is constant on its nonempty factors.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
bool frequency(const Linear_Expression& expr, Coefficient& fn, Coefficient& fd, Coefficient& vn, Coefficient& vd) const;
VERIFICATION_CRITERIA: Use an independent exact objective projection to distinguish singleton ranges from varying and unbounded ranges. Include multiple rational singleton coordinates, negative coefficients, offsets, ignored free coordinates, open intervals, empty/lazy states, zero-dimensional values, source preservation, four unchanged false-result sentinels and excess expression dimension. Check the exact 0/1 frequency and canonical value, plus selected checked arithmetic failures.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxqueriesspec1.cc; tests/boxqueryoracle.hh; tests/boxqueriespublic1.cc. tests/Box/frequency1.cc;
-
1. Box relations with linear constraints UID: PPL-SPEC-000973 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For a dimension-compatible constraint with affine expression e(x) and relation e(x) ⋈ 0, relation_with(c) shall report exactly the applicable assertions: is_disjoint() when no represented point satisfies the constraint; is_included() when every represented point satisfies it; strictly_intersects() when some but not all represented points satisfy it; and saturates() when every represented point has e(x) = 0. Saturation shall be independent of whether the inequality is strict.
An empty box shall therefore report disjoint, included and saturating, without strict intersection. A nonempty box lying on an excluded strict boundary shall report disjoint and saturating. The zero-dimensional universe shall use its unique empty tuple, and omitted coefficients shall be zero. A constraint of greater ambient dimension shall throw std::invalid_argument without changing the represented box.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
RATIONALE: Logical relation assertions distinguish exclusion, implication, partial intersection and boundary equality, including vacuous truths on the empty set.
INTERFACE: Public header: <ppl.hh>; member excerpt for Box<ITV> in Parma_Polyhedra_Library:
Poly_Con_Relation relation_with(const Constraint& c) const;
VERIFICATION_CRITERIA: Compare the full assertion set with independently derived exact rational affine ranges, signs and endpoint attainment. Include constants, equality and both inequalities, one and several nonzero coefficients, open bounds, unbounded coordinates, zero dimensions, lazy emptiness, dimension mismatch and unchanged mathematical inputs.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxsetoperationsspec1.cc; tests/boxsetoracle.hh; tests/boxpublic1.cc; tests/Box/relations1.cc; tests/Box/relations2.cc; tests/Box/relations3.cc.
-
2. Box relations with linear congruences UID: PPL-SPEC-000974 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For a dimension-compatible congruence with affine expression e(x) and modulus m, relation_with(cg) shall interpret m = 0 as the equality e(x) = 0, and positive m as membership of e(x) in mℤ. It shall report disjointness, inclusion or strict intersection by the corresponding quantified assertions over the represented box. On a nonempty box, saturates() shall hold when its affine image is a single value satisfying the congruence. An empty box shall report disjoint, included and saturating. The unique zero-dimensional point shall be tested against the constant congruence.
Excluded finite endpoints shall not establish a congruence witness. The first eligible lattice value and all affine-range intermediates shall not be restricted to the configured coefficient range. A congruence whose ambient dimension exceeds the box dimension shall throw std::invalid_argument without changing the represented box.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
RATIONALE: Congruence relations require actual lattice intersections with the affine range; a rounded bound or an excluded lattice endpoint is insufficient.
INTERFACE: Public header: <ppl.hh>; member excerpt for Box<ITV> in Parma_Polyhedra_Library:
Poly_Con_Relation relation_with(const Congruence& cg) const;
VERIFICATION_CRITERIA: Use independent integer divisibility and rational affine-image bounds. Check positive moduli, equality congruences, both coefficient signs, constants, open and closed endpoints at lattice values, fractional bounds, unbounded ranges, singleton images, coefficient endpoints, lazy/marked emptiness, zero dimensions and mismatches.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxsetoperationsspec1.cc; tests/boxsetoracle.hh; tests/boxpublic1.cc; tests/Box/relations1.cc; tests/Box/relations4.cc.
-
3. Box subsumption of geometric generators UID: PPL-SPEC-000975 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For a dimension-compatible geometric generator, relation_with(g) shall return Poly_Gen_Relation::subsumes() exactly when the generator is subsumed, and nothing() otherwise. A point shall be subsumed exactly when its rational coordinates belong to the box. A closure point shall use membership in the topological closure of a nonempty box. Coordinates omitted from the generator shall be zero, including all trailing box coordinates.
A ray shall be subsumed exactly when translating any box point by every nonnegative multiple of its direction remains in the box; a line shall use every real multiple. Zero direction components shall impose no condition; a positive or negative ray component shall require the corresponding upper or lower absence of a finite bound, and a nonzero line component shall require an unconstrained factor. An empty box shall subsume no generator. The zero-dimensional universe shall subsume every admitted zero-dimensional generator. A generator with greater dimension shall throw std::invalid_argument without changing the represented box.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
RATIONALE: Points, closure points and recession directions express different geometric obligations and must retain their distinct boundary semantics.
INTERFACE: Public header: <ppl.hh>; member excerpt for Box<ITV> in Parma_Polyhedra_Library:
Poly_Gen_Relation relation_with(const Generator& g) const;
VERIFICATION_CRITERIA: Check exact rational point coordinates, divisors, omitted zero coordinates, open/closed finite bounds and closure points on excluded boundaries. Exercise both ray signs, lines, mixed zero/nonzero directions, unbounded coordinates, empty and zero-dimensional boxes, dimension errors and donor preservation.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxsetoperationsspec1.cc; tests/boxsetoracle.hh; tests/boxpublic1.cc; tests/Box/relations1.cc; tests/Box/relations2.cc; tests/Box/relations3.cc.
-
6. Conditional exact union of boxes UID: PPL-SPEC-000978 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000416 Box intersection and least upper bounds (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For same-profile boxes of equal dimension, upper_bound_assign_if_exact(y) shall return true exactly when their set-theoretic entry union is representable as a box of that profile. On true it shall replace the receiver by that union. On false the receiver's represented value shall remain unchanged; a partial coordinate hull shall not escape as a failed result. A distinct donor shall remain unchanged in either case.
Exactness shall account for gaps and excluded touching endpoints within a factor, and for incompatible alternatives in different coordinates. Mere intersection or exactness of every separate coordinate hull shall not establish exactness of the Cartesian union. Empty, equal, contained, zero-dimensional and self-aliased operands shall use their set meanings. Dimension mismatch shall throw std::invalid_argument before replacement.
The valid-profile, entry-state, numerical, lifetime, initialization and synchronization prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Mathematical observations may refresh internal caches without changing a represented set. Allocation and endpoint-operation exceptions shall retain their delegated guarantees; no general rollback guarantee shall be inferred.
RATIONALE: An exact-union query must distinguish a true disjunction from the potentially larger product of its coordinate hulls.
INTERFACE: Public header: <ppl.hh>; member excerpt for Box<ITV> in Parma_Polyhedra_Library:
bool upper_bound_assign_if_exact(const Box& y);
VERIFICATION_CRITERIA: Independently decide union equality with the Cartesian hull, including one-axis changes, opposite containment directions across axes, separated and touching factors with all openness choices, contained/empty/equal/zero-dimensional states, every rejection position, false-result preservation and self histories.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxsetoperationsspec1.cc; tests/boxsetoracle.hh; tests/boxpublic1.cc; tests/Box/upperboundifexact1.cc.
-
Incoming link from: 6. Admitted generator-distance evaluation kernel1
1. Rectilinear distance between generator points UID: PPL-SPEC-001579 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000015 Distinct meanings of geometric generators (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For admitted generators with rational coordinates as specified by 🔗 4. Generator-distance admission, workspaces and dispatch, rectilinear_distance_assign shall assign the requested directed bound on
D1(x, y) = n − 1∑i = 0|xi − yi|.With exact rational temporary arithmetic and an exactly representable output, the sum shall be returned exactly.
The admission, direction, workspace, alias, lifetime and failure conditions of 🔗 4. Generator-distance admission, workspaces and dispatch shall apply. Successful completion shall return true; rejection shall return false with the stated preservation. An upward result shall be at least the exact norm and a downward result shall be nonnegative and at most the exact norm, under the numerical prerequisites. Both source generators shall retain their values, kinds, representations and dimensions.
RATIONALE: A rational point descriptor supplies geometric coordinates independently of its normalized integer coefficients and divisor; the chosen norm determines the meaning of their distance.
INTERFACE: Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.
template <typename To> bool rectilinear_distance_assign( Checked_Number<To, Extended_Number_Policy>& result, const Generator& x, const Generator& y, Rounding_Dir dir); template <typename Temp, typename To> bool rectilinear_distance_assign( Checked_Number<To, Extended_Number_Policy>& result, const Generator& x, const Generator& y, Rounding_Dir dir); template <typename Work, typename To> bool rectilinear_distance_assign( Checked_Number<To, Extended_Number_Policy>& result, const Generator& x, const Generator& y, Rounding_Dir dir, Work& tmp0, Work& tmp1, Work& tmp2);
VERIFICATION_CRITERIA: Compute independent exact rational coordinate differences and their absolute sum; check both source orders, identical coordinates with different point kinds, negative coordinates, zero dimensions and all overload/workspace choices.
SOURCE: src/Generator_defs.hh; src/Generator_inlines.hh; src/Generator.cc; src/distances_defs.hh; src/distances_inlines.hh; tests/generatorspec1.cc; tests/generatorpublic1.cc; tests/generatormetricsspec1.cc.
-
Incoming link from: 6. Admitted generator-distance evaluation kernel1
2. Euclidean distance between generator points UID: PPL-SPEC-001580 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000015 Distinct meanings of geometric generators (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For admitted generators with rational coordinates as specified by 🔗 4. Generator-distance admission, workspaces and dispatch, euclidean_distance_assign shall assign the requested directed bound on
D2(x, y) = √(n − 1∑i = 0(xi − yi)2).Every squared contribution shall preserve the directed bound even when a coordinate difference is inexact in the workspace type. Rational square roots shall retain the precision and enclosure conditions of 🔗 2. Finite rational square root at the selected irrational precision and 🔗 3. Selection and ownership of irrational rational precision; no universal exactness or fixed error width shall be inferred beyond those contracts.
The admission, direction, workspace, alias, lifetime and failure conditions of 🔗 4. Generator-distance admission, workspaces and dispatch shall apply. Successful completion shall return true; rejection shall return false with the stated preservation. An upward result shall be at least the exact norm and a downward result shall be nonnegative and at most the exact norm, under the numerical prerequisites. Both source generators shall retain their values, kinds, representations and dimensions.
RATIONALE: A rational point descriptor supplies geometric coordinates independently of its normalized integer coefficients and divisor; the chosen norm determines the meaning of their distance.
INTERFACE: Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.
template <typename To> bool euclidean_distance_assign( Checked_Number<To, Extended_Number_Policy>& result, const Generator& x, const Generator& y, Rounding_Dir dir); template <typename Temp, typename To> bool euclidean_distance_assign( Checked_Number<To, Extended_Number_Policy>& result, const Generator& x, const Generator& y, Rounding_Dir dir); template <typename Work, typename To> bool euclidean_distance_assign( Checked_Number<To, Extended_Number_Policy>& result, const Generator& x, const Generator& y, Rounding_Dir dir, Work& tmp0, Work& tmp1, Work& tmp2);
VERIFICATION_CRITERIA: Compare nonnegative results by exact squared inequalities, without using a floating square root as the oracle. Include a 3-4-5 displacement, irrational norms, close rational coordinates rounded into native workspaces and both directions through every overload.
SOURCE: src/Generator_defs.hh; src/Generator_inlines.hh; src/Generator.cc; src/distances_defs.hh; src/distances_inlines.hh; tests/generatorspec1.cc; tests/generatorpublic1.cc; tests/generatormetricsspec1.cc.
-
Incoming link from: 6. Admitted generator-distance evaluation kernel1
3. Maximum-coordinate distance between generator points UID: PPL-SPEC-001581 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000015 Distinct meanings of geometric generators (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For admitted generators with rational coordinates as specified by 🔗 4. Generator-distance admission, workspaces and dispatch, l_infinity_distance_assign shall assign the requested directed bound on
D∞(x, y) = max0 ≤ i < n|xi − yi|.The maximum over the empty coordinate tuple shall be zero. With exact rational temporary arithmetic and an exactly representable output, the maximum shall be returned exactly.
The admission, direction, workspace, alias, lifetime and failure conditions of 🔗 4. Generator-distance admission, workspaces and dispatch shall apply. Successful completion shall return true; rejection shall return false with the stated preservation. An upward result shall be at least the exact norm and a downward result shall be nonnegative and at most the exact norm, under the numerical prerequisites. Both source generators shall retain their values, kinds, representations and dimensions.
RATIONALE: A rational point descriptor supplies geometric coordinates independently of its normalized integer coefficients and divisor; the chosen norm determines the meaning of their distance.
INTERFACE: Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.
template <typename To> bool l_infinity_distance_assign( Checked_Number<To, Extended_Number_Policy>& result, const Generator& x, const Generator& y, Rounding_Dir dir); template <typename Temp, typename To> bool l_infinity_distance_assign( Checked_Number<To, Extended_Number_Policy>& result, const Generator& x, const Generator& y, Rounding_Dir dir); template <typename Work, typename To> bool l_infinity_distance_assign( Checked_Number<To, Extended_Number_Policy>& result, const Generator& x, const Generator& y, Rounding_Dir dir, Work& tmp0, Work& tmp1, Work& tmp2);
VERIFICATION_CRITERIA: Compute the exact maximum of absolute rational coordinate differences. Check ties, each coordinate as the unique maximum, zero contributions, both source orders, empty tuples and rounded native workspaces through every overload.
SOURCE: src/Generator_defs.hh; src/Generator_inlines.hh; src/Generator.cc; src/distances_defs.hh; src/distances_inlines.hh; tests/generatorspec1.cc; tests/generatorpublic1.cc; tests/generatormetricsspec1.cc.
-
Incoming links from: 1. Rectilinear distance between generator points 1. Rectilinear distance between generator points 2. Euclidean distance between generator points 2. Euclidean distance between generator points 3. Maximum-coordinate distance between generator points 3. Maximum-coordinate distance between generator points 6. Admitted generator-distance evaluation kernel 6. Admitted generator-distance evaluation kernel8
4. Generator-distance admission, workspaces and dispatch UID: PPL-SPEC-001582 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000015 Distinct meanings of geometric generators (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: Distances shall be admitted exactly when both generators are points or closure points and have the same ambient dimension. A line, a ray or a dimension mismatch shall return false before assigning the output or any supplied scratch object. Equal-dimensional point/closure-point pairs shall return true on successful numerical completion. A zero-dimensional pair shall assign exact zero. A closure point shall contribute its rational coordinates without asserting inclusion in any polyhedron. For each source, xi = ai ⁄ d shall use its own positive divisor. Neither coefficient vectors alone nor homogeneous-coordinate distances shall replace these coordinates. Boolean success shall not imply exactness of a rounded result.
The default overload shall use three Checked_Number<To,Extended_Number_Policy> workspaces. An explicit scalar temporary type Temp shall use three Checked_Number<Temp,Extended_Number_Policy> workspaces. Supplied references shall use their actual admitted raw or checked numerical type Work. Their accumulation shall use 🔗 17. Rectilinear distance between bound-entry arrays, 🔗 18. Euclidean distance between bound-entry arrays or 🔗 19. Maximum-coordinate distance between bound-entry arrays, respectively. The generic helper instantiated with the corresponding specialization shall use the same admission, coordinate and numerical rules.
Source validity and coefficient conditions of 🔗 1. Generator kinds and numerical prerequisites shall apply. Each scalar conversion, subtraction, accumulation, square, square root and final assignment shall satisfy its backend's representability, failure, resource, shared-temporary, nontrapping and FPU prerequisites. Native floating types shall retain their configured availability and hardware conditions. Rational square-root precision shall remain stable throughout a dependent call. Calls evaluating coordinate differences shall use ROUND_UP or ROUND_DOWN, optionally with ROUND_STRICT_RELATION. Inexact coordinate conversion shall not by itself invalidate a directed bound. The zero-dimensional exact assignment shall admit any otherwise valid direction for that scalar assignment.
Supplied scratch objects shall be pairwise distinct and disjoint from both source generators. Their entry values need not be initialized where they are overwritten before reading. The output shall have live assignable storage disjoint from the sources; it may coincide with any one scratch object or its compatible raw storage. The same generator may be passed as both sources. Callers shall preserve object and borrowed-storage lifetimes and provide synchronization required by the selected numerical profile. Numerical or allocation failures may propagate through their declared channels, shall not establish a successful directed bound, and may leave partial output/scratch values according to the selected scalar policies; no aggregate rollback guarantee shall be inferred.
RATIONALE: Explicit admission and workspace rules distinguish a geometric distance from a coefficient-vector calculation and make directed bounds meaningful under rounding and permitted output aliases.
INTERFACE: Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.
template <typename Specialization, typename Work, typename To> bool l_m_distance_assign( Checked_Number<To, Extended_Number_Policy>& result, const Generator& x, const Generator& y, Rounding_Dir dir, Work& tmp0, Work& tmp1, Work& tmp2);
VERIFICATION_CRITERIA: Check all rejected kind pairs and both dimension-mismatch orders with output and scratch sentinels. Exercise both point kinds, zero dimensions, default and explicit raw/checked workspaces, each output/scratch alias and identical sources. Use independent rational norms and squared comparisons under inexact conversions; verify source preservation and caller-owned rounding state.
SOURCE: src/Generator_defs.hh; src/Generator_inlines.hh; src/Generator.cc; src/distances_defs.hh; src/distances_inlines.hh; tests/generatorspec1.cc; tests/generatorpublic1.cc; tests/generatormetricsspec1.cc.
-
6. Admitted generator-distance evaluation kernel UID: PPL-SPEC-001653 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): - PPL-LLR-000015 Distinct meanings of geometric generators (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: l_m_distance_assign_impl shall evaluate a valid point or closure-point pair of equal strictly positive dimension. Callers shall meet the source, workspace, output-alias, rounding, initialization, synchronization and backend conditions of 🔗 4. Generator-distance admission, workspaces and dispatch before entering this kernel; it shall not perform the public admission checks.
With Skip_Common_Zero_Runs equal to false, the kernel shall process every coordinate in decreasing index order, using each source's own positive divisor. It shall initialize tmp0 to zero, form the directed nonnegative coordinate differences, call Specialization::combine once for each coordinate, call Specialization::finalize once after accumulation, and assign the result from tmp0. The applicable numerical obligations of 🔗 1. Rectilinear distance between generator points, 🔗 2. Euclidean distance between generator points or 🔗 3. Maximum-coordinate distance between generator points shall apply for their corresponding standard specialization.
With Skip_Common_Zero_Runs equal to true, both sources shall have sparse representation and Specialization shall be the standard rectilinear, Euclidean or infinity-distance specialization for Work. The kernel may replace a maximal run of coordinates zero in both sources by one ordinary zero-coordinate step. Successful completion shall preserve the full traversal's result, final scratch values, directed rounding and floating-point zero signs and status effects. Contributions at nonzero coordinates shall retain their decreasing-index order. The skipping path shall not allocate coefficient vectors or polymorphic expression iterators.
Successful numerical completion shall return true. Numerical or allocation failures shall retain the failure channels and partial-state conditions of 🔗 4. Generator-distance admission, workspaces and dispatch. The public dispatcher shall retain ordinary traversal for other specialization types; callbacks of those types shall not lose coordinate invocations.
RATIONALE: Zero contributions do not change the three standard norms. Retaining one zero step per run preserves idempotent signed-zero and scratch effects, while ordering all nonzero contributions preserves directed accumulation. The same assumption is unavailable for arbitrary specialization callbacks.
INTERFACE: Internal function template in namespace Parma_Polyhedra_Library; src/Generator_inlines.hh and public header <ppl.hh>.
template <bool Skip_Common_Zero_Runs, typename Specialization, typename Work, typename To> bool l_m_distance_assign_impl( Checked_Number<To, Extended_Number_Policy>& result, const Generator& x, const Generator& y, Rounding_Dir dir, Work& tmp0, Work& tmp1, Work& tmp2);
VERIFICATION_CRITERIA: Compare sparse evaluations with dense full traversal and independent exact rational norms or squared Euclidean bounds. Check zero runs before, between and after nonzero coordinates, one-dimensional zeros, equal inexact rational coordinates, overlapping/disjoint supports, density and dimension boundaries, asymmetric supports, both directed and strict directions, raw/checked workspaces and each output alias. Compare final scratch values, floating-point bits and status, rounding state and unchanged sources. Count invocations for a custom specialization and inspect the skipping path's allocation behavior.
SOURCE: src/Generator_inlines.hh; tests/generatorspec1.cc; tests/generatormetricsspec1.cc; tests/generatorsparsedistances1.cc.
-
Incoming link from: 2. Equality-compatible grid hashing1
1. Exact grid equality and inequality UID: PPL-SPEC-001251 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: operator== shall return true exactly when both ambient dimensions and represented sets agree. Different dimensions shall compare unequal, including empty grids in different dimensions. Inequality expressions shall be the logical negation of equality. Equal-dimensional empty grids shall compare equal, including when inconsistency has not previously been detected. Self comparison shall have the ordinary reflexive result for every admitted value.
The result shall be independent of constructor choice, generator order, redundant descriptors and the current dual-description caches.
The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
RATIONALE: Set equality includes periodicity and the ambient coordinate space; matching affine hulls or matching syntactic rows alone do not establish equality.
INTERFACE: Public header: <ppl.hh>; Grid member or related free-function excerpts in Parma_Polyhedra_Library:
bool operator==(const Grid& left, const Grid& right); // Inequality uses C++20 rewriting of operator==.
VERIFICATION_CRITERIA: Check Boolean inequality expressions in both operand orders through C++20 equality rewriting, retaining the stated equality and mismatch behavior. Compare independent rational cosets, continuous subspaces, singletons, empty/universe and incompatible dimensions. Use literal generator/congruence models and alternate construction, normalization and reload histories. Include unequal lattices with identical affine hulls and equal values with redundant generators.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid, generator and double-description definitions (PDF page indices 6–8, zero-based).
SOURCE: src/Grid_public.cc; src/Grid_inlines.hh; src/Grid_nonpublic.cc; tests/gridrelationsspec1.cc; tests/gridrelationspublic1.cc; tests/gridrelationsfailure1.cc.
-
2. Equality-compatible grid hashing UID: PPL-SPEC-001252 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
STATEMENT: hash_code() shall return a value of type int32_t. Equal grid values under 🔗 1. Exact grid equality and inequality shall have equal hashes. Normalization, query history and equivalent descriptions shall not change the hash of an unchanged grid. Hash collisions shall be permitted, including between unequal values of the same dimension. The numerical hash shall not be a persistent identifier or promise a value stable across library versions or configurations.
The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
RATIONALE: Hash compatibility permits associative storage without implying that a coarse hash distinguishes different sets.
INTERFACE: Public header: <ppl.hh>; Grid member or related free-function excerpts in Parma_Polyhedra_Library:
int32_t hash_code() const;
VERIFICATION_CRITERIA: Check exact equal-value descriptions before and after each cache transition, copy, assignment and self comparison. Verify the public return type and do not infer inequality from equal hashes.
SOURCE: src/Grid_inlines.hh; tests/gridrelationsspec1.cc; tests/gridrelationspublic1.cc.
-
3. Exact grid containment UID: PPL-SPEC-001253 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For equal-dimensional grids, left.contains(right) shall return true exactly when γ(right) ⊆ γ(left). Every grid shall contain the empty grid; empty shall contain no nonempty grid; universe shall contain every equal-dimensional grid. Self containment shall hold. Different ambient dimensions shall throw std::invalid_argument before empty, universe or identity shortcuts. Previously undetected inconsistency shall retain the same set meaning.
The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
RATIONALE: Containment must respect integer parameter steps and rational offsets, not only affine spans or the presence of individual points.
INTERFACE: Public header: <ppl.hh>; Grid member or related free-function excerpts in Parma_Polyhedra_Library:
bool contains(const Grid& other) const;
VERIFICATION_CRITERIA: Use exact rational one-dimensional coset divisibility and invertible coupled-coordinate products. Cross all pairs of empty, singleton, periodic and continuous factors; vary representations and query order. Check reflexivity, containment of empty and dimension rejection.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid, generator and double-description definitions (PDF page indices 6–8, zero-based).
SOURCE: src/Grid_public.cc; src/Grid_nonpublic.cc; tests/gridrelationsspec1.cc; tests/gridrelationspublic1.cc; tests/gridrelationsfailure1.cc.
-
4. Exact strict grid containment UID: PPL-SPEC-001254 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For equal-dimensional grids, left.strictly_contains(right) shall return true exactly when γ(right) ⊊ γ(left). It shall be false for self comparison and equal sets; a nonempty grid shall strictly contain empty. Different ambient dimensions shall throw std::invalid_argument even when either operand is empty.
The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
RATIONALE: Strict containment combines inclusion with semantic inequality; changes only to representation cannot make containment strict.
INTERFACE: Public header: <ppl.hh>; Grid member or related free-function excerpts in Parma_Polyhedra_Library:
bool strictly_contains(const Grid& other) const;
VERIFICATION_CRITERIA: Use the same independent coset/product inclusion oracle as containment. Check strict chains of periods, fractional shifts, equal alternate representations, self comparison, empty and incompatible dimensions.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid, generator and double-description definitions (PDF page indices 6–8, zero-based).
SOURCE: src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/gridrelationsspec1.cc; tests/gridrelationspublic1.cc; tests/gridrelationsfailure1.cc.
-
5. Exact grid disjointness UID: PPL-SPEC-001255 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For equal-dimensional grids, left.is_disjoint_from(right) shall return true exactly when γ(left)∩γ(right) = ⌀. The result shall be symmetric. Empty shall be disjoint from every grid, including itself; no nonempty grid shall be disjoint from itself. Different ambient dimensions shall throw std::invalid_argument before shortcuts. Success shall preserve both operands even when detecting inconsistent input or incompatible periodic residues.
The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
RATIONALE: Intersecting affine hulls do not establish that periodic grids share a point. Rational residue compatibility determines lattice intersection.
INTERFACE: Public header: <ppl.hh>; Grid member or related free-function excerpts in Parma_Polyhedra_Library:
bool is_disjoint_from(const Grid& other) const;
VERIFICATION_CRITERIA: Use independent rational greatest-common-divisor conditions for cosets, then combine independent coordinates through invertible rational maps. Include fractional periods, incompatible shifts, singleton membership, continuous factors, zero dimensions, symmetry and argument rejection.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid, generator and double-description definitions (PDF page indices 6–8, zero-based).
SOURCE: src/Grid_public.cc; src/Grid_nonpublic.cc; tests/gridrelationsspec1.cc; tests/gridrelationspublic1.cc; tests/gridrelationsfailure1.cc.
-
Incoming link from: 7. Exact grid relation with a linear constraint1
6. Exact grid relation with a congruence UID: PPL-SPEC-001256 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: relation_with(cg) shall classify the grid relative to the solution set of cg. For nonempty grids it shall report exactly one of is_included(), is_disjoint() and strictly_intersects(): respectively all points satisfy cg, no point does, or both satisfying and nonsatisfying points exist. Empty shall report is_included() && is_disjoint() && saturates(). An equality congruence shall additionally report saturates() exactly when the grid is included in its equality hyperplane. For a nonempty positive-dimensional grid and a proper congruence, the returned relation shall consist of the inclusion/disjointness/intersection assertion alone. Zero-dimensional universe shall report is_included() && saturates() for a true constant congruence and is_disjoint() for a false one.
For a nonempty generator description, let S = {a⋅x − b : x ∈ γ(G)}. If a real line has nonzero scalar image, S = R. Otherwise S = s + dZ, where s = a⋅p − b and d ≥ 0 generates the rational subgroup of parameter images and supporting-point differences. This scalar image shall determine equality and periodic intersection without depending on generator order or rational divisor representation.
A congruence dimension greater than the grid dimension shall throw std::invalid_argument before distinguished-value shortcuts. Smaller descriptors shall have zero coefficients in the remaining coordinates.
Scalar products, rational point differences and modulus/divisor products used solely for relation classification shall be exact even when their intermediates exceed the configured coefficient range. The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply; cached descriptor conversion and normalization remain subject to the configured arithmetic profile. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
RATIONALE: Exact relation queries require rational residue arithmetic, including point offsets, integer combinations of all parameter images and arbitrary real line images. Saturation and periodic inclusion have distinct API assertion conventions.
INTERFACE: Public header: <ppl.hh>; Grid member or related free-function excerpts in Parma_Polyhedra_Library:
Poly_Con_Relation relation_with(const Congruence& cg) const;
VERIFICATION_CRITERIA: Use the independent integer-scaled scalar-image gcd oracle and all point/parameter/line permutations in the existing relation tests. Include fractional divisors, extra supporting points, proper/equality constants, undetected emptiness, alternate caches, zero dimensions and rejection.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid, generator and double-description definitions (PDF page indices 6–8, zero-based).
SOURCE: src/Grid_public.cc; tests/Grid/relations2.cc; tests/gridrelationsspec1.cc; tests/gridrelationspublic1.cc; tests/gridrelationsfailure1.cc.
-
7. Exact grid relation with a linear constraint UID: PPL-SPEC-001257 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: relation_with(c) shall classify all points, no points or a proper nonempty subset of grid points satisfying c using is_included(), is_disjoint() or strictly_intersects(). Empty shall report is_included() && is_disjoint() && saturates(). In every case, saturates() shall be present exactly when every grid point lies on the equality hyperplane obtained from c by replacing its relation with equality. Thus a grid on the boundary of a strict inequality shall report is_disjoint() && saturates().
For nonempty grids, a nonconstant scalar image along any line, parameter or supporting-point displacement shall take values on both sides of every finite halfspace threshold. Otherwise the scalar image shall be constant and its sign shall determine strict/nonstrict satisfaction and saturation. Equality constraints shall use the exact equality-congruence meaning in 🔗 6. Exact grid relation with a congruence.
A constraint dimension greater than the grid dimension shall throw std::invalid_argument before shortcuts; omitted coefficients shall be zero. Strict boundary behavior shall apply also to constant constraints and zero dimensions.
Strict constraints extracted from NNC polyhedra shall retain their mathematical relation when queried against a larger-dimensional grid.
Scalar products, rational point differences and modulus/divisor products used solely for relation classification shall be exact even when their intermediates exceed the configured coefficient range. The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply; cached descriptor conversion and normalization remain subject to the configured arithmetic profile. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
RATIONALE: Integer displacements still extend in both signs, so a nonconstant linear form on a grid cannot have a one-sided finite extremum. Saturation concerns the boundary hyperplane independently of inequality satisfaction.
INTERFACE: Public header: <ppl.hh>; Grid member or related free-function excerpts in Parma_Polyhedra_Library:
Poly_Con_Relation relation_with(const Constraint& c) const;
VERIFICATION_CRITERIA: Exercise literal affine annihilators, unbounded parameter/line images, rational supporting points and boundary equalities. Reuse independent strict-boundary and scalar-sign controls, with generator permutations, cache histories, constants, latent empty values and dimension errors.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid, generator and double-description definitions (PDF page indices 6–8, zero-based).
SOURCE: src/Grid_public.cc; tests/Grid/relations3.cc; tests/Grid/relations1.cc; tests/gridrelationsspec1.cc; tests/gridrelationspublic1.cc; tests/gridrelationsfailure1.cc.
-
8. Exact grid subsumption of grid generators UID: PPL-SPEC-001258 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: relation_with(g) for a Grid_Generator shall return Poly_Gen_Relation::subsumes() exactly under the following conditions:
- a point denotes a member of the grid;
- for a parameter q, the grid is nonempty and every integer translate x + zq, for x ∈ γ(G) and z ∈ Z, remains in the grid;
- for a line ℓ, the grid is nonempty and every real translate x + tℓ, for t ∈ R, remains in the grid.
In all other cases it shall return Poly_Gen_Relation::nothing(). In particular, empty shall subsume no generator, including a zero parameter; this shall hold before any earlier query has detected the emptiness. Parameter steps shall use their rational divisors and shall not be confused with arbitrary real line displacements. Zero-dimensional universe shall subsume every admitted zero-dimensional grid generator. A descriptor dimension greater than the grid dimension shall throw std::invalid_argument before empty/universe shortcuts; omitted coordinates shall be zero.
The scalar-product and modulus-times-divisor calculations used solely for satisfaction tests shall be exact without a configured-coefficient range prerequisite. The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply; cached conversion and normalization intermediates remain subject to the configured arithmetic profile. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
RATIONALE: Satisfying homogeneous direction equations alone does not establish that the source grid contains a supporting point. Nonempty rational lattices can admit an integer step while rejecting its real line.
INTERFACE: Public header: <ppl.hh>; Grid member or related free-function excerpts in Parma_Polyhedra_Library:
Poly_Gen_Relation relation_with(const Grid_Generator& g) const;
VERIFICATION_CRITERIA: Use literal congruence membership for points and independent homogeneous conditions for integer parameters and real lines. Include cold inconsistent systems, nonzero directions in otherwise free coordinates, zero parameters, fractional lattice steps, affine obstructions, cache histories and dimensions.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid, generator and double-description definitions (PDF page indices 6–8, zero-based).
SOURCE: src/Grid_public.cc; src/Congruence_System.cc; tests/Grid/congruences2.cc; tests/Grid/relations1.cc; tests/gridrelationsspec1.cc; tests/gridrelationspublic1.cc; tests/gridrelationsfailure1.cc.
-
9. Exact grid subsumption of polyhedral generators UID: PPL-SPEC-001259 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: relation_with(g) for a polyhedral Generator shall return Poly_Gen_Relation::subsumes() exactly when the grid is nonempty and the following corresponding condition holds. Points and closure points shall be tested as rational point members, with the same result for identical coordinates. Lines shall be tested as arbitrary real displacements. A ray shall be subsumed exactly when its direction is an admitted real line direction of the grid; an integer parameter in that direction alone shall not suffice.
It shall return Poly_Gen_Relation::nothing() otherwise, including every empty grid before or after inconsistency detection. Zero-dimensional universe shall subsume every admitted zero-dimensional polyhedral generator. Descriptors of greater dimension than the grid shall throw std::invalid_argument before shortcuts; omitted coordinates shall be zero.
The scalar-product and modulus-times-divisor calculations used solely for satisfaction tests shall be exact without a configured-coefficient range prerequisite. The valid-use, initialization, arithmetic-profile and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply; cached conversion and normalization intermediates remain subject to the configured arithmetic profile. Logically const queries may normalize cached descriptions; success shall preserve all operands' mathematical values and ambient dimensions. Borrowed views shall follow 🔗 10. Borrowed congruence and generator views of grid values. Supported failures may propagate; surviving ownership shall permit destruction without a general rollback or subsequent-query guarantee.
RATIONALE: Grids are closed, so closure points have ordinary point membership. A nonzero real scalar image along a ray varies continuously and cannot stay in a discrete congruence class; ray subsumption therefore requires a full continuous line direction.
INTERFACE: Public header: <ppl.hh>; Grid member or related free-function excerpts in Parma_Polyhedra_Library:
Poly_Gen_Relation relation_with(const Generator& g) const;
VERIFICATION_CRITERIA: Cross point/closure-point membership, both orientations of rays and lines, periodic directions lacking continuous freedom, coupled rational coordinates, cold inconsistent grids, free unused coordinates, zero dimensions and argument rejection. Check the same mathematical value after each query.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid, generator and double-description definitions (PDF page indices 6–8, zero-based).
SOURCE: src/Grid_public.cc; src/Congruence_System.cc; tests/Grid/congruences2.cc; tests/Grid/relations1.cc; tests/gridrelationsspec1.cc; tests/gridrelationspublic1.cc; tests/gridrelationsfailure1.cc.
-
1. Exact directional boundedness of affine expressions on grids UID: PPL-SPEC-001265 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounds_from_above(expr) and bounds_from_below(expr) shall return true exactly when the expression is bounded in the indicated direction over the grid. Empty shall be bounded in both directions. On a nonempty grid, either both queries shall be true and the expression shall have one constant value, or both shall be false and the expression shall be unbounded in both directions.
For a generator description p + ∑iℤqi + ∑jℝlj and e(x) = a⋅x + b, boundedness shall be equivalent to a⋅qi = 0 and a⋅lj = 0 for every direction, including point differences when the description has more than one generating point. Zero coefficients shall not introduce dependence on unused directions.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
RATIONALE: A grid direction is reversible with an integer or real multiplier; a varying affine objective therefore has neither a lower nor an upper bound.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Grid.
bool bounds_from_above(const Linear_Expression& expr) const; bool bounds_from_below(const Linear_Expression& expr) const;
VERIFICATION_CRITERIA: Independently compute scalar images of literal rational generating points, their differences, parameters and lines. Include empty, latent inconsistency, zero-dimensional universe, constant objectives and objectives orthogonal to nontrivial directions. Vary storage and both description/cache histories.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid and generator definitions (PDF page indices 6–8, zero-based).
SOURCE: src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/gridscalarqueryspec1.cc; tests/gridscalarquerypublic1.cc; tests/gridscalarqueryfailure1.cc; tests/Grid/bounds1.cc; tests/Grid/maxmin1.cc; tests/Grid/frequency1.cc.
-
6. Exact affine-image frequency and closest value on rational grids UID: PPL-SPEC-001270 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For the affine image S = {e(x) ∣ x ∈ G}, frequency(expr,fn,fd,vn,vd) shall return false when S is empty or equals ℝ, preserving all four supplied outputs. Otherwise it shall return true and positive denominators, with both fractions reduced. If S = {c}, fn/fd shall be zero over one and vn/vd shall be c. Otherwise S shall be the coset v + dℤ where d = fn ⁄ fd > 0 is its unique positive period generating all differences and v = vn ⁄ vd ∈ S has minimum absolute value. Either sign shall be permitted when two values tie.
A line with nonzero homogeneous objective image shall make the frequency undefined. Otherwise the positive period shall be the rational greatest common divisor of the parameter images and generating-point differences; a zero period shall mean the objective is constant. The objective's constant term shall translate the coset without changing its period. Zero-dimensional universe shall report zero frequency and the constant expression value.
For a bounded coefficient profile, generator scalar products, translated point values, parameter gcds and closest-residue selection shall use exact working integers until both output fractions are reduced. Only the final reduced numerators and denominators shall require coefficient admission. A machine-carrier overflow shall promote the working arithmetic without truncation. Stored grid descriptions remain subject to their profile limits.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
RATIONALE: The exact affine image of a rational grid is empty, continuous, a singleton or a rational coset. A closest representative is signed, while the generating period is nonnegative.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Grid.
bool frequency(const Linear_Expression& expr, Coefficient& fn, Coefficient& fd, Coefficient& vn, Coefficient& vd) const;
VERIFICATION_CRITERIA: Compute images from literal generating points, point differences, rational parameters and lines using independent rational gcd arithmetic. Check exact period, coset membership, minimal absolute representative, both tie signs, constant/zero-dimensional cases, undefined continuous images, translations, false/error sentinels and cache/storage independence.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid and generator definitions (PDF page indices 6–8, zero-based).
SOURCE: src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/gridscalarqueryspec1.cc; tests/gridscalarquerypublic1.cc; tests/gridscalarqueryfailure1.cc; tests/Grid/bounds1.cc; tests/Grid/maxmin1.cc; tests/Grid/frequency1.cc; tests/exactboundedworking1.cc; src/Linear_Expression.cc; src/Linear_Expression_defs.hh.
-
8. Ambient and affine grid dimensions UID: PPL-SPEC-001248 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: space_dimension() shall report the ambient dimension without changing the represented grid. affine_dimension() shall return zero for empty and zero-dimensional grids; otherwise it shall return the dimension of the least affine subspace containing the grid. For a nonempty generator description this shall equal the rational rank of its line directions, parameter directions and supporting-point differences.
The answer shall be independent of the current dual representation, redundant input rows, generator order and prior normalization.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
RATIONALE: A periodic full-rank grid is affinely full-dimensional even though it is discrete. Ambient dimension remains meaningful for empty sets.
INTERFACE: Public header: <ppl.hh>; excerpts for Grid and related free functions in Parma_Polyhedra_Library:
dimension_type space_dimension() const; dimension_type affine_dimension() const;
VERIFICATION_CRITERIA: Use independent exact rational elimination on literal direction vectors and point differences. Include singleton, lower-dimensional periodic and continuous values, full-rank discrete grids, empty/universe, redundant systems, both input descriptions and alternate normalization histories.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, generator representation and minimal forms (PDF page indices 7–8, zero-based).
SOURCE: src/Grid_inlines.hh; src/Grid_public.cc; tests/gridvaluesspec1.cc; tests/gridvaluespublic1.cc.
-
9. Exact foundational grid classification UID: PPL-SPEC-001249 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The following queries shall make exact decisions on admitted grid values:
- is_empty() shall return true exactly for the empty represented set.
- is_universe() shall return true exactly for all of the ambient real coordinate space.
- is_bounded() shall return true exactly for empty or singleton grids.
- is_discrete() shall return true exactly when every represented point is isolated; empty shall be discrete. In a nonempty rational generator description this is equivalent to the absence of nonzero line directions.
- is_topologically_closed() shall return true for every rational grid.
- contains_integer_point() shall return true exactly when the grid intersects Zn; zero-dimensional universe shall contain the integer empty tuple and zero-dimensional empty shall contain none.
- constrains(v) shall return true exactly when independently varying coordinate v can leave the grid. Empty shall constrain every in-range coordinate. An out-of-range coordinate shall throw std::invalid_argument before an empty/universe shortcut.
Answers shall not depend on generator insertion order or whether the current congruence/generator descriptions have been normalized. A periodic restriction shall not be mistaken for an interval bound or a continuous free coordinate.
The lifetime, initialization, arithmetic and synchronization prerequisites in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply. A logically const operation may update cached representations while preserving the represented grid and ambient dimension. Supported arithmetic and allocation failures may propagate through their declared channels; surviving ownership shall permit safe destruction, without a general rollback guarantee.
RATIONALE: Nonzero parameter directions give unbounded integer displacements; nonzero line directions give arbitrarily small real displacements. A finite intersection of linear congruence solution sets is closed. These are different properties from whether an integer-coordinate point exists.
INTERFACE: Public header: <ppl.hh>; excerpts for Grid and related free functions in Parma_Polyhedra_Library:
bool is_empty() const; bool is_universe() const; bool is_bounded() const; bool is_discrete() const; bool is_topologically_closed() const; bool contains_integer_point() const; bool constrains(Variable coordinate) const;
VERIFICATION_CRITERIA: Use independently described rational singletons, periodic lattices, continuous lines and affine subspaces, fractional offsets excluding all integer points, inconsistent systems and all zero-dimensional cases. Cross constructor forms, redundant descriptions, all generator permutations and normalization orders. Check coordinate independence using literal line spans and validate out-of-range arguments even for empty and universe.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid and generator definitions (PDF page indices 6–7, zero-based).
SOURCE: src/Grid_public.cc; tests/gridvaluesspec1.cc; tests/gridvaluespublic1.cc.
-
3. Certified real set-theoretic union of octagonal values UID: PPL-SPEC-001173 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000063 Octagonal intersection and upper bounds (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000302 Interpretation of sufficient property tests (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: upper_bound_assign_if_exact(y) shall return true only when it replaces the receiver by the exact real union X∪Y of the entry sets. On false, the receiver's represented set shall remain X; internal normalization of either argument may still occur.
With mpq_class boundaries, the decision shall be complete: it shall return true if and only if X∪Y is an octagonal set. Other supported profiles may return false when rounded computation cannot certify exactness, even when the union is octagonal. This includes rational half-sum rounding with mpz_class boundaries. Such an inconclusive false shall not assert that a non-octagonal union has been found.
Successful union shall retain every real point of either input, rather than only its integer points. No success result may fill a missing real point.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return, including a Boolean false return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
RATIONALE: A least octagonal upper bound can fill a genuine gap. A successful exact-join certificate must exclude that possibility, while incomplete arithmetic may legitimately fail to produce a certificate.
INTERFACE: Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:
bool upper_bound_assign_if_exact(const Octagonal_Shape& y);
VERIFICATION_CRITERIA: Derive exact signed-support hulls and decide whether each point of the hull belongs to at least one entry set by independent strict-complement feasibility. Require complete decisions for unbounded rational profiles, exact real-union equality on every success and entry-set preservation on false. Include touching and separated intervals, signed relational slices, rays, half-integral integer-bound inputs, aliases, empty/zero dimensions and range-sensitive rounded certificates. Keep overflow and adjacent-floating-bound witnesses in arbitrary-precision test models, independently of the configured Coefficient range. Check exact representability of the typed inputs, midpoint gaps or literal cover proofs, source preservation and resulting sets.
BIBLIOGRAPHY: BagnaraHZ10CGTA | Section 6.2, Theorem 6.3, exact join detection for rational octagonal shapes.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/Octagonal_Shape.cc; tests/octagonalshapeoperationsspec1.cc; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapeoperationspublic1.cc; tests/Octagonal_Shape/upperboundifexact1.cc; tests/octagonalshapeoperationsfailure1.cc; tests/boxallocationfixture.hh.
-
4. Exact integer-point unions of octagonal values UID: PPL-SPEC-001174 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000064 Preservation of integer points during octagonal refinement (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000302 Interpretation of sufficient property tests (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: integer_upper_bound_assign_if_exact(y) shall be available when T is a supported integral boundary type. Let I = (X∪Y)∩Zn for the entry real sets X, Y, and let H(I) be their integer upper bound: the smallest rational octagonal set containing I. The call shall return true if and only if H(I)∩Zn = I; on true it shall replace the receiver by that integer upper bound. On false it shall preserve the receiver's entry represented set. Cache normalization shall not count as a set change.
Exactness shall concern integer valuations. The result may include nonintegral points absent from both operands and may remove fractional portions of the entry real sets. For example, the integer union of real singletons at zero and one shall have integer upper bound [0, 1]. A nonempty half-integral real input may contain no integer point; if neither operand has an integer point, the integer upper bound shall be empty and the decision shall be true. Integer storage shall continue to have the real carrier in 🔗 1. Octagonal values, numerical profiles and valid use.
The operands shall have equal ambient dimensions; a mismatch shall throw std::invalid_argument before changing either represented set. Empty, universe, lower-dimensional and zero-dimensional values shall be admitted. Self-aliasing shall use the entry value for both operands. A distinct y shall preserve its entry represented set on normal return, including a Boolean false return. Logically const normalization may change caches without changing the source set. The receiver shall own its result independently of a distinct source's later mutation or destruction.
The valid-use, numerical-profile, initialization, supported native floating runtime and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. All operands shall remain live and valid during the call. The implementation shall respect the preconditions of its selected numerical policies in intermediate operations on admitted inputs. The ambient dimension and coordinate identities shall be preserved.
Declared numerical, allocation and cooperative-abandonment exceptions may propagate. Temporary resources acquired by the operation shall be released on exceptional return. After these exceptions the receiver shall remain safely destructible; its entry represented set need not be preserved.
RATIONALE: Integer octagonal exactness differs from exact real union. Tightening unary parity removes fractional-only states without discarding any input integer point, and permits integer-exact unions that are not convex real unions.
INTERFACE: Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:
bool integer_upper_bound_assign_if_exact(const Octagonal_Shape& y);
VERIFICATION_CRITERIA: For independently bounded examples enumerate every integer valuation in proved finite boxes, build the rational signed-support hull of the two integer sets, and enumerate every integer point of that candidate hull. Compare the exactness Boolean, required success hull and false preservation. Use analytic integer lattice models for selected unbounded cases. Include half-integral real singletons, odd and already-even unary bounds, empty integer hulls, cold and cached closure, idempotence, real-inexact/integer-exact joins, aliases and all supported integral profiles. Reject nonintegral template instantiations through a meaningful capability check.
BIBLIOGRAPHY: BagnaraHZ10CGTA | Section 6.3, Definition 6.6 and Theorem 6.8, tight closure and exact integer-octagonal joins.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/Octagonal_Shape.cc; tests/octagonalshapeoperationsspec1.cc; tests/octagonalshapeoperationoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapeoperationspublic1.cc; tests/Octagonal_Shape/integerupperboundifexact1.cc; tests/octagonalshapeoperationsfailure1.cc; tests/boxallocationfixture.hh.
-
8. Ambient and affine dimension of octagonal values UID: PPL-SPEC-001153 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: space_dimension() shall return the ambient coordinate count independently of emptiness and affine restrictions. affine_dimension() shall return zero for empty and otherwise the dimension of the smallest affine subspace containing the represented real set. Both zero-dimensional values shall have affine dimension zero.
Implied unary equalities, signed-sum and signed-difference equalities and redundant equality chains shall contribute according to their independent rank. Rounded graph bounds shall not certify an equality that the represented set does not satisfy. Fractional fixed coordinates shall count as fixed even under integer storage.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
RATIONALE: Signed-coordinate duplication is an encoding detail; affine dimension counts independent real-coordinate degrees of freedom.
INTERFACE: Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library:
dimension_type space_dimension() const; dimension_type affine_dimension() const;
VERIFICATION_CRITERIA: Compute an independent exact rational equality basis and Gaussian rank from all source support pairs. Check full-dimensional sets, fixed half-integers, signed positive/negative equality classes, implicit chains, empty/zero dimensions, and rounded cache histories. Verify source-set preservation separately from the reported dimension.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4.1, singular/non-singular zero-equivalence classes and Definition 8 (PDF page indices 11–12, zero-based).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapevaluesspec1.cc; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/octagonalshapevaluespublic1.cc; tests/Octagonal_Shape/affinedimension1.cc; tests/Octagonal_Shape/fromspacedim1.cc.
-
9. Owned constraint and affine-equality exports of octagonal values UID: PPL-SPEC-001154 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: constraints() shall return an owned constraint system of the same ambient dimension whose conjunction equals the represented real set. minimized_constraints() shall additionally give an irredundant defining conjunction: removing any returned nontrivial row shall enlarge that set. A particular row order, equality orientation or unique minimal cardinality shall not be required. Stored unary halves and all finite signed bounds shall retain their exact mathematical values in the exported descriptors.
congruences() and minimized_congruences() shall return owned equality congruences defining the receiver's affine hull, with the same ambient and affine dimensions. Their nonempty equality system shall form an independent basis of its affine restrictions. They shall not replace inequalities by periodic conditions. Empty shall export inconsistency; zero-dimensional universe shall export a tautological conjunction.
All returned systems shall remain usable after source mutation or destruction. Source normalization shall preserve its represented set, including for rounded and integer half-sum profiles. Export coefficients shall meet the configured Coefficient output range prerequisites.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
RATIONALE: Defining inequalities and an affine-hull equality basis carry different information, and both need independent ownership.
INTERFACE: Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library:
Constraint_System constraints() const; Constraint_System minimized_constraints() const; Congruence_System congruences() const; Congruence_System minimized_congruences() const;
VERIFICATION_CRITERIA: Reconstruct independent rational halfspaces from every returned row and check both containments. Remove each minimized row and prove strict enlargement, without fixing one basis. Compute affine-hull rank independently and verify equality basis sufficiency/independence. Include signed sums, differences, half-integral coordinates, redundant/cyclic and rounded descriptions, empty/zero dimensions and post-source-destruction use. Separate output Coefficient representability from valid domain-operation admission.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4.1, strong reduction, zero-equivalence subgraphs and Definitions 6–10 (PDF page indices 10–14, zero-based).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapevaluesspec1.cc; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/octagonalshapevaluespublic1.cc; tests/Octagonal_Shape/constraints1.cc; tests/Octagonal_Shape/minconstraints1.cc; tests/Octagonal_Shape/extrememinconstraints1.cc; tests/Octagonal_Shape/congruences1.cc; tests/octagonalshapevaluesfailure1.cc.
-
10. Ordinary classification of octagonal values UID: PPL-SPEC-001155 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The ordinary classification calls shall decide their named mathematical properties of the represented real set: emptiness, universe, discreteness, boundedness, topological closure and existence of an integer point. Every octagonal shape shall be topologically closed. A nonempty convex shape shall be discrete exactly when it is a singleton. Empty shall be discrete and bounded and shall contain no integer point. Zero-dimensional universe shall be nonempty, universe, bounded and discrete and contain its integer empty tuple.
contains_integer_point() shall decide intersection with Zn, independently of the stored coefficient type. A nonempty half-integral singleton shall therefore have no integer point, including when its doubled unary bounds are stored as integers.
constrains(var) shall report whether that coordinate is restricted, including by a binary relation: the set is unrestricted in that coordinate exactly when it is invariant under every translation along the coordinate axis. Empty shall constrain every valid coordinate. A variable beyond the ambient dimension shall throw std::invalid_argument.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
RATIONALE: Convex real discreteness, lattice feasibility and syntactic integer storage are different properties.
INTERFACE: Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library:
bool is_empty() const; bool is_universe() const; bool is_discrete() const; bool is_bounded() const; bool is_topologically_closed() const; bool contains_integer_point() const; bool constrains(Variable var) const;
VERIFICATION_CRITERIA: Check exact rational feasibility/recession/support against every Boolean classification. Include lazy emptiness, pure relational axis restrictions, signed half-integral singletons, unbounded affine lines, rational regions with/without lattice points, integer-storage shapes with fractional real points, empty/zero dimensions and invalid variable rejection. Use independently bounded integer enumeration only when support bounds prove completeness.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4, real/rational octagonal shapes; Section 5, distinction between strong and tight closure for integer feasibility.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapevaluesspec1.cc; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/octagonalshapevaluespublic1.cc; tests/Octagonal_Shape/empty1.cc; tests/Octagonal_Shape/universe1.cc; tests/Octagonal_Shape/discrete1.cc; tests/Octagonal_Shape/bounded1.cc; tests/Octagonal_Shape/containsintegerpoint1.cc; tests/Octagonal_Shape/constrains1.cc; tests/octagonalshapesaturationspec1.cc.
-
11. Octagonal set relations, equality and compatible hashes UID: PPL-SPEC-001156 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For compatible dimensions, contains(y) shall be true exactly when every point of y belongs to the receiver, strictly_contains(y) exactly for proper set containment, and is_disjoint_from(y) exactly when their intersection is empty. These calls shall throw std::invalid_argument when the ambient dimensions differ. A nonempty set shall strictly contain empty, including in zero dimensions; equal sets shall never strictly contain one another.
Free equality shall compare ambient dimension and the represented set, and inequality shall be its logical negation. Different dimensions shall compare unequal without throwing. Equal values shall have equal hash_code() results; unequal values may collide. Mathematical equality shall not depend on row insertion order or the existence of one canonical rounded matrix.
A stored bound of the inner octagon that is at least as tight as the corresponding outer bound certifies that inequality. If rounded or saturated closure leaves a weaker bound, decide the inequality using the exact support of the stored inner octagon, including the strong-coherence half-sum.
Both operands' values and dimensions shall be preserved. The same owned shape may be supplied on both sides; containment/equality shall then be true and proper containment false, while self-disjointness shall mean emptiness.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
RATIONALE: Set relations concern represented points and dimension, rather than one numerical encoding or cache history.
INTERFACE: Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library:
bool contains(const Octagonal_Shape& y) const; bool strictly_contains(const Octagonal_Shape& y) const; bool is_disjoint_from(const Octagonal_Shape& y) const; int32_t hash_code() const; template <typename T> bool operator==(const Octagonal_Shape<T>& x, const Octagonal_Shape<T>& y); // Inequality uses C++20 rewriting of operator==.
VERIFICATION_CRITERIA: Check Boolean inequality expressions in both operand orders through C++20 equality rewriting, retaining the stated equality and mismatch behavior. Use independent rational feasibility to derive both containments and intersection emptiness. Compare equal sets with reordered/redundant rows and different closure/reduction histories; include signed sums, half-integral and rounded representations, self histories, empty/zero dimensions and mismatch behavior. Require equal hashes only for mathematically equal values. Check implication through paths whose intermediate sums round upward and through unary bounds whose native sum overflows before halving.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapevaluesspec1.cc; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/octagonalshapevaluespublic1.cc; tests/Octagonal_Shape/contains1.cc; tests/Octagonal_Shape/cc76narrowing1.cc; tests/Octagonal_Shape/disjoint1.cc; tests/Octagonal_Shape/congruences1.cc; tests/octagonalshapesaturationspec1.cc.
-
12. Relations between octagonal values and linear constraints UID: PPL-SPEC-001157 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000013 Meaning of linear constraints (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: relation_with(c) shall return the exact Poly_Con_Relation flags of the represented set relative to c under 🔗 1. Constraint-relation assertion values and named factories. Inclusion shall mean every source point satisfies the row, disjointness that none does, and saturation that its affine expression is zero throughout the source. Strict intersection shall retain its declared logical meaning. Empty and constant-row cases shall retain the simultaneous flags implied by those meanings.
The supplied linear row need not have octagonal syntax and may be weak, strict or an equality. Its dimension shall not exceed the receiver's; otherwise the call shall throw std::invalid_argument. The descriptor and source value shall be preserved. Rounded outer extrema alone shall not justify a relation flag that is false of the represented set.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
RATIONALE: A restricted shape representation can answer exact semantic questions about more general linear halfspaces and hyperplanes.
INTERFACE: Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library:
Poly_Con_Relation relation_with(const Constraint& c) const;
VERIFICATION_CRITERIA: Project arbitrary rational affine forms independently and derive each flag from the attained range and boundary relation. Include all octagonal signs, unary half-integers, general correlated objectives, strict/equality/weak rows, constant true/false rows, empty/zero dimensions, rounded extrema and oversized descriptor rejection.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapevaluesspec1.cc; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/octagonalshapevaluespublic1.cc; tests/Octagonal_Shape/relatwithcons1.cc; tests/Octagonal_Shape/relatwithcons2.cc; tests/Octagonal_Shape/relatwithcons3.cc; tests/Octagonal_Shape/semanticqueries1.cc.
-
13. Relations between octagonal values and linear congruences UID: PPL-SPEC-001158 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000014 Meaning of linear congruences (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: relation_with(cg) shall classify the represented real set using Poly_Con_Relation. Modulus zero shall have equality meaning. For a proper modulus, inclusion shall mean every source point satisfies the periodic condition; disjointness shall mean none does. For a nonempty source, saturation shall mean that its affine image is one value in the eligible modulus lattice, including a nonzero lattice value. Other overlapping cases shall use the declared strict-intersection flag. Empty shall retain its set-theoretic simultaneous flags.
General admitted affine congruences shall be queryable even when their solution sets cannot be represented by an octagonal shape. The call shall throw std::invalid_argument when the descriptor dimension exceeds the source's. The descriptor and represented set shall be preserved. The decision shall use real convex points rather than an integer-only reinterpretation of integer bound storage.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
RATIONALE: Testing a periodic predicate does not require adding its nonconvex solution set to the shape representation.
INTERFACE: Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library:
Poly_Con_Relation relation_with(const Congruence& cg) const;
VERIFICATION_CRITERIA: Combine exact rational affine ranges with independent arithmetic-progression intersection tests. Include negative and fractional singleton values, satisfied/unsatisfied constant residues, modulus zero, narrow intervals between residue levels, nonconstant unbounded ranges, all coefficient profiles, empty/zero dimensions and incompatible descriptors.
SOURCE: src/Shape_Congruence_Queries.hh; tests/shapeconstantqueryspec1.cc; src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapevaluesspec1.cc; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/octagonalshapevaluespublic1.cc; tests/Octagonal_Shape/relatwithcons2.cc; tests/Octagonal_Shape/relatwithcons3.cc; tests/Octagonal_Shape/semanticqueries1.cc; tests/shapequerycertificatespec1.cc.
-
14. Subsumption of geometric generators by octagonal values UID: PPL-SPEC-001159 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000015 Distinct meanings of geometric generators (Specifies)
- PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: relation_with(g) shall report Poly_Gen_Relation::subsumes() exactly when the represented set subsumes g under 🔗 6. Generator-relation assertion values and named factories, and nothing() otherwise. Points and closure points shall use their exact rational coordinates; their membership tests shall agree because the domain is topologically closed. A ray direction r shall satisfy a⋅r ≤ 0 for every defining inequality a⋅x ≤ b; a line direction shall satisfy the corresponding equalities a⋅r = 0.
Empty shall subsume no generator. A lower-dimensional generator shall have zero trailing coordinates. A generator exceeding the source dimension shall throw std::invalid_argument. The descriptor and source value shall be preserved.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
RATIONALE: Closed-point membership and recession directions impose different homogeneous tests over the same signed normal system.
INTERFACE: Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library:
Poly_Gen_Relation relation_with(const Generator& g) const;
VERIFICATION_CRITERIA: Independently substitute rational points/closure points and evaluate every signed normal on rays/lines. Include divisors, half-integral fixed coordinates, signed sums/differences, rejected one-sided directions, free axes, lower ambient generator dimensions, empty/zero dimensions and oversized rejection.
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapevaluesspec1.cc; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/octagonalshapevaluespublic1.cc; tests/Octagonal_Shape/relatwithgen1.cc.
-
16. Constant affine values and zero frequency on octagonal sets UID: PPL-SPEC-001161 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: frequency(expr,fn,fd,vn,vd) shall return true exactly when the nonempty represented set assigns one unique real value to expr. On success, fn/fd shall be 0/1 and vn/vd shall equal that exact constant, with a positive denominator. A nonconstant or empty source shall return false and leave all four scalar outputs unchanged. Constant expressions and zero-dimensional universe shall obey the same rule.
Signed equality substitution and fractional fixed coordinates shall retain their mathematical values. Inexact closure bounds shall not establish a constant expression unless it truly is constant on the represented set. The call shall throw std::invalid_argument if the expression dimension exceeds the source dimension. The four scalar output objects shall be pairwise distinct and satisfy their configured Coefficient range prerequisites. The expression and represented set shall be preserved.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
RATIONALE: An affine image of a nonempty convex real set is either one value or an interval; it cannot have a nonzero discrete frequency.
INTERFACE: Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library:
bool frequency(const Linear_Expression& expr, Coefficient& fn, Coefficient& fd, Coefficient& vn, Coefficient& vd) const;
VERIFICATION_CRITERIA: Derive exact affine ranges/equality spans independently and compare constancy, zero frequency and rational values. Include signed-sum and signed-difference identities on unbounded shapes, half-integral singletons stored with integer bounds, dependent equalities, zero/negative constants, free directions, rounded descriptions, unchanged false outputs, empty/zero dimensions and rejected dimensions.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4.1, singular/non-singular zero-equivalence classes and their equality interpretation (PDF page indices 11–12, zero-based).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapevaluesspec1.cc; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/octagonalshapevaluespublic1.cc; tests/Octagonal_Shape/frequency1.cc.
-
1. Pointset-powerset empty and universe queries UID: PPL-SPEC-001399 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: is_empty shall return true exactly when every stored disjunct is empty, including the empty collection. is_universe shall return true exactly when a stored disjunct denotes universe; it may remove other disjuncts when such a disjunct is found. A union that covers the whole ambient space without a universe disjunct need not make this structural universe query true; geometric coverage shall be used for that semantic comparison.
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.
RATIONALE: A structural top test is cheaper than deciding whether several proper disjuncts jointly cover universe.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool is_empty() const; bool is_universe() const;
VERIFICATION_CRITERIA: Check empty and redundant collections, a universe disjunct and two complementary half-spaces without a universe disjunct.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/empty1.cc; tests/Powerset/universe1.cc.
-
3. Pointset-powerset structural shape queries UID: PPL-SPEC-001401 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Boundedness and discreteness shall hold exactly when they hold for all stored disjuncts. contains_integer_point shall hold when some disjunct contains one. is_topologically_closed shall reduce and report whether all remaining disjuncts are closed; false may be conservative when several nonclosed disjuncts jointly form a closed union. constrains(v) shall validate the variable, reduce, and report true for empty or when some remaining disjunct constrains v. It may conservatively report true for a union that is cylindrically unconstrained. Invalid v shall throw std::invalid_argument.
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.
RATIONALE: Finite unions preserve boundedness and discreteness, but closure and coordinate independence can emerge from a combined decomposition.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool is_bounded() const; bool is_discrete() const; bool is_topologically_closed() const; bool constrains(Variable) const; bool contains_integer_point() const;
VERIFICATION_CRITERIA: Check finite separated points, unbounded members, open pieces covering a closed set, fractional grids and invalid variables.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/bounded1.cc; tests/Powerset/closed1.cc; tests/Powerset/containsintegerpoint1.cc; tests/Powerset/discrete1.cc.
-
4. Pointset-powerset structural set relations UID: PPL-SPEC-001402 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: contains(y) shall return true exactly when each stored y disjunct is contained in some receiver disjunct. strictly_contains(y) shall first reduce the receiver, then require each stored y disjunct to be strictly contained in some remaining receiver disjunct. The latter universal condition is true for an empty stored y collection, including an empty receiver. Neither result shall be substituted for strict geometric containment of represented unions. Dimension-incompatible operands shall throw std::invalid_argument.
is_disjoint_from(y) shall apply the selected base domain's disjointness predicate to each pair of retained receiver and source disjuncts. It shall return true exactly when every pair reports disjointness. For a base satisfying an exact disjointness contract, this shall decide whether the two represented unions have empty intersection, independently of their decomposition. An empty stored collection shall be disjoint from every dimension-compatible powerset. Stored bottom disjuncts and self-aliasing shall retain the base predicate's meaning. The query shall preserve the stored collections and represented values; logically const component queries may update their permitted caches. Incompatible ambient dimensions shall throw std::invalid_argument before pair visitation, including when both collections are empty.
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.
RATIONALE: Containment uses disjunctwise matching and its stated strictness condition. Disjointness is the conjunction of base-domain disjointness over all pairs; it does not require the union-coverage algorithm used for geometric inclusion.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool contains(const Pointset_Powerset&) const; bool strictly_contains(const Pointset_Powerset&) const; bool is_disjoint_from(const Pointset_Powerset&) const;
VERIFICATION_CRITERIA: Check split coverage, proper per-disjunct inclusion, equal decompositions, empty collections and dimension rejection. Check symmetric zero/positive- dimensional disjointness, strict endpoint contacts, one intersecting pair, self queries, retained empty components and rejected mismatched dimensions.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/contains1.cc; tests/Powerset/disjoint1.cc; tests/Powerset/argumentadmission1.cc.
-
5. Geometric powerset coverage and equality UID: PPL-SPEC-001403 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000073 Meaning of geometric powerset comparisons (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: geometrically_covers(y) shall decide whether the receiver union contains the y union. geometrically_equals shall decide mutual geometric coverage, independently of decomposition or redundant storage. check_containment(p,ps) shall decide whether the union ps contains p. NNC polyhedra shall use exact polyhedral partitioning; supported convex base domains shall use exact conversion to NNC polyhedra. Grids shall use their specialized finite-coset coverage procedure. Arithmetic preconditions shall hold throughout all partitions. Ambient dimensions shall agree; incompatible operands shall throw std::invalid_argument.
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.
RATIONALE: A single target disjunct may be covered by several source disjuncts without any one covering it.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool geometrically_covers(const Pointset_Powerset&) const; bool geometrically_equals(const Pointset_Powerset&) const; bool check_containment(const NNC_Polyhedron&, const Pointset_Powerset<NNC_Polyhedron>&); bool check_containment(const Grid&, const Pointset_Powerset<Grid>&); template <typename PSET> bool check_containment(const PSET&, const Pointset_Powerset<PSET>&);
VERIFICATION_CRITERIA: Check split and overlapping decompositions, holes and excluded boundaries, residue-class unions and invalid dimensions.
BIBLIOGRAPHY: BagnaraHZ06STTT | Section 3 (union concretization and semantic equivalence).
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/contains1.cc; tests/Powerset/equals1.cc; tests/Powerset/gridpartition1.cc.
-
6. Pointset-powerset directional bound tests UID: PPL-SPEC-001404 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Directional bound tests shall reduce, then return true exactly when every remaining disjunct bounds the expression in that direction. Empty shall be bounded in either direction. For nonempty collections, the expression's ambient dimension shall be admitted by every disjunct; invalid dimensions shall throw std::invalid_argument.
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.
RATIONALE: A finite union has a finite directional bound exactly when every nonempty member has one.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool bounds_from_above(const Linear_Expression&) const; bool bounds_from_below(const Linear_Expression&) const;
VERIFICATION_CRITERIA: Check all-bounded, one-unbounded, empty and single-direction cases with fractional expressions.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/bounds1.cc.
-
7. Pointset-powerset extrema and witnesses UID: PPL-SPEC-001405 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Maximization and minimization shall fail for empty or directionally unbounded unions, leaving all outputs unchanged on a false return. Otherwise they shall return the greatest disjunct supremum or least disjunct infimum as an exact rational with positive denominator. The attainment flag shall be true when at least one disjunct attaining the selected bound includes its optimum. A witness overload shall select an included point when the union attains the bound and otherwise a closure point of a contributing disjunct. The witness shall attain the returned bound in the corresponding union or its closure. Expression dimension admission and arithmetic shall follow the base extrema members; independently writable output objects shall be required.
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.
RATIONALE: Taking an extremum over a finite union requires selecting across all disjuncts, including attainment ties.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const;
VERIFICATION_CRITERIA: Check separated bounds, rational ties with both attainment flags, witnesses, empty/unbounded failure sentinels and output independence.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/maxmin1.cc.
-
8. Pointset-powerset descriptor relations UID: PPL-SPEC-001406 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Constraint and congruence relations shall combine disjunct relations: inclusion, disjointness and saturation shall each require that flag from every disjunct. Strict intersection shall be reported when a disjunct strictly intersects or when nonempty included and disjoint disjuncts occur. Empty disjuncts shall not supply a strict-intersection witness. Generator subsumption shall be reported when at least one disjunct subsumes it, using base generator semantics. Empty collections shall give the vacuous inclusion, disjointness and saturation flags and no generator subsumption. Invalid descriptor dimensions shall throw std::invalid_argument.
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.
RATIONALE: Relations over a union aggregate universal set properties and existential witnesses differently.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.
Poly_Con_Relation relation_with(const Constraint&) const; Poly_Con_Relation relation_with(const Congruence&) const; Poly_Gen_Relation relation_with(const Generator&) const;
VERIFICATION_CRITERIA: Check each relation flag, mixed included/disjoint disjuncts, redundant empties, points/directions and dimension rejection.
SOURCE: src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/relationwith1.cc.
-
1. Polyhedron ambient and affine dimensions UID: PPL-SPEC-001326 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: space_dimension() shall return the ambient dimension without changing the represented value. affine_dimension() shall return zero for empty and otherwise the dimension of the smallest affine space containing the receiver. It shall count excluded closure points only through the affine hull they share with included points, and shall preserve the represented set.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Ambient dimension and affine rank differ for equalities and for empty sets.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
dimension_type space_dimension() const; dimension_type affine_dimension() const;
VERIFICATION_CRITERIA: Use independent rational ranks for singletons, segments, flats, full-dimensional and empty sets across both topologies and cache histories.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/empty1.cc; tests/Polyhedron/constraints1.cc; tests/Polyhedron/minconstraints1.cc.
-
4. Exact elementary polyhedral predicates UID: PPL-SPEC-001329 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The predicates shall decide, respectively, emptiness, equality with the ambient universe, topological closedness as a real pointset, discreteness and boundedness. Discreteness shall mean affine dimension zero; thus empty and singletons shall be discrete. Empty shall be bounded and closed. NNC storage shall not itself imply that the set is nonclosed. Pending or nonminimal descriptions shall not change these decisions.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: A nonempty convex discrete set is a singleton; topological properties belong to the represented set rather than its selected encoding.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool is_empty() const; bool is_universe() const; bool is_topologically_closed() const; bool is_discrete() const; bool is_bounded() const;
VERIFICATION_CRITERIA: Check fractional singletons, open/closed intervals, unbounded lines and rays, redundant strict rows, latent contradictions and zero dimensions.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/empty1.cc; tests/Polyhedron/universe1.cc; tests/Polyhedron/universe2.cc; tests/Polyhedron/topclosed1.cc; tests/Polyhedron/bounded1.cc.
-
Incoming link from: 1. Selected-coordinate integer-point existence1
5. Exact integer-point existence in polyhedra UID: PPL-SPEC-001330 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: contains_integer_point() shall return true exactly when the receiver contains a tuple integral in every coordinate. Empty shall return false and zero-dimensional universe true. Excluded boundary points of an NNC polyhedron shall not count. The decision shall preserve the receiver's represented set.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Rational feasibility does not imply integer feasibility, and closing an NNC set can introduce its only integer candidates.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool contains_integer_point() const;
VERIFICATION_CRITERIA: Check fractional singletons, integer-free open intervals, relationally infeasible integer systems, unbounded sets, zero dimensions and all representation histories.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/containsintegerpoint1.cc.
-
6. Polyhedral set comparison and hashing UID: PPL-SPEC-001331 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For equal dimensions and compatible topologies, containment, strict containment, equality and disjointness shall decide the corresponding exact set relations. Containment shall include equality; strict containment shall exclude it. Empty-set relations shall follow set theory. Incompatible dimensions or topologies shall throw std::invalid_argument for the binary member queries; equality shall return false for unequal dimensions or topologies. Inequality expressions shall negate equality. Equal values shall have equal hashes; hash collisions shall not establish equality. Representation history shall not affect these results.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Comparison is extensional, whereas hashing is only a compatible classification with permitted collisions.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool contains(const Polyhedron&) const; bool strictly_contains(const Polyhedron&) const; bool is_disjoint_from(const Polyhedron&) const; bool operator==(const Polyhedron&, const Polyhedron&); // Inequality uses C++20 rewriting of operator==. int32_t hash_code() const;
VERIFICATION_CRITERIA: Check Boolean inequality expressions in both operand orders through C++20 equality rewriting, retaining the stated equality and mismatch behavior. Check strict boundary contacts, equal values with different histories, empty values, dimension/topology mismatch and hash agreement under normalization.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/contains1.cc; tests/Polyhedron/contains2.cc; tests/Polyhedron/disjoint1.cc; tests/Polyhedron/disjoint2.cc; tests/Polyhedron/equals1.cc.
-
Incoming link from: 9. Exact polyhedron relation with a congruence1
7. Exact polyhedron relation with a constraint UID: PPL-SPEC-001332 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: relation_with(c) shall classify the exact intersection with the set satisfying c. It shall include is_included() exactly when every receiver point satisfies c, is_disjoint() exactly when none does, and strictly_intersects() when some satisfy it and some do not. It shall include saturates() exactly when every receiver point satisfies the boundary equality of c. Empty shall therefore be included, disjoint and saturating. Excess descriptor dimension shall throw std::invalid_argument.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Boundary equality and satisfaction differ for strict inequalities, including when every point lies on their excluded boundary.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
Poly_Con_Relation relation_with(const Constraint&) const;
VERIFICATION_CRITERIA: Check equality, strict and non-strict constraints against interior, boundary and crossing examples; include empty, zero dimensions and excess descriptor dimension.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/relations1.cc; tests/Polyhedron/relations2.cc; tests/Polyhedron/relations3.cc.
-
8. Exact polyhedron relation with a generator UID: PPL-SPEC-001333 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: relation_with(g) shall return subsumes() exactly when an included point belongs to the receiver, a closure point belongs to its closure, a ray is a recession direction, or a line is a two-sided recession direction, according to g's kind. Otherwise it shall return nothing(). Empty shall subsume no generator. Excess dimension shall throw std::invalid_argument; shorter generators shall use zero trailing coordinates.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Closure membership and directional inclusion are distinct from membership of an ordinary point.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
Poly_Gen_Relation relation_with(const Generator&) const;
VERIFICATION_CRITERIA: Check every generator kind on open facets, bounded and unbounded sets, empty/universe, zero padding and dimension rejection.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/relations1.cc; tests/Polyhedron/relations2.cc; tests/Polyhedron/relations3.cc.
-
9. Exact polyhedron relation with a congruence UID: PPL-SPEC-001334 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Equality congruences shall use the constraint relation in 🔗 7. Exact polyhedron relation with a constraint. For a proper congruence, is_included() shall mean that every point satisfies it, is_disjoint() that none does, and strictly_intersects() that some but not all do. A nonempty polyhedron with a nonconstant congruence expression can be included only when the expression is constant at an admitted residue; that case shall also be saturates(). An excluded closure point shall not establish an intersection. Empty shall be included, disjoint and saturating. Constant congruences shall retain their arithmetic truth value. Excess dimension shall throw std::invalid_argument.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: A nonconstant affine expression on a convex set cannot take only separated lattice values. Endpoint inclusion matters when deciding whether a residue is attained.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
Poly_Con_Relation relation_with(const Congruence&) const;
VERIFICATION_CRITERIA: Use independent interval/residue calculations, open endpoints, non-axis expressions, constant congruences, empty and dimension mismatch.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/relations2.cc.
-
10. Polyhedral coordinate and expression boundedness UID: PPL-SPEC-001335 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: For a nonempty receiver, constrains(v) shall return true exactly when it differs from its cylindrification in coordinate v. Empty shall return true for an admitted coordinate. bounds_from_above(e) and bounds_from_below(e) shall decide existence of finite upper and lower bounds for the affine expression; both shall return true for empty. A constant expression shall be bounded on every receiver. An invalid coordinate or excess expression dimension shall throw std::invalid_argument.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: An affine expression may be bounded by relations even when each participating coordinate is unbounded.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool constrains(Variable) const; bool bounds_from_above(const Linear_Expression&) const; bool bounds_from_below(const Linear_Expression&) const;
VERIFICATION_CRITERIA: Check free/coupled coordinates, constant and relationally bounded expressions, recession directions, empty and argument validation.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/constrains1.cc; tests/Polyhedron/bounds1.cc; tests/Polyhedron/querydimensioncontracts1.cc.
-
11. Exact rational polyhedral extrema and witnesses UID: PPL-SPEC-001336 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Maximization and minimization shall return true exactly when the receiver is nonempty and the expression has a finite supremum or infimum. On true, numerator and positive denominator shall represent that exact rational bound; the attainment flag shall say whether it belongs to the expression's image. The witness overload shall return an included point attaining the bound when attained, otherwise a closure point of the receiver attaining that bound. On false all scalar, flag and witness outputs shall remain unchanged. An excess expression dimension shall throw std::invalid_argument. The receiver's set and external expression shall be preserved. Bounded-coefficient generator scalar products and extremum comparisons shall use exact working arithmetic until the final translated rational extremum is reduced. Comparison-only values and unreduced numerators shall not require coefficient admission; the returned numerator and denominator shall.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: Finite extrema can be unattained on NNC sets; a closure witness proves the bound without asserting membership.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const;
VERIFICATION_CRITERIA: Use literal rational intervals and linear images of simplices, open endpoints, constant expressions, lines/rays, negative values, sentinel false outputs and witness substitution.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/max_min1.cc; tests/Polyhedron/querydimensioncontracts1.cc; tests/exactboundedworking1.cc; src/Linear_Expression.cc; src/Linear_Expression_defs.hh.
-
12. Constant affine-expression frequency in polyhedra UID: PPL-SPEC-001337 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: frequency(e,...) shall return true exactly when the receiver is nonempty and the expression takes a single value on it. On true, frequency shall be 0/1 and the value outputs shall represent that exact rational value with positive denominator. On false all four outputs shall remain unchanged. Excess expression dimension shall throw std::invalid_argument. A nonconstant expression on a convex set shall not be reported as a positive discrete frequency.
The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.
RATIONALE: The image of a convex set under an affine expression is convex, so a discrete image must be a singleton.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.
bool frequency(const Linear_Expression&, Coefficient& freq_n, Coefficient& freq_d, Coefficient& val_n, Coefficient& val_d) const;
VERIFICATION_CRITERIA: Check empty, constants, fractional fixed expressions, relational equalities, nonconstant bounded/unbounded images and unchanged false outputs.
SOURCE: src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/Polyhedron/frequency1.cc; tests/Polyhedron/querydimensioncontracts1.cc.
-
2. Component-based product property tests UID: PPL-SPEC-001444 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000302 Interpretation of sufficient property tests (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: After policy reduction, emptiness shall test whether either component is empty; boundedness and discreteness shall test whether either component has the property; topological closure shall test whether both do. Universe shall test whether both components are universe. Disjointness shall test whether corresponding first components or corresponding second components are disjoint. Directional bound tests and constrains shall use the logical OR of the two component results. Except for exact universe characterization, these shall retain their stated component scope: a negative emptiness, boundedness, discreteness or disjointness result shall not refute the corresponding concrete property of the intersection. Component dimension/variable admission shall apply; invalid dimensions shall throw std::invalid_argument.
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.
RATIONALE: Component facts can establish properties of an intersection without deciding all facts jointly implied by both components.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
bool is_empty() const; bool is_universe() const; bool is_topologically_closed() const; bool is_discrete() const; bool is_bounded() const; bool is_disjoint_from(const Partially_Reduced_Product&) const; bool constrains(Variable) const; bool bounds_from_above(const Linear_Expression&) const; bool bounds_from_below(const Linear_Expression&) const;
VERIFICATION_CRITERIA: Check truth tables, empty intersections with nonempty components, jointly bounded intersections, directional bounds and invalid variables.
SOURCE: 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/bounded1.cc; tests/Partially_Reduced_Product/bounds1.cc; tests/Partially_Reduced_Product/discrete1.cc; tests/Partially_Reduced_Product/disjoint1.cc; tests/Partially_Reduced_Product/isempty1.cc; tests/Partially_Reduced_Product/isuniverse1.cc; tests/Partially_Reduced_Product/topclosed1.cc.
-
3. Component-based product descriptor relations UID: PPL-SPEC-001445 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000302 Interpretation of sufficient property tests (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Constraint and congruence relations shall reduce, then include each is_included, is_disjoint or saturates flag when either component reports it. They shall not infer strict intersection from component strict intersection. Generator subsumption shall require subsumption by both components. The flags shall retain the base descriptor meanings and may be incomplete for the full intersection. Descriptor dimension incompatibility shall throw std::invalid_argument.
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.
RATIONALE: A property true of either superset component holds for the product, while a witness must satisfy both components.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
Poly_Con_Relation relation_with(const Constraint&) const; Poly_Con_Relation relation_with(const Congruence&) const; Poly_Gen_Relation relation_with(const Generator&) const;
VERIFICATION_CRITERIA: Check each donor flag, mixed component relations, absent strict-intersection inference, generator agreement and dimension rejection.
SOURCE: 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/relations1.cc.
-
4. Component-selected product bounds and witnesses UID: PPL-SPEC-001446 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000302 Interpretation of sufficient property tests (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Extremum queries shall reduce and return false if a component is empty or neither component provides a directional bound; outputs shall then remain unchanged. Otherwise maximization shall choose the smaller available component supremum and minimization the larger component infimum. Equal bounds shall prefer a component not attaining that bound. Success shall return its rational bound with positive denominator, attainment flag and, for witness overloads, its corresponding point or closure point. Neither success, attainment nor the witness shall establish nonemptiness or optimum attainment in the product intersection; the selected witness need not satisfy the other component. Comparison of representable component bounds shall be exact even when their cross-products exceed the configured coefficient range. Expression dimensions and independently writable outputs shall satisfy both component contracts.
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.
RATIONALE: Intersecting components may improve their bounds jointly, so choosing the best individual bound need not solve optimization over the intersection.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const;
VERIFICATION_CRITERIA: Check both donor directions, sole-bound donors, equal open/closed ties, rational comparison with cross-products exceeding the coefficient range, failure sentinels and witnesses outside the other component.
SOURCE: 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/maxmin1.cc.
-
5. Product component order and equality UID: PPL-SPEC-001447 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000302 Interpretation of sufficient property tests (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Containment shall reduce both operands and require containment for both corresponding component pairs. Strict containment shall additionally require strictness for at least one pair. Equality shall require both component equalities after reduction; inequality shall negate it. These are component-order and equality tests, which may distinguish equal represented intersections. Componentwise strictness shall not prove strictness of concrete intersection inclusion. Dimension admission shall follow the component tests.
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.
RATIONALE: The product representation can carry redundant restrictions distributed differently between components.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
bool contains(const Partially_Reduced_Product&) const; bool strictly_contains(const Partially_Reduced_Product&) const; template <typename D1, typename D2, typename R> bool operator==(const Partially_Reduced_Product<D1,D2,R>&, const Partially_Reduced_Product<D1,D2,R>&); // Inequality uses C++20 rewriting of operator==.
VERIFICATION_CRITERIA: Check Boolean inequality expressions in both operand orders through C++20 equality rewriting, retaining the stated equality and mismatch behavior. Check proper component inclusion, concrete-equal pairs with different components, self-comparison and dimension errors.
SOURCE: 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/contains1.cc; tests/Partially_Reduced_Product/equals1.cc.
-
Incoming links from: 12. Relations between bounded-difference values and linear constraints 12. Relations between octagonal values and linear constraints 2. Constraint-relation value copying and lifetime 3. Constraint-relation conjunction, subtraction and implication 4. Constraint-relation flag encoding and validity 5. Constraint-relation textual output and stream failures6
1. Constraint-relation assertion values and named factories UID: PPL-SPEC-000541 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: Poly_Con_Relation shall represent a finite set A of named assertions. nothing() shall return the empty assertion set. The factories is_disjoint(), strictly_intersects(), is_included(), saturates() shall return the corresponding singleton sets. The four atoms shall assert, respectively, disjointness from the constraint satisfying set, intersection without inclusion in that set, inclusion in that set, and vanishing of the constraint's affine expression at every represented point. A domain query shall supply the interpretation applicable to its accepted descriptor and domain.
Every subset of the named atoms shall be a valid value, including combinations that cannot describe a particular nonempty geometric object. An empty assertion set shall state no fact; absence of an atom shall not assert its negation. Operations on these values shall require live initialized objects and synchronized access against mutation. They shall require no library or thread initialization owner, coefficient-constant stage or FPU setup. Numerical coefficient limits shall not restrict the assertion algebra.
RATIONALE: Named assertions communicate facts without confusing an absent assertion with a negative answer or closing the stored facts under geometric reasoning.
INTERFACE: Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member signatures apply to Poly_Con_Relation. Stream insertion belongs to IO_Operators.
class Poly_Con_Relation; static Poly_Con_Relation nothing(); static Poly_Con_Relation is_disjoint(); static Poly_Con_Relation strictly_intersects(); static Poly_Con_Relation is_included(); static Poly_Con_Relation saturates();
VERIFICATION_CRITERIA: Construct every subset from named factories, compare singleton memberships and empty values, and exercise the complete algebra without initialization owners in every selected configuration.
SOURCE: src/Poly_Con_Relation_defs.hh; src/Poly_Con_Relation_inlines.hh; src/Poly_Con_Relation.cc; tests/relationvaluesspec1.cc.
-
2. Constraint-relation value copying and lifetime UID: PPL-SPEC-000542 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: Copy construction and assignment of Poly_Con_Relation shall preserve exactly the source assertion set. Assignment shall return the destination reference and admit self-assignment. Later assignment of either object shall leave the other unchanged, and either object shall remain usable after destruction of its source or copy. Destruction shall require no external lifetime owner. An rvalue may be copied; it shall not require an empty moved-from source. The validity and initialization prerequisites in 🔗 1. Constraint-relation assertion values and named factories shall apply.
RATIONALE: Relation results are independent small values that callers retain after queries and temporary operands disappear.
INTERFACE: Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member signatures apply to Poly_Con_Relation. Stream insertion belongs to IO_Operators.
Poly_Con_Relation(const Poly_Con_Relation& y); Poly_Con_Relation& operator=(const Poly_Con_Relation& y); ~Poly_Con_Relation();
VERIFICATION_CRITERIA: Check every representable assertion set through copy construction, assignment, self-assignment, rvalue copying, independent subsequent assignments and destruction of a temporary source.
SOURCE: src/Poly_Con_Relation_defs.hh; src/Poly_Con_Relation_inlines.hh; src/Poly_Con_Relation.cc; tests/relationvaluesspec1.cc.
-
3. Constraint-relation conjunction, subtraction and implication UID: PPL-SPEC-000543 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: For assertion sets A and B represented by x and y, x && y shall represent A∪B, and x - y shall represent A⧵B. x.implies(y) shall return true exactly when B ⊆ A. Equality shall return true exactly when A = B; inequality shall be its logical negation. These operations shall preserve both operands and admit the same object in both positions.
Implication shall inspect asserted membership only: it shall neither infer additional geometric facts from an atom nor use inconsistent combinations to infer unstored atoms. Subtracting an absent assertion shall have no effect; subtracting a value from itself shall yield nothing(). The prerequisites in 🔗 1. Constraint-relation assertion values and named factories shall apply.
RATIONALE: The algebra combines and selects known assertions; it does not solve a new geometric relation problem.
INTERFACE: Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member signatures apply to Poly_Con_Relation. Stream insertion belongs to IO_Operators.
Poly_Con_Relation operator&&(const Poly_Con_Relation& x, const Poly_Con_Relation& y); Poly_Con_Relation operator-(const Poly_Con_Relation& x, const Poly_Con_Relation& y); bool implies(const Poly_Con_Relation& y) const; bool operator==(const Poly_Con_Relation& x, const Poly_Con_Relation& y); bool operator!=(const Poly_Con_Relation& x, const Poly_Con_Relation& y);
VERIFICATION_CRITERIA: Compare every pair of assertion subsets with an independent finite-set union, difference, reverse-inclusion and equality model. Check aliases, unchanged operands, empty identities and self subtraction.
SOURCE: src/Poly_Con_Relation_defs.hh; src/Poly_Con_Relation_inlines.hh; src/Poly_Con_Relation.cc; tests/relationvaluesspec1.cc.
-
4. Constraint-relation flag encoding and validity UID: PPL-SPEC-000544 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: get_flags() shall return the unsigned bitwise union of the masks of exactly the stored atoms. nothing() shall have mask zero. is_disjoint(), strictly_intersects(), is_included() and saturates() shall have masks 1, 2, 4 and 8, respectively. OK() shall return true for every value obtained from named factories, copying, assignment and the assertion algebra. Both queries shall preserve the value. Their prerequisites shall follow 🔗 1. Constraint-relation assertion values and named factories.
RATIONALE: Language bindings need a stable encoding of the named assertions. Geometric realizability is separate from the validity of a result value.
INTERFACE: Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member signatures apply to Poly_Con_Relation. Stream insertion belongs to IO_Operators.
unsigned int get_flags() const; bool OK() const;
VERIFICATION_CRITERIA: Check literal singleton masks, zero and every combined mask against independent membership, and check validity after all factory, ownership and algebra histories.
SOURCE: src/Poly_Con_Relation_defs.hh; src/Poly_Con_Relation_inlines.hh; src/Poly_Con_Relation.cc; tests/relationvaluesspec1.cc.
-
5. Constraint-relation textual output and stream failures UID: PPL-SPEC-000545 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: Stream output and ascii_dump(s) shall emit exactly the stored assertion names in the order IS_DISJOINT, STRICTLY_INTERSECTS, IS_INCLUDED, SATURATES, separated by `` & `` when more than one is present. The empty set shall emit NOTHING. No trailing separator, newline or numeric flag mask shall be added. The insertion operator shall return the same stream reference. No-argument ascii_dump() and print() shall emit the same representation to std::cerr.
Output shall preserve the relation value and stream formatting flags and precision; any pending field width shall follow ordinary string-insertion semantics. Stream errors shall follow the stream's error-state and exception-mask rules; a reported stream failure need not roll back bytes already emitted. Calls shall require valid live streams and the prerequisites in 🔗 1. Constraint-relation assertion values and named factories, with caller synchronization for shared output streams. Text output shall not provide a corresponding relation-value input operation.
RATIONALE: Stable names make compound answers readable while ordinary C++ stream failures remain visible to the caller.
INTERFACE: Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member signatures apply to Poly_Con_Relation. Stream insertion belongs to IO_Operators.
void ascii_dump(std::ostream& s) const; void ascii_dump() const; void print() const; std::ostream& operator<<(std::ostream& s, const Poly_Con_Relation& r);
VERIFICATION_CRITERIA: Check exact text for every assertion subset through stream insertion and ASCII output, capture both no-argument outputs, retain stream identity and formatting, and inject returning and throwing stream-buffer failures with unchanged source values.
SOURCE: src/Poly_Con_Relation_defs.hh; src/Poly_Con_Relation_inlines.hh; src/Poly_Con_Relation.cc; tests/relationvaluesspec1.cc.
-
Incoming links from: 14. Subsumption of geometric generators by bounded-difference values 14. Subsumption of geometric generators by octagonal values 7. Generator-relation value copying and lifetime 8. Generator-relation conjunction, subtraction and implication 9. Generator-relation flag encoding and validity 10. Generator-relation textual output and stream failures6
6. Generator-relation assertion values and named factories UID: PPL-SPEC-000546 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: Poly_Gen_Relation shall represent a finite set A of named assertions. nothing() shall return the empty assertion set. The factories subsumes() shall return the corresponding singleton sets. The atom shall assert that adding the generator would not change the represented set, under the applicable domain and generator-kind interpretation.
The empty assertion set and the singleton subsumption assertion shall both be valid values. The empty set shall state no fact; absence of the subsumption assertion shall not assert its negation. Operations on these values shall require live initialized objects and synchronized access against mutation. They shall require no library or thread initialization owner, coefficient-constant stage or FPU setup. Numerical coefficient limits shall not restrict the assertion algebra.
RATIONALE: Named assertions communicate facts without confusing an absent assertion with a negative answer or closing the stored facts under geometric reasoning.
INTERFACE: Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member signatures apply to Poly_Gen_Relation. Stream insertion belongs to IO_Operators.
class Poly_Gen_Relation; static Poly_Gen_Relation nothing(); static Poly_Gen_Relation subsumes();
VERIFICATION_CRITERIA: Construct every subset from named factories, compare singleton memberships and empty values, and exercise the complete algebra without initialization owners in every selected configuration.
SOURCE: src/Poly_Gen_Relation_defs.hh; src/Poly_Gen_Relation_inlines.hh; src/Poly_Gen_Relation.cc; tests/relationvaluesspec1.cc.
-
7. Generator-relation value copying and lifetime UID: PPL-SPEC-000547 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: Copy construction and assignment of Poly_Gen_Relation shall preserve exactly the source assertion set. Assignment shall return the destination reference and admit self-assignment. Later assignment of either object shall leave the other unchanged, and either object shall remain usable after destruction of its source or copy. Destruction shall require no external lifetime owner. An rvalue may be copied; it shall not require an empty moved-from source. The validity and initialization prerequisites in 🔗 6. Generator-relation assertion values and named factories shall apply.
RATIONALE: Relation results are independent small values that callers retain after queries and temporary operands disappear.
INTERFACE: Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member signatures apply to Poly_Gen_Relation. Stream insertion belongs to IO_Operators.
Poly_Gen_Relation(const Poly_Gen_Relation& y); Poly_Gen_Relation& operator=(const Poly_Gen_Relation& y); ~Poly_Gen_Relation();
VERIFICATION_CRITERIA: Check every representable assertion set through copy construction, assignment, self-assignment, rvalue copying, independent subsequent assignments and destruction of a temporary source.
SOURCE: src/Poly_Gen_Relation_defs.hh; src/Poly_Gen_Relation_inlines.hh; src/Poly_Gen_Relation.cc; tests/relationvaluesspec1.cc.
-
8. Generator-relation conjunction, subtraction and implication UID: PPL-SPEC-000548 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: For assertion sets A and B represented by x and y, x && y shall represent A∪B, and x - y shall represent A⧵B. x.implies(y) shall return true exactly when B ⊆ A. Equality shall return true exactly when A = B; inequality shall be its logical negation. These operations shall preserve both operands and admit the same object in both positions.
Implication shall inspect asserted membership only: it shall neither infer additional geometric facts from an atom nor use inconsistent combinations to infer unstored atoms. Subtracting an absent assertion shall have no effect; subtracting a value from itself shall yield nothing(). The prerequisites in 🔗 6. Generator-relation assertion values and named factories shall apply.
RATIONALE: The algebra combines and selects known assertions; it does not solve a new geometric relation problem.
INTERFACE: Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member signatures apply to Poly_Gen_Relation. Stream insertion belongs to IO_Operators.
Poly_Gen_Relation operator&&(const Poly_Gen_Relation& x, const Poly_Gen_Relation& y); Poly_Gen_Relation operator-(const Poly_Gen_Relation& x, const Poly_Gen_Relation& y); bool implies(const Poly_Gen_Relation& y) const; bool operator==(const Poly_Gen_Relation& x, const Poly_Gen_Relation& y); bool operator!=(const Poly_Gen_Relation& x, const Poly_Gen_Relation& y);
VERIFICATION_CRITERIA: Compare every pair of assertion subsets with an independent finite-set union, difference, reverse-inclusion and equality model. Check aliases, unchanged operands, empty identities and self subtraction.
SOURCE: src/Poly_Gen_Relation_defs.hh; src/Poly_Gen_Relation_inlines.hh; src/Poly_Gen_Relation.cc; tests/relationvaluesspec1.cc.
-
9. Generator-relation flag encoding and validity UID: PPL-SPEC-000549 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT: get_flags() shall return the unsigned bitwise union of the masks of exactly the stored atoms. nothing() shall have mask zero. subsumes() shall have mask 1. OK() shall return true for every value obtained from named factories, copying, assignment and the assertion algebra. Both queries shall preserve the value. Their prerequisites shall follow 🔗 6. Generator-relation assertion values and named factories.
RATIONALE: Language bindings need a stable encoding of the named assertions. Geometric realizability is separate from the validity of a result value.
INTERFACE: Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member signatures apply to Poly_Gen_Relation. Stream insertion belongs to IO_Operators.
unsigned int get_flags() const; bool OK() const;
VERIFICATION_CRITERIA: Check literal singleton masks, zero and every combined mask against independent membership, and check validity after all factory, ownership and algebra histories.
SOURCE: src/Poly_Gen_Relation_defs.hh; src/Poly_Gen_Relation_inlines.hh; src/Poly_Gen_Relation.cc; tests/relationvaluesspec1.cc.
-
10. Generator-relation textual output and stream failures UID: PPL-SPEC-000550 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: Stream output and ascii_dump(s) shall emit exactly the stored assertion as SUBSUMES for the singleton subsumption assertion. The empty set shall emit NOTHING. No trailing separator, newline or numeric flag mask shall be added. The insertion operator shall return the same stream reference. No-argument ascii_dump() and print() shall emit the same representation to std::cerr.
Output shall preserve the relation value and stream formatting flags and precision; any pending field width shall follow ordinary string-insertion semantics. Stream errors shall follow the stream's error-state and exception-mask rules; a reported stream failure need not roll back bytes already emitted. Calls shall require valid live streams and the prerequisites in 🔗 6. Generator-relation assertion values and named factories, with caller synchronization for shared output streams. Text output shall not provide a corresponding relation-value input operation.
RATIONALE: Stable names make compound answers readable while ordinary C++ stream failures remain visible to the caller.
INTERFACE: Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member signatures apply to Poly_Gen_Relation. Stream insertion belongs to IO_Operators.
void ascii_dump(std::ostream& s) const; void ascii_dump() const; void print() const; std::ostream& operator<<(std::ostream& s, const Poly_Gen_Relation& r);
VERIFICATION_CRITERIA: Check exact text for every assertion subset through stream insertion and ASCII output, capture both no-argument outputs, retain stream identity and formatting, and inject returning and throwing stream-buffer failures with unchanged source values.
SOURCE: src/Poly_Gen_Relation_defs.hh; src/Poly_Gen_Relation_inlines.hh; src/Poly_Gen_Relation.cc; tests/relationvaluesspec1.cc.
-
2. Primitive numerical abstractions UID: PPL-HLR-000002 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000051 Bounded-difference expressiveness (Refined by)
- PPL-LLR-000052 Conservative bounded-difference constants (Refined by)
- PPL-LLR-000053 Bounded-difference intersection and upper bounds (Refined by)
- PPL-LLR-000054 Bounded-difference widening guarantees (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000445 Narrowing and descending precision recovery (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
- PPL-LLR-000041 Rational-grid meaning (Refined by)
- PPL-LLR-000042 Equivalent grid representations (Refined by)
- PPL-LLR-000043 Grid intersection and grid hull (Refined by)
- PPL-LLR-000044 Rational affine transformations of grids (Refined by)
- PPL-LLR-000433 Rational-grid widening facilities (Refined by)
- PPL-LLR-000021 Interval boundary membership (Refined by)
- PPL-LLR-000022 Cartesian meaning of boxes (Refined by)
- PPL-LLR-000023 Sound interval arithmetic (Refined by)
- PPL-LLR-000024 Convergence of interval and box widening (Refined by)
- PPL-LLR-000416 Box intersection and least upper bounds (Refined by)
- PPL-LLR-000061 Octagonal expressiveness (Refined by)
- PPL-LLR-000062 Conservative octagonal constants (Refined by)
- PPL-LLR-000063 Octagonal intersection and upper bounds (Refined by)
- PPL-LLR-000064 Preservation of integer points during octagonal refinement (Refined by)
- PPL-LLR-000065 Octagonal widening guarantees (Refined by)
- PPL-LLR-000031 Closed and non-necessarily-closed polyhedra (Refined by)
- PPL-LLR-000032 Equivalent polyhedral representations (Refined by)
- PPL-LLR-000033 Polyhedral intersection and hull (Refined by)
- PPL-LLR-000034 Rational affine transformations of polyhedra (Refined by)
- PPL-LLR-000035 Polyhedral widening guarantees (Refined by)
- PPL-LLR-000447 Exact polyhedral Minkowski addition (Refined by)
- PPL-LLR-000448 HPW01 closed-polyhedron extrapolation (Refined by)
- PPL-LLR-000449 Bounded Chvatal half-pair refinement (Refined by)
- PPL-LLR-000450 HH95 closed-polyhedron edge extrapolation (Refined by)
- PPL-LLR-000453 Selected-coordinate polyhedral integer witnesses (Refined by)
- PPL-LLR-000454 Constraint-description polyhedral envelope (Refined by)
- PPL-LLR-000455 Tight enclosing bounds in selected polyhedral directions (Refined by)
STATEMENT: PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.
RATIONALE: Clients need alternative numerical representations with different expressiveness and computation costs.
VERIFICATION_CRITERIA: Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.
-
3. Disjunctions and combinations of numerical abstractions UID: PPL-HLR-000003 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): - PPL-LLR-000071 Disjunctive meaning of finite powersets (Refined by)
- PPL-LLR-000072 Meaning-preserving removal of redundant disjuncts (Refined by)
- PPL-LLR-000073 Meaning of geometric powerset comparisons (Refined by)
- PPL-LLR-000074 Intersection meaning of product domains (Refined by)
- PPL-LLR-000429 Lifted operations on finite pointset powersets (Refined by)
- PPL-LLR-000430 Compound extrapolation and finite convergence (Refined by)
- PPL-LLR-000417 Coordinate removal and existential projection (Refined by)
- PPL-LLR-000418 Distinguished coordinate extensions (Refined by)
- PPL-LLR-000419 Coordinate remapping semantics (Refined by)
- PPL-LLR-000420 Sound conversion between numerical abstractions (Refined by)
- PPL-LLR-000421 Constraint and congruence refinement (Refined by)
- PPL-LLR-000422 Sound affine forward and backward transfers (Refined by)
- PPL-LLR-000423 Domain-specific time-elapse abstraction (Refined by)
- PPL-LLR-000424 Abstract set-difference semantics (Refined by)
- PPL-LLR-000425 Topological closure and closure approximation (Refined by)
- PPL-LLR-000426 Context-preserving simplification (Refined by)
- PPL-LLR-000427 Preservation of integer points in integer restriction (Refined by)
- PPL-LLR-000428 Modeled bounded-integer arithmetic and wrapping (Refined by)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Refined by)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Refined by)
- PPL-LLR-000443 Dimension-preserving coordinate forgetting (Refined by)
- PPL-LLR-000444 Concatenation, coordinate expansion and folding (Refined by)
- PPL-LLR-000446 Reloadable textual representations (Refined by)
STATEMENT: PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.
RATIONALE: Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.
VERIFICATION_CRITERIA: Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.
BIBLIOGRAPHY: BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).
SOURCE: doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.
- PPL-SPEC-001555 C generated domain observations (Specified by)
- PPL-SPEC-001070 Affine boundedness, extrema and witnesses on bounded-difference values (Specified by)
- PPL-SPEC-001071 Constant affine values and zero frequency on bounded-difference sets (Specified by)
- PPL-SPEC-001030 Exact extraction of individual box boundaries (Specified by)
- PPL-SPEC-001032 Affine boundedness, extrema and witnesses on boxes (Specified by)
- PPL-SPEC-000956 Ambient and affine box dimension queries (Specified by)
- PPL-SPEC-000959 Exact ordinary box classification (Specified by)
- PPL-SPEC-000960 Box set relations, dimension-sensitive equality and compatible hashes (Specified by)
- PPL-SPEC-001265 Exact directional boundedness of affine expressions on grids (Specified by)
- PPL-SPEC-001266 Exact rational-grid supremum and attainment (Specified by)
- PPL-SPEC-001267 Exact rational-grid infimum and attainment (Specified by)
- PPL-SPEC-001268 Point witnesses for rational-grid maximization (Specified by)
- PPL-SPEC-001269 Point witnesses for rational-grid minimization (Specified by)
- PPL-SPEC-001160 Affine boundedness, extrema and witnesses on octagonal values (Specified by)
- PPL-SPEC-001161 Constant affine values and zero frequency on octagonal sets (Specified by)
- PPL-SPEC-001446 Component-selected product bounds and witnesses (Specified by)
- PPL-SPEC-001641 Weakly relational extended-number policies (Specified by)
PPL shall provide directional-bound and extremum queries for the documented supported pointset domains. Under the arithmetic preconditions, a reported upper bound shall bound all admitted objective values from above and a lower bound shall bound them from below. The per-domain result contract shall distinguish a conservative bound from an established supremum or infimum and shall identify whether success, attainment and any witness concern the represented set or only a supplying component.
A useful component-derived bound need not be the exact extremum of the product intersection, and successful bound computation alone need not prove that the intersection is nonempty.
Verification covers directional boundedness, extremum and witness operations and their domain-specific outcome meanings. Related obligations: 🔗 3. Conservative directed numerical bounds, 🔗 1. Meaning of successful exact and approximate results, 🔗 2. Interpretation of sufficient property tests, 🔗 13. Mathematical query capabilities and logical outcomes.
Independently derive objective bounds, exact extrema and attainment for small open, closed, empty and unbounded sets. Check the promised witness meaning and exactness separately from the bound inequality. Include products whose component extremum is not attained in the intersection and products with empty intersections but nonempty components.
src/Polyhedron_defs.hh: directional bounds and extremum witnesses. src/Box_defs.hh, src/Grid_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: domain bounds and optimization. src/Partially_Reduced_Product_defs.hh: component-derived bounds, nonemptiness and attainment limits.
-
2. C generated domain observations UID: PPL-SPEC-001555 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000202 C object ownership and borrowed access (Specifies)
- PPL-LLR-000203 C boundary error reporting (Specifies)
- PPL-LLR-000214 Mathematical consistency of corresponding binding operations (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
STATEMENT: Predicates, containment/equality, dimension and relation queries shall return the corresponding native outcomes or flags. Bounds, optimization and frequency functions shall assign their native exact or sound values and admitted witnesses only when their operation reports success. Caller-supplied coefficient/witness outputs shall obey native nonaliasing restrictions. False or inconclusive results shall not be interpreted as a numerical proof beyond the native contract.
The selected-coordinate integer-point query shall decide existence with exactly the listed coordinates integral and all others real. An empty list shall test ordinary feasibility. Out-of-space indices shall be rejected and the represented input shall be preserved, as specified in 🔗 1. Selected-coordinate integer-point existence.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
RATIONALE: Generated forwarding must retain the native mathematical and ownership contract.
INTERFACE: Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.
int ppl_Polyhedron_contains_integer_point_in_dimensions( ppl_const_Polyhedron_t ph, const ppl_dimension_type ds[], size_t n); int ppl_Polyhedron_space_dimension(ppl_const_Polyhedron_t ph, ppl_dimension_type *m); int ppl_Polyhedron_affine_dimension(ppl_const_Polyhedron_t ph, ppl_dimension_type *m); int ppl_Polyhedron_relation_with_Constraint(ppl_const_Polyhedron_t ph, ppl_const_Constraint_t c); int ppl_Polyhedron_relation_with_Generator(ppl_const_Polyhedron_t ph, ppl_const_Generator_t c); int ppl_Polyhedron_relation_with_Congruence(ppl_const_Polyhedron_t ph, ppl_const_Congruence_t c); int ppl_Polyhedron_is_empty(ppl_const_Polyhedron_t ph); int ppl_Polyhedron_is_universe(ppl_const_Polyhedron_t ph); int ppl_Polyhedron_is_bounded(ppl_const_Polyhedron_t ph); int ppl_Polyhedron_contains_integer_point(ppl_const_Polyhedron_t ph); int ppl_Polyhedron_is_topologically_closed(ppl_const_Polyhedron_t ph); int ppl_Polyhedron_is_discrete(ppl_const_Polyhedron_t ph); int ppl_Polyhedron_bounds_from_above(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le); int ppl_Polyhedron_bounds_from_below(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le); int ppl_Polyhedron_maximize(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Polyhedron_minimize(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Polyhedron_maximize_with_point(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Polyhedron_minimize_with_point(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Polyhedron_frequency(ppl_const_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_Polyhedron_contains_Polyhedron(ppl_const_Polyhedron_t x, ppl_const_Polyhedron_t y); int ppl_Polyhedron_strictly_contains_Polyhedron(ppl_const_Polyhedron_t x, ppl_const_Polyhedron_t y); int ppl_Polyhedron_is_disjoint_from_Polyhedron(ppl_const_Polyhedron_t x, ppl_const_Polyhedron_t y); int ppl_Polyhedron_OK(ppl_const_Polyhedron_t ph); int ppl_Polyhedron_constrains(ppl_Polyhedron_t ph, ppl_dimension_type var); int ppl_Polyhedron_external_memory_in_bytes(ppl_const_Polyhedron_t ps, size_t *sz); int ppl_Polyhedron_total_memory_in_bytes(ppl_const_Polyhedron_t ps, size_t *sz); int ppl_Grid_space_dimension(ppl_const_Grid_t ph, ppl_dimension_type *m); int ppl_Grid_affine_dimension(ppl_const_Grid_t ph, ppl_dimension_type *m); int ppl_Grid_relation_with_Constraint(ppl_const_Grid_t ph, ppl_const_Constraint_t c); int ppl_Grid_relation_with_Generator(ppl_const_Grid_t ph, ppl_const_Generator_t c); int ppl_Grid_relation_with_Congruence(ppl_const_Grid_t ph, ppl_const_Congruence_t c); int ppl_Grid_is_empty(ppl_const_Grid_t ph); int ppl_Grid_is_universe(ppl_const_Grid_t ph); int ppl_Grid_is_bounded(ppl_const_Grid_t ph); int ppl_Grid_contains_integer_point(ppl_const_Grid_t ph); int ppl_Grid_is_topologically_closed(ppl_const_Grid_t ph); int ppl_Grid_is_discrete(ppl_const_Grid_t ph); int ppl_Grid_bounds_from_above(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le); int ppl_Grid_bounds_from_below(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le); int ppl_Grid_maximize(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Grid_minimize(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Grid_maximize_with_point(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Grid_minimize_with_point(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Grid_frequency(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_Grid_contains_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y); int ppl_Grid_strictly_contains_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y); int ppl_Grid_is_disjoint_from_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y); int ppl_Grid_OK(ppl_const_Grid_t ph); int ppl_Grid_constrains(ppl_Grid_t ph, ppl_dimension_type var); int ppl_Grid_external_memory_in_bytes(ppl_const_Grid_t ps, size_t *sz); int ppl_Grid_total_memory_in_bytes(ppl_const_Grid_t ps, size_t *sz); int ppl_Rational_Box_space_dimension(ppl_const_Rational_Box_t ph, ppl_dimension_type *m); int ppl_Rational_Box_affine_dimension(ppl_const_Rational_Box_t ph, ppl_dimension_type *m); int ppl_Rational_Box_relation_with_Constraint(ppl_const_Rational_Box_t ph, ppl_const_Constraint_t c); int ppl_Rational_Box_relation_with_Generator(ppl_const_Rational_Box_t ph, ppl_const_Generator_t c); int ppl_Rational_Box_relation_with_Congruence(ppl_const_Rational_Box_t ph, ppl_const_Congruence_t c); int ppl_Rational_Box_is_empty(ppl_const_Rational_Box_t ph); int ppl_Rational_Box_is_universe(ppl_const_Rational_Box_t ph); int ppl_Rational_Box_is_bounded(ppl_const_Rational_Box_t ph); int ppl_Rational_Box_contains_integer_point(ppl_const_Rational_Box_t ph); int ppl_Rational_Box_is_topologically_closed(ppl_const_Rational_Box_t ph); int ppl_Rational_Box_is_discrete(ppl_const_Rational_Box_t ph); int ppl_Rational_Box_bounds_from_above(ppl_const_Rational_Box_t ph, ppl_const_Linear_Expression_t le); int ppl_Rational_Box_bounds_from_below(ppl_const_Rational_Box_t ph, ppl_const_Linear_Expression_t le); int ppl_Rational_Box_maximize(ppl_const_Rational_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Rational_Box_minimize(ppl_const_Rational_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Rational_Box_maximize_with_point(ppl_const_Rational_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Rational_Box_minimize_with_point(ppl_const_Rational_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Rational_Box_frequency(ppl_const_Rational_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_Rational_Box_contains_Rational_Box(ppl_const_Rational_Box_t x, ppl_const_Rational_Box_t y); int ppl_Rational_Box_strictly_contains_Rational_Box(ppl_const_Rational_Box_t x, ppl_const_Rational_Box_t y); int ppl_Rational_Box_is_disjoint_from_Rational_Box(ppl_const_Rational_Box_t x, ppl_const_Rational_Box_t y); int ppl_Rational_Box_OK(ppl_const_Rational_Box_t ph); int ppl_Rational_Box_constrains(ppl_Rational_Box_t ph, ppl_dimension_type var); int ppl_Rational_Box_external_memory_in_bytes(ppl_const_Rational_Box_t ps, size_t *sz); int ppl_Rational_Box_total_memory_in_bytes(ppl_const_Rational_Box_t ps, size_t *sz); int ppl_BD_Shape_mpz_class_space_dimension(ppl_const_BD_Shape_mpz_class_t ph, ppl_dimension_type *m); int ppl_BD_Shape_mpz_class_affine_dimension(ppl_const_BD_Shape_mpz_class_t ph, ppl_dimension_type *m); int ppl_BD_Shape_mpz_class_relation_with_Constraint( ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Constraint_t c); int ppl_BD_Shape_mpz_class_relation_with_Generator( ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Generator_t c); int ppl_BD_Shape_mpz_class_relation_with_Congruence( ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Congruence_t c); int ppl_BD_Shape_mpz_class_is_empty(ppl_const_BD_Shape_mpz_class_t ph); int ppl_BD_Shape_mpz_class_is_universe(ppl_const_BD_Shape_mpz_class_t ph); int ppl_BD_Shape_mpz_class_is_bounded(ppl_const_BD_Shape_mpz_class_t ph); int ppl_BD_Shape_mpz_class_contains_integer_point( ppl_const_BD_Shape_mpz_class_t ph); int ppl_BD_Shape_mpz_class_is_topologically_closed( ppl_const_BD_Shape_mpz_class_t ph); int ppl_BD_Shape_mpz_class_is_discrete(ppl_const_BD_Shape_mpz_class_t ph); int ppl_BD_Shape_mpz_class_bounds_from_above(ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le); int ppl_BD_Shape_mpz_class_bounds_from_below(ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le); int ppl_BD_Shape_mpz_class_maximize(ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_BD_Shape_mpz_class_minimize(ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_BD_Shape_mpz_class_maximize_with_point( ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_BD_Shape_mpz_class_minimize_with_point( ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_BD_Shape_mpz_class_frequency(ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_BD_Shape_mpz_class_contains_BD_Shape_mpz_class( ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y); int ppl_BD_Shape_mpz_class_strictly_contains_BD_Shape_mpz_class( ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y); int ppl_BD_Shape_mpz_class_is_disjoint_from_BD_Shape_mpz_class( ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y); int ppl_BD_Shape_mpz_class_OK(ppl_const_BD_Shape_mpz_class_t ph); int ppl_BD_Shape_mpz_class_constrains(ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var); int ppl_BD_Shape_mpz_class_external_memory_in_bytes( ppl_const_BD_Shape_mpz_class_t ps, size_t *sz); int ppl_BD_Shape_mpz_class_total_memory_in_bytes( ppl_const_BD_Shape_mpz_class_t ps, size_t *sz); int ppl_BD_Shape_mpq_class_space_dimension(ppl_const_BD_Shape_mpq_class_t ph, ppl_dimension_type *m); int ppl_BD_Shape_mpq_class_affine_dimension(ppl_const_BD_Shape_mpq_class_t ph, ppl_dimension_type *m); int ppl_BD_Shape_mpq_class_relation_with_Constraint( ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Constraint_t c); int ppl_BD_Shape_mpq_class_relation_with_Generator( ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Generator_t c); int ppl_BD_Shape_mpq_class_relation_with_Congruence( ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Congruence_t c); int ppl_BD_Shape_mpq_class_is_empty(ppl_const_BD_Shape_mpq_class_t ph); int ppl_BD_Shape_mpq_class_is_universe(ppl_const_BD_Shape_mpq_class_t ph); int ppl_BD_Shape_mpq_class_is_bounded(ppl_const_BD_Shape_mpq_class_t ph); int ppl_BD_Shape_mpq_class_contains_integer_point( ppl_const_BD_Shape_mpq_class_t ph); int ppl_BD_Shape_mpq_class_is_topologically_closed( ppl_const_BD_Shape_mpq_class_t ph); int ppl_BD_Shape_mpq_class_is_discrete(ppl_const_BD_Shape_mpq_class_t ph); int ppl_BD_Shape_mpq_class_bounds_from_above(ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le); int ppl_BD_Shape_mpq_class_bounds_from_below(ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le); int ppl_BD_Shape_mpq_class_maximize(ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_BD_Shape_mpq_class_minimize(ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_BD_Shape_mpq_class_maximize_with_point( ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_BD_Shape_mpq_class_minimize_with_point( ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_BD_Shape_mpq_class_frequency(ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_BD_Shape_mpq_class_contains_BD_Shape_mpq_class( ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y); int ppl_BD_Shape_mpq_class_strictly_contains_BD_Shape_mpq_class( ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y); int ppl_BD_Shape_mpq_class_is_disjoint_from_BD_Shape_mpq_class( ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y); int ppl_BD_Shape_mpq_class_OK(ppl_const_BD_Shape_mpq_class_t ph); int ppl_BD_Shape_mpq_class_constrains(ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var); int ppl_BD_Shape_mpq_class_external_memory_in_bytes( ppl_const_BD_Shape_mpq_class_t ps, size_t *sz); int ppl_BD_Shape_mpq_class_total_memory_in_bytes( ppl_const_BD_Shape_mpq_class_t ps, size_t *sz); int ppl_Octagonal_Shape_mpz_class_space_dimension( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type *m); int ppl_Octagonal_Shape_mpz_class_affine_dimension( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type *m); int ppl_Octagonal_Shape_mpz_class_relation_with_Constraint( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Constraint_t c); int ppl_Octagonal_Shape_mpz_class_relation_with_Generator( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Generator_t c); int ppl_Octagonal_Shape_mpz_class_relation_with_Congruence( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Congruence_t c); int ppl_Octagonal_Shape_mpz_class_is_empty( ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_Octagonal_Shape_mpz_class_is_universe( ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_Octagonal_Shape_mpz_class_is_bounded( ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_Octagonal_Shape_mpz_class_contains_integer_point( ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_Octagonal_Shape_mpz_class_is_topologically_closed( ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_Octagonal_Shape_mpz_class_is_discrete( ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_Octagonal_Shape_mpz_class_bounds_from_above( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le); int ppl_Octagonal_Shape_mpz_class_bounds_from_below( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le); int ppl_Octagonal_Shape_mpz_class_maximize( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Octagonal_Shape_mpz_class_minimize( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Octagonal_Shape_mpz_class_maximize_with_point( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Octagonal_Shape_mpz_class_minimize_with_point( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Octagonal_Shape_mpz_class_frequency( ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_Octagonal_Shape_mpz_class_contains_Octagonal_Shape_mpz_class( ppl_const_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y); int ppl_Octagonal_Shape_mpz_class_strictly_contains_Octagonal_Shape_mpz_class( ppl_const_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y); int ppl_Octagonal_Shape_mpz_class_is_disjoint_from_Octagonal_Shape_mpz_class( ppl_const_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y); int ppl_Octagonal_Shape_mpz_class_OK(ppl_const_Octagonal_Shape_mpz_class_t ph); int ppl_Octagonal_Shape_mpz_class_constrains(ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var); int ppl_Octagonal_Shape_mpz_class_external_memory_in_bytes( ppl_const_Octagonal_Shape_mpz_class_t ps, size_t *sz); int ppl_Octagonal_Shape_mpz_class_total_memory_in_bytes( ppl_const_Octagonal_Shape_mpz_class_t ps, size_t *sz); int ppl_Octagonal_Shape_mpq_class_space_dimension( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type *m); int ppl_Octagonal_Shape_mpq_class_affine_dimension( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type *m); int ppl_Octagonal_Shape_mpq_class_relation_with_Constraint( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Constraint_t c); int ppl_Octagonal_Shape_mpq_class_relation_with_Generator( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Generator_t c); int ppl_Octagonal_Shape_mpq_class_relation_with_Congruence( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Congruence_t c); int ppl_Octagonal_Shape_mpq_class_is_empty( ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_Octagonal_Shape_mpq_class_is_universe( ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_Octagonal_Shape_mpq_class_is_bounded( ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_Octagonal_Shape_mpq_class_contains_integer_point( ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_Octagonal_Shape_mpq_class_is_topologically_closed( ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_Octagonal_Shape_mpq_class_is_discrete( ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_Octagonal_Shape_mpq_class_bounds_from_above( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le); int ppl_Octagonal_Shape_mpq_class_bounds_from_below( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le); int ppl_Octagonal_Shape_mpq_class_maximize( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Octagonal_Shape_mpq_class_minimize( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Octagonal_Shape_mpq_class_maximize_with_point( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Octagonal_Shape_mpq_class_minimize_with_point( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Octagonal_Shape_mpq_class_frequency( ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_Octagonal_Shape_mpq_class_contains_Octagonal_Shape_mpq_class( ppl_const_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y); int ppl_Octagonal_Shape_mpq_class_strictly_contains_Octagonal_Shape_mpq_class( ppl_const_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y); int ppl_Octagonal_Shape_mpq_class_is_disjoint_from_Octagonal_Shape_mpq_class( ppl_const_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y); int ppl_Octagonal_Shape_mpq_class_OK(ppl_const_Octagonal_Shape_mpq_class_t ph); int ppl_Octagonal_Shape_mpq_class_constrains(ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var); int ppl_Octagonal_Shape_mpq_class_external_memory_in_bytes( ppl_const_Octagonal_Shape_mpq_class_t ps, size_t *sz); int ppl_Octagonal_Shape_mpq_class_total_memory_in_bytes( ppl_const_Octagonal_Shape_mpq_class_t ps, size_t *sz); int ppl_Constraints_Product_C_Polyhedron_Grid_space_dimension( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type *m); int ppl_Constraints_Product_C_Polyhedron_Grid_affine_dimension( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type *m); int ppl_Constraints_Product_C_Polyhedron_Grid_relation_with_Constraint( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Constraint_t c); int ppl_Constraints_Product_C_Polyhedron_Grid_relation_with_Generator( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Generator_t c); int ppl_Constraints_Product_C_Polyhedron_Grid_relation_with_Congruence( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Congruence_t c); int ppl_Constraints_Product_C_Polyhedron_Grid_is_empty( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph); int ppl_Constraints_Product_C_Polyhedron_Grid_is_universe( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph); int ppl_Constraints_Product_C_Polyhedron_Grid_is_bounded( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph); int ppl_Constraints_Product_C_Polyhedron_Grid_is_topologically_closed( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph); int ppl_Constraints_Product_C_Polyhedron_Grid_is_discrete( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph); int ppl_Constraints_Product_C_Polyhedron_Grid_bounds_from_above( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Linear_Expression_t le); int ppl_Constraints_Product_C_Polyhedron_Grid_bounds_from_below( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Linear_Expression_t le); int ppl_Constraints_Product_C_Polyhedron_Grid_maximize( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Constraints_Product_C_Polyhedron_Grid_minimize( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Constraints_Product_C_Polyhedron_Grid_maximize_with_point( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Constraints_Product_C_Polyhedron_Grid_minimize_with_point( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Constraints_Product_C_Polyhedron_Grid_contains_Constraints_Product_C_Polyhedron_Grid( ppl_const_Constraints_Product_C_Polyhedron_Grid_t x, ppl_const_Constraints_Product_C_Polyhedron_Grid_t y); int ppl_Constraints_Product_C_Polyhedron_Grid_strictly_contains_Constraints_Product_C_Polyhedron_Grid( ppl_const_Constraints_Product_C_Polyhedron_Grid_t x, ppl_const_Constraints_Product_C_Polyhedron_Grid_t y); int ppl_Constraints_Product_C_Polyhedron_Grid_is_disjoint_from_Constraints_Product_C_Polyhedron_Grid( ppl_const_Constraints_Product_C_Polyhedron_Grid_t x, ppl_const_Constraints_Product_C_Polyhedron_Grid_t y); int ppl_Constraints_Product_C_Polyhedron_Grid_OK( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph); int ppl_Constraints_Product_C_Polyhedron_Grid_constrains( ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var); int ppl_Constraints_Product_C_Polyhedron_Grid_external_memory_in_bytes( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ps, size_t *sz); int ppl_Constraints_Product_C_Polyhedron_Grid_total_memory_in_bytes( ppl_const_Constraints_Product_C_Polyhedron_Grid_t ps, size_t *sz); int ppl_Pointset_Powerset_C_Polyhedron_space_dimension( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type *m); int ppl_Pointset_Powerset_C_Polyhedron_affine_dimension( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type *m); int ppl_Pointset_Powerset_C_Polyhedron_relation_with_Constraint( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Constraint_t c); int ppl_Pointset_Powerset_C_Polyhedron_relation_with_Generator( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Generator_t c); int ppl_Pointset_Powerset_C_Polyhedron_relation_with_Congruence( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Congruence_t c); int ppl_Pointset_Powerset_C_Polyhedron_is_empty( ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_Pointset_Powerset_C_Polyhedron_is_universe( ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_Pointset_Powerset_C_Polyhedron_is_bounded( ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_Pointset_Powerset_C_Polyhedron_contains_integer_point( ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_Pointset_Powerset_C_Polyhedron_is_topologically_closed( ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_Pointset_Powerset_C_Polyhedron_is_discrete( ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_Pointset_Powerset_C_Polyhedron_bounds_from_above( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t le); int ppl_Pointset_Powerset_C_Polyhedron_bounds_from_below( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t le); int ppl_Pointset_Powerset_C_Polyhedron_maximize( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Pointset_Powerset_C_Polyhedron_minimize( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Pointset_Powerset_C_Polyhedron_maximize_with_point( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Pointset_Powerset_C_Polyhedron_minimize_with_point( ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Pointset_Powerset_C_Polyhedron_contains_Pointset_Powerset_C_Polyhedron( ppl_const_Pointset_Powerset_C_Polyhedron_t x, ppl_const_Pointset_Powerset_C_Polyhedron_t y); int ppl_Pointset_Powerset_C_Polyhedron_strictly_contains_Pointset_Powerset_C_Polyhedron( ppl_const_Pointset_Powerset_C_Polyhedron_t x, ppl_const_Pointset_Powerset_C_Polyhedron_t y); int ppl_Pointset_Powerset_C_Polyhedron_is_disjoint_from_Pointset_Powerset_C_Polyhedron( ppl_const_Pointset_Powerset_C_Polyhedron_t x, ppl_const_Pointset_Powerset_C_Polyhedron_t y); int ppl_Pointset_Powerset_C_Polyhedron_OK( ppl_const_Pointset_Powerset_C_Polyhedron_t ph); int ppl_Pointset_Powerset_C_Polyhedron_constrains( ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var); int ppl_Pointset_Powerset_C_Polyhedron_external_memory_in_bytes( ppl_const_Pointset_Powerset_C_Polyhedron_t ps, size_t *sz); int ppl_Pointset_Powerset_C_Polyhedron_total_memory_in_bytes( ppl_const_Pointset_Powerset_C_Polyhedron_t ps, size_t *sz); int ppl_Pointset_Powerset_NNC_Polyhedron_space_dimension( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type *m); int ppl_Pointset_Powerset_NNC_Polyhedron_affine_dimension( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type *m); int ppl_Pointset_Powerset_NNC_Polyhedron_relation_with_Constraint( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Constraint_t c); int ppl_Pointset_Powerset_NNC_Polyhedron_relation_with_Generator( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Generator_t c); int ppl_Pointset_Powerset_NNC_Polyhedron_relation_with_Congruence( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Congruence_t c); int ppl_Pointset_Powerset_NNC_Polyhedron_is_empty( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_Pointset_Powerset_NNC_Polyhedron_is_universe( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_Pointset_Powerset_NNC_Polyhedron_is_bounded( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_Pointset_Powerset_NNC_Polyhedron_contains_integer_point( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_Pointset_Powerset_NNC_Polyhedron_is_topologically_closed( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_Pointset_Powerset_NNC_Polyhedron_is_discrete( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_Pointset_Powerset_NNC_Polyhedron_bounds_from_above( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Linear_Expression_t le); int ppl_Pointset_Powerset_NNC_Polyhedron_bounds_from_below( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Linear_Expression_t le); int ppl_Pointset_Powerset_NNC_Polyhedron_maximize( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Pointset_Powerset_NNC_Polyhedron_minimize( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Pointset_Powerset_NNC_Polyhedron_maximize_with_point( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Pointset_Powerset_NNC_Polyhedron_minimize_with_point( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Pointset_Powerset_NNC_Polyhedron_contains_Pointset_Powerset_NNC_Polyhedron( ppl_const_Pointset_Powerset_NNC_Polyhedron_t x, ppl_const_Pointset_Powerset_NNC_Polyhedron_t y); int ppl_Pointset_Powerset_NNC_Polyhedron_strictly_contains_Pointset_Powerset_NNC_Polyhedron( ppl_const_Pointset_Powerset_NNC_Polyhedron_t x, ppl_const_Pointset_Powerset_NNC_Polyhedron_t y); int ppl_Pointset_Powerset_NNC_Polyhedron_is_disjoint_from_Pointset_Powerset_NNC_Polyhedron( ppl_const_Pointset_Powerset_NNC_Polyhedron_t x, ppl_const_Pointset_Powerset_NNC_Polyhedron_t y); int ppl_Pointset_Powerset_NNC_Polyhedron_OK( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph); int ppl_Pointset_Powerset_NNC_Polyhedron_constrains( ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var); int ppl_Pointset_Powerset_NNC_Polyhedron_external_memory_in_bytes( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps, size_t *sz); int ppl_Pointset_Powerset_NNC_Polyhedron_total_memory_in_bytes( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps, size_t *sz); int ppl_Double_Box_space_dimension(ppl_const_Double_Box_t ph, ppl_dimension_type *m); int ppl_Double_Box_affine_dimension(ppl_const_Double_Box_t ph, ppl_dimension_type *m); int ppl_Double_Box_relation_with_Constraint(ppl_const_Double_Box_t ph, ppl_const_Constraint_t c); int ppl_Double_Box_relation_with_Generator(ppl_const_Double_Box_t ph, ppl_const_Generator_t c); int ppl_Double_Box_relation_with_Congruence(ppl_const_Double_Box_t ph, ppl_const_Congruence_t c); int ppl_Double_Box_is_empty(ppl_const_Double_Box_t ph); int ppl_Double_Box_is_universe(ppl_const_Double_Box_t ph); int ppl_Double_Box_is_bounded(ppl_const_Double_Box_t ph); int ppl_Double_Box_contains_integer_point(ppl_const_Double_Box_t ph); int ppl_Double_Box_is_topologically_closed(ppl_const_Double_Box_t ph); int ppl_Double_Box_is_discrete(ppl_const_Double_Box_t ph); int ppl_Double_Box_bounds_from_above(ppl_const_Double_Box_t ph, ppl_const_Linear_Expression_t le); int ppl_Double_Box_bounds_from_below(ppl_const_Double_Box_t ph, ppl_const_Linear_Expression_t le); int ppl_Double_Box_maximize(ppl_const_Double_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Double_Box_minimize(ppl_const_Double_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Double_Box_maximize_with_point(ppl_const_Double_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Double_Box_minimize_with_point(ppl_const_Double_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Double_Box_frequency(ppl_const_Double_Box_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_Double_Box_contains_Double_Box(ppl_const_Double_Box_t x, ppl_const_Double_Box_t y); int ppl_Double_Box_strictly_contains_Double_Box(ppl_const_Double_Box_t x, ppl_const_Double_Box_t y); int ppl_Double_Box_is_disjoint_from_Double_Box(ppl_const_Double_Box_t x, ppl_const_Double_Box_t y); int ppl_Double_Box_OK(ppl_const_Double_Box_t ph); int ppl_Double_Box_constrains(ppl_Double_Box_t ph, ppl_dimension_type var); int ppl_Double_Box_external_memory_in_bytes(ppl_const_Double_Box_t ps, size_t *sz); int ppl_Double_Box_total_memory_in_bytes(ppl_const_Double_Box_t ps, size_t *sz); int ppl_BD_Shape_double_space_dimension(ppl_const_BD_Shape_double_t ph, ppl_dimension_type *m); int ppl_BD_Shape_double_affine_dimension(ppl_const_BD_Shape_double_t ph, ppl_dimension_type *m); int ppl_BD_Shape_double_relation_with_Constraint(ppl_const_BD_Shape_double_t ph, ppl_const_Constraint_t c); int ppl_BD_Shape_double_relation_with_Generator(ppl_const_BD_Shape_double_t ph, ppl_const_Generator_t c); int ppl_BD_Shape_double_relation_with_Congruence(ppl_const_BD_Shape_double_t ph, ppl_const_Congruence_t c); int ppl_BD_Shape_double_is_empty(ppl_const_BD_Shape_double_t ph); int ppl_BD_Shape_double_is_universe(ppl_const_BD_Shape_double_t ph); int ppl_BD_Shape_double_is_bounded(ppl_const_BD_Shape_double_t ph); int ppl_BD_Shape_double_contains_integer_point(ppl_const_BD_Shape_double_t ph); int ppl_BD_Shape_double_is_topologically_closed(ppl_const_BD_Shape_double_t ph); int ppl_BD_Shape_double_is_discrete(ppl_const_BD_Shape_double_t ph); int ppl_BD_Shape_double_bounds_from_above(ppl_const_BD_Shape_double_t ph, ppl_const_Linear_Expression_t le); int ppl_BD_Shape_double_bounds_from_below(ppl_const_BD_Shape_double_t ph, ppl_const_Linear_Expression_t le); int ppl_BD_Shape_double_maximize(ppl_const_BD_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_BD_Shape_double_minimize(ppl_const_BD_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_BD_Shape_double_maximize_with_point(ppl_const_BD_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_BD_Shape_double_minimize_with_point(ppl_const_BD_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_BD_Shape_double_frequency(ppl_const_BD_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_BD_Shape_double_contains_BD_Shape_double(ppl_const_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y); int ppl_BD_Shape_double_strictly_contains_BD_Shape_double( ppl_const_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y); int ppl_BD_Shape_double_is_disjoint_from_BD_Shape_double( ppl_const_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y); int ppl_BD_Shape_double_OK(ppl_const_BD_Shape_double_t ph); int ppl_BD_Shape_double_constrains(ppl_BD_Shape_double_t ph, ppl_dimension_type var); int ppl_BD_Shape_double_external_memory_in_bytes(ppl_const_BD_Shape_double_t ps, size_t *sz); int ppl_BD_Shape_double_total_memory_in_bytes(ppl_const_BD_Shape_double_t ps, size_t *sz); int ppl_Octagonal_Shape_double_space_dimension( ppl_const_Octagonal_Shape_double_t ph, ppl_dimension_type *m); int ppl_Octagonal_Shape_double_affine_dimension( ppl_const_Octagonal_Shape_double_t ph, ppl_dimension_type *m); int ppl_Octagonal_Shape_double_relation_with_Constraint( ppl_const_Octagonal_Shape_double_t ph, ppl_const_Constraint_t c); int ppl_Octagonal_Shape_double_relation_with_Generator( ppl_const_Octagonal_Shape_double_t ph, ppl_const_Generator_t c); int ppl_Octagonal_Shape_double_relation_with_Congruence( ppl_const_Octagonal_Shape_double_t ph, ppl_const_Congruence_t c); int ppl_Octagonal_Shape_double_is_empty(ppl_const_Octagonal_Shape_double_t ph); int ppl_Octagonal_Shape_double_is_universe( ppl_const_Octagonal_Shape_double_t ph); int ppl_Octagonal_Shape_double_is_bounded( ppl_const_Octagonal_Shape_double_t ph); int ppl_Octagonal_Shape_double_contains_integer_point( ppl_const_Octagonal_Shape_double_t ph); int ppl_Octagonal_Shape_double_is_topologically_closed( ppl_const_Octagonal_Shape_double_t ph); int ppl_Octagonal_Shape_double_is_discrete( ppl_const_Octagonal_Shape_double_t ph); int ppl_Octagonal_Shape_double_bounds_from_above( ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le); int ppl_Octagonal_Shape_double_bounds_from_below( ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le); int ppl_Octagonal_Shape_double_maximize(ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Octagonal_Shape_double_minimize(ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum); int ppl_Octagonal_Shape_double_maximize_with_point( ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Octagonal_Shape_double_minimize_with_point( ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point); int ppl_Octagonal_Shape_double_frequency(ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd, ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd); int ppl_Octagonal_Shape_double_contains_Octagonal_Shape_double( ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y); int ppl_Octagonal_Shape_double_strictly_contains_Octagonal_Shape_double( ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y); int ppl_Octagonal_Shape_double_is_disjoint_from_Octagonal_Shape_double( ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y); int ppl_Octagonal_Shape_double_OK(ppl_const_Octagonal_Shape_double_t ph); int ppl_Octagonal_Shape_double_constrains(ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var); int ppl_Octagonal_Shape_double_external_memory_in_bytes( ppl_const_Octagonal_Shape_double_t ps, size_t *sz); int ppl_Octagonal_Shape_double_total_memory_in_bytes( ppl_const_Octagonal_Shape_double_t ps, size_t *sz); int ppl_Polyhedron_equals_Polyhedron(ppl_const_Polyhedron_t x, ppl_const_Polyhedron_t y); int ppl_Grid_equals_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y); int ppl_Rational_Box_has_upper_bound(ppl_Rational_Box_t ps, ppl_dimension_type var, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *pclosed); int ppl_Rational_Box_has_lower_bound(ppl_Rational_Box_t ps, ppl_dimension_type var, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *pclosed); int ppl_Rational_Box_equals_Rational_Box(ppl_const_Rational_Box_t x, ppl_const_Rational_Box_t y); int ppl_BD_Shape_mpz_class_equals_BD_Shape_mpz_class( ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y); int ppl_BD_Shape_mpq_class_equals_BD_Shape_mpq_class( ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y); int ppl_Octagonal_Shape_mpz_class_equals_Octagonal_Shape_mpz_class( ppl_const_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y); int ppl_Octagonal_Shape_mpq_class_equals_Octagonal_Shape_mpq_class( ppl_const_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y); int ppl_Constraints_Product_C_Polyhedron_Grid_equals_Constraints_Product_C_Polyhedron_Grid( ppl_const_Constraints_Product_C_Polyhedron_Grid_t x, ppl_const_Constraints_Product_C_Polyhedron_Grid_t y); int ppl_Pointset_Powerset_C_Polyhedron_geometrically_equals_Pointset_Powerset_C_Polyhedron( ppl_const_Pointset_Powerset_C_Polyhedron_t x, ppl_const_Pointset_Powerset_C_Polyhedron_t y); int ppl_Pointset_Powerset_C_Polyhedron_equals_Pointset_Powerset_C_Polyhedron( ppl_const_Pointset_Powerset_C_Polyhedron_t x, ppl_const_Pointset_Powerset_C_Polyhedron_t y); int ppl_Pointset_Powerset_NNC_Polyhedron_geometrically_equals_Pointset_Powerset_NNC_Polyhedron( ppl_const_Pointset_Powerset_NNC_Polyhedron_t x, ppl_const_Pointset_Powerset_NNC_Polyhedron_t y); int ppl_Pointset_Powerset_NNC_Polyhedron_equals_Pointset_Powerset_NNC_Polyhedron( ppl_const_Pointset_Powerset_NNC_Polyhedron_t x, ppl_const_Pointset_Powerset_NNC_Polyhedron_t y); int ppl_Double_Box_has_upper_bound(ppl_Double_Box_t ps, ppl_dimension_type var, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *pclosed); int ppl_Double_Box_has_lower_bound(ppl_Double_Box_t ps, ppl_dimension_type var, ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *pclosed); int ppl_Double_Box_equals_Double_Box(ppl_const_Double_Box_t x, ppl_const_Double_Box_t y); int ppl_BD_Shape_double_equals_BD_Shape_double(ppl_const_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y); int ppl_Octagonal_Shape_double_equals_Octagonal_Shape_double( ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y); int ppl_Pointset_Powerset_C_Polyhedron_geometrically_covers_Pointset_Powerset_C_Polyhedron( ppl_const_Pointset_Powerset_C_Polyhedron_t x, ppl_const_Pointset_Powerset_C_Polyhedron_t y); int ppl_Pointset_Powerset_C_Polyhedron_size( ppl_const_Pointset_Powerset_C_Polyhedron_t ps, size_t *sz); int ppl_Pointset_Powerset_NNC_Polyhedron_geometrically_covers_Pointset_Powerset_NNC_Polyhedron( ppl_const_Pointset_Powerset_NNC_Polyhedron_t x, ppl_const_Pointset_Powerset_NNC_Polyhedron_t y); int ppl_Pointset_Powerset_NNC_Polyhedron_size( ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps, size_t *sz); int ppl_Grid_relation_with_Grid_Generator(ppl_const_Grid_t ph, ppl_const_Grid_Generator_t c);
VERIFICATION_CRITERIA: Compare literal empty/universe, containment, relation flags and bounded/unbounded optimization/frequency results for configured arithmetic types.
SOURCE: interfaces/C/tests/newoperations.c; interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/domains.c; interfaces/C/tests/polyhedra.c.
-
15. Affine boundedness, extrema and witnesses on bounded-difference values UID: PPL-SPEC-001070 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000052 Conservative bounded-difference constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounds_from_above and bounds_from_below shall decide whether the supplied affine form has a finite corresponding bound on the receiver, and shall return true in both directions for empty, including zero-dimensional empty. Zero-dimensional universe shall likewise bound every admitted constant form. The form's dimension shall not exceed the receiver's; otherwise these calls and extrema overloads shall throw std::invalid_argument.
For nonempty shapes and unbounded exact bound arithmetic, extrema calls shall return true exactly when the requested extremum is finite, and shall return its exact rational value with positive canonical denominator. Every finite extremum of this closed polyhedral set shall be attained. On false, supplied outputs shall retain their entry values.
For bound profiles whose closure arithmetic rounds or overflows, the overload without a witness may use an outward closure bound for bounded-difference objectives: its returned maximum value shall be an upper approximation of the true supremum and its returned minimum a lower approximation of the true infimum. Overflow may prevent detecting a finite bound. General affine objectives and witness overloads shall use the represented constraint set's exact optimization contract. The attainment flag shall concern the actual extremum, rather than certify attainment of an approximate numerical bound.
On successful witness calls, g shall identify an ordinary point in the represented set attaining the returned exact extremum. Constant affine forms and zero-dimensional values shall retain their exact meanings. Numerator/denominator output objects shall be distinct; the witness and scalar outputs shall obey their ordinary ownership and range prerequisites.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
RATIONALE: Exact extrema of a represented set differ from inexpensive rounded closure estimates, and an approximate bound is not an optimizing witness.
INTERFACE: Public header: <ppl.hh>; excerpts for BD_Shape<T> and related free functions in Parma_Polyhedra_Library:
bool bounds_from_above(const Linear_Expression& expr) const; bool bounds_from_below(const Linear_Expression& expr) const; bool maximize(const Linear_Expression& expr,Coefficient& n,Coefficient& d,bool& maximum) const; bool maximize(const Linear_Expression& expr,Coefficient& n,Coefficient& d,bool& maximum,Generator& g) const; bool minimize(const Linear_Expression& expr,Coefficient& n,Coefficient& d,bool& minimum) const; bool minimize(const Linear_Expression& expr,Coefficient& n,Coefficient& d,bool& minimum,Generator& g) const;
VERIFICATION_CRITERIA: Use independent rational projection of an added affine-result coordinate to derive extrema/unboundedness. Verify witness membership and objective value separately; include correlated general forms, difference fast paths, constants, empty/zero dimensions, unchanged false outputs, denominator normalization and rounded/native profile enclosures.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapevaluesspec1.cc; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapevaluespublic1.cc; tests/BD_Shape/max_min1.cc.
-
16. Constant affine values and zero frequency on bounded-difference sets UID: PPL-SPEC-001071 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000051 Bounded-difference expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: frequency(expr,fn,fd,vn,vd) shall return true exactly when the nonempty receiver assigns one unique real value to the affine expression. On true, fn/fd shall be 0/1 and vn/vd shall be that exact constant with positive canonical denominator. Nonconstant and empty cases shall return false and leave all four outputs unchanged. Constant expressions and zero-dimensional universe shall follow the same rule. An expression dimension above the receiver's shall throw std::invalid_argument. The four scalar output objects shall be pairwise distinct.
The validity, lifetime, arithmetic, range, rounding and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. Logically const normalization may update caches but shall preserve the represented set and ambient dimension. Underlying supported numerical or allocation failures may propagate through their declared channels. Failure during construction shall release resources owned by the incomplete shape. Failure of a mutating operation shall retain the ownership needed for safe destruction; a general rollback guarantee shall not be inferred.
RATIONALE: A convex real set supports a single affine value or a continuum, rather than a nonzero lattice frequency.
INTERFACE: Public header: <ppl.hh>; excerpts for BD_Shape<T> and related free functions in Parma_Polyhedra_Library:
bool frequency(const Linear_Expression& expr,Coefficient& fn,Coefficient& fd, Coefficient& vn,Coefficient& vd) const;
VERIFICATION_CRITERIA: Determine constancy by independent rational affine ranges/equality spans. Include correlated fixed differences on unbounded sets, fractional constants, free directions, empty/zero dimensions, negative/zero values, canonical outputs, unchanged sentinels and dimension rejection. Include sparse expressions with zero gaps, cancellations caused by successive substitutions, both expression representations and expressions with fewer declared dimensions than the receiver.
SOURCE: src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapevaluesspec1.cc; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapevaluespublic1.cc; tests/BD_Shape/frequency1.cc; tests/BD_Shape/sparsefrequency1.cc.
-
1. Exact extraction of individual box boundaries UID: PPL-SPEC-001030 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: For a nonempty receiver and a variable var within its ambient dimension, has_lower_bound(var,n,d,closed) shall return true exactly when that factor has a finite lower boundary. On true, n ⁄ d shall be its exact infimum, with d > 0, coprime numerator and denominator, and denominator one when the numerator is zero. closed shall state whether that boundary belongs to the factor. has_upper_bound shall give the corresponding exact supremum and upper boundary inclusion. On false, all supplied output objects shall retain their values. Numerator and denominator outputs shall be distinct.
These calls shall require the stated nonempty and coordinate-validity preconditions; they shall not promise validation or a specified outcome outside them. The represented box and ambient dimension shall remain unchanged. The profile, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Finite endpoint conversion and coefficient assignment shall retain the selected numerical policy's range and exception conditions; an exception shall not imply rollback of outputs already assigned. Valid use shall impose no additional initialization requirement beyond the selected numerical facilities.
RATIONALE: Exact boundary values and inclusion distinguish an open extremum from an attained coordinate value.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
bool has_lower_bound(Variable var, Coefficient& n, Coefficient& d, bool& closed) const; bool has_upper_bound(Variable var, Coefficient& n, Coefficient& d, bool& closed) const;
VERIFICATION_CRITERIA: Use exact rational factors and independently decoded finite native endpoints. Check positive/negative/zero fractions, canonical signs, both open boundaries, one-sided and fully unbounded factors, unchanged sentinel outputs on false, source preservation and valid use without additional initialization. Exercise selected checked coefficient range failures separately from ordinary false results.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxqueriesspec1.cc; tests/boxqueryoracle.hh; tests/boxqueriespublic1.cc.
-
3. Affine boundedness, extrema and witnesses on boxes UID: PPL-SPEC-001032 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
STATEMENT: bounds_from_above(expr) and bounds_from_below(expr) shall decide exactly whether the affine expression's values over the receiver are bounded in the indicated direction. Empty shall be bounded in both directions. Zero coefficients shall not make an otherwise bounded objective unbounded because of unused coordinate factors.
maximize shall return true exactly when the receiver is nonempty and the objective is bounded above. On true, its numerator and positive denominator shall give the exact supremum as a reduced fraction, and maximum shall be true exactly when some receiver point attains it. minimize shall analogously report the exact infimum and attainment. A constant objective on any nonempty box shall be attained, including in zero dimensions. Ordinary false shall preserve every supplied output. Numerator and denominator outputs shall be distinct.
The generator overloads shall additionally return a point in the receiver when the extremum is attained, and a closure point in its topological closure when it is not attained. Its coordinates, including coordinates absent from the expression, shall satisfy the respective membership condition, and its objective value shall equal the reported extremum. Omitted generator coordinates shall have their declared zero-extension meaning. A witness shall not be accepted merely because it gives the correct objective value.
An expression's ambient dimension greater than the box dimension shall throw std::invalid_argument before changing outputs, including for an empty receiver or a constant expression with excess declared dimension. The represented box, its dimension and the supplied expression shall retain their values. The profile, numerical, lifetime and synchronization conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Expressions and generators shall retain their descriptor prerequisites; creating output generators and reporting dimension errors shall retain the context of 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization. Numerical intermediate and output representability shall follow the selected coefficient profile. Reported allocation or numerical exceptions may leave outputs partly assigned; ordinary false-result preservation shall not imply exception rollback.
RATIONALE: An exact extremum, its attainment and a valid extremizing witness are separate mathematical obligations.
INTERFACE: Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:
bool bounds_from_above(const Linear_Expression& expr) const; bool bounds_from_below(const Linear_Expression& expr) const; bool maximize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& maximum) const; bool maximize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& maximum, Generator& g) const; bool minimize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& minimum) const; bool minimize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& minimum, Generator& g) const;
VERIFICATION_CRITERIA: Project an independently constrained objective coordinate using exact rational elimination. Cover all coefficient signs, strict and closed boundaries, fractional endpoints, unused bounded and unbounded coordinates, constant objectives, empty and zero-dimensional boxes and lazy emptiness. Check reduced fractions, attainment, every coordinate of point/closure-point witnesses and exact objective evaluation. Verify all false-result sentinels, dimension errors before output replacement and selected numerical/resource failure outcomes.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxqueriesspec1.cc; tests/boxqueryoracle.hh; tests/boxqueriespublic1.cc. tests/Box/max_min1.cc; tests/Box/interval1.cc;
-
6. Ambient and affine box dimension queries UID: PPL-SPEC-000956 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
STATEMENT: space_dimension() shall return the ambient coordinate count, including for empty boxes. affine_dimension() shall return zero for empty boxes; otherwise it shall equal the number of nonsingleton coordinate factors over the ordinary real carrier. Both empty and universe in ambient dimension zero shall therefore have affine dimension zero. These queries shall not change the represented set or ambient dimension.
The validity, synchronization, numerical and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Underlying allocation or endpoint failure shall retain its own guarantees; no general rollback promise shall be inferred.
RATIONALE: Ambient coordinate count differs from the dimension of a nonempty Cartesian set affine hull.
INTERFACE: Public header: <ppl.hh>; members and free functions in Parma_Polyhedra_Library, with member excerpts applying to Box<ITV>:
dimension_type space_dimension() const; dimension_type affine_dimension() const;
VERIFICATION_CRITERIA: Check independent factor counts over empty, singleton, mixed finite and unbounded products in dimensions 0, 1 and 2; retain ambient dimension on empty boxes and after copying/conversion.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; src/Rational_Box.hh; tests/boxvaluesspec1.cc; tests/boxpublic1.cc; tests/Box/intervalcontracts1.cc.
-
Incoming link from: 11. Explicit empty box assignment1
9. Exact ordinary box classification UID: PPL-SPEC-000959 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
STATEMENT: The following Boolean queries shall report exact properties of the represented ordinary real Cartesian set. is_empty() shall decide emptiness and is_universe() equality with the ambient universe. is_topologically_closed() shall decide topological closure; is_bounded() shall decide boundedness; is_discrete() shall be true exactly for empty boxes or products of singleton factors. contains_integer_point() shall be true exactly when the product contains an integer-coordinate point. In dimension zero the universe shall be nonempty, closed, bounded, discrete and contain the empty integer tuple; empty shall be closed, bounded, discrete and contain no integer point.
constrains(v) shall be true for empty boxes and, for a nonempty box, exactly when that coordinate's factor differs from universe. A variable outside the ambient dimension shall throw std::invalid_argument. Queries may establish cached facts without changing the mathematical set.
The validity, synchronization, numerical and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Underlying allocation or endpoint failure shall retain its own guarantees; no general rollback promise shall be inferred.
RATIONALE: Set classification must retain exact empty and zero-dimensional conventions independently of cached evaluation order.
INTERFACE: Public header: <ppl.hh>; members and free functions in Parma_Polyhedra_Library, with member excerpts applying to Box<ITV>:
bool is_empty() const; bool is_universe() const; bool is_topologically_closed() const; bool is_bounded() const; bool is_discrete() const; bool contains_integer_point() const; bool constrains(Variable v) const;
VERIFICATION_CRITERIA: Compare independent factor/topology/integer-witness models over every small ordinary endpoint topology, empty and unbounded products, rational intervals with no integer witness, all coordinate positions and cached query orders. Check invalid constrains variables.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; src/Rational_Box.hh; tests/boxvaluesspec1.cc; tests/boxpublic1.cc; tests/Box/intervalcontracts1.cc.
-
10. Box set relations, dimension-sensitive equality and compatible hashes UID: PPL-SPEC-000960 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000022 Cartesian meaning of boxes (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
STATEMENT: For equal ambient dimensions, contains(y) shall decide Y ⊆ X, strictly_contains(y) proper inclusion and is_disjoint_from(y) empty intersection. Empty sets and zero-dimensional sets shall follow their ordinary set meanings. These methods shall throw std::invalid_argument when ambient dimensions differ, including for empty operands.
Free equality shall be true exactly for boxes with equal dimensions and equal represented sets; different dimensions shall compare unequal without a dimension exception. Free inequality shall negate equality. Equal boxes shall have equal hash_code() values; collisions between unequal boxes shall be permitted. Relations and hashing shall leave mathematical values unchanged and shall not depend on distinct cached evaluation histories.
The validity, synchronization, numerical and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Underlying allocation or endpoint failure shall retain its own guarantees; no general rollback promise shall be inferred.
RATIONALE: Dimension is part of box identity, while Boolean relation APIs and equality intentionally have different mismatch outcomes.
INTERFACE: Public header: <ppl.hh>; members and free functions in Parma_Polyhedra_Library, with member excerpts applying to Box<ITV>:
bool contains(const Box& y) const; bool strictly_contains(const Box& y) const; bool is_disjoint_from(const Box& y) const; int32_t hash_code() const; template <typename ITV> bool operator==(const Box<ITV>& x,const Box<ITV>& y); // Inequality uses C++20 rewriting of operator==.
VERIFICATION_CRITERIA: Check Boolean inequality expressions in both operand orders through C++20 equality rewriting, retaining the stated equality and mismatch behavior. Compare same-dimension Cartesian inclusion/disjointness independently over empty, point, bounded, open and unbounded factors; check operand order, properness, reflexivity and cached histories. Check all dimension-mismatch outcomes and equal-value hash agreement without requiring collision freedom.
SOURCE: src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; src/Rational_Box.hh; tests/boxvaluesspec1.cc; tests/boxpublic1.cc; tests/Box/intervalcontracts1.cc.
-
1. Exact directional boundedness of affine expressions on grids UID: PPL-SPEC-001265 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounds_from_above(expr) and bounds_from_below(expr) shall return true exactly when the expression is bounded in the indicated direction over the grid. Empty shall be bounded in both directions. On a nonempty grid, either both queries shall be true and the expression shall have one constant value, or both shall be false and the expression shall be unbounded in both directions.
For a generator description p + ∑iℤqi + ∑jℝlj and e(x) = a⋅x + b, boundedness shall be equivalent to a⋅qi = 0 and a⋅lj = 0 for every direction, including point differences when the description has more than one generating point. Zero coefficients shall not introduce dependence on unused directions.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
RATIONALE: A grid direction is reversible with an integer or real multiplier; a varying affine objective therefore has neither a lower nor an upper bound.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Grid.
bool bounds_from_above(const Linear_Expression& expr) const; bool bounds_from_below(const Linear_Expression& expr) const;
VERIFICATION_CRITERIA: Independently compute scalar images of literal rational generating points, their differences, parameters and lines. Include empty, latent inconsistency, zero-dimensional universe, constant objectives and objectives orthogonal to nontrivial directions. Vary storage and both description/cache histories.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid and generator definitions (PDF page indices 6–8, zero-based).
SOURCE: src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/gridscalarqueryspec1.cc; tests/gridscalarquerypublic1.cc; tests/gridscalarqueryfailure1.cc; tests/Grid/bounds1.cc; tests/Grid/maxmin1.cc; tests/Grid/frequency1.cc.
-
Incoming link from: 4. Point witnesses for rational-grid maximization1
2. Exact rational-grid supremum and attainment UID: PPL-SPEC-001266 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: maximize(expr,n,d,attained) shall return true exactly when the grid is nonempty and the expression is bounded above. On true, n/d shall be its exact supremum as a reduced fraction with positive denominator, and attained shall be true. Every grid point shall have that value. Empty or an unbounded objective shall return false and preserve every supplied output. Zero-dimensional universe shall return the expression's constant term over one.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
RATIONALE: The only finite affine supremum of a nonempty grid is its constant objective value; it is always attained.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Grid.
bool maximize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& attained) const;
VERIFICATION_CRITERIA: Compare the returned fraction and attainment with exact rational scalar-image calculations. Use signed/fractional points, unused varying coordinates, empty and unbounded cases. Check reduced positive denominators, sentinel preservation on false and dimension errors.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid and generator definitions (PDF page indices 6–8, zero-based).
SOURCE: src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/gridscalarqueryspec1.cc; tests/gridscalarquerypublic1.cc; tests/gridscalarqueryfailure1.cc; tests/Grid/bounds1.cc; tests/Grid/maxmin1.cc; tests/Grid/frequency1.cc.
-
Incoming link from: 5. Point witnesses for rational-grid minimization1
3. Exact rational-grid infimum and attainment UID: PPL-SPEC-001267 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: minimize(expr,n,d,attained) shall return true exactly when the grid is nonempty and the expression is bounded below. On true, n/d shall be its exact infimum as a reduced fraction with positive denominator, and attained shall be true. Every grid point shall have that value. Empty or an unbounded objective shall return false and preserve every supplied output. Zero-dimensional universe shall return the expression's constant term over one.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
RATIONALE: Reversibility of every grid direction makes a finite infimum the constant objective value, equal to the supremum.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Grid.
bool minimize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& attained) const;
VERIFICATION_CRITERIA: Check exact rational infima and attainment using independent scalar images. Include negative constants, fractional points, non-singleton grids with constant objectives and false/error output sentinels.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid and generator definitions (PDF page indices 6–8, zero-based).
SOURCE: src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/gridscalarqueryspec1.cc; tests/gridscalarquerypublic1.cc; tests/gridscalarqueryfailure1.cc; tests/Grid/bounds1.cc; tests/Grid/maxmin1.cc; tests/Grid/frequency1.cc.
-
4. Point witnesses for rational-grid maximization UID: PPL-SPEC-001268 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The maximize overload with a Generator output shall obey 🔗 2. Exact rational-grid supremum and attainment. On true, it shall additionally replace the witness with an ordinary point belonging to the receiver and attaining the returned supremum. Its type shall be POINT, not a closure point or a direction. All coordinates, including those absent from the objective, shall satisfy the grid's equalities and periodic restrictions. Omitted coordinates shall have their ordinary zero-extension meaning. False shall preserve the witness as well as all scalar and attainment outputs.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
RATIONALE: A correct objective value alone does not establish membership; the witness must preserve the supporting point and its rational divisor.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Grid.
bool maximize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& attained, Generator& witness) const;
VERIFICATION_CRITERIA: Independently check the witness coordinates against literal congruences and recompute its objective. Include rational offsets, nontrivial unused coordinates, zero dimensions, negative constants and preservation of an unrelated ray sentinel on false/error.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid and generator definitions (PDF page indices 6–8, zero-based).
SOURCE: src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/gridscalarqueryspec1.cc; tests/gridscalarquerypublic1.cc; tests/gridscalarqueryfailure1.cc; tests/Grid/bounds1.cc; tests/Grid/maxmin1.cc; tests/Grid/frequency1.cc.
-
5. Point witnesses for rational-grid minimization UID: PPL-SPEC-001269 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000041 Rational-grid meaning (Specifies)
- PPL-LLR-000042 Equivalent grid representations (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000303 Preservation by representation-only changes (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: The minimize overload with a Generator output shall obey 🔗 3. Exact rational-grid infimum and attainment. On true, it shall additionally replace the witness with an ordinary point belonging to the receiver and attaining the returned infimum. Its type shall be POINT, not a closure point or a direction. Every coordinate shall satisfy the grid's equalities and periodic restrictions, including coordinates unused by the objective. Omitted coordinates shall have their ordinary zero-extension meaning. False shall preserve the witness and all scalar and attainment outputs.
An expression with declared ambient dimension greater than the grid shall throw std::invalid_argument before output replacement, including empty, zero-dimensional and syntactically constant cases. The source grid's set and ambient dimension and the expression's value and dimension shall be preserved. Logically const queries may normalize caches; borrowed descriptor views shall follow 🔗 10. Borrowed congruence and generator views of grid values.
The initialization, arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate and output representability. Writable coefficient outputs shall be pairwise distinct and shall not overlap input expression or receiver storage. Allocation and selected numerical failures may propagate; they shall not imply output rollback or a queryable surviving receiver beyond destruction-safe ownership.
RATIONALE: An infimum witness must be a member of the grid, even when the objective ignores coordinates constrained to fractional or periodic values.
INTERFACE: Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Grid.
bool minimize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& attained, Generator& witness) const;
VERIFICATION_CRITERIA: Check complete witness membership and objective values independently for both bounded non-singleton grids and singletons. Include zero-dimensional universe and unchanged ray/scalar sentinels after false/error.
BIBLIOGRAPHY: BagnaraDHMZ07 | Section 3, grid and generator definitions (PDF page indices 6–8, zero-based).
SOURCE: src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/gridscalarqueryspec1.cc; tests/gridscalarquerypublic1.cc; tests/gridscalarqueryfailure1.cc; tests/Grid/bounds1.cc; tests/Grid/maxmin1.cc; tests/Grid/frequency1.cc.
-
15. Affine boundedness, extrema and witnesses on octagonal values UID: PPL-SPEC-001160 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000062 Conservative octagonal constants (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: bounds_from_above and bounds_from_below shall decide whether the supplied affine expression has a finite corresponding bound on the represented set. Empty shall bound every admitted expression in both directions; zero-dimensional universe shall bound every admitted constant. An expression dimension exceeding the receiver's shall cause these calls and all extrema overloads to throw std::invalid_argument.
For a nonempty source with exact unbounded rational strong-closure arithmetic, maximization/minimization shall succeed exactly when the requested extremum is finite and return its exact rational value. Every finite extremum of a closed polyhedral octagonal set shall be attained.
When strong-closure arithmetic rounds, saturates or overflows, the overload without a witness may use an outward closed-table bound for an octagonal affine objective: a returned upper value shall be at least the actual supremum and a lower value at most the actual infimum. Halving odd integer bounds shall count as rounded arithmetic. For a no-witness extremum call, overflow may cause false when a finite closed-table bound cannot be obtained. Non-octagonal affine objectives shall use exact optimization of the represented constraints rather than treating a rounded outer estimate as an exact extremum.
On successful witness overloads, the returned rational value shall be the exact extremum of the represented source, and g shall be an ordinary point in that set attaining it. All coordinates of the witness shall satisfy the source constraints. The attainment Boolean shall concern the actual extremum, not certify that an approximate numerical bound is attained. An ordinary successful call on these closed sets shall set it to true. On false, all supplied scalar outputs, the Boolean and any supplied witness shall retain their entry values. Constant expressions and zero-dimensional cases shall retain their exact meanings.
Numerator and denominator output objects shall be distinct and satisfy the configured Coefficient range prerequisites. A successful rational output shall have a positive denominator. The supplied expression and source value shall be preserved.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
RATIONALE: A cheap outward closed-table bound and an exact optimizing point carry different guarantees, especially when integer half-sums round.
INTERFACE: Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library:
bool bounds_from_above(const Linear_Expression& expr) const; bool bounds_from_below(const Linear_Expression& expr) const; bool maximize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& maximum) const; bool maximize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& maximum, Generator& g) const; bool minimize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& minimum) const; bool minimize(const Linear_Expression& expr, Coefficient& n, Coefficient& d, bool& minimum, Generator& g) const;
VERIFICATION_CRITERIA: Eliminate an added rational objective coordinate independently to obtain boundedness, exact extrema and attainment. Check unary halves, every binary sign, negative scales, offsets and general correlated objectives. Compare bound-only results directionally for rounded profiles and exactly where all required arithmetic is exact. Check witness value and every coordinate against all source rows independently. Include odd half-sums, finite/unbounded rays, constants, empty/zero dimensions, preserved false sentinels, dimensional errors and output range prerequisites.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4, strengthening inference rule (5) and Definition 5 of strong closure (PDF page index 10, zero-based).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/MIP_Problem_defs.hh; src/MIP_Problem.cc; tests/octagonalshapevaluesspec1.cc; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/octagonalshapevaluespublic1.cc; tests/Octagonal_Shape/bounds1.cc; tests/Octagonal_Shape/max_min1.cc; tests/Octagonal_Shape/max_min2.cc; tests/Octagonal_Shape/semanticqueries1.cc.
-
16. Constant affine values and zero frequency on octagonal sets UID: PPL-SPEC-001161 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000061 Octagonal expressiveness (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: frequency(expr,fn,fd,vn,vd) shall return true exactly when the nonempty represented set assigns one unique real value to expr. On success, fn/fd shall be 0/1 and vn/vd shall equal that exact constant, with a positive denominator. A nonconstant or empty source shall return false and leave all four scalar outputs unchanged. Constant expressions and zero-dimensional universe shall obey the same rule.
Signed equality substitution and fractional fixed coordinates shall retain their mathematical values. Inexact closure bounds shall not establish a constant expression unless it truly is constant on the represented set. The call shall throw std::invalid_argument if the expression dimension exceeds the source dimension. The four scalar output objects shall be pairwise distinct and satisfy their configured Coefficient range prerequisites. The expression and represented set shall be preserved.
The lifetime, numerical-profile, initialization and synchronization prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Logically const normalization may update caches while preserving the represented set and ambient dimension. Supported numerical or allocation failures may propagate through their declared channels; temporary resources shall be released.
RATIONALE: An affine image of a nonempty convex real set is either one value or an interval; it cannot have a nonzero discrete frequency.
INTERFACE: Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library:
bool frequency(const Linear_Expression& expr, Coefficient& fn, Coefficient& fd, Coefficient& vn, Coefficient& vd) const;
VERIFICATION_CRITERIA: Derive exact affine ranges/equality spans independently and compare constancy, zero frequency and rational values. Include signed-sum and signed-difference identities on unbounded shapes, half-integral singletons stored with integer bounds, dependent equalities, zero/negative constants, free directions, rounded descriptions, unchanged false outputs, empty/zero dimensions and rejected dimensions.
BIBLIOGRAPHY: BagnaraHZ09FMSD | Section 4.1, singular/non-singular zero-equivalence classes and their equality interpretation (PDF page indices 11–12, zero-based).
SOURCE: src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/octagonalshapevaluesspec1.cc; tests/octagonalshapevalueoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/octagonalshapevaluespublic1.cc; tests/Octagonal_Shape/frequency1.cc.
-
4. Component-selected product bounds and witnesses UID: PPL-SPEC-001446 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): - PPL-LLR-000074 Intersection meaning of product domains (Specifies)
- PPL-LLR-000133 Failure and resource safety (Specifies)
- PPL-LLR-000301 Meaning of successful exact and approximate results (Specifies)
- PPL-LLR-000302 Interpretation of sufficient property tests (Specifies)
- PPL-LLR-000311 Public C++ access to supported facilities (Specifies)
- PPL-LLR-000431 Mathematical query capabilities and logical outcomes (Specifies)
- PPL-LLR-000432 Directional bounds, extrema and attainment (Specifies)
- PPL-LLR-000442 Explicit numerical operation contracts (Specifies)
STATEMENT: Extremum queries shall reduce and return false if a component is empty or neither component provides a directional bound; outputs shall then remain unchanged. Otherwise maximization shall choose the smaller available component supremum and minimization the larger component infimum. Equal bounds shall prefer a component not attaining that bound. Success shall return its rational bound with positive denominator, attainment flag and, for witness overloads, its corresponding point or closure point. Neither success, attainment nor the witness shall establish nonemptiness or optimum attainment in the product intersection; the selected witness need not satisfy the other component. Comparison of representable component bounds shall be exact even when their cross-products exceed the configured coefficient range. Expression dimensions and independently writable outputs shall satisfy both component contracts.
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.
RATIONALE: Intersecting components may improve their bounds jointly, so choosing the best individual bound need not solve optimization over the intersection.
INTERFACE: Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.
bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool maximize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&) const; bool minimize(const Linear_Expression&, Coefficient&, Coefficient&, bool&, Generator&) const;
VERIFICATION_CRITERIA: Check both donor directions, sole-bound donors, equal open/closed ties, rational comparison with cross-products exceeding the coefficient range, failure sentinels and witnesses outside the other component.
SOURCE: 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/maxmin1.cc.
-
3. Weakly relational extended-number policies UID: PPL-SPEC-001641 STATUS: APPROVED COMPONENT: NUMERICS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT: Both WRD_Extended_Number_Policy and Debug_WRD_Extended_Number_Policy shall enable overflow checks, NaN and infinity representations, and requested FPU inexact checks. The production policy shall disable checks for opposite-infinity addition, same-infinity subtraction, infinity-times-zero, division by zero, infinity division, infinite remainder, negative square root and extra FPU NaN-result detection. The debugging policy shall enable all those checks.
Neither policy shall define convertible or any of the five ROUND_DEFAULT_* members. Operations needing them shall require an explicitly suitable policy instead of silently selecting a default. handle_result(r) shall forward exactly results whose class is VC_NAN to throw_result_exception(r) and propagate the resulting exception. Every normal or infinity result shall be accepted without an exception, including normal-class results carrying overflow or unrepresentable flags. The policies shall require no library initialization or rounding-mode change. Arithmetic using these policies shall retain its own numerical prerequisites; disabled checks shall not authorize undefined mathematical operations.
RATIONALE: Weakly relational algorithms explicitly control rounding and use infinity bounds; policy capabilities and debugging diagnostics must not be mistaken for implicit defaults.
INTERFACE: Names belong to Parma_Polyhedra_Library unless qualified otherwise. Template excerpts omit SFINAE return-type restrictions described in the text.
struct WRD_Extended_Number_Policy; struct Debug_WRD_Extended_Number_Policy; // Member of each policy: static void handle_result(Result);
VERIFICATION_CRITERIA: Check every policy constant, absence of conversion/default-rounding members and every defined result category, including overflow/unrepresentable flags. Compare forwarded NaN exception types with throw_result_exception and require acceptance of normal/infinity categories.
SOURCE: src/WRD_coefficient_types_defs.hh; src/WRD_coefficient_types_inlines.hh; tests/scalaradaptersspec1.cc.