Parma Polyhedra Library requirements
Octagonal abstractions
PPL-LLR-000061
1. Octagonal expressiveness UID: PPL-LLR-000061 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

An octagonal abstraction shall describe a topologically closed set using unary coordinate bounds and bounds on signed sums of two coordinates, with distinct empty and universe elements in each supported dimension.

RATIONALE:

Allowing either sign for each of two coordinates provides relations beyond bounded differences while retaining a restricted convex domain.

COMMENT:

Verification covers octagonal value types and admitted constraint forms. Related obligations: 🔗 5. Constraint and congruence refinement, 🔗 6. Sound affine forward and backward transfers.

VERIFICATION_CRITERIA:

Construct independent low-dimensional examples of each sign combination, unary bounds, equalities and unbounded directions. Include examples expressible as octagons but not as bounded-difference sets and zero-dimensional edge cases.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | whole work (background)

SOURCE:

doc/definitions.dox: Octagonal Shapes. src/Octagonal_Shape_defs.hh: octagonal domain description.

  • PPL-SPEC-001076
    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): 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.

  • 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): 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.

  • PPL-SPEC-001635
    6. Exact comparison of short sums through directed filters UID: PPL-SPEC-001635 STATUS: APPROVED COMPONENT: NUMERICS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    The internal Implementation short-sum helpers shall operate on two or three addends per list. Each pointer shall designate a live admitted scalar. Original left addends shall be finite; right addends may additionally be positive infinity. NaN and negative infinity shall be outside the admitted domain. The scalar policy and arithmetic shall supply sound upward/downward bounds, valid overflow outcomes, and exact rational conversion of each finite original addend. Required rounding setup, resources and synchronization shall follow those scalar operations.

    checked_sum_assign<Count> shall evaluate the first two addends and then, for three terms, add the third, using the requested direction. It shall return true exactly when every addition reports V_EQ; false shall not by itself assert that the final mathematical sum is inexact. Its output shall be independent of all input addend storage.

    checked_sum_has_infinite_right shall return true exactly when an original right addend is positive infinity. checked_sum_less shall return exactly ∑iLi < ∑jRj, including finite sums outside the bounded scalar range. A positive-infinite original right operand shall make this predicate true before sum arithmetic is attempted. A finite rounded overflow shall not be mistaken for an original infinite operand.

    The cached-left overload shall receive the same upward left sum and exactness flag produced by checked_sum_assign for those original left addends. checked_finite_sum_less shall additionally require all right addends finite. Directed bounds may decide the comparison only when they establish its truth or falsity. An unresolved comparison shall use exact rational arithmetic on the original finite addends. No input addend shall change.

    RATIONALE:

    Strict comparison of original bounds must survive cancellation, coincident rounded images and finite overflow. Sound directed filters avoid exact arithmetic only when the ordering is proved.

    INTERFACE:

    Names belong to Parma_Polyhedra_Library unless a nested namespace is shown. Template excerpts omit constraints where stated in the text.

    namespace Implementation {
      template <unsigned Count, typename N>
      bool checked_sum_assign(N&, const N* const*, Rounding_Dir);
      template <unsigned L, unsigned R, typename N>
      bool checked_sum_has_infinite_right(const N* const*, const N* const*);
      template <unsigned L, unsigned R, typename N>
      bool checked_finite_sum_less(const N* const*, const N* const*, const N&, bool);
      template <unsigned L, unsigned R, typename N>
      bool checked_sum_less(const N* const*, const N* const*);
      template <unsigned L, unsigned R, typename N>
      bool checked_sum_less(const N* const*, const N* const*, const N&, bool);
    }
    
    VERIFICATION_CRITERIA:

    Compare all four two/three-term arities and cached/uncached forms with independent exact rational sums. Include equality, different rounded images, cancellation, subnormal operands, finite prefix overflow, and positive infinity in every right-hand position. Exercise exact GMP and supported floating scalars.

    SOURCE:

    src/Checked_Number_templates.hh; tests/checkedsumsspec1.cc; tests/BD_Shape; tests/Octagonal_Shape.

  • 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): 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.

  • PPL-SPEC-001207
    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): 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.

  • PPL-SPEC-001208
    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): 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.

  • PPL-SPEC-001209
    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): 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.

  • PPL-SPEC-001210
    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): 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.

  • PPL-SPEC-001211
    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): 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.

  • PPL-SPEC-001212
    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): 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.

  • PPL-SPEC-001213
    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): 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.

  • PPL-SPEC-001214
    1. Default octagonal stop points UID: PPL-SPEC-001214 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    CC76_extrapolation_assign(y,tp) shall have the behavior of [LINK: PPL-SPEC-001215] with the finite ordered stop points  − 2,  − 1, 0, 1, 2. These are bounds on the signed forms in that contract: a stop s on a unary form 2xi means xi ≤ s ⁄ 2, while a stop on xi + xj means xi + xj ≤ s. Already representable stop values shall be retained exactly.

    The ascending operand order Y ⊆ X, empty and zero-dimensional cases, source preservation and precision-sensitive token rule shall be those of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens. Sharing the default stop-point values between calls shall not affect mathematical results. This convenience overload shall not add a convergence guarantee to CC76 extrapolation.

    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:

    The octagonal unary encoding doubles coordinate bounds. Stating the actual stop-point scale prevents a factor-of-two error in clients' expected results.

    INTERFACE:

    Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void CC76_extrapolation_assign(const Octagonal_Shape& y,
      unsigned* tp = nullptr);
    
    VERIFICATION_CRITERIA:

    Compare independent exact support/threshold models with the default overload and explicit five-stop range. Include both unary signs, half-unit boundaries, stable and growing binary bounds, absent stops, source lifetime, self-aliasing, null/zero/positive tokens and empty/zero-dimensional values. Exercise admitted integral and native profiles under their rounding prerequisites.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Sections 3.1 and 4, extrapolation and doubled unary octagonal encoding. BagnaraHRZ05SCP | Section 7, precision-sensitive widening 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/cc76extrapolation1.cc.

  • 2. Threshold octagonal extrapolation and precision-sensitive tokens UID: PPL-SPEC-001215 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Let X be the receiver's entry set and Y the argument's entry set, with Y ⊆ X. The explicit-iterator CC76 operator shall produce an octagonal enclosure of X, preserving dimension. An empty argument and zero-dimensional operands shall preserve the receiver's entry set.

    For nonempty operands and exact rational support computations, define bZ(v) = sup{v⋅p ∣ p ∈ Z} for the signed forms v ∈ {±2ei,  ±ei±ej (i < j)}. With no delay token, a finite stable bound bX(v) = bY(v) shall be retained. A bound that increased strictly shall be replaced by the least supplied stop point not below bX(v), or removed if no such stop exists. An unbounded form shall remain unbounded. The result shall denote the conjunction of these closed upper bounds. This characterization concerns real-coordinate sets, including when the stored coefficient type is integral.

    Other supported profiles shall compare outward closed profile bounds and assign chosen stops outward, preserving every point of X under 🔗 1. Octagonal values, numerical profiles and valid use. Rounded closure shall not be assumed canonical or required to compute exact real supports. General relational CC76 iterations shall carry no finite-stabilization guarantee.

    The half-open stop-point range shall use readable multipass forward iterators and finite values sorted in nondecreasing numerical order. Empty ranges and duplicates shall be admitted. Values and iterators shall remain live and stable throughout the call, shall not borrow storage invalidated by the call, and shall support the selected profile's comparisons and outward assignment.

    A null token pointer or zero counter shall select the undelayed result. With a positive counter, the receiver shall retain X; exactly one token shall be consumed when the corresponding undelayed result strictly enlarges X, and otherwise none shall be consumed. The counter shall be a live, separately owned, externally synchronized writable unsigned object. Neither the argument's represented value nor the supplied stop-point values shall be changed.

    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:

    Scalar thresholds control the loss of signed-form bounds, while the token budget delays only precision-losing steps. Closure may restore discarded relational bounds, so extrapolation must remain distinct from semantic widening.

    INTERFACE:

    Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:

    template <typename Iterator>
    void CC76_extrapolation_assign(const Octagonal_Shape& y,
      Iterator first, Iterator last, unsigned* tp = nullptr);
    
    VERIFICATION_CRITERIA:

    Use independent rational elimination to determine every primitive support and a mathematical ordered range to select stops. Cover exact hits, strict changes, stable/unbounded directions, doubled unary and all binary signs, empty/duplicate ranges, pointer and forward iterators, all token states, aliasing, source/range preservation, lazy emptiness and dimension rejection. For rounded profiles assess inclusion separately from exact support precision.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Sections 3.1, 4 and 7, extrapolation limits, signed-form encoding and inexact propagation. BagnaraHRZ05SCP | Section 7, widening with tokens.

    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/cc76extrapolation1.cc.

  • PPL-SPEC-001216
    3. Semantic octagonal widening and default widening alias UID: PPL-SPEC-001216 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    With argument entry set Y contained in receiver entry set X, BHMZ05_widening_assign shall return an octagonal set containing both, with the same ambient dimension. An empty or singleton argument, or an increase in affine dimension from Y to X, shall retain X. widening_assign shall have the same behavior as BHMZ05_widening_assign with the same argument and token pointer.

    For equal positive affine dimension and exact rational support computations, the undelayed result shall implement the semantic standard widening: obtain a nonredundant octagonal inequality description of Y, retain its inequalities satisfied by every point of X, and conjoin the retained inequalities. The affine-dimension guard and strong reduction shall make this result independent of equivalent input descriptions, redundant bounds, representation-only cache changes and choices of a strongly reduced octagonal description. This shall not require a least possible widening.

    Supported rounded profiles shall preserve inclusion under the numerical prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use; the exact-support characterization shall apply when the relevant support and reduction calculations are exact. A smaller resulting set shall not be promised than is established by the selected widening and arithmetic profile.

    The precision-sensitive token rule in 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens shall apply to this operator's undelayed result. Equal entry sets and self-aliasing shall preserve their set and shall not consume a token.

    In a fixed dimension and profile, form an ascending iteration by first constructing an enclosure of the preceding widened result and the next input, then invoking this operator on that enclosure with the preceding result as argument. Under its inclusion and numerical prerequisites, the represented results shall stabilize after finitely many strict changes. A finite initial token budget, without replenishment, shall preserve the convergence 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:

    Reducing the previous octagon avoids the interaction between reintroduced entailed constraints and repeated extrapolation. Tokens postpone precision loss while retaining the convergence purpose of the semantic widening.

    INTERFACE:

    Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void BHMZ05_widening_assign(const Octagonal_Shape& y,
      unsigned* tp = nullptr);
    void widening_assign(const Octagonal_Shape& y,
      unsigned* tp = nullptr);
    
    VERIFICATION_CRITERIA:

    Derive independent irredundant facet descriptions on low-dimensional sets and retain exactly those facets satisfied by the current set. Check affine subspaces, singletons, dimension increases, stable and growing facets, redundant/cache histories, the default alias, all token states, aliases and empty/zero-dimensional cases. Check inclusion at each step of independent ascending recurrences and inspect the reduction-based stabilization proof; assess rounded profiles without claiming exact canonical closure.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Sections 3.3, 4.1-4.2 and 7, reduction choice, semantic octagonal widening and finite-precision qualifications. BagnaraHRZ05SCP | Section 7, finite token budgets and precision-sensitive 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/bhmz05widening1.cc.

  • PPL-SPEC-001217
    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): 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.

  • PPL-SPEC-001218
    5. Octagonal narrowing and descending operand order UID: PPL-SPEC-001218 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Let X be the receiver's entry set and Y the argument's entry set, with X ⊆ Y. CC76_narrowing_assign shall produce R with X ⊆ R ⊆ Y, preserving ambient dimension. An empty receiver, zero-dimensional operands and self-aliasing shall preserve the receiver's entry set.

    For nonempty operands and exact rational support computations, use the signed forms and supports of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens. The result shall be the conjunction whose bound for v is bY(v) when that previous bound is finite and bX(v) otherwise. Thus it may restore a finite previous bound even when the current one is tighter; it shall recover a current bound in a direction where the previous set is unbounded. It shall not simply retain every improvement in the receiver.

    Supported rounded profiles shall use their outward closed profile bounds while preserving both inclusions. Keep every finite previous bound even when the corresponding current bound remains infinite in rounded closure. The exact-support characterization shall apply when the corresponding support computations are exact. Under exact support arithmetic in a fixed dimension, descending iteration that passes each result as the next previous argument shall stabilize after finitely many strict changes: a strict step must make a previously unbounded primitive form finite. Finite-carrier profiles shall stabilize under the same descending inclusion and arithmetic conditions. No stabilization guarantee shall be inferred for other operator/profile/iteration combinations without its own justification.

    The receiver/argument order shall be the descending order stated above, rather than the ascending order used by widening. A distinct previous argument shall retain its represented value.

    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:

    Narrowing restores selected finite restrictions after extrapolation, using the current approximation inside its previous approximation. The descending operand order and finite-previous-bound rule determine its precision.

    INTERFACE:

    Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void CC76_narrowing_assign(const Octagonal_Shape& y);
    
    VERIFICATION_CRITERIA:

    Compute primitive supports independently and apply the finite-previous-bound rule. Check current/result/previous inclusions, unary halves, all binary signs, finite/unbounded directions, affine subspaces, self-aliasing, lazy emptiness and dimension rejection. Exercise descending recurrences and review the finite-status-change proof separately from observed stabilization. Assess admitted rounded cases without assuming exact closure.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Sections 3-4 and 7, weakly relational support semantics and finite-precision qualifications (background). CousotC76 | Original widening and narrowing framework (background).

    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/cc76narrowing1.cc.

  • PPL-SPEC-001219
    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): 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.

  • 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): 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.

  • PPL-SPEC-001163
    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): 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.

  • PPL-SPEC-001164
    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): 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.

  • PPL-SPEC-001165
    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): 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.

  • PPL-SPEC-001166
    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): 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.

  • PPL-SPEC-001198
    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): 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.

  • PPL-SPEC-001199
    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): 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.

  • 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): 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.

  • PPL-SPEC-001201
    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): 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.

  • PPL-SPEC-001202
    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): 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;

  • PPL-SPEC-001203
    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): 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.

  • PPL-SPEC-001204
    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): 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.

  • PPL-SPEC-001205
    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): 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.

  • PPL-SPEC-001234
    1. Human-readable octagonal presentation UID: PPL-SPEC-001234 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Stream insertion shall write false for a shape whose emptiness is already certified, and true for a universe shape, including their zero-dimensional forms. Otherwise it shall write a conjunction of the stored finite unary and signed binary bounds. A logically empty shape whose emptiness has not been classified may be displayed as a contradictory conjunction. Presentation shall not require computing strong closure or provide a canonical constraint list.

    Unary constraints shall precede binary constraints and shall be ordered by increasing coordinate identity. Each unary equality shall be displayed once; otherwise a finite lower side shall precede a finite upper side. For a stored unary bound on twice a coordinate, exact representable halving shall permit the form variable relation value. If such halving is not exact and representable in the selected bound profile, the doubled coefficient shall remain explicit. A sign may be moved to the coefficient side, including -2*variable <= bound, when this denotes the same halfspace. Printed relations, signs and constants shall retain the exact mathematical meaning of the stored bound.

    Binary constraints shall be ordered by increasing larger coordinate identity, then increasing smaller coordinate identity. Difference constraints for each pair shall precede sum constraints. Two opposite finite bounds that are additive inverses shall be displayed as one equality; other finite sides shall be displayed as non-strict inequalities. Difference forms may reverse the coordinate order and relation to display a nonnegative constant. Sum forms shall keep the smaller-index coordinate first. Positive-infinite sides shall not be displayed. Consecutive constraints shall be separated by ", "; no ambient-dimension header shall be inserted.

    Variable occurrences shall follow the active formatter and its live-callback prerequisites in 🔗 7. Active Variable formatter and initialized thread state and 🔗 8. Variable names, formatter dispatch and output failures. Bound values shall follow the admitted mathematical numeric stream output of 🔗 5. Mathematical numeric output and stream delivery status and 🔗 6. Checked numeric stream policy integration. Interpreted with their coordinate identities, the printed conjunction shall denote the source's represented real set.

    Insertion shall return the supplied stream reference without adding a newline or explicitly flushing it. print() shall send the same presentation to the current std::cerr. Both operations shall preserve the source set, ambient dimension, stored status, matrix and ownership. Stream and formatter failures shall retain their applicable state, exception-mask and partial-output behavior. Rendering callbacks shall not mutate or invalidate traversed source objects.

    The selected representation, numerical-runtime, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. The borrowed stream and its callback environment shall remain live throughout the call. Recoverable resource exceptions may propagate; discarded owned temporaries shall be released.

    RATIONALE:

    A readable conjunction preserves the meaning of signed unary, difference and sum bounds without requiring normalization or confusing the display with a reloadable stored record. Retaining a doubled unary coefficient prevents inexact halving from changing the displayed set.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library:

    namespace IO_Operators {
      template <typename T>
      std::ostream& operator<<(std::ostream& stream,
                               const Octagonal_Shape<T>& value);
    }
    // Member of Octagonal_Shape<T>:
    void print() const;
    
    VERIFICATION_CRITERIA:

    Compare independent literal text and the exact rational meaning of printed constraints for certified and unclassified empty states, universe, unary halves, equalities, all binary signs, both inequality orientations, zero and negative constants, and absent infinite sides. Exercise native integer, floating, GMP and admitted unsigned profiles. Cover custom variable names, stream flags/locales, no newline, stream identity, stderr forwarding and throwing/failed streams or formatters. Check source records before and after presentation rather than warming the source to form the expected text. For binary native bounds, cover odd and even subnormal significands, both signs, signed zeros and neighbors of the normal/subnormal transition. Compare unary equalities and both inequality orientations with exact rational values, retaining doubled coefficients for unrepresentable halves. Check exactness classification independently of the FPU inexact flag, including destination aliases and preservation of the caller's rounding direction.

    SOURCE:

    src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_templates.hh; src/globals_defs.hh; tests/Octagonal_Shape/outputcontracts1.cc; tests/Octagonal_Shape/writeoctagon1.cc; tests/octagonalshapevalueoracle.hh; tests/octagonalshapetextmemoryspec1.cc; tests/octagonalshapetextmemorypublic1.cc.

  • PPL-SPEC-001235
    2. Owned octagonal memory accounting UID: PPL-SPEC-001235 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    external_memory_in_bytes() shall report the owned external storage of the pseudo-triangular bound matrix under 🔗 4. Owned backing storage and live-payload memory accounting, including its backing-row allocation, retained capacity, owned row metadata and external payload of every physically live selected coefficient. Logically empty shapes, inactive geometric content or reduced ambient dimensions shall not remove still-owned allocated capacity from the count. Borrowed views, independently owned runtime temporaries, other objects and allocator bookkeeping shall be excluded.

    total_memory_in_bytes() shall equal sizeof(Octagonal_Shape<T>) plus the external count. Sizes shall be those of the selected build/profile, and the sum shall fit memory_size_type. The selected live coefficient memory hooks shall be well-formed. Both queries shall preserve the source set, ambient dimension, stored status, matrix, ownership and lifetimes. They shall not classify emptiness or recompute strong closure.

    The selected representation, numerical-runtime, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. Live owned storage shall remain unchanged during either query.

    RATIONALE:

    The logical number of constraints does not measure retained matrix capacity or multi-limb coefficient payloads. The enclosing object's fixed storage and its owned external allocation require distinct counts.

    INTERFACE:

    Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:

    memory_size_type external_memory_in_bytes() const;
    memory_size_type total_memory_in_bytes() const;
    
    VERIFICATION_CRITERIA:

    Compare total/external identity and independent owned-allocation observations for native matrices, then account separately for live GMP integer/rational payloads. Cover zero dimensions, copies, assignment, exchange, coordinate growth/removal, empty values and retained capacities. Preserve raw records and cache conditions; exclude allocator administration and reusable scratch.

    SOURCE:

    src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/OR_Matrix_defs.hh; src/OR_Matrix_templates.hh; src/DB_Row_templates.hh; tests/Octagonal_Shape/membytes1.cc; tests/ormatrixoperationsspec1.cc; tests/boxallocationfixture.hh; tests/octagonalshapetextmemoryspec1.cc; tests/octagonalshapetextmemorypublic1.cc.

  • 1. Octagonal distance normalization, boundaries and workspaces UID: PPL-SPEC-001230 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a nonempty shape of ambient dimension n, let z2k = xk and z2k + 1 =  − xk for 0 ≤ k < n. The stored position (i, j) shall describe zj − zi ≤ bij. Let pi be zero for even i and one for odd i. The distance tuple shall contain exactly

    Dn = {(i, j) ∣ 0 ≤ i < 2n,  0 ≤ j < i + 2 − pi}.

    This is the physical pseudo-triangular domain of 🔗 1. Pseudo-triangular matrix values and physical coordinates, with 2n(n + 1) positions. Its 2n diagonal positive-infinity sentinels shall each contribute zero. Its 2n2 other positions shall count each signed octagonal normal once: ±2xk for unary bounds and ±xk±xl for k < l. Unary bounds shall remain doubled in the tuple; the coherently equivalent matrix position shall not be counted again. A positive-infinite bound shall impose no restriction.

    The selected tables shall be those used after the call's required strong closure. With exact rational closure, finite entries shall be the primitive suprema of the represented set, with infinity for unbounded forms. Rounded or saturating closure, including integer halving, shall retain 🔗 1. Octagonal values, numerical profiles and valid use; selected tables need not be canonical, idempotent or invariant across alternative source descriptions. The distance shall use these selected tables, as retained in compatible post-call records of 🔗 1. Reloadable octagonal record export. It shall not denote minimum point separation or a Hausdorff distance. Normalization shall preserve each source's represented set and ambient dimension.

    Different ambient dimensions shall return false before modifying the result or supplied workspaces. False shall assign no distance for that pair. Dimension-compatible two-empty shapes shall have distance zero; exactly one empty shape shall have positive-infinite distance. In dimension zero, two universe shapes shall also have distance zero. These rules shall apply to logically empty sources whose emptiness has not yet been classified. Equal dimensions shall return true on successful numerical completion, with the value specified by 🔗 2. Rectilinear distance of octagonal closed-bound tables, 🔗 3. Euclidean distance of octagonal closed-bound tables or 🔗 4. Maximum-coordinate distance of octagonal closed-bound tables.

    The overload without an explicit temporary type shall use three Checked_Number<To,Extended_Number_Policy> workspaces. The overload with an explicit scalar Temp argument shall use three Checked_Number<Temp,Extended_Number_Policy> workspaces. The supplied-workspace overload shall use the actual type of its three references, which may be an admitted raw or checked numeric type. The supported operation, rounding, representation and overlap conditions of 🔗 20. Distance scratch storage, admissible overlaps and numeric conditions and 🔗 9. Distance workspace protocol and admissible overlaps shall apply to the selected metric specialization, subject to the public source-storage condition below.

    Calls evaluating finite entry differences shall use ROUND_DOWN or ROUND_UP, optionally combined with ROUND_STRICT_RELATION. Finite source conversions shall not have to be exact merely to establish the requested directed bound. Paths performing only exact zero or positive- infinity assignments shall admit directions valid for those selected scalar assignments. An output profile shall support positive infinity whenever that outcome is reachable. Every conversion, difference, sum, square, square root and final assignment shall satisfy its selected backend's arithmetic, range, numerical-failure, resource, initialization and nontrapping prerequisites. Native arithmetic shall retain configured support and initialized caller-owned FPU conditions; the call shall preserve caller rounding. Rational square-root precision shall remain stable throughout a dependent call.

    Sources shall be live valid objects under 🔗 1. Octagonal values, numerical profiles and valid use. The same shape may be supplied for both operands. The three mutable supplied workspaces shall be live, pairwise distinct and disjoint from source-owned storage. Their entry values need not have mathematical significance when overwritten before reading. The result shall have live assignable storage disjoint from source-owned storage, but may overlap one supplied workspace or its compatible underlying raw storage. When the result overlaps a workspace, the distance shall still use source values on entry. Callers shall preserve object/storage lifetimes and synchronize source access, including logically const cache updates.

    Numerical and recoverable resource failures shall retain their selected propagation channels and permitted partial result/workspace states; no aggregate rollback guarantee shall be inferred. Discarded owned temporaries shall be released, while reusable numerical cache storage shall retain its own lifetime and cleanup contract. Ordinary dimension mismatch shall retain the stronger unchanged-result/workspace guarantee above. Otherwise valid calls shall require no additional library initialization beyond their selected representation, numerical and thread runtime prerequisites.

    RATIONALE:

    A bound-array metric needs an explicit normalization convention, source carrier and numeric protocol. Exact semantic support tuples and rounded representation tuples have different invariance properties, while their empty/dimension outcomes and storage obligations remain explicit.

    INTERFACE:

    Public header: <ppl.hh>. This protocol applies to all nine free function overloads declared in 🔗 2. Rectilinear distance of octagonal closed-bound tables, 🔗 3. Euclidean distance of octagonal closed-bound tables and 🔗 4. Maximum-coordinate distance of octagonal closed-bound tables, in Parma_Polyhedra_Library. Their result, shape, rounding and optional three-workspace parameters retain those exact signatures.

    template <typename Temp, typename To, typename T>
    bool rectilinear_distance_assign(
      Checked_Number<To, Extended_Number_Policy>& r,
      const Octagonal_Shape<T>& x, const Octagonal_Shape<T>& y, Rounding_Dir dir,
      Temp& tmp0, Temp& tmp1, Temp& tmp2);
    
    template <typename Temp, typename To, typename T>
    bool euclidean_distance_assign(
      Checked_Number<To, Extended_Number_Policy>& r,
      const Octagonal_Shape<T>& x, const Octagonal_Shape<T>& y, Rounding_Dir dir,
      Temp& tmp0, Temp& tmp1, Temp& tmp2);
    
    template <typename Temp, typename To, typename T>
    bool l_infinity_distance_assign(
      Checked_Number<To, Extended_Number_Policy>& r,
      const Octagonal_Shape<T>& x, const Octagonal_Shape<T>& y, Rounding_Dir dir,
      Temp& tmp0, Temp& tmp1, Temp& tmp2);
    
    VERIFICATION_CRITERIA:

    Verify independent rational support closure, rounded selected-table norms and before/after denotation equality separately. Cover all nine forms, cold/classified/widened histories, lazy emptiness, zero dimensions, one-sided infinities, mismatched dimensions and unchanged sentinels. Test same-owner inputs, result aliases to each raw/checked workspace, different temporary/result profiles, required initialized native modes and caller-mode preservation. Measure and exercise meaningful allocation/cleanup paths, distinguishing C++ new/new[] observation from backend GMP allocation failures.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Section 4, coherent signed-variable encoding and Definition 5 of strong closure (PDF page indices 9–10, zero-based).

    SOURCE:

    src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/OR_Matrix_defs.hh; src/OR_Matrix_inlines.hh; src/distances_defs.hh; src/distances_inlines.hh; src/globals_defs.hh; doc/definitions.dox; tests/octagonalshapedistancespec1.cc; tests/octagonalshapedistanceoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapedistanceoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapedistancepublic1.cc; tests/shapemetricboundaries1.cc; tests/octagonalshapedistancefailure1.cc; tests/boxallocationfixture.hh; tests/octagonalshapesaturationspec1.cc.

  • 2. Rectilinear distance of octagonal closed-bound tables UID: PPL-SPEC-001231 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Under 🔗 1. Octagonal distance normalization, boundaries and workspaces, the three rectilinear_distance_assign overloads shall assign the requested directed approximation of the distance between the selected closed bound tables of their dimension-compatible operands. If both shapes are nonempty, corresponding finite bounds shall contribute dij = |bij(X) − bij(Y)|. Two positive-infinite entries shall contribute zero; exactly one positive infinity at any corresponding position shall make the distance positive infinity.

    For the physical tuple Dn defined by 🔗 1. Octagonal distance normalization, boundaries and workspaces and finite corresponding differences, the exact distance shall be ∑(i, j) ∈ Dndij, with zero for an empty tuple. The zero-dimensional, empty and dimension-incompatible cases shall follow [LINK: PPL-SPEC-001230].

    On successful numerical completion the operation shall return true. An upward result shall not be smaller than the exact selected-table distance and a downward result shall not be larger. A true Boolean shall not imply exactness or the best representable rounded bound. Valid inexact conversions to the selected temporary type shall retain these directed guarantees. The accumulation and finalization shall retain 🔗 6. Rectilinear distance of physical octagonal entry arrays.

    RATIONALE:

    The sum of absolute corresponding bound changes compares the selected signed-bound descriptions while retaining an explicit mathematical meaning and numerical direction.

    INTERFACE:

    Public header: <ppl.hh>; free functions in Parma_Polyhedra_Library:

    template <typename To, typename T>
    bool rectilinear_distance_assign(
      Checked_Number<To, Extended_Number_Policy>& r,
      const Octagonal_Shape<T>& x, const Octagonal_Shape<T>& y, Rounding_Dir dir);
    
    template <typename Temp, typename To, typename T>
    bool rectilinear_distance_assign(
      Checked_Number<To, Extended_Number_Policy>& r,
      const Octagonal_Shape<T>& x, const Octagonal_Shape<T>& y, Rounding_Dir dir);
    
    template <typename Temp, typename To, typename T>
    bool rectilinear_distance_assign(
      Checked_Number<To, Extended_Number_Policy>& r,
      const Octagonal_Shape<T>& x, const Octagonal_Shape<T>& y, Rounding_Dir dir,
      Temp& tmp0, Temp& tmp1, Temp& tmp2);
    
    VERIFICATION_CRITERIA:

    For exact rational closure, compute signed primitive suprema independently from rational conjunctions. For rounded profiles, decode the selected post-call physical tuples independently and check source-set preservation separately. Compare all three overload forms with exact tuple norms. Include translated nonzero operands, signed differences, infinity positions, identical owners, zero/empty cases and incompatible dimensions. Exercise exact and inexact temporary/result conversions, admitted aliases and supported configurations; verify source preservation and caller rounding. For rectilinear results compare the independent sum of absolute entry differences, including translated operands and differently signed entries.

    SOURCE:

    src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/OR_Matrix_defs.hh; src/OR_Matrix_inlines.hh; src/distances_defs.hh; src/distances_inlines.hh; src/globals_defs.hh; doc/definitions.dox; tests/octagonalshapedistancespec1.cc; tests/octagonalshapedistanceoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapedistanceoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapedistancepublic1.cc; tests/shapemetricboundaries1.cc; tests/octagonalshapesaturationspec1.cc.

  • 3. Euclidean distance of octagonal closed-bound tables UID: PPL-SPEC-001232 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Under 🔗 1. Octagonal distance normalization, boundaries and workspaces, the three euclidean_distance_assign overloads shall assign the requested directed approximation of the distance between the selected closed bound tables of their dimension-compatible operands. If both shapes are nonempty, corresponding finite bounds shall contribute dij = |bij(X) − bij(Y)|. Two positive-infinite entries shall contribute zero; exactly one positive infinity at any corresponding position shall make the distance positive infinity.

    For the physical tuple Dn defined by 🔗 1. Octagonal distance normalization, boundaries and workspaces and finite corresponding differences, the exact distance shall be √(∑(i, j) ∈ Dnd 2ij), with zero for an empty tuple. The zero-dimensional, empty and dimension-incompatible cases shall follow [LINK: PPL-SPEC-001230].

    On successful numerical completion the operation shall return true. An upward result shall not be smaller than the exact selected-table distance and a downward result shall not be larger. A true Boolean shall not imply exactness or the best representable rounded bound. Valid inexact conversions to the selected temporary type shall retain these directed guarantees. The accumulation and finalization shall retain 🔗 7. Euclidean distance of physical octagonal entry arrays.

    Rational square-root enclosure shall retain 🔗 2. Finite rational square root at the selected irrational precision and the calling precision of 🔗 3. Selection and ownership of irrational rational precision, which shall remain stable throughout the dependent call.

    RATIONALE:

    The square root of the sum of squared bound changes compares the selected signed-bound descriptions while retaining an explicit mathematical meaning and numerical direction.

    INTERFACE:

    Public header: <ppl.hh>; free functions in Parma_Polyhedra_Library:

    template <typename To, typename T>
    bool euclidean_distance_assign(
      Checked_Number<To, Extended_Number_Policy>& r,
      const Octagonal_Shape<T>& x, const Octagonal_Shape<T>& y, Rounding_Dir dir);
    
    template <typename Temp, typename To, typename T>
    bool euclidean_distance_assign(
      Checked_Number<To, Extended_Number_Policy>& r,
      const Octagonal_Shape<T>& x, const Octagonal_Shape<T>& y, Rounding_Dir dir);
    
    template <typename Temp, typename To, typename T>
    bool euclidean_distance_assign(
      Checked_Number<To, Extended_Number_Policy>& r,
      const Octagonal_Shape<T>& x, const Octagonal_Shape<T>& y, Rounding_Dir dir,
      Temp& tmp0, Temp& tmp1, Temp& tmp2);
    
    VERIFICATION_CRITERIA:

    For exact rational closure, compute signed primitive suprema independently from rational conjunctions. For rounded profiles, decode the selected post-call physical tuples independently and check source-set preservation separately. Compare all three overload forms with exact tuple norms. Include translated nonzero operands, signed differences, infinity positions, identical owners, zero/empty cases and incompatible dimensions. Exercise exact and inexact temporary/result conversions, admitted aliases and supported configurations; verify source preservation and caller rounding. For Euclidean results compare exact rational squares and test rational precision, rather than using a rounded reference square root.

    SOURCE:

    src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/OR_Matrix_defs.hh; src/OR_Matrix_inlines.hh; src/distances_defs.hh; src/distances_inlines.hh; src/globals_defs.hh; doc/definitions.dox; tests/octagonalshapedistancespec1.cc; tests/octagonalshapedistanceoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapedistanceoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapedistancepublic1.cc; tests/shapemetricboundaries1.cc.

  • 4. Maximum-coordinate distance of octagonal closed-bound tables UID: PPL-SPEC-001233 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Under 🔗 1. Octagonal distance normalization, boundaries and workspaces, the three l_infinity_distance_assign overloads shall assign the requested directed approximation of the distance between the selected closed bound tables of their dimension-compatible operands. If both shapes are nonempty, corresponding finite bounds shall contribute dij = |bij(X) − bij(Y)|. Two positive-infinite entries shall contribute zero; exactly one positive infinity at any corresponding position shall make the distance positive infinity.

    For the physical tuple Dn defined by 🔗 1. Octagonal distance normalization, boundaries and workspaces and finite corresponding differences, the exact distance shall be max(i, j) ∈ Dndij, with zero for an empty tuple. The zero-dimensional, empty and dimension-incompatible cases shall follow [LINK: PPL-SPEC-001230].

    On successful numerical completion the operation shall return true. An upward result shall not be smaller than the exact selected-table distance and a downward result shall not be larger. A true Boolean shall not imply exactness or the best representable rounded bound. Valid inexact conversions to the selected temporary type shall retain these directed guarantees. The accumulation and finalization shall retain 🔗 8. Maximum-coordinate distance of physical octagonal entry arrays.

    RATIONALE:

    The largest absolute corresponding bound change compares the selected signed-bound descriptions while retaining an explicit mathematical meaning and numerical direction.

    INTERFACE:

    Public header: <ppl.hh>; free functions in Parma_Polyhedra_Library:

    template <typename To, typename T>
    bool l_infinity_distance_assign(
      Checked_Number<To, Extended_Number_Policy>& r,
      const Octagonal_Shape<T>& x, const Octagonal_Shape<T>& y, Rounding_Dir dir);
    
    template <typename Temp, typename To, typename T>
    bool l_infinity_distance_assign(
      Checked_Number<To, Extended_Number_Policy>& r,
      const Octagonal_Shape<T>& x, const Octagonal_Shape<T>& y, Rounding_Dir dir);
    
    template <typename Temp, typename To, typename T>
    bool l_infinity_distance_assign(
      Checked_Number<To, Extended_Number_Policy>& r,
      const Octagonal_Shape<T>& x, const Octagonal_Shape<T>& y, Rounding_Dir dir,
      Temp& tmp0, Temp& tmp1, Temp& tmp2);
    
    VERIFICATION_CRITERIA:

    For exact rational closure, compute signed primitive suprema independently from rational conjunctions. For rounded profiles, decode the selected post-call physical tuples independently and check source-set preservation separately. Compare all three overload forms with exact tuple norms. Include translated nonzero operands, signed differences, infinity positions, identical owners, zero/empty cases and incompatible dimensions. Exercise exact and inexact temporary/result conversions, admitted aliases and supported configurations; verify source preservation and caller rounding. For maximum-coordinate results identify the exact greatest absolute entry difference independently and exercise both first and later maximum updates.

    SOURCE:

    src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; src/OR_Matrix_defs.hh; src/OR_Matrix_inlines.hh; src/distances_defs.hh; src/distances_inlines.hh; src/globals_defs.hh; doc/definitions.dox; tests/octagonalshapedistancespec1.cc; tests/octagonalshapedistanceoracle.hh; tests/octagonalshapevalueoracle.hh; tests/bdshapedistanceoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/octagonalshapedistancepublic1.cc; tests/shapemetricboundaries1.cc.

  • PPL-SPEC-001222
    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): 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.

  • 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): 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.

  • PPL-SPEC-001224
    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): 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.

  • PPL-SPEC-001225
    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): 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.

  • PPL-SPEC-001226
    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): 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.

  • PPL-SPEC-001240
    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): 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.

  • PPL-SPEC-001236
    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): 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.

  • PPL-SPEC-001237
    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): 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.

  • PPL-SPEC-001238
    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): 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.

  • PPL-SPEC-001239
    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): 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.

  • 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): 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.

  • PPL-SPEC-001168
    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): 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.

  • PPL-SPEC-001169
    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): 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.

  • PPL-SPEC-001170
    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): 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.

  • PPL-SPEC-001171
    1. Exact intersection of compatible octagonal values UID: PPL-SPEC-001171 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For entry receiver X and source Y, intersection_assign(y) shall replace the receiver by the exact real set X∩Y. This equality shall hold for every admitted numeric profile under its numerical prerequisites, including integral bound storage with half-integral real points.

    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:

    The conjunction of two finite octagonal systems is itself octagonal. Intersection therefore has an exact set meaning even when ordinary rounded upper bounds have weaker precision guarantees.

    INTERFACE:

    Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void intersection_assign(const Octagonal_Shape& y);
    
    VERIFICATION_CRITERIA:

    Independently conjoin raw signed halfspaces and use exact rational elimination to compare represented sets. Include correlated equalities, contradictory signed cycles, half-integral points under integer storage, unbounded/empty/universe/zero-dimensional values, aliases, independent source lifetime, dimension errors and late representation normalization.

    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/intersection1.cc; tests/octagonalshapeoperationsfailure1.cc; tests/boxallocationfixture.hh.

  • PPL-SPEC-001172
    2. Conservative and exact-arithmetic octagonal upper bounds UID: PPL-SPEC-001172 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For entry receiver X and source Y, upper_bound_assign(y) shall produce an octagonal value R satisfying X∪Y ⊆ R.

    When the arithmetic used for normalization and rational strong closure is exact, including unbounded rational-bound profiles, R shall be the least octagonal enclosure of X∪Y. For each admitted octagonal normal a, its finite support shall then be max(supx ∈ Xa⋅x, supy ∈ Ya⋅y), with the doubled unary encoding and unbounded supports interpreted as in 🔗 1. Octagonal values, numerical profiles and valid use. When arithmetic rounds, a less precise containing octagon shall be permitted. An integer boundary type alone shall not imply exact rational strong closure, because half-sums can be inexact.

    Self-union and union with an empty operand shall retain their mathematical identity meanings; union with universe shall give universe. These cases shall preserve the real carrier even for integral bound storage.

    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:

    The signed-normal hull is obtained from supports of the whole input sets. Rounded graph normalization can lose precision, so conservative containment and the exact-arithmetic least enclosure are separate promises.

    INTERFACE:

    Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void upper_bound_assign(const Octagonal_Shape& y);
    
    VERIFICATION_CRITERIA:

    Compute supports with exact rational elimination over each entry set, then take maxima for all signed primitive normals. Require the least enclosure for exact arithmetic and containment for rounded profiles. Include opposite-sign relations, disjoint/lower-dimensional inputs, rays, half-integral points, closure histories, all identity cases, aliases and dimension rejection.

    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/upperbound1.cc; tests/octagonalshapeoperationsfailure1.cc; tests/boxallocationfixture.hh.

  • PPL-SPEC-001173
    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): 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.

  • PPL-SPEC-001174
    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): 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.

  • PPL-SPEC-001175
    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): 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.

  • PPL-SPEC-001176
    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): 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.

  • PPL-SPEC-001181
    7. Ordered Cartesian concatenation of octagonal values UID: PPL-SPEC-001181 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    concatenate_assign(other) shall replace an entry value X ⊆ ℝn with exactly X×Y ⊆ ℝn + m, where Y ⊆ ℝm is other's entry value. The first n coordinates shall belong to X, followed by Y's coordinates in their original order. Cross-block consequences shall follow from Cartesian independence, rather than identifying coordinates with equal indices in the two operands.

    An empty operand shall give empty in dimension n + m. Zero-dimensional universe shall be an identity on either side; zero-dimensional empty shall be an annihilator while retaining the sum dimension. Self concatenation shall use two independent copies of the entry value. A requested sum dimension above max_space_dimension() shall throw std::length_error.

    The supported profiles, real carrier, runtime initialization, numerical range and rounding, FPU, resource and synchronization prerequisites of [LINK: PPL-SPEC-001146] shall apply. A distinct other shall retain its represented entry value; logically const cache normalization may change its storage. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.

    RATIONALE:

    Concatenation composes independently chosen valuations in a fixed coordinate order, including when the two source references coincide.

    INTERFACE:

    Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Octagonal_Shape<T>:

    void concatenate_assign(const Octagonal_Shape& other);
    
    VERIFICATION_CRITERIA:

    Compare disjointly lifted operand halfspaces, mixed dimensions, both zero-dimensional values, all empty positions, coupled operands, cross-block supports, repeated composition and self concatenation. Check a distinct right operand remains equivalent to its entry value and verify the dimension limit.

    SOURCE:

    src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_inlines.hh; src/Octagonal_Shape_templates.hh; tests/Octagonal_Shape/concatenate1.cc; tests/Octagonal_Shape/dimensionlimits1.cc.

  • 1. Octagonal_Shape<T> internal status value ownership and prerequisites UID: PPL-SPEC-001617 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    The nested Status shall own a finite set of named Boolean flags: empty, strongly_closed. test_zero_dim_univ() shall recognize the zero flag word; that word shall be the default state. It shall be an encoding predicate, not an independent query of the owning object's dimension or numerical payload. The owning object shall supply that context and establish the truth of its cache claims.

    Copy construction and assignment shall preserve all stored flags in an independent value. Assignment shall return its target and admit self-assignment. Mutating or destroying one copy shall not change another. Destruction shall release the status value without destroying an owning domain or its payload. These value operations shall admit any vector of the declared flags, including transient inconsistent combinations used while updating a representation.

    Status-only operations shall require live objects and synchronized access against mutation, but no numerical-library/thread initialization or coefficient constant stage. Their selected streams shall remain live. They shall not inspect domain coordinates, reconstruct numerical descriptions or perform coefficient arithmetic. A domain shall use a consistent status whose claims agree with its representation; the local check of 🔗 3. Octagonal_Shape internal status consistency predicate alone shall not certify those numerical facts.

    RATIONALE:

    Cached facts need an independent value and an explicit distinction between status-bit consistency and the truth of claims about a numerical object.

    INTERFACE:

    Internal nested type Octagonal_Shape<T>::Status in Og_Status_idefs.hh, included through Octagonal_Shape_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions.

    Status();
    Status(const Status&);
    Status& operator=(const Status&);
    ~Status();
    
    VERIFICATION_CRITERIA:

    Check default/copy/assignment, self-assignment, independent mutation and source destruction over every declared flag vector. Use status-only tests without a numerical initialization owner; inspect payload independence.

    SOURCE:

    src/Octagonal_Shape_defs.hh; src/Og_Status_idefs.hh; src/Og_Status_inlines.hh; src/Og_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.

  • PPL-SPEC-001618
    2. Octagonal_Shape<T> internal status flag queries and transitions UID: PPL-SPEC-001618 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    For a declared mask m and current flag word F, the private test_all(m) shall return (F&m) = m, and test_any(m) shall return (F&m) ≠ 0. The empty mask shall therefore match all and match no individual bit. set(m) shall replace F by F|m; reset(m) shall clear exactly the selected bits. Masks shall contain only the declared flags. Tests shall preserve state.

    Each named test_* shall return its stored bit, except the zero-word predicate of 🔗 1. Octagonal_Shape internal status value ownership and prerequisites. set_zero_dim_univ() shall clear all flags. reset_zero_dim_univ() shall replace zero by the empty-only state and preserve every nonzero state. set_empty() shall replace the entire word by the empty-only state; reset_empty() shall clear only the empty bit. Other named setters/resets shall set/clear only the indicated bit, subject to no additional flag dependencies enforced by these individual updates.

    Updates shall not generally reconcile other assertions. Transient inconsistent vectors shall remain available to 🔗 3. Octagonal_Shape internal status consistency predicate, but shall not be installed as valid domain state. The prerequisites of 🔗 1. Octagonal_Shape internal status value ownership and prerequisites shall apply.

    RATIONALE:

    Representation algorithms need exact local cache updates without implicit numerical recomputation or unrelated changes to known facts.

    INTERFACE:

    Internal nested type Octagonal_Shape<T>::Status in Og_Status_idefs.hh, included through Octagonal_Shape_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions.

    bool test_zero_dim_univ() const;
    void set_zero_dim_univ();
    void reset_zero_dim_univ();
    bool test_empty() const;
    void set_empty();
    void reset_empty();
    bool test_strongly_closed() const;
    void set_strongly_closed();
    void reset_strongly_closed();
    // Private primitives; flags_t is the declared unsigned flag-word type.
    bool test_all(flags_t mask) const;
    bool test_any(flags_t mask) const;
    void set(flags_t mask);
    void reset(flags_t mask);
    
    VERIFICATION_CRITERIA:

    Compare all flag words and declared masks against independent set algebra. Check every named update and query, both zero-reset cases, whole-word empty replacement, and independent copies.

    SOURCE:

    src/Octagonal_Shape_defs.hh; src/Og_Status_idefs.hh; src/Og_Status_inlines.hh; src/Og_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.

  • 3. Octagonal_Shape<T> internal status consistency predicate UID: PPL-SPEC-001619 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    OK() shall return true exactly for the zero word, empty-only and strongly-closed-only words. Empty and strong closure shall exclude one another. The closure flag shall refer to the owning shape's selected representation invariant; rounded/bounded bounds need not be exactly tight.

    The result shall be the same with and without assertions. Invalid combinations shall return false; assertion builds shall also write a diagnostic to the current std::cerr. Valid combinations shall not emit that diagnostic. The query shall preserve the flag word. Stream failures shall follow ordinary stream rules. This local predicate shall not inspect the domain payload or certify its ambient dimension, feasibility or cached numerical facts. The prerequisites of 🔗 1. Octagonal_Shape internal status value ownership and prerequisites shall apply.

    RATIONALE:

    Cache assertions have logical dependencies. Checking their finite Boolean model must remain distinct from checking the numerical representation.

    INTERFACE:

    Internal nested type Octagonal_Shape<T>::Status in Og_Status_idefs.hh, included through Octagonal_Shape_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions.

    bool OK() const;
    
    VERIFICATION_CRITERIA:

    Enumerate every flag vector against an independent propositional oracle; check accepted-state counts, source preservation and diagnostic presence in assertion/release builds. Inspect payload independence.

    SOURCE:

    src/Octagonal_Shape_defs.hh; src/Og_Status_idefs.hh; src/Og_Status_inlines.hh; src/Og_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.

  • 4. Octagonal_Shape<T> internal status signed-keyword export UID: PPL-SPEC-001620 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    ascii_dump(stream) shall write signed keywords in the order ZE EM SC. ZE shall be positive exactly for the zero flag word; each other sign shall equal its stored named bit. One space shall separate successive fields except for two spaces after EM. The record shall end with one trailing space. The exact separators shall follow the default stream formatting; caller-selected width/fill/alignment shall retain ordinary character/string insertion behavior.

    Export shall preserve the stored flags, including transient inconsistent vectors, without reconciling claims or inspecting numerical payload. Partial output, state flags and exceptions shall follow the selected stream. The prerequisites of 🔗 1. Octagonal_Shape internal status value ownership and prerequisites shall apply.

    RATIONALE:

    Serialized cache claims and diagnostics must retain the actual flag state without triggering domain normalization.

    INTERFACE:

    Internal nested type Octagonal_Shape<T>::Status in Og_Status_idefs.hh, included through Octagonal_Shape_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions.

    void ascii_dump(std::ostream& stream) const;
    
    VERIFICATION_CRITERIA:

    Check exact field signs/order/separators over every flag word, stream formatting and source preservation. Exercise returning/throwing output failures and the declared stderr routes, including their flush behavior.

    SOURCE:

    src/Octagonal_Shape_defs.hh; src/Og_Status_idefs.hh; src/Og_Status_inlines.hh; src/Og_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.

  • 5. Octagonal_Shape<T> internal status signed-keyword loading and rejection UID: PPL-SPEC-001621 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    ascii_load(stream) shall extract exactly the signed keywords of 🔗 4. Octagonal_Shape internal status signed-keyword export in that order using ordinary string extraction, including its whitespace/width and exception-mask behavior. Each token shall consist of one + or - followed by the exact expected keyword. Missing, malformed, reordered or truncated fields shall return false when extraction returns normally. A following token shall remain available after a complete record, apart from ordinary separating whitespace.

    For parsed zero marker Z and remaining flag word F, success shall require Z ⇔ (F = 0) and the consistency predicate of 🔗 3. Octagonal_Shape internal status consistency predicate. A complete consistent record shall replace all flags and return true independently of the destination's previous consistent state. A contradictory marker or incompatible completed flag vector shall return false with and without assertions; it shall not fail through an invariant assertion. A canonical zero word shall be accepted.

    The loader shall retain its preceding word until parsed fields update it. Successfully parsed fields may already have updated the receiver when a later field is rejected or throws. Completed invalid flags may remain installed. Rollback and status consistency after rejection shall not be promised. The caller shall restore valid status before installing it as domain state. Stream/resource exceptions shall retain their ordinary propagation and completed temporary cleanup. The internal get_field parser shall assign its output Boolean only on a successful signed-keyword match and preserve it on rejection. Its keyword shall be a live nonnull null-terminated string, and its output Boolean shall be live and writable. The prerequisites of 🔗 1. Octagonal_Shape internal status value ownership and prerequisites shall apply. These local checks shall not certify the full numerical payload or its cache claims; the owning domain's record loader shall retain 🔗 2. Compatible octagonal record loading and failure state.

    RATIONALE:

    The redundant zero marker and the remaining flags must describe one status. Local inconsistency is a recoverable parse rejection in every build mode.

    INTERFACE:

    Internal nested type Octagonal_Shape<T>::Status in Og_Status_idefs.hh, included through Octagonal_Shape_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions.

    bool ascii_load(std::istream& stream);
    // Internal helper, in its defining translation unit or implementation namespace:
    bool get_field(std::istream& stream, const char* keyword, bool& positive);
    
    VERIFICATION_CRITERIA:

    Enumerate all flag/ZE pairs against the propositional oracle and preserve all canonical valid records. Load every valid source over every consistent prior state and retain a suffix token. Reject every malformed/truncated field position; exercise width/whitespace settings, returning failures, input exceptions and get_field output preservation. Check the stated partial-state behavior and reject contradictory markers through full public-domain loaders.

    SOURCE:

    src/Octagonal_Shape_defs.hh; src/Og_Status_idefs.hh; src/Og_Status_inlines.hh; src/Og_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.

  • 1. Reloadable octagonal record export UID: PPL-SPEC-001227 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a valid admitted source of ambient dimension n, ascii_dump(stream) shall write the literal "space_dim ", the ambient dimension and a newline. It shall then write the three stored status fields in ZE, EM, SC order, with each keyword prefixed by + or -. One space shall separate the first two fields, two spaces shall separate the last two fields, and one space and a newline shall follow the last field.

    The following payload shall be the pseudo-triangular matrix record of 🔗 1. Pseudo-triangular mathematical-value records, with matrix space dimension n. It shall contain its dimension line followed by its physical rows in their stored order, including diagonal positive-infinity sentinels. A zero-dimensional matrix shall have no coefficient rows. The status fields shall retain the stored zero-dimension, emptiness and strong-closure conventions; export shall not require first classifying emptiness or computing strong closure.

    Coefficient output shall retain the selected mathematical-value formatting of 🔗 5. Mathematical numeric output and stream delivery status and 🔗 6. Checked numeric stream policy integration, including exact finite native values independently of caller precision. Under compatible record, numeric-profile, locale and version conventions, the complete record shall retain enough information for 🔗 2. Compatible octagonal record loading and failure state to restore the same mathematical set and ambient dimension. Native object bytes and a floating zero sign shall not be part of this mathematical round-trip guarantee.

    Export shall preserve the source set, dimension, stored status, matrix and ownership. The no-argument ascii_dump() shall send the same record to the current std::cerr. Output failure shall follow the stream's selected state and exception behavior, retaining partial output without certifying successful delivery.

    The representation, numerical-runtime, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. The borrowed stream and its output callback environment shall remain live throughout the call. Recoverable resource exceptions may propagate; discarded owned temporaries shall be released.

    The internal status contract shall follow 🔗 4. Octagonal_Shape internal status signed-keyword export.

    RATIONALE:

    A reloadable record retains dimension, stored status and every bound value, including information that a readable constraint list may omit.

    INTERFACE:

    Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void ascii_dump(std::ostream& stream) const;
    void ascii_dump() const;
    
    VERIFICATION_CRITERIA:

    Check independent header, status-spacing and matrix framing for empty, universal, constrained, cold and strongly closed values in zero and positive dimensions. Round-trip exact integer, rational and admitted native records, including signed zeros and positive infinities. Verify mathematical source preservation, unchanged raw records, following-token framing and the no-argument output destination. Exercise stream failure without assuming transactional delivery.

    SOURCE:

    src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_templates.hh; src/Og_Status_idefs.hh; src/Og_Status_inlines.hh; src/OR_Matrix_defs.hh; src/OR_Matrix_templates.hh; src/globals_defs.hh; tests/Octagonal_Shape/ascii_dump_load1.cc; tests/Octagonal_Shape/empty1.cc; tests/octagonalshapetextmemoryspec1.cc; tests/octagonalshapetextmemorypublic1.cc.

  • 2. Compatible octagonal record loading and failure state UID: PPL-SPEC-001228 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a complete valid record of 🔗 1. Reloadable octagonal record export under compatible representation, numeric formatting, profile, locale and resource conditions, ascii_load(stream) shall return true and replace any live valid receiver by the recorded ambient dimension and mathematical set. Previous receiver dimensions, emptiness and strong-closure status shall not affect successful restoration. The recorded status fields shall replace their previous conditions. One complete record shall be consumed while a following record or suffix remains available after permitted separating whitespace.

    The decoded ambient dimension shall not exceed max_space_dimension(), including for empty records. A greater value shall return false before the matrix payload is processed.

    A missing or incorrect space_dim keyword, rejected ambient dimension, missing or malformed required status word, or truncated or rejected matrix payload shall return false when the component extractions return normally. Each status word shall have its expected keyword and a + or - prefix. The loaded matrix space dimension shall equal the recorded ambient dimension; a mismatch shall return false even for empty or zero-dimensional records. Independently of the ambient dimension, an unsupported nested matrix dimension shall return false before matrix resizing or storage-size arithmetic, as specified by 🔗 2. Exact value-record loading and rejection states. Exact scalar acceptance and numerical-payload rejection shall retain that contract. Stream masks, numerical policies and recoverable resource failures shall retain their own exception channels.

    Successful restoration assumes a trusted, complete and dump-compatible record. After repair of any legacy rounded cache, the loaded representation shall satisfy the shape invariant. A detected inconsistency shall return false in every build. Semantic queries or further shape operations require a complete valid representation.

    For rounded or bounded coefficient profiles, a loaded nonempty status that certifies strong closure may have its feasibility rechecked against the stored bounds. An inconsistent bound system may then be classified empty; otherwise its closure certification may be restored. This compatibility repair shall preserve the stored matrix's exact represented set and ambient dimension; it shall not promise canonical or maximally precise rounded closure.

    A false return or exception may leave replaced dimension or status fields and a partially loaded matrix. It shall not promise rollback or a complete mathematical value. The receiver shall retain safely destructible ownership and may be replaced by a complete valid assignment before semantic queries or operations requiring a valid shape. Consumed input shall not be restored, and the library shall not take ownership of the stream.

    The representation, numerical-runtime, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply. The borrowed stream and its callback environment shall remain live throughout the call. Discarded owned temporaries shall be released on reported failure.

    The internal status contract shall follow 🔗 5. Octagonal_Shape internal status signed-keyword loading and rejection.

    RATIONALE:

    A compatible complete record determines the restored value independently of the receiver's former state. Local dimension agreement protects the matrix/ambient-space relationship without requiring a general semantic certification pass on every assertion-disabled load. Rejecting unsupported ambient dimensions before storage calculations prevents unsigned size wrap from being accepted as a small physical matrix. The independently encoded nested matrix extent also needs admission before its storage calculation.

    INTERFACE:

    Public header: <ppl.hh>; member of Octagonal_Shape<T> in Parma_Polyhedra_Library:

    bool ascii_load(std::istream& stream);
    
    VERIFICATION_CRITERIA:

    Load valid producer records into receivers of different dimensions, empty/nonempty and cache states; compare the restored set and dimension independently and check following-token framing. Exercise every missing or malformed header/status word, truncated matrix boundary, forbidden or inexact scalar value, and each matrix/ambient-dimension mismatch, including empty and zero-dimensional cases. Check rounded feasibility-cache repair, stream exceptions and allocation failures without imposing rollback. Reassign a complete valid value after rejected loads before ordinary value use. Distinguish local false-return checks from debug semantic invariant diagnostics on arbitrary complete text. Reject supported-profile records whose two dimension headers are replaced by 2w − 1 + k, for unsigned dimension width w and k ∈ {0, 1, 3}. Check maximum plus one and the reserved non-dimension, rational/integer/floating bound types, valid replacement after rejection and preserved following input. Keep the outer dimension valid while replacing only the nested matrix dimension by the reserved non-dimension; check empty and universe records at zero and small dimensions, all three bound categories and complete valid reloads.

    SOURCE:

    src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_templates.hh; src/Og_Status_idefs.hh; src/Og_Status_inlines.hh; src/OR_Matrix_defs.hh; src/OR_Matrix_templates.hh; tests/Octagonal_Shape/ascii_dump_load1.cc; tests/Octagonal_Shape/empty1.cc; tests/octagonalshapetextmemoryspec1.cc; tests/octagonalshapetextmemorypublic1.cc.

  • PPL-SPEC-001229
    3. Octagonal representation invariant query UID: PPL-SPEC-001229 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a live, well-owned and safely indexable representation whose selected scalar operations are admitted, OK() shall check the pseudo-triangular matrix's storage and coefficient validity and the status-condition compatibility. The matrix space dimension shall equal the ambient dimension, including empty and zero-dimensional values. A violation of these checked conditions shall return false.

    Once those conditions hold, certified empty representations shall retain their inactive-geometric-data admission, and zero-dimensional representations shall require no coefficient-geometry checks. A positive-dimensional nonempty representation shall reject a stored negative-infinite bound or a diagonal entry other than positive infinity.

    For an unbounded coefficient base whose numeric traits declare exact arithmetic, certified strong closure shall be checked against matrix recomputation. For every exact coefficient base, including bounded integer storage, certified strong closure shall satisfy the native strong-coherence inequalities. The selected extended arithmetic, including its rounding and saturation, shall retain the prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use. Bounded saturating closure shall not be required to pass an exact fixed-point test. Floating coefficient bases shall not be required to pass an exact fixed-point or exact strong-coherence test merely because their rounded closure is certified. Passing the applicable checks shall return true.

    The query shall preserve the receiver's represented set, ambient dimension, stored status, matrix and ownership. It may copy matrices and recompute derived data in temporary objects; resource and numerical exceptions may propagate through their selected channels. Debug builds may emit invariant-failure diagnostics to std::cerr without a fixed wording. Discarded owned temporaries shall be released.

    A true result shall not be an emptiness, semantic equality or minimal-storage answer. This query shall not be a corruption scanner for arbitrary pointers, broken object lifetimes or non-indexable fabricated storage. The numerical runtime, lifetime and synchronization prerequisites of 🔗 1. Octagonal values, numerical profiles and valid use shall apply.

    The internal status contract shall follow 🔗 3. Octagonal_Shape internal status consistency predicate.

    RATIONALE:

    The matrix and ambient space must agree even when geometry is inactive. Native representation checks remain separate from mathematical property queries and from unsupported inspection of broken object ownership. Saturation can allow a further safe closure pass to tighten a stored bound; this does not make the preceding rounded representation invalid. Native strong coherence and exact unbounded fixed points therefore need separate checks.

    INTERFACE:

    Public header: <ppl.hh>; member of Octagonal_Shape<T> in Parma_Polyhedra_Library:

    bool OK() const;
    
    VERIFICATION_CRITERIA:

    Check true on ordinary public histories across admitted profiles. Use safely owned fixture representations for dimension disagreement, incompatible status conditions, forbidden bounds, non-infinite diagonals, incorrect unbounded-exact closure certification and violated native strong coherence for exact bases. Check bounded saturating histories whose safe subsequent closure pass can tighten a bound without treating non-idempotence alone as an invariant failure. Verify both dimension mismatches for empty and zero-dimensional representations. Restore complete valid ownership before ordinary reuse. Observe receiver preservation, selected diagnostics and permitted temporary-allocation failures without requiring bounded saturating or floating-point closure idempotence.

    SOURCE:

    src/Octagonal_Shape_defs.hh; src/Octagonal_Shape_templates.hh; src/Og_Status_idefs.hh; src/Og_Status_inlines.hh; src/OR_Matrix_defs.hh; src/OR_Matrix_templates.hh; src/DB_Row_templates.hh; tests/Octagonal_Shape/ascii_dump_load1.cc; tests/Octagonal_Shape/empty1.cc; tests/octagonalshapetextmemoryspec1.cc; tests/octagonalshapetextmemorypublic1.cc; tests/octagonalshapesaturationspec1.cc.

  • PPL-SPEC-001146
    1. Octagonal values, numerical profiles and valid use UID: PPL-SPEC-001146 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Signed binary relations extend bounded differences. Stored numeric bounds, the real carrier and the completeness of closure are separate properties.

    INTERFACE:

    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;
    
    VERIFICATION_CRITERIA:

    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.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Section 4, signed-variable encoding, coherence and Definition 5 of strong closure (PDF page indices 9–10, 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/octagonalshapevaluesfailure1.cc; tests/octagonalshapesaturationspec1.cc.

  • 2. Dimensioned empty and universe octagonal construction UID: PPL-SPEC-001147 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Mathematical dimension remains separate from the two signed nodes used for each coordinate and from available storage.

    INTERFACE:

    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();
    
    VERIFICATION_CRITERIA:

    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.

    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/fromspacedim1.cc; tests/Octagonal_Shape/maxspacedim1.cc; tests/octagonalshapevaluesfailure1.cc; tests/Octagonal_Shape/dimensionlimits1.cc.

  • 3. Owned octagonal copying, assignment and cleanup UID: PPL-SPEC-001148 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Ownership must follow the mathematical value independently of signed-node storage, cache history and coordinate count.

    INTERFACE:

    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();
    
    VERIFICATION_CRITERIA:

    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.

    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/congruences1.cc; tests/Octagonal_Shape/dimensionlimits1.cc.

  • PPL-SPEC-001149
    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): 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.

  • PPL-SPEC-001150
    5. Whole octagonal value exchange UID: PPL-SPEC-001150 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Exchanging ownership must not reinterpret the signed-coordinate representation or separate a cache from its value.

    INTERFACE:

    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);
    
    VERIFICATION_CRITERIA:

    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.

    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.

  • PPL-SPEC-001151
    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): 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.

  • PPL-SPEC-001152
    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): 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.

  • PPL-SPEC-001153
    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): 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.

  • PPL-SPEC-001154
    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): 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.

  • PPL-SPEC-001155
    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): 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.

  • PPL-SPEC-001156
    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): 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.

  • PPL-SPEC-001157
    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): 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.

  • PPL-SPEC-001158
    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): 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.

  • PPL-SPEC-001159
    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): 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.

  • PPL-SPEC-001160
    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): 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.

  • PPL-SPEC-001161
    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): 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.

PPL-LLR-000062
2. Conservative octagonal constants UID: PPL-LLR-000062 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, when an admitted octagonal constraint requires a bound not exactly representable in the selected numeric profile, its abstraction shall round the bound outward so that no point satisfying the constraint is excluded; operations promising optimal abstraction shall choose the best bound representable in that profile.

RATIONALE:

Normalizing equal-magnitude coefficients may introduce a nonintegral bound even when the input descriptor has integer coefficients.

COMMENT:

Verification covers octagonal constraint abstraction and numeric-bound conversion. Related obligations: 🔗 3. Conservative directed numerical bounds, 🔗 5. Constraint and congruence refinement.

VERIFICATION_CRITERIA:

Use exact rational normalization to derive expected bounds for positive and negative constants. Check exact-rational, integer and floating-point profiles and distinguish representable equality from conservative approximation.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | whole work (background)

SOURCE:

src/Octagonal_Shape_defs.hh: normalized constraints, numeric profiles and optimal support. src/WRD_coefficient_types_defs.hh: extended-number policies.

  • 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): 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.

  • 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): 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.

  • PPL-SPEC-001207
    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): 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.

  • PPL-SPEC-001208
    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): 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.

  • PPL-SPEC-001209
    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): 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.

  • PPL-SPEC-001210
    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): 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.

  • PPL-SPEC-001211
    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): 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.

  • PPL-SPEC-001212
    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): 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.

  • PPL-SPEC-001213
    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): 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.

  • PPL-SPEC-001214
    1. Default octagonal stop points UID: PPL-SPEC-001214 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    CC76_extrapolation_assign(y,tp) shall have the behavior of [LINK: PPL-SPEC-001215] with the finite ordered stop points  − 2,  − 1, 0, 1, 2. These are bounds on the signed forms in that contract: a stop s on a unary form 2xi means xi ≤ s ⁄ 2, while a stop on xi + xj means xi + xj ≤ s. Already representable stop values shall be retained exactly.

    The ascending operand order Y ⊆ X, empty and zero-dimensional cases, source preservation and precision-sensitive token rule shall be those of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens. Sharing the default stop-point values between calls shall not affect mathematical results. This convenience overload shall not add a convergence guarantee to CC76 extrapolation.

    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:

    The octagonal unary encoding doubles coordinate bounds. Stating the actual stop-point scale prevents a factor-of-two error in clients' expected results.

    INTERFACE:

    Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void CC76_extrapolation_assign(const Octagonal_Shape& y,
      unsigned* tp = nullptr);
    
    VERIFICATION_CRITERIA:

    Compare independent exact support/threshold models with the default overload and explicit five-stop range. Include both unary signs, half-unit boundaries, stable and growing binary bounds, absent stops, source lifetime, self-aliasing, null/zero/positive tokens and empty/zero-dimensional values. Exercise admitted integral and native profiles under their rounding prerequisites.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Sections 3.1 and 4, extrapolation and doubled unary octagonal encoding. BagnaraHRZ05SCP | Section 7, precision-sensitive widening 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/cc76extrapolation1.cc.

  • 2. Threshold octagonal extrapolation and precision-sensitive tokens UID: PPL-SPEC-001215 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Let X be the receiver's entry set and Y the argument's entry set, with Y ⊆ X. The explicit-iterator CC76 operator shall produce an octagonal enclosure of X, preserving dimension. An empty argument and zero-dimensional operands shall preserve the receiver's entry set.

    For nonempty operands and exact rational support computations, define bZ(v) = sup{v⋅p ∣ p ∈ Z} for the signed forms v ∈ {±2ei,  ±ei±ej (i < j)}. With no delay token, a finite stable bound bX(v) = bY(v) shall be retained. A bound that increased strictly shall be replaced by the least supplied stop point not below bX(v), or removed if no such stop exists. An unbounded form shall remain unbounded. The result shall denote the conjunction of these closed upper bounds. This characterization concerns real-coordinate sets, including when the stored coefficient type is integral.

    Other supported profiles shall compare outward closed profile bounds and assign chosen stops outward, preserving every point of X under 🔗 1. Octagonal values, numerical profiles and valid use. Rounded closure shall not be assumed canonical or required to compute exact real supports. General relational CC76 iterations shall carry no finite-stabilization guarantee.

    The half-open stop-point range shall use readable multipass forward iterators and finite values sorted in nondecreasing numerical order. Empty ranges and duplicates shall be admitted. Values and iterators shall remain live and stable throughout the call, shall not borrow storage invalidated by the call, and shall support the selected profile's comparisons and outward assignment.

    A null token pointer or zero counter shall select the undelayed result. With a positive counter, the receiver shall retain X; exactly one token shall be consumed when the corresponding undelayed result strictly enlarges X, and otherwise none shall be consumed. The counter shall be a live, separately owned, externally synchronized writable unsigned object. Neither the argument's represented value nor the supplied stop-point values shall be changed.

    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:

    Scalar thresholds control the loss of signed-form bounds, while the token budget delays only precision-losing steps. Closure may restore discarded relational bounds, so extrapolation must remain distinct from semantic widening.

    INTERFACE:

    Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:

    template <typename Iterator>
    void CC76_extrapolation_assign(const Octagonal_Shape& y,
      Iterator first, Iterator last, unsigned* tp = nullptr);
    
    VERIFICATION_CRITERIA:

    Use independent rational elimination to determine every primitive support and a mathematical ordered range to select stops. Cover exact hits, strict changes, stable/unbounded directions, doubled unary and all binary signs, empty/duplicate ranges, pointer and forward iterators, all token states, aliasing, source/range preservation, lazy emptiness and dimension rejection. For rounded profiles assess inclusion separately from exact support precision.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Sections 3.1, 4 and 7, extrapolation limits, signed-form encoding and inexact propagation. BagnaraHRZ05SCP | Section 7, widening with tokens.

    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/cc76extrapolation1.cc.

  • PPL-SPEC-001216
    3. Semantic octagonal widening and default widening alias UID: PPL-SPEC-001216 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    With argument entry set Y contained in receiver entry set X, BHMZ05_widening_assign shall return an octagonal set containing both, with the same ambient dimension. An empty or singleton argument, or an increase in affine dimension from Y to X, shall retain X. widening_assign shall have the same behavior as BHMZ05_widening_assign with the same argument and token pointer.

    For equal positive affine dimension and exact rational support computations, the undelayed result shall implement the semantic standard widening: obtain a nonredundant octagonal inequality description of Y, retain its inequalities satisfied by every point of X, and conjoin the retained inequalities. The affine-dimension guard and strong reduction shall make this result independent of equivalent input descriptions, redundant bounds, representation-only cache changes and choices of a strongly reduced octagonal description. This shall not require a least possible widening.

    Supported rounded profiles shall preserve inclusion under the numerical prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use; the exact-support characterization shall apply when the relevant support and reduction calculations are exact. A smaller resulting set shall not be promised than is established by the selected widening and arithmetic profile.

    The precision-sensitive token rule in 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens shall apply to this operator's undelayed result. Equal entry sets and self-aliasing shall preserve their set and shall not consume a token.

    In a fixed dimension and profile, form an ascending iteration by first constructing an enclosure of the preceding widened result and the next input, then invoking this operator on that enclosure with the preceding result as argument. Under its inclusion and numerical prerequisites, the represented results shall stabilize after finitely many strict changes. A finite initial token budget, without replenishment, shall preserve the convergence 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:

    Reducing the previous octagon avoids the interaction between reintroduced entailed constraints and repeated extrapolation. Tokens postpone precision loss while retaining the convergence purpose of the semantic widening.

    INTERFACE:

    Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void BHMZ05_widening_assign(const Octagonal_Shape& y,
      unsigned* tp = nullptr);
    void widening_assign(const Octagonal_Shape& y,
      unsigned* tp = nullptr);
    
    VERIFICATION_CRITERIA:

    Derive independent irredundant facet descriptions on low-dimensional sets and retain exactly those facets satisfied by the current set. Check affine subspaces, singletons, dimension increases, stable and growing facets, redundant/cache histories, the default alias, all token states, aliases and empty/zero-dimensional cases. Check inclusion at each step of independent ascending recurrences and inspect the reduction-based stabilization proof; assess rounded profiles without claiming exact canonical closure.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Sections 3.3, 4.1-4.2 and 7, reduction choice, semantic octagonal widening and finite-precision qualifications. BagnaraHRZ05SCP | Section 7, finite token budgets and precision-sensitive 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/bhmz05widening1.cc.

  • PPL-SPEC-001217
    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): 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.

  • PPL-SPEC-001218
    5. Octagonal narrowing and descending operand order UID: PPL-SPEC-001218 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Let X be the receiver's entry set and Y the argument's entry set, with X ⊆ Y. CC76_narrowing_assign shall produce R with X ⊆ R ⊆ Y, preserving ambient dimension. An empty receiver, zero-dimensional operands and self-aliasing shall preserve the receiver's entry set.

    For nonempty operands and exact rational support computations, use the signed forms and supports of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens. The result shall be the conjunction whose bound for v is bY(v) when that previous bound is finite and bX(v) otherwise. Thus it may restore a finite previous bound even when the current one is tighter; it shall recover a current bound in a direction where the previous set is unbounded. It shall not simply retain every improvement in the receiver.

    Supported rounded profiles shall use their outward closed profile bounds while preserving both inclusions. Keep every finite previous bound even when the corresponding current bound remains infinite in rounded closure. The exact-support characterization shall apply when the corresponding support computations are exact. Under exact support arithmetic in a fixed dimension, descending iteration that passes each result as the next previous argument shall stabilize after finitely many strict changes: a strict step must make a previously unbounded primitive form finite. Finite-carrier profiles shall stabilize under the same descending inclusion and arithmetic conditions. No stabilization guarantee shall be inferred for other operator/profile/iteration combinations without its own justification.

    The receiver/argument order shall be the descending order stated above, rather than the ascending order used by widening. A distinct previous argument shall retain its represented value.

    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:

    Narrowing restores selected finite restrictions after extrapolation, using the current approximation inside its previous approximation. The descending operand order and finite-previous-bound rule determine its precision.

    INTERFACE:

    Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void CC76_narrowing_assign(const Octagonal_Shape& y);
    
    VERIFICATION_CRITERIA:

    Compute primitive supports independently and apply the finite-previous-bound rule. Check current/result/previous inclusions, unary halves, all binary signs, finite/unbounded directions, affine subspaces, self-aliasing, lazy emptiness and dimension rejection. Exercise descending recurrences and review the finite-status-change proof separately from observed stabilization. Assess admitted rounded cases without assuming exact closure.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Sections 3-4 and 7, weakly relational support semantics and finite-precision qualifications (background). CousotC76 | Original widening and narrowing framework (background).

    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/cc76narrowing1.cc.

  • PPL-SPEC-001219
    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): 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.

  • 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): 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.

  • PPL-SPEC-001163
    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): 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.

  • PPL-SPEC-001164
    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): 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.

  • PPL-SPEC-001165
    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): 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.

  • PPL-SPEC-001166
    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): 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.

  • PPL-SPEC-001222
    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): 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.

  • 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): 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.

  • PPL-SPEC-001224
    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): 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.

  • PPL-SPEC-001225
    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): 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.

  • PPL-SPEC-001240
    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): 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.

  • PPL-SPEC-001236
    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): 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.

  • PPL-SPEC-001237
    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): 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.

  • PPL-SPEC-001238
    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): 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.

  • PPL-SPEC-001239
    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): 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.

  • 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): 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.

  • PPL-SPEC-001168
    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): 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.

  • PPL-SPEC-001169
    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): 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.

  • PPL-SPEC-001170
    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): 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.

  • PPL-SPEC-001171
    1. Exact intersection of compatible octagonal values UID: PPL-SPEC-001171 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For entry receiver X and source Y, intersection_assign(y) shall replace the receiver by the exact real set X∩Y. This equality shall hold for every admitted numeric profile under its numerical prerequisites, including integral bound storage with half-integral real points.

    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:

    The conjunction of two finite octagonal systems is itself octagonal. Intersection therefore has an exact set meaning even when ordinary rounded upper bounds have weaker precision guarantees.

    INTERFACE:

    Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void intersection_assign(const Octagonal_Shape& y);
    
    VERIFICATION_CRITERIA:

    Independently conjoin raw signed halfspaces and use exact rational elimination to compare represented sets. Include correlated equalities, contradictory signed cycles, half-integral points under integer storage, unbounded/empty/universe/zero-dimensional values, aliases, independent source lifetime, dimension errors and late representation normalization.

    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/intersection1.cc; tests/octagonalshapeoperationsfailure1.cc; tests/boxallocationfixture.hh.

  • PPL-SPEC-001172
    2. Conservative and exact-arithmetic octagonal upper bounds UID: PPL-SPEC-001172 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For entry receiver X and source Y, upper_bound_assign(y) shall produce an octagonal value R satisfying X∪Y ⊆ R.

    When the arithmetic used for normalization and rational strong closure is exact, including unbounded rational-bound profiles, R shall be the least octagonal enclosure of X∪Y. For each admitted octagonal normal a, its finite support shall then be max(supx ∈ Xa⋅x, supy ∈ Ya⋅y), with the doubled unary encoding and unbounded supports interpreted as in 🔗 1. Octagonal values, numerical profiles and valid use. When arithmetic rounds, a less precise containing octagon shall be permitted. An integer boundary type alone shall not imply exact rational strong closure, because half-sums can be inexact.

    Self-union and union with an empty operand shall retain their mathematical identity meanings; union with universe shall give universe. These cases shall preserve the real carrier even for integral bound storage.

    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:

    The signed-normal hull is obtained from supports of the whole input sets. Rounded graph normalization can lose precision, so conservative containment and the exact-arithmetic least enclosure are separate promises.

    INTERFACE:

    Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void upper_bound_assign(const Octagonal_Shape& y);
    
    VERIFICATION_CRITERIA:

    Compute supports with exact rational elimination over each entry set, then take maxima for all signed primitive normals. Require the least enclosure for exact arithmetic and containment for rounded profiles. Include opposite-sign relations, disjoint/lower-dimensional inputs, rays, half-integral points, closure histories, all identity cases, aliases and dimension rejection.

    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/upperbound1.cc; tests/octagonalshapeoperationsfailure1.cc; tests/boxallocationfixture.hh.

  • PPL-SPEC-001173
    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): 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.

  • PPL-SPEC-001174
    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): 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.

  • PPL-SPEC-001175
    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): 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.

  • PPL-SPEC-001176
    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): 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.

  • PPL-SPEC-001146
    1. Octagonal values, numerical profiles and valid use UID: PPL-SPEC-001146 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Signed binary relations extend bounded differences. Stored numeric bounds, the real carrier and the completeness of closure are separate properties.

    INTERFACE:

    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;
    
    VERIFICATION_CRITERIA:

    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.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Section 4, signed-variable encoding, coherence and Definition 5 of strong closure (PDF page indices 9–10, 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/octagonalshapevaluesfailure1.cc; tests/octagonalshapesaturationspec1.cc.

  • PPL-SPEC-001149
    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): 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.

  • PPL-SPEC-001151
    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): 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.

  • PPL-SPEC-001152
    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): 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.

  • PPL-SPEC-001160
    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): 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.

PPL-LLR-000063
3. Octagonal intersection and upper bounds UID: PPL-LLR-000063 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

PPL shall provide intersection and upper-bound operations for compatible octagonal shapes. Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, a successful intersection shall denote the exact set intersection and a successful upper-bound operation shall contain the union of its input sets. For exact rational-bound profiles, the upper bound shall be the smallest octagonal set containing that union; rounded profiles may produce a less precise containing set.

RATIONALE:

Intersection remains expressible within this domain. Finite arithmetic can reduce the precision of an upper bound, so conservative containment must be distinguished from a least-upper-bound guarantee.

COMMENT:

Verification covers octagonal intersection and upper-bound operations, including compatible dimensions, exact intersection and profile-specific upper-bound precision. Verification combines mathematical analysis with the tests and reviews identified above; representation closure does not replace a check of the represented sets. Related obligations: 🔗 1. Meaning of successful exact and approximate results, 🔗 5. Constraint and congruence refinement, 🔗 4. Explicit numerical operation contracts.

VERIFICATION_CRITERIA:

Derive intersections independently by conjoining operand constraints and check equality across the assessed numeric profiles. Derive least upper bounds independently for low-dimensional exact-rational examples; across supported profiles, check containment of both operands and minimality only where guaranteed. Include incompatible-input handling according to the declared contract, different redundant descriptions, lower-dimensional sets, unbounded bounds and empty inputs.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | whole work (background)

SOURCE:

src/Octagonal_Shape_defs.hh: exact intersection, upper-bound contract and exact-versus-rounded precision. doc/definitions.dox: Octagonal Shapes.

  • PPL-SPEC-001217
    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): 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.

  • PPL-SPEC-001219
    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): 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.

  • PPL-SPEC-001171
    1. Exact intersection of compatible octagonal values UID: PPL-SPEC-001171 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For entry receiver X and source Y, intersection_assign(y) shall replace the receiver by the exact real set X∩Y. This equality shall hold for every admitted numeric profile under its numerical prerequisites, including integral bound storage with half-integral real points.

    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:

    The conjunction of two finite octagonal systems is itself octagonal. Intersection therefore has an exact set meaning even when ordinary rounded upper bounds have weaker precision guarantees.

    INTERFACE:

    Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void intersection_assign(const Octagonal_Shape& y);
    
    VERIFICATION_CRITERIA:

    Independently conjoin raw signed halfspaces and use exact rational elimination to compare represented sets. Include correlated equalities, contradictory signed cycles, half-integral points under integer storage, unbounded/empty/universe/zero-dimensional values, aliases, independent source lifetime, dimension errors and late representation normalization.

    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/intersection1.cc; tests/octagonalshapeoperationsfailure1.cc; tests/boxallocationfixture.hh.

  • PPL-SPEC-001172
    2. Conservative and exact-arithmetic octagonal upper bounds UID: PPL-SPEC-001172 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For entry receiver X and source Y, upper_bound_assign(y) shall produce an octagonal value R satisfying X∪Y ⊆ R.

    When the arithmetic used for normalization and rational strong closure is exact, including unbounded rational-bound profiles, R shall be the least octagonal enclosure of X∪Y. For each admitted octagonal normal a, its finite support shall then be max(supx ∈ Xa⋅x, supy ∈ Ya⋅y), with the doubled unary encoding and unbounded supports interpreted as in 🔗 1. Octagonal values, numerical profiles and valid use. When arithmetic rounds, a less precise containing octagon shall be permitted. An integer boundary type alone shall not imply exact rational strong closure, because half-sums can be inexact.

    Self-union and union with an empty operand shall retain their mathematical identity meanings; union with universe shall give universe. These cases shall preserve the real carrier even for integral bound storage.

    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:

    The signed-normal hull is obtained from supports of the whole input sets. Rounded graph normalization can lose precision, so conservative containment and the exact-arithmetic least enclosure are separate promises.

    INTERFACE:

    Public header: <ppl.hh>; members of Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void upper_bound_assign(const Octagonal_Shape& y);
    
    VERIFICATION_CRITERIA:

    Compute supports with exact rational elimination over each entry set, then take maxima for all signed primitive normals. Require the least enclosure for exact arithmetic and containment for rounded profiles. Include opposite-sign relations, disjoint/lower-dimensional inputs, rays, half-integral points, closure histories, all identity cases, aliases and dimension rejection.

    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/upperbound1.cc; tests/octagonalshapeoperationsfailure1.cc; tests/boxallocationfixture.hh.

  • PPL-SPEC-001173
    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): 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. Preservation of integer points during octagonal refinement UID: PPL-LLR-000064 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, an octagonal operation advertised as discarding noninteger points shall preserve every integer-valued point of the input set, even when the resulting abstraction retains some noninteger points.

RATIONALE:

Integer refinement is allowed to be incomplete; soundness requires retaining all feasible integer states.

COMMENT:

Verification covers octagonal integer-point refinement and supported selected-coordinate behavior. Related obligations: 🔗 11. Preservation of integer points in integer restriction.

VERIFICATION_CRITERIA:

Enumerate integer points within independently justified finite bounds before and after refinement and compare them exactly. Include parity restrictions, rational boundaries, empty integer hulls and unbounded examples with analytically known integer points.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | whole work (background)

SOURCE:

src/Octagonal_Shape_defs.hh: operations for discarding noninteger points. src/Octagonal_Shape_templates.hh: integer refinement and tight closure. doc/definitions.dox: Approximating Integers.

  • 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): 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.

  • PPL-SPEC-001224
    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): 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.

  • PPL-SPEC-001174
    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): 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.

5. Octagonal widening guarantees UID: PPL-LLR-000065 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

PPL shall provide octagonal widening facilities. Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, a supported widening shall contain its input sets and shall stabilize its prescribed iteration on ascending sequences satisfying the stated inclusion, threshold and finite-delay conditions.

RATIONALE:

Relational closure and precision improvements must respect the convergence conditions of the selected widening.

COMMENT:

Verification covers octagonal widening operations and convergence preconditions. Related obligations: 🔗 6. Compound extrapolation and finite convergence, 🔗 3. Narrowing and descending precision recovery.

VERIFICATION_CRITERIA:

Check inclusion during ascending iterations and analyze convergence for each advertised algorithm. Include finite delayed iterations, changing redundant descriptions and bounds propagated through signed coordinate relations.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | whole work (background)

SOURCE:

src/Octagonal_Shape_defs.hh: widening contracts. src/Octagonal_Shape_templates.hh: widening operations. doc/definitions.dox: Widening and Extrapolation Operators on Weakly-Relational Shapes.

  • PPL-SPEC-001214
    1. Default octagonal stop points UID: PPL-SPEC-001214 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    CC76_extrapolation_assign(y,tp) shall have the behavior of [LINK: PPL-SPEC-001215] with the finite ordered stop points  − 2,  − 1, 0, 1, 2. These are bounds on the signed forms in that contract: a stop s on a unary form 2xi means xi ≤ s ⁄ 2, while a stop on xi + xj means xi + xj ≤ s. Already representable stop values shall be retained exactly.

    The ascending operand order Y ⊆ X, empty and zero-dimensional cases, source preservation and precision-sensitive token rule shall be those of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens. Sharing the default stop-point values between calls shall not affect mathematical results. This convenience overload shall not add a convergence guarantee to CC76 extrapolation.

    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:

    The octagonal unary encoding doubles coordinate bounds. Stating the actual stop-point scale prevents a factor-of-two error in clients' expected results.

    INTERFACE:

    Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void CC76_extrapolation_assign(const Octagonal_Shape& y,
      unsigned* tp = nullptr);
    
    VERIFICATION_CRITERIA:

    Compare independent exact support/threshold models with the default overload and explicit five-stop range. Include both unary signs, half-unit boundaries, stable and growing binary bounds, absent stops, source lifetime, self-aliasing, null/zero/positive tokens and empty/zero-dimensional values. Exercise admitted integral and native profiles under their rounding prerequisites.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Sections 3.1 and 4, extrapolation and doubled unary octagonal encoding. BagnaraHRZ05SCP | Section 7, precision-sensitive widening 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/cc76extrapolation1.cc.

  • 2. Threshold octagonal extrapolation and precision-sensitive tokens UID: PPL-SPEC-001215 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Let X be the receiver's entry set and Y the argument's entry set, with Y ⊆ X. The explicit-iterator CC76 operator shall produce an octagonal enclosure of X, preserving dimension. An empty argument and zero-dimensional operands shall preserve the receiver's entry set.

    For nonempty operands and exact rational support computations, define bZ(v) = sup{v⋅p ∣ p ∈ Z} for the signed forms v ∈ {±2ei,  ±ei±ej (i < j)}. With no delay token, a finite stable bound bX(v) = bY(v) shall be retained. A bound that increased strictly shall be replaced by the least supplied stop point not below bX(v), or removed if no such stop exists. An unbounded form shall remain unbounded. The result shall denote the conjunction of these closed upper bounds. This characterization concerns real-coordinate sets, including when the stored coefficient type is integral.

    Other supported profiles shall compare outward closed profile bounds and assign chosen stops outward, preserving every point of X under 🔗 1. Octagonal values, numerical profiles and valid use. Rounded closure shall not be assumed canonical or required to compute exact real supports. General relational CC76 iterations shall carry no finite-stabilization guarantee.

    The half-open stop-point range shall use readable multipass forward iterators and finite values sorted in nondecreasing numerical order. Empty ranges and duplicates shall be admitted. Values and iterators shall remain live and stable throughout the call, shall not borrow storage invalidated by the call, and shall support the selected profile's comparisons and outward assignment.

    A null token pointer or zero counter shall select the undelayed result. With a positive counter, the receiver shall retain X; exactly one token shall be consumed when the corresponding undelayed result strictly enlarges X, and otherwise none shall be consumed. The counter shall be a live, separately owned, externally synchronized writable unsigned object. Neither the argument's represented value nor the supplied stop-point values shall be changed.

    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:

    Scalar thresholds control the loss of signed-form bounds, while the token budget delays only precision-losing steps. Closure may restore discarded relational bounds, so extrapolation must remain distinct from semantic widening.

    INTERFACE:

    Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:

    template <typename Iterator>
    void CC76_extrapolation_assign(const Octagonal_Shape& y,
      Iterator first, Iterator last, unsigned* tp = nullptr);
    
    VERIFICATION_CRITERIA:

    Use independent rational elimination to determine every primitive support and a mathematical ordered range to select stops. Cover exact hits, strict changes, stable/unbounded directions, doubled unary and all binary signs, empty/duplicate ranges, pointer and forward iterators, all token states, aliasing, source/range preservation, lazy emptiness and dimension rejection. For rounded profiles assess inclusion separately from exact support precision.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Sections 3.1, 4 and 7, extrapolation limits, signed-form encoding and inexact propagation. BagnaraHRZ05SCP | Section 7, widening with tokens.

    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/cc76extrapolation1.cc.

  • PPL-SPEC-001216
    3. Semantic octagonal widening and default widening alias UID: PPL-SPEC-001216 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    With argument entry set Y contained in receiver entry set X, BHMZ05_widening_assign shall return an octagonal set containing both, with the same ambient dimension. An empty or singleton argument, or an increase in affine dimension from Y to X, shall retain X. widening_assign shall have the same behavior as BHMZ05_widening_assign with the same argument and token pointer.

    For equal positive affine dimension and exact rational support computations, the undelayed result shall implement the semantic standard widening: obtain a nonredundant octagonal inequality description of Y, retain its inequalities satisfied by every point of X, and conjoin the retained inequalities. The affine-dimension guard and strong reduction shall make this result independent of equivalent input descriptions, redundant bounds, representation-only cache changes and choices of a strongly reduced octagonal description. This shall not require a least possible widening.

    Supported rounded profiles shall preserve inclusion under the numerical prerequisites in 🔗 1. Octagonal values, numerical profiles and valid use; the exact-support characterization shall apply when the relevant support and reduction calculations are exact. A smaller resulting set shall not be promised than is established by the selected widening and arithmetic profile.

    The precision-sensitive token rule in 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens shall apply to this operator's undelayed result. Equal entry sets and self-aliasing shall preserve their set and shall not consume a token.

    In a fixed dimension and profile, form an ascending iteration by first constructing an enclosure of the preceding widened result and the next input, then invoking this operator on that enclosure with the preceding result as argument. Under its inclusion and numerical prerequisites, the represented results shall stabilize after finitely many strict changes. A finite initial token budget, without replenishment, shall preserve the convergence 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:

    Reducing the previous octagon avoids the interaction between reintroduced entailed constraints and repeated extrapolation. Tokens postpone precision loss while retaining the convergence purpose of the semantic widening.

    INTERFACE:

    Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void BHMZ05_widening_assign(const Octagonal_Shape& y,
      unsigned* tp = nullptr);
    void widening_assign(const Octagonal_Shape& y,
      unsigned* tp = nullptr);
    
    VERIFICATION_CRITERIA:

    Derive independent irredundant facet descriptions on low-dimensional sets and retain exactly those facets satisfied by the current set. Check affine subspaces, singletons, dimension increases, stable and growing facets, redundant/cache histories, the default alias, all token states, aliases and empty/zero-dimensional cases. Check inclusion at each step of independent ascending recurrences and inspect the reduction-based stabilization proof; assess rounded profiles without claiming exact canonical closure.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Sections 3.3, 4.1-4.2 and 7, reduction choice, semantic octagonal widening and finite-precision qualifications. BagnaraHRZ05SCP | Section 7, finite token budgets and precision-sensitive 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/bhmz05widening1.cc.

  • PPL-SPEC-001217
    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): 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.

  • PPL-SPEC-001218
    5. Octagonal narrowing and descending operand order UID: PPL-SPEC-001218 STATUS: APPROVED COMPONENT: OCTAGONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Let X be the receiver's entry set and Y the argument's entry set, with X ⊆ Y. CC76_narrowing_assign shall produce R with X ⊆ R ⊆ Y, preserving ambient dimension. An empty receiver, zero-dimensional operands and self-aliasing shall preserve the receiver's entry set.

    For nonempty operands and exact rational support computations, use the signed forms and supports of 🔗 2. Threshold octagonal extrapolation and precision-sensitive tokens. The result shall be the conjunction whose bound for v is bY(v) when that previous bound is finite and bX(v) otherwise. Thus it may restore a finite previous bound even when the current one is tighter; it shall recover a current bound in a direction where the previous set is unbounded. It shall not simply retain every improvement in the receiver.

    Supported rounded profiles shall use their outward closed profile bounds while preserving both inclusions. Keep every finite previous bound even when the corresponding current bound remains infinite in rounded closure. The exact-support characterization shall apply when the corresponding support computations are exact. Under exact support arithmetic in a fixed dimension, descending iteration that passes each result as the next previous argument shall stabilize after finitely many strict changes: a strict step must make a previously unbounded primitive form finite. Finite-carrier profiles shall stabilize under the same descending inclusion and arithmetic conditions. No stabilization guarantee shall be inferred for other operator/profile/iteration combinations without its own justification.

    The receiver/argument order shall be the descending order stated above, rather than the ascending order used by widening. A distinct previous argument shall retain its represented value.

    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:

    Narrowing restores selected finite restrictions after extrapolation, using the current approximation inside its previous approximation. The descending operand order and finite-previous-bound rule determine its precision.

    INTERFACE:

    Public header: <ppl.hh>; member excerpts for Octagonal_Shape<T> in Parma_Polyhedra_Library:

    void CC76_narrowing_assign(const Octagonal_Shape& y);
    
    VERIFICATION_CRITERIA:

    Compute primitive supports independently and apply the finite-previous-bound rule. Check current/result/previous inclusions, unary halves, all binary signs, finite/unbounded directions, affine subspaces, self-aliasing, lazy emptiness and dimension rejection. Exercise descending recurrences and review the finite-status-change proof separately from observed stabilization. Assess admitted rounded cases without assuming exact closure.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Sections 3-4 and 7, weakly relational support semantics and finite-precision qualifications (background). CousotC76 | Original widening and narrowing framework (background).

    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/cc76narrowing1.cc.

  • PPL-SPEC-001219
    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): 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.