C++ octagonal values and foundational queries
|
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:
|
Incoming links from:
10. Native finite affine interval congruence classification
1. Rational affine image of one coordinate
2. Rational affine preimage of one coordinate
3. Single-coordinate generalized affine image
4. Single-coordinate generalized affine preimage
5. Expression-left generalized affine image
6. Expression-left generalized affine preimage
7. Single-coordinate bounded affine image
8. Single-coordinate bounded affine preimage
1. Default octagonal stop points
2. Threshold octagonal extrapolation and precision-sensitive tokens
2. Threshold octagonal extrapolation and precision-sensitive tokens
3. Semantic octagonal widening and default widening alias
3. Semantic octagonal widening and default widening alias
4. Limited semantic octagonal extrapolation
5. Octagonal narrowing and descending operand order
6. Limited threshold octagonal extrapolation
1. Closed octagonal support hull of geometric generators
1. Closed octagonal support hull of geometric generators
2. Complexity-sensitive octagonal conversion from polyhedra
3. Best octagonal enclosure of Cartesian boxes
3. Best octagonal enclosure of Cartesian boxes
4. Best octagonal enclosure of rational grids
4. Best octagonal enclosure of rational grids
4. Best octagonal enclosure of rational grids
5. Best octagonal enclosure of bounded-difference shapes
5. Best octagonal enclosure of bounded-difference shapes
1. Unrestricted octagonal coordinate extension
2. Zero-fixed octagonal coordinate extension
3. Existential removal of selected octagonal coordinates
4. Existential removal of trailing octagonal coordinates
5. Injective partial remapping of octagonal coordinates
6. Octagonal coordinate expansion by independent fibers
6. Octagonal coordinate expansion by independent fibers
7. Alternative-coordinate folding of octagonal values
7. Alternative-coordinate folding of octagonal values
8. Dimension-preserving forgetting of octagonal coordinates
1. Human-readable octagonal presentation
2. Owned octagonal memory accounting
1. Octagonal distance normalization, boundaries and workspaces
1. Octagonal distance normalization, boundaries and workspaces
1. Octagonal time evolution by nonnegative rates
2. Integer-point restriction on every octagonal coordinate
3. Selected-coordinate integer restriction of octagonal values
4. Bounded-integer wrapping and guarded evolution of octagonal shapes
5. Topological closure identity for octagonal values
1. Export of octagonal unary constraints through a destination protocol
1. Native interval-affine image
2. Conservative interval-linear-form inequality refinement
3. Generalized interval-linear-form comparisons
4. Refinement of a floating interval abstract store
1. Addition of supported octagonal constraints
2. Addition of supported octagonal congruences
3. Conservative refinement by linear constraints
4. Conservative refinement by congruences
4. Conservative refinement by congruences
1. Exact intersection of compatible octagonal values
2. Conservative and exact-arithmetic octagonal upper bounds
2. Conservative and exact-arithmetic octagonal upper bounds
3. Certified real set-theoretic union of octagonal values
4. Exact integer-point unions of octagonal values
4. Exact integer-point unions of octagonal values
5. Least closed octagonal abstraction of subtraction
6. Meet-preserving octagonal simplification in a context
1. Reloadable octagonal record export
2. Compatible octagonal record loading and failure state
3. Octagonal representation invariant query
3. Octagonal representation invariant query
2. Dimensioned empty and universe octagonal construction
3. Owned octagonal copying, assignment and cleanup
4. Outward conversion between octagonal coefficient profiles
5. Whole octagonal value exchange
6. Octagonal construction from supported constraints
7. Octagonal construction from supported congruences
8. Ambient and affine dimension of octagonal values
9. Owned constraint and affine-equality exports of octagonal values
10. Ordinary classification of octagonal values
11. Octagonal set relations, equality and compatible hashes
12. Relations between octagonal values and linear constraints
13. Relations between octagonal values and linear congruences
14. Subsumption of geometric generators by octagonal values
15. Affine boundedness, extrema and witnesses on octagonal values
16. Constant affine values and zero frequency on octagonal sets
83 |
Octagonal_Shape<T> shall represent a topologically closed subset of Rn by a finite conjunction of unary inequalities ±xi ≤ c and binary inequalities sixi + sjxj ≤ c, where i ≠ j and si, sj ∈ { − 1, 1}. Empty and universe shall be distinct in every supported ambient dimension. Coordinates absent from all restrictions shall remain free. coefficient_type_base shall be T. Supported native integer, supported native floating, GMP integer and GMP rational bases shall supply the declared extended coefficient_type, including positive infinity and rounding-aware bound arithmetic. A positive-infinite bound shall impose no restriction. Every profile shall retain a real coordinate carrier. Integer bound storage shall allow fractional points, including a unary restriction 2xi ≤ 1 and a singleton xi = 1 ⁄ 2. Strong closure and reduction shall preserve the represented real set. With unbounded exact rational arithmetic, strong closure shall expose all implied octagonal bounds. Rounded or saturating sums and divisions, including halving an odd integer during strong closure, shall not imply exact canonical, idempotent or maximally precise closure. Unbounded integer storage shall not by itself qualify as exact rational strong-closure arithmetic. An outward finite approximation shall not exclude source points satisfying the admitted constraint. Objects and supplied descriptors shall be live, valid and externally synchronized. Coordinate identities and reserved dimension indications shall follow 🔗 1. Coordinate type and reserved dimension index. Descriptor initialization in 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization shall apply where used. Native floating operations shall require configured support and their declared initialized rounding environment. Finite operands, intermediate arithmetic and output descriptor coefficients shall meet the selected numerical facilities' range, rounding and resource prerequisites. A public operation shall not create an intermediate that violates the numerical preconditions it selects for admitted input. Uses that may update an object's caches shall not race with another use of that object. |
Signed binary relations extend bounded differences. Stored numeric bounds, the real carrier and the completeness of closure are separate properties. |
BagnaraHZ09FMSD | Section 4, signed-variable encoding, coherence and Definition 5 of strong closure (PDF page indices 9–10, zero-based). |
|
|
|
|
Use independent rational signed-normal conjunctions for all four binary signs, unary halves, free coordinates, empty/universe and zero dimensions. Check literal half-integral points under integer storage. Compare rational primitive support suprema with exact closure; verify set preservation independently for rounded and odd-half-sum histories. Inspect actual supported scalar admission, configured native guards and runtime prerequisites. |
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/octagonalshapevaluesfailure1.cc; tests/octagonalshapesaturationspec1.cc. |
|
|
Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library: template <typename T> class Octagonal_Shape; typedef T coefficient_type_base; typedef N coefficient_type; |
|
|
SW_SPEC
|
2 |
|
|
|
Octagonal_Shape(d,kind) shall construct EMPTY or UNIVERSE in ambient dimension d as selected by kind. Default construction shall produce zero-dimensional universe. Zero-dimensional universe shall contain the unique empty tuple; zero-dimensional empty shall contain none. max_space_dimension() shall report the selected profile's structural coordinate limit. A requested dimension above that limit shall throw std::length_error before allocating the corresponding matrix storage, including requests whose doubled signed-node count would overflow the dimension type. The reported limit shall not promise that actual resources exist for every dimension below it. Failed construction shall release the resources acquired by the incomplete object. 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. |
Mathematical dimension remains separate from the two signed nodes used for each coordinate and from available storage. |
|
|
|
|
|
Check default/explicit empty and universe construction in zero and small positive dimensions. Check above-limit and unsigned-boundary rejection using bounded allocation observation rather than attempting enormous allocations. Verify incomplete-object cleanup after each admitted allocation failure. |
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/fromspacedim1.cc; tests/Octagonal_Shape/maxspacedim1.cc; tests/octagonalshapevaluesfailure1.cc; tests/Octagonal_Shape/dimensionlimits1.cc. |
|
|
Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library: explicit Octagonal_Shape(dimension_type d=0, Degenerate_Element kind=UNIVERSE); static dimension_type max_space_dimension(); |
||
|
SW_SPEC
|
3 |
|
|
Parents:
|
|
Ordinary copying shall construct an independent shape with the source's represented set and ambient dimension. Assignment shall replace the receiver's set and dimension with the source's, including different dimensions, and return a reference to the receiver. Self-assignment shall preserve the represented value. Independent source or target mutation and source destruction shall not alter the other owned value. The three declared complexity values shall not change ordinary copying. Destruction shall release owned resources exactly once. Failed construction shall release resources acquired by the incomplete object. Failed assignment shall preserve the ownership required for safe destruction; rollback of the entry value shall not be required. 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. |
Ownership must follow the mathematical value independently of signed-node storage, cache history and coordinate count. |
|
|
|
|
|
Check copy construction, copy initialization, assignment, self-assignment and source destruction with independent rational observations. Include cold, closed and reduced cache histories, half-integral singletons, zero dimensions and different dimensions. Inject allocation failures and check cleanup, source preservation and safe destruction without imposing failed-assignment rollback. |
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/congruences1.cc; tests/Octagonal_Shape/dimensionlimits1.cc. |
|
|
Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library: Octagonal_Shape(const Octagonal_Shape& y, Complexity_Class complexity=ANY_COMPLEXITY); Octagonal_Shape& operator=(const Octagonal_Shape& y); ~Octagonal_Shape(); |
|
|
SW_SPEC
|
4 |
|
|
Parents:
|
|
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. |
Outward numeric conversion must retain source points, including fractional points encoded by integral doubled unary bounds. |
BagnaraHZ09FMSD | Section 4, coherent signed-node and doubled-unary encoding (PDF page index 9, zero-based). |
|
|
|
|
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. |
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. |
|
|
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); |
|
|
SW_SPEC
|
5 |
|
|
|
m_swap and free swap shall exchange complete represented values and ambient dimensions, including different dimensions and empty/universe values. Owned matrix storage and cache metadata shall remain associated with the exchanged value. A self-swap shall preserve the value. Neither operation shall require coordinate compatibility, numerical reapproximation or a copy of the represented constraints. 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. |
Exchanging ownership must not reinterpret the signed-coordinate representation or separate a cache from its value. |
|
|
|
|
|
Use distinct rational signed-normal values in different dimensions. Check member/free exchange and self-exchange across cold/closed/reduced, empty/universe and half-integral histories, then mutate and destroy the exchanged owners independently. |
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. |
|
|
Public header: <ppl.hh>; excerpts for Octagonal_Shape<T> and related free functions in Parma_Polyhedra_Library: void m_swap(Octagonal_Shape& y); template <typename T> void swap(Octagonal_Shape<T>& x, Octagonal_Shape<T>& y); |
||
|
SW_SPEC
|
6 |
|
|
Parents:
|
Incoming link from:
7. Octagonal construction from supported congruences
1 |
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. |
Binary sign choices and the doubled unary encoding determine primitive precision; unsupported syntax needs an explicit rejection channel. |
BagnaraHZ09FMSD | Section 4, octagonal constraints and doubled unary encoding (PDF page index 9, zero-based). |
|
|
|
|
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. |
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. |
|
|
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(); |
|
|
SW_SPEC
|
7 |
|
|
Parents:
|
|
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. |
Affine equalities can define an octagon; nontrivial periodic restrictions need a richer representation. |
|
|
|
|
|
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. |
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. |
|
|
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(); |
|
|
SW_SPEC
|
8 |
|
|
Parents:
|
|
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. |
Signed-coordinate duplication is an encoding detail; affine dimension counts independent real-coordinate degrees of freedom. |
BagnaraHZ09FMSD | Section 4.1, singular/non-singular zero-equivalence classes and Definition 8 (PDF page indices 11–12, zero-based). |
|
|
|
|
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. |
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. |
|
|
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; |
|
|
SW_SPEC
|
9 |
|
|
Parents:
|
|
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. |
Defining inequalities and an affine-hull equality basis carry different information, and both need independent ownership. |
BagnaraHZ09FMSD | Section 4.1, strong reduction, zero-equivalence subgraphs and Definitions 6–10 (PDF page indices 10–14, zero-based). |
|
|
|
|
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. |
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. |
|
|
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; |
|
|
SW_SPEC
|
10 |
|
|
Parents:
|
|
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. |
Convex real discreteness, lattice feasibility and syntactic integer storage are different properties. |
BagnaraHZ09FMSD | Section 4, real/rational octagonal shapes; Section 5, distinction between strong and tight closure for integer feasibility. |
|
|
|
|
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. |
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. |
|
|
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; |
|
|
SW_SPEC
|
11 |
|
|
Parents:
|
|
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. |
Set relations concern represented points and dimension, rather than one numerical encoding or cache history. |
|
|
|
|
|
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. |
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. |
|
|
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==. |
|
|
SW_SPEC
|
12 |
|
|
Parents:
|
|
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. |
A restricted shape representation can answer exact semantic questions about more general linear halfspaces and hyperplanes. |
|
|
|
|
|
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. |
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. |
|
|
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; |
|
|
SW_SPEC
|
13 |
|
|
Parents:
|
|
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. |
Testing a periodic predicate does not require adding its nonconvex solution set to the shape representation. |
|
|
|
|
|
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. |
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. |
|
|
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; |
|
|
SW_SPEC
|
14 |
|
|
Parents:
|
|
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. |
Closed-point membership and recession directions impose different homogeneous tests over the same signed normal system. |
|
|
|
|
|
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. |
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. |
|
|
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; |
|
|
SW_SPEC
|
15 |
|
|
Parents:
|
|
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. |
A cheap outward closed-table bound and an exact optimizing point carry different guarantees, especially when integer half-sums round. |
BagnaraHZ09FMSD | Section 4, strengthening inference rule (5) and Definition 5 of strong closure (PDF page index 10, zero-based). |
|
|
|
|
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. |
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. |
|
|
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; |
|
|
SW_SPEC
|
16 |
|
|
Parents:
|
|
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. |
An affine image of a nonempty convex real set is either one value or an interval; it cannot have a nonzero discrete frequency. |
BagnaraHZ09FMSD | Section 4.1, singular/non-singular zero-equivalence classes and their equality interpretation (PDF page indices 11–12, zero-based). |
|
|
|
|
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. |
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. |
|
|
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; |