C++ bounded-difference geometric conversions
|
Type
|
Level
|
MID
|
UID
|
REFS
|
Title
|
Statement
|
Rationale
|
Comment
|
BIBLIOGRAPHY
|
STATUS
|
COMPONENT
|
APPLICABILITY
|
VERIFICATION_METHODS
|
VERIFICATION_CRITERIA
|
SOURCE
|
LANGUAGE
|
VISIBILITY
|
INTERFACE
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
SW_SPEC
|
1 |
|
|
Parents:
|
|
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. |
A closed relational enclosure depends on support in every admitted normal, including differences; separate coordinate bounds do not determine that enclosure after numerical rounding. |
BagnaraHZ05FAC | Section 4.1, Definition 4.2 and Theorem 4.4. |
|
|
|
|
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. |
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. |
|
|
Public header: <ppl.hh>; constructor excerpts for BD_Shape<T> in Parma_Polyhedra_Library: explicit BD_Shape(const Generator_System& gs); |
|
|
SW_SPEC
|
2 |
|
|
Parents:
|
|
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. |
Optimal support projection and polynomial conservative extraction offer different precision contracts; closing a nonempty strict polyhedron preserves its finite support suprema. |
|
|
|
|
|
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. |
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. |
|
|
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); |
|
|
SW_SPEC
|
3 |
|
|
Parents:
|
Incoming link from:
12. Certified finite scalar embeddings
1 |
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. |
Cartesian independence determines exact difference support, which is converted according to the target numerical profile. |
|
|
|
|
|
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. |
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. |
|
|
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); |
|
|
SW_SPEC
|
4 |
|
|
Parents:
|
|
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. |
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. |
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). |
|
|
|
|
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. |
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. |
|
|
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); |
|
|
SW_SPEC
|
5 |
|
|
Parents:
|
|
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. |
The bounded-difference hull of an octagon depends on all source signed forms, including restrictions exposed only by their combined consequences. |
BagnaraHZ09FMSD | Sections 3.1 and 4, bounded-difference and octagonal forms and closure. |
|
|
|
|
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. |
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. |
|
|
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); |