Parma Polyhedra Library requirements
Coordinate composition, narrowing and reloadable representations
PPL-LLR-000443
1. Dimension-preserving coordinate forgetting UID: PPL-LLR-000443 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT:

PPL shall provide dimension-preserving forgetting of selected coordinates for its supported pointset domains. Under the operation's arithmetic preconditions, a completed result shall contain every valuation obtained by arbitrarily changing those coordinates in an input point, while preserving the ambient dimension and the identities of the retained coordinates. Each supported domain and profile shall define its exactness or other precision guarantee.

RATIONALE:

Forgetting coordinate values existentially while retaining their positions is a different operation from removing dimensions, remapping coordinates or assigning zero values.

COMMENT:

Verification covers coordinate-forgetting operations, including valid coordinate selections, retained dimension, concrete cylindrification and per-domain precision. Verification combines independent mathematical projection models with operation tests and checks of supported profiles. Related obligations: 🔗 1. Coordinate identity and ambient dimension, 🔗 1. Coordinate removal and existential projection, 🔗 3. Coordinate remapping semantics, 🔗 1. Meaning of successful exact and approximate results, 🔗 4. Explicit numerical operation contracts.

VERIFICATION_CRITERIA:

Derive cylindrifications independently by existentially eliminating the selected values and restoring unconstrained positions. Include no selected coordinates, all coordinates, coupled retained coordinates, empty sets, zero-dimensional inputs and unbounded sets. Check ambient dimension and coordinate order. Check equality where the assessed domain and profile promise exactness and containment otherwise.

SOURCE:

Local research on the merged PPL source: doc/definitions.dox: Cylindrification Operator. src/Polyhedron_defs.hh and src/Grid_defs.hh: dimension-preserving unconstraining. src/Box_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: supported forgetting operations. src/Pointset_Powerset_defs.hh and src/Partially_Reduced_Product_defs.hh: lifted forgetting.

  • PPL-SPEC-001094
    5. Forgetting one coordinate without removing it UID: PPL-SPEC-001094 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    var shall be a live valid Variable satisfying 🔗 2. Variable value identity and lifetime operations and 🔗 3. Variable construction, coordinate queries and bounds.

    unconstrain(var) shall forget the value of the selected coordinate while preserving ambient dimension and every coordinate's identity. If the entry set is X ⊆ ℝn and var denotes coordinate i, the concrete cylindrification shall be

    {z ∈ ℝn ∣ ∃x ∈ X : ∀j ≠ i,  zj = xj}.

    With exact rational or integral arithmetic, the result shall denote this set exactly. A profile whose computations round may produce a containing bounded-difference enclosure. The operation shall retain the consequences among unselected coordinates that are required by its precision guarantee; merely deleting input rows mentioning var is insufficient.

    Empty shall remain empty. A valid selected coordinate of a nonempty set shall become unrestricted rather than being assigned zero or removed. var shall be below space_dimension(); otherwise std::invalid_argument shall be thrown without changing the receiver's represented set.

    The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.

    Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.

    RATIONALE:

    Existential forgetting preserves coordinate positions and can retain constraints mediated by the forgotten coordinate. It differs from row deletion, zero assignment and coordinate removal.

    INTERFACE:

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

    void unconstrain(Variable var);
    
    VERIFICATION_CRITERIA:

    Use independent rational elimination while keeping the coordinate slot free. Exercise chains through the forgotten coordinate, retained equalities, singleton/empty/unbounded sets, every selected position, exact and rounded profiles, zero dimension and invalid indices.

    SOURCE:

    src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeoperationsspec1.cc; tests/bdshapeoperationoracle.hh; tests/bdshapeoperationsfailure1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeoperationspublic1.cc; tests/BD_Shape/unconstrain1.cc; tests/BD_Shape/dimensioncontracts1.cc.

  • PPL-SPEC-001095
    6. Forgetting a coordinate set simultaneously UID: PPL-SPEC-001095 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    vars shall be a live coordinate-valid Variables_Set satisfying [LINK: PPL-SPEC-000021] and 🔗 4. Coordinate-set dimension and maximum dimension, and shall remain unmodified throughout the call.

    unconstrain(vars) shall forget all selected values, preserving the ambient dimension and coordinate identities. For the selected index set I, its concrete result shall be

    {z ∈ ℝn ∣ ∃x ∈ X : ∀j ∉ I,  zj = xj}.

    The profile-specific exactness and containment guarantees of [LINK: PPL-SPEC-001094] shall apply to this simultaneous cylindrification. Input order or repeated insertion of an index into Variables_Set shall not change the result's meaning.

    An empty selection shall preserve the represented set, including in zero dimensions. Selecting all coordinates of a nonempty shape shall give universe in the same dimension; an empty shape shall remain empty. Any selected index outside the receiver's dimension shall throw std::invalid_argument before changing its represented set. The selector set shall preserve its value and result storage shall not depend on its lifetime.

    The supported-profile, initialization, rounding, range and synchronization prerequisites in 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply to the receiver and input values. All operands shall be live and valid throughout the call. Every intermediate numerical operation shall satisfy its selected arithmetic contract. Ambient dimension and coordinate identities shall be preserved unless the operation explicitly changes coordinate values.

    Underlying numerical, allocation or cooperative-abandonment failures may propagate. Temporary resources owned by the operation shall be released. Surviving objects shall retain valid ownership and remain valid and safely destructible. No general rollback guarantee shall be inferred for such failures.

    RATIONALE:

    Simultaneous forgetting must preserve relationships among retained coordinates across several eliminated paths. The empty and full selections distinguish identity from whole-space cylindrification.

    INTERFACE:

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

    void unconstrain(const Variables_Set& vars);
    
    VERIFICATION_CRITERIA:

    Eliminate selected coordinates independently with exact rationals and leave the original slots unrestricted. Check empty/full/nonadjacent selections, retained mediated differences, repeated selector insertion, all positions, empty and zero-dimensional sets, copied selector lifetime and dimension rejection.

    SOURCE:

    src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeoperationsspec1.cc; tests/bdshapeoperationoracle.hh; tests/bdshapeoperationsfailure1.cc; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/bdshapeoperationspublic1.cc; tests/BD_Shape/unconstrain1.cc; tests/BD_Shape/dimensioncontracts1.cc.

  • PPL-SPEC-000961
    1. Dimension-preserving box coordinate forgetting UID: PPL-SPEC-000961 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a nonempty box, forgetting a selected coordinate shall replace its factor by the selected interval profile's universe, leaving every other factor and the ambient dimension unchanged. Forgetting a set of coordinates shall apply that meaning to all selected positions. The result shall exactly denote existential elimination of those values with the same positions restored as unrestricted coordinates. An empty source shall remain empty, including when emptiness is carried only by a factor being forgotten. Forgetting no coordinates shall preserve the value.

    An out-of-dimension variable, or any member of a selected set outside the ambient dimension, shall throw std::invalid_argument. This validation shall apply also to empty boxes. Valid coordinate selections shall use the coordinate identity and lifetime rules for Variable and Variables_Set.

    The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.

    RATIONALE:

    Forgetting values retains coordinate identity and differs from deleting coordinate positions.

    INTERFACE:

    Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Box<ITV>:

    void unconstrain(Variable var);
    void unconstrain(const Variables_Set& vars);
    
    VERIFICATION_CRITERIA:

    Compare all coordinate subsets of independent small Cartesian products; retain empty sources with a selected or unselected empty factor, zero-dimensional empty/universe, ambient dimensions and untouched factors. Check single-coordinate/set equivalence and invalid selections.

    SOURCE:

    src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxcoordinatesspec1.cc; tests/boxpublic1.cc.

  • PPL-SPEC-001286
    6. Coordinate cylindrification UID: PPL-SPEC-001286 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    unconstrain(var) and unconstrain(vars) shall existentially project the selected coordinates and reintroduce them as unconstrained real coordinates at their original indices. They shall preserve ambient dimension and all correlations among unselected coordinates. Empty remains empty; an empty selection is identity. Any selected index outside the ambient dimension shall throw std::invalid_argument before mutation, including empty receivers.

    The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.

    RATIONALE:

    Forgetting coordinates removes all their restrictions, rather than merely deleting visibly involving rows.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.

    void unconstrain(Variable var);
    
    void unconstrain(const Variables_Set& vars);
    
    VERIFICATION_CRITERIA:

    Compare with independent generator projection plus real coordinate lines, including correlated congruences, all/empty selections, zero dimensions and invalid indices.

    BIBLIOGRAPHY:

    BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.

    SOURCE:

    src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/unconstrain1.cc; tests/gridoperationsspec1.cc; tests/gridoperationsfailure1.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-001409
    3. Lifted cylindrification UID: PPL-SPEC-001409 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    unconstrain shall cylindrify each disjunct in the selected coordinates while retaining ambient dimension and mark reduction unknown. The resulting union shall have the base operation's exactness and arithmetic guarantees. An empty variable set shall preserve the value. Out-of-range variables shall throw std::invalid_argument.

    The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.

    RATIONALE:

    Existential projection followed by unconstrained embedding distributes over finite unions.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.

    void unconstrain(Variable);
    void unconstrain(const Variables_Set&);
    
    VERIFICATION_CRITERIA:

    Check relational disjuncts, scalar/set overload agreement, empty variable sets and invalid dimensions.

    SOURCE:

    src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/contractvalues1.cc; tests/Powerset/gridprimaryoperations1.cc; tests/Powerset/spacedims1.cc.

  • PPL-SPEC-001459
    1. Product coordinate operations UID: PPL-SPEC-001459 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Coordinate members shall perform the corresponding base operation on both components with identical indices, counts and maps. Growth shall add free coordinates for embedding and zero coordinates for projecting growth. Removal and mapping shall existentially eliminate omitted coordinates and compact or permute retained coordinates. Expansion and folding shall use the base independent-copy and merge semantics. Cylindrification shall reduce first and free selected coordinates without changing dimension. Results shall soundly contain the corresponding transformation of the old intersection; exact base projections alone shall not establish exact product projection. Both components shall retain equal ambient dimension on successful return. Variable/map admission and structural dimension limits shall follow both base contracts.

    The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.

    RATIONALE:

    Existential coordinate operations can lose conjunction correlations when applied independently to components.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.

    void unconstrain(Variable); void unconstrain(const Variables_Set&);
    void add_space_dimensions_and_embed(dimension_type);
    void add_space_dimensions_and_project(dimension_type);
    void remove_space_dimensions(const Variables_Set&);
    void remove_higher_space_dimensions(dimension_type);
    template <typename Partial_Function> void map_space_dimensions(const Partial_Function&);
    void expand_space_dimension(Variable, dimension_type);
    void fold_space_dimensions(const Variables_Set&, Variable);
    
    VERIFICATION_CRITERIA:

    Check all members, coordinate order and dimensions, relational projection examples, empty values, invalid variables and growth bounds.

    SOURCE:

    src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/spacedims1.cc.

2. Concatenation, coordinate expansion and folding UID: PPL-LLR-000444 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT:

PPL shall provide its supported ordered concatenation, coordinate expansion and coordinate folding facilities. The concrete meaning of concatenation shall be the Cartesian product with the first operand's coordinates preceding the second operand's coordinates. Expansion shall mean reproducing the selected coordinate's admissible relationships with retained coordinates according to the declared replica semantics; equality with the original coordinate shall be required only when implied by those semantics and the input. Folding shall have the concrete meaning of combining the alternatives obtained by choosing the destination or a folded coordinate for the destination value and removing the folded coordinates. For valid inputs satisfying the operation's stated computational-arithmetic preconditions, including those governing all intermediate calculations, a successfully completed concatenation shall denote that Cartesian product exactly. Under those same conditions, successfully completed expansion and folding results shall contain their concrete coordinate-transformation results and satisfy the domain's declared exactness or precision guarantee.

RATIONALE:

These operations compose or summarize coordinate information. Unconstrained extension and injective remapping alone do not define their semantics.

COMMENT:

Verification covers concatenation, expansion and folding, including coordinate placement, replica relationships, destination selection, dimensional changes and supported precision. Mathematical models and tests shall follow each declared concrete transformation rather than equating expansion with equal-value assignment or folding with an injective remapping. Related obligations: 🔗 2. Distinguished coordinate extensions, 🔗 3. Coordinate remapping semantics, 🔗 1. Meaning of successful exact and approximate results, 🔗 4. Explicit numerical operation contracts.

The cited conference publication provides background on summarized dimensions.

VERIFICATION_CRITERIA:

Derive ordered Cartesian products independently, including empty operands, zero-dimensional operands and operands using different numbers of coordinates. For expansion, assess one and multiple replicas, no added replicas and inputs permitting different values for the original and a replica; check the declared relationships among replicas and retained coordinates. For folding, independently form the alternatives for the original destination and each folded coordinate before taking the required domain enclosure. Include empty folding selections, coordinate reordering after removal, coupled coordinates and invalid selections according to the declared validation contract. Check exactness only where promised.

BIBLIOGRAPHY:

GopanDMDRS04 | Whole work (background on numerical domains with summarized dimensions).

SOURCE:

Local research on the merged PPL source: doc/definitions.dox: Concatenating Polyhedra; Expanding One Dimension of the Vector Space to Multiple Dimensions; Folding Multiple Dimensions of the Vector Space into One Dimension. src/Polyhedron_chdims.cc and src/Grid_chdims.cc: expansion and folding. src/Box_defs.hh and src/Box_templates.hh: Cartesian concatenation and coordinate folding. src/BD_Shape_templates.hh and src/Octagonal_Shape_templates.hh: expansion and folding precision. src/Pointset_Powerset_defs.hh and src/Partially_Reduced_Product_defs.hh: lifted coordinate composition.

  • PPL-SPEC-001559
    6. C generated dimension arrays and maps UID: PPL-SPEC-001559 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Dimension growth, projection/removal, expansion/folding and coordinate maps shall preserve native coordinate meanings. Counted dimension lists shall form sets where the native interface accepts sets. Map arrays shall associate source index i with entry i, using the published non-dimension sentinel for undefined entries. Entries outside the supplied array shall be undefined. Map emptiness and maximum codomain shall have finite partial-map meanings; valid maps shall satisfy the native dimension-map admission rules.

    The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_add_space_dimensions_and_embed(ppl_Polyhedron_t ph,
                                                      ppl_dimension_type d);
    int ppl_Polyhedron_add_space_dimensions_and_project(ppl_Polyhedron_t ph,
                                                        ppl_dimension_type d);
    int ppl_Polyhedron_remove_space_dimensions(ppl_Polyhedron_t ph,
                                               ppl_dimension_type ds[], size_t n);
    int ppl_Polyhedron_remove_higher_space_dimensions(ppl_Polyhedron_t ph,
                                                      ppl_dimension_type d);
    int ppl_Polyhedron_expand_space_dimension(ppl_Polyhedron_t ph,
                                              ppl_dimension_type d,
                                              ppl_dimension_type m);
    int ppl_Polyhedron_fold_space_dimensions(ppl_Polyhedron_t ph,
                                             ppl_dimension_type ds[], size_t n,
                                             ppl_dimension_type d);
    int ppl_Polyhedron_map_space_dimensions(ppl_Polyhedron_t ph,
                                            ppl_dimension_type maps[], size_t n);
    int ppl_Grid_add_space_dimensions_and_embed(ppl_Grid_t ph,
                                                ppl_dimension_type d);
    int ppl_Grid_add_space_dimensions_and_project(ppl_Grid_t ph,
                                                  ppl_dimension_type d);
    int ppl_Grid_remove_space_dimensions(ppl_Grid_t ph, ppl_dimension_type ds[],
                                         size_t n);
    int ppl_Grid_remove_higher_space_dimensions(ppl_Grid_t ph,
                                                ppl_dimension_type d);
    int ppl_Grid_expand_space_dimension(ppl_Grid_t ph, ppl_dimension_type d,
                                        ppl_dimension_type m);
    int ppl_Grid_fold_space_dimensions(ppl_Grid_t ph, ppl_dimension_type ds[],
                                       size_t n, ppl_dimension_type d);
    int ppl_Grid_map_space_dimensions(ppl_Grid_t ph, ppl_dimension_type maps[],
                                      size_t n);
    int ppl_Rational_Box_add_space_dimensions_and_embed(ppl_Rational_Box_t ph,
                                                        ppl_dimension_type d);
    int ppl_Rational_Box_add_space_dimensions_and_project(ppl_Rational_Box_t ph,
                                                          ppl_dimension_type d);
    int ppl_Rational_Box_remove_space_dimensions(ppl_Rational_Box_t ph,
                                                 ppl_dimension_type ds[], size_t n);
    int ppl_Rational_Box_remove_higher_space_dimensions(ppl_Rational_Box_t ph,
                                                        ppl_dimension_type d);
    int ppl_Rational_Box_expand_space_dimension(ppl_Rational_Box_t ph,
                                                ppl_dimension_type d,
                                                ppl_dimension_type m);
    int ppl_Rational_Box_fold_space_dimensions(ppl_Rational_Box_t ph,
                                               ppl_dimension_type ds[], size_t n,
                                               ppl_dimension_type d);
    int ppl_Rational_Box_map_space_dimensions(ppl_Rational_Box_t ph,
                                              ppl_dimension_type maps[], size_t n);
    int ppl_BD_Shape_mpz_class_add_space_dimensions_and_embed(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpz_class_add_space_dimensions_and_project(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpz_class_remove_space_dimensions(ppl_BD_Shape_mpz_class_t ph,
                                                       ppl_dimension_type ds[],
                                                       size_t n);
    int ppl_BD_Shape_mpz_class_remove_higher_space_dimensions(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpz_class_expand_space_dimension(ppl_BD_Shape_mpz_class_t ph,
                                                      ppl_dimension_type d,
                                                      ppl_dimension_type m);
    int ppl_BD_Shape_mpz_class_fold_space_dimensions(ppl_BD_Shape_mpz_class_t ph,
                                                     ppl_dimension_type ds[],
                                                     size_t n,
                                                     ppl_dimension_type d);
    int ppl_BD_Shape_mpz_class_map_space_dimensions(ppl_BD_Shape_mpz_class_t ph,
                                                    ppl_dimension_type maps[],
                                                    size_t n);
    int ppl_BD_Shape_mpq_class_add_space_dimensions_and_embed(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpq_class_add_space_dimensions_and_project(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpq_class_remove_space_dimensions(ppl_BD_Shape_mpq_class_t ph,
                                                       ppl_dimension_type ds[],
                                                       size_t n);
    int ppl_BD_Shape_mpq_class_remove_higher_space_dimensions(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpq_class_expand_space_dimension(ppl_BD_Shape_mpq_class_t ph,
                                                      ppl_dimension_type d,
                                                      ppl_dimension_type m);
    int ppl_BD_Shape_mpq_class_fold_space_dimensions(ppl_BD_Shape_mpq_class_t ph,
                                                     ppl_dimension_type ds[],
                                                     size_t n,
                                                     ppl_dimension_type d);
    int ppl_BD_Shape_mpq_class_map_space_dimensions(ppl_BD_Shape_mpq_class_t ph,
                                                    ppl_dimension_type maps[],
                                                    size_t n);
    int ppl_Octagonal_Shape_mpz_class_add_space_dimensions_and_embed(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpz_class_add_space_dimensions_and_project(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpz_class_remove_space_dimensions(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Octagonal_Shape_mpz_class_remove_higher_space_dimensions(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpz_class_expand_space_dimension(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Octagonal_Shape_mpz_class_fold_space_dimensions(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n,
        ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpz_class_map_space_dimensions(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type maps[], size_t n);
    int ppl_Octagonal_Shape_mpq_class_add_space_dimensions_and_embed(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpq_class_add_space_dimensions_and_project(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpq_class_remove_space_dimensions(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Octagonal_Shape_mpq_class_remove_higher_space_dimensions(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpq_class_expand_space_dimension(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Octagonal_Shape_mpq_class_fold_space_dimensions(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n,
        ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpq_class_map_space_dimensions(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type maps[], size_t n);
    int ppl_Constraints_Product_C_Polyhedron_Grid_add_space_dimensions_and_embed(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_add_space_dimensions_and_project(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_remove_space_dimensions(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[],
        size_t n);
    int ppl_Constraints_Product_C_Polyhedron_Grid_remove_higher_space_dimensions(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_expand_space_dimension(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Constraints_Product_C_Polyhedron_Grid_fold_space_dimensions(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[],
        size_t n, ppl_dimension_type d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_map_space_dimensions(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type maps[],
        size_t n);
    int ppl_Pointset_Powerset_C_Polyhedron_add_space_dimensions_and_embed(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_C_Polyhedron_add_space_dimensions_and_project(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_C_Polyhedron_remove_space_dimensions(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Pointset_Powerset_C_Polyhedron_remove_higher_space_dimensions(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_C_Polyhedron_expand_space_dimension(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Pointset_Powerset_C_Polyhedron_fold_space_dimensions(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n,
        ppl_dimension_type d);
    int ppl_Pointset_Powerset_C_Polyhedron_map_space_dimensions(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type maps[],
        size_t n);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_space_dimensions_and_embed(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_space_dimensions_and_project(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_remove_space_dimensions(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[],
        size_t n);
    int ppl_Pointset_Powerset_NNC_Polyhedron_remove_higher_space_dimensions(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_expand_space_dimension(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Pointset_Powerset_NNC_Polyhedron_fold_space_dimensions(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[],
        size_t n, ppl_dimension_type d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_map_space_dimensions(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type maps[],
        size_t n);
    int ppl_Double_Box_add_space_dimensions_and_embed(ppl_Double_Box_t ph,
                                                      ppl_dimension_type d);
    int ppl_Double_Box_add_space_dimensions_and_project(ppl_Double_Box_t ph,
                                                        ppl_dimension_type d);
    int ppl_Double_Box_remove_space_dimensions(ppl_Double_Box_t ph,
                                               ppl_dimension_type ds[], size_t n);
    int ppl_Double_Box_remove_higher_space_dimensions(ppl_Double_Box_t ph,
                                                      ppl_dimension_type d);
    int ppl_Double_Box_expand_space_dimension(ppl_Double_Box_t ph,
                                              ppl_dimension_type d,
                                              ppl_dimension_type m);
    int ppl_Double_Box_fold_space_dimensions(ppl_Double_Box_t ph,
                                             ppl_dimension_type ds[], size_t n,
                                             ppl_dimension_type d);
    int ppl_Double_Box_map_space_dimensions(ppl_Double_Box_t ph,
                                            ppl_dimension_type maps[], size_t n);
    int ppl_BD_Shape_double_add_space_dimensions_and_embed(ppl_BD_Shape_double_t ph,
                                                           ppl_dimension_type d);
    int ppl_BD_Shape_double_add_space_dimensions_and_project(
        ppl_BD_Shape_double_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_double_remove_space_dimensions(ppl_BD_Shape_double_t ph,
                                                    ppl_dimension_type ds[],
                                                    size_t n);
    int ppl_BD_Shape_double_remove_higher_space_dimensions(ppl_BD_Shape_double_t ph,
                                                           ppl_dimension_type d);
    int ppl_BD_Shape_double_expand_space_dimension(ppl_BD_Shape_double_t ph,
                                                   ppl_dimension_type d,
                                                   ppl_dimension_type m);
    int ppl_BD_Shape_double_fold_space_dimensions(ppl_BD_Shape_double_t ph,
                                                  ppl_dimension_type ds[], size_t n,
                                                  ppl_dimension_type d);
    int ppl_BD_Shape_double_map_space_dimensions(ppl_BD_Shape_double_t ph,
                                                 ppl_dimension_type maps[],
                                                 size_t n);
    int ppl_Octagonal_Shape_double_add_space_dimensions_and_embed(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_double_add_space_dimensions_and_project(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_double_remove_space_dimensions(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Octagonal_Shape_double_remove_higher_space_dimensions(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_double_expand_space_dimension(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Octagonal_Shape_double_fold_space_dimensions(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n,
        ppl_dimension_type d);
    int ppl_Octagonal_Shape_double_map_space_dimensions(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type maps[], size_t n);
    
    VERIFICATION_CRITERIA:

    Check empty and sparse maps, reserved entries, reordered coordinates, duplicate dimension selections, valid codomain maxima and native growth limits.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/polyhedra.c.

  • PPL-SPEC-001104
    3. Ordered Cartesian concatenation of bounded-difference values UID: PPL-SPEC-001104 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES 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 coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. 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::BD_Shape<T>:

    void concatenate_assign(const BD_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/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapecoordinatesspec1.cc; tests/bdshapecoordinateoracle.hh; tests/bdshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/bdshapecoordinatespublic1.cc; tests/BD_Shape/concatenate1.cc; tests/BD_Shape/dimensionlimits1.cc.

  • PPL-SPEC-001107
    6. Bounded-difference coordinate expansion by independent fibers UID: PPL-SPEC-001107 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For an existing coordinate v < n, expand_space_dimension(var,m) shall append m coordinates in positions n, …, n + m − 1 and retain 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 bounded-difference result shall be the independent-fiber relation

    {u ∈ ℝn + m  ∣ (u0, …, un − 1) ∈ X ∧n + m − 1⋀j = nu[v ← uj] ∈ X}.

    Thus every replica shall reproduce the selected coordinate's restrictions against retained original coordinates. Neither equality with the original selected coordinate nor equality among replicas shall be imposed unless implied by those restrictions. This result shall contain the generic common-replica coordinate-expansion relation of 🔗 2. Concatenation, coordinate expansion and folding. Each new coordinate shall have independently owned storage.

    The relation above is itself bounded-difference representable. Exact copying of admitted entry bounds shall preserve it; any delegated computational rounding shall retain the supported numerical guarantees of [LINK: PPL-SPEC-001056]. Empty input shall remain empty. Adding zero replicas shall preserve the value after checking that var is an existing coordinate. An invalid coordinate shall throw std::invalid_argument even for zero replicas or empty input. A final dimension above max_space_dimension() shall throw std::length_error.

    The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. The supplied Variable shall retain its own valid-use contract. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.

    RATIONALE:

    Independent fibers preserve relationships with retained coordinates while allowing distinct choices for the original selected coordinate and its replicas.

    INTERFACE:

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

    void expand_space_dimension(Variable var, dimension_type m);
    
    VERIFICATION_CRITERIA:

    Generate each replica relation by independently substituting its coordinate into source halfspaces. Check all primitive supports and common-replica containment separately, multiple replicas with distinct values, source/retained correlations, forced equalities, empty/universe, zero replicas and invalid/oversized requests.

    BIBLIOGRAPHY:

    GopanDMDRS04 | Sections 4.3 and 4.5, expansion and weakly relational implementation (author PDF page indices 7-9, zero-based).

    SOURCE:

    src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapecoordinatesspec1.cc; tests/bdshapecoordinateoracle.hh; tests/bdshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/bdshapecoordinatespublic1.cc; tests/BD_Shape/expandspacedim1.cc; tests/BD_Shape/dimensioncontracts1.cc; tests/BD_Shape/dimensionlimits1.cc.

  • PPL-SPEC-001108
    7. Alternative-coordinate folding of bounded-difference values UID: PPL-SPEC-001108 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    fold_space_dimensions(vars,dest) shall combine the alternatives obtained by keeping the original destination value or replacing it by the value of any entry coordinate in vars, then remove every folded coordinate. Surviving indices, including the destination's new index, shall be compacted in ascending original order. Other surviving coordinates shall keep their entry meanings within each alternative.

    With exact computational arithmetic, the result shall be the least bounded-difference enclosure of that union of alternatives. In particular, its unary and difference bounds shall be the corresponding suprema over all alternatives. Rounded profiles shall retain a sound enclosure and their admitted closure and numerical precision under 🔗 1. Bounded-difference values, numerical profiles and valid use. The union need not be convex or itself bounded-difference representable. Empty input shall remain empty in the reduced dimension. Empty vars shall preserve the value after validating the destination coordinate.

    The destination and every folded coordinate shall be inside the entry space, and the destination shall not belong to vars. An invalid coordinate or selection containing the destination shall throw std::invalid_argument. The Variables_Set selection shall remain unchanged.

    The supported coefficient profiles, real-set interpretation, initialized runtime, numerical-intermediate, FPU, resource and synchronization conditions of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. The supplied Variable and Variables_Set shall retain their own valid-use contracts. Underlying allocation and numerical failures may propagate; no additional rollback guarantee shall be inferred. Storage acquired by discarded temporaries shall be released.

    RATIONALE:

    Folding joins alternative destination values and then projects away source axes; it is neither simultaneous equality nor an injective renaming.

    INTERFACE:

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

    void fold_space_dimensions(const Variables_Set& vars, Variable dest);
    
    VERIFICATION_CRITERIA:

    Project each destination-substitution alternative independently and maximize each supported normal over the alternatives. Include multiple folded coordinates, destination before/between/after removed indices, coupled/empty/universe and zero selections, representation histories, rounded profiles and all invalid selections.

    BIBLIOGRAPHY:

    GopanDMDRS04 | Sections 4.2 and 4.5, folding and weakly relational implementation (author PDF page indices 6-9, zero-based).

    SOURCE:

    src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapecoordinatesspec1.cc; tests/bdshapecoordinateoracle.hh; tests/bdshapecoordinateallocationsspec1.cc; tests/boxallocationfixture.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/bdshapecoordinatespublic1.cc; tests/BD_Shape/foldspacedims1.cc; tests/BD_Shape/expandspacedim1.cc; tests/BD_Shape/dimensioncontracts1.cc.

  • PPL-SPEC-000963
    3. Ordered Cartesian box concatenation UID: PPL-SPEC-000963 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    concatenate_assign(y) shall replace the destination by the exact Cartesian product of its entry value and y's entry value, with destination coordinates preceding source coordinates. The ambient dimensions shall add. Either empty operand shall make the result empty. Zero-dimensional universe shall act as the identity on either side; zero-dimensional empty shall retain its empty-set meaning.

    A distinct source shall remain unchanged. Self-concatenation shall be admitted and shall use the entry factors twice, with independently mutable factor storage after success. The two tuples in a self-product shall be chosen independently. Dimension overflow shall throw std::length_error; successful dimensions shall remain subject to allocation/resource availability.

    The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.

    RATIONALE:

    Cartesian composition must preserve operand order and separate the values selected for each tuple.

    INTERFACE:

    Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Box<ITV>:

    void concatenate_assign(const Box& y);
    
    VERIFICATION_CRITERIA:

    Compare ordered factor sequences of independently chosen boxes, empty and zero-dimensional operands, lazy emptiness on either side and self-products. Mutate original/appended coordinates after success to check independent storage and retained sources.

    SOURCE:

    src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxcoordinatesspec1.cc; tests/boxpublic1.cc.

  • PPL-SPEC-000967
    7. Box coordinate expansion and replica precision UID: PPL-SPEC-000967 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a valid existing coordinate var, expand_space_dimension(var,m) shall append m factors with the entry factor's value. Original coordinates shall retain their values and indices. Each new factor shall own independently mutable storage. The resulting box shall be the least Cartesian interval enclosure, in the selected factor profile, of the coordinate-expansion relation: the original selected value may be chosen independently of the replica value, while all replicas in a concrete expanded tuple use a common selected-factor value. The box enclosure may choose different values for different replicas. No original-to-replica equality shall be imposed. Empty sources shall remain empty. Adding no replicas shall preserve the value.

    An out-of-dimension coordinate shall throw std::invalid_argument, including when m is zero or the box is empty. If the final dimension exceeds max_space_dimension(), the operation shall throw std::length_error. Successful dimensions shall remain subject to resource availability.

    The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.

    RATIONALE:

    Box expansion copies admissible coordinate values; the Cartesian representation abstracts relationships among multiple replicas.

    INTERFACE:

    Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Box<ITV>:

    void expand_space_dimension(Variable var, dimension_type m);
    
    VERIFICATION_CRITERIA:

    Compare appended factors against independent entry-factor copies for zero/one/multiple replicas, singleton/nonsingleton factors and empty sources. Include tuples with distinct replica values in the abstract enclosure and distinct original/replica values in the concrete relation. Check storage independence, invalid coordinates and overflow.

    BIBLIOGRAPHY:

    GopanDMDRS04 | Whole work (background on expansion and folding of summarized dimensions).

    SOURCE:

    src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxcoordinatesspec1.cc; tests/boxpublic1.cc.

  • PPL-SPEC-000968
    8. Box coordinate folding and interval enclosure UID: PPL-SPEC-000968 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a valid destination coordinate dest and selected set vars that excludes it, folding shall replace the destination factor by the least interval of the selected profile containing the union of its entry factor and all selected entry factors. It shall then remove the selected coordinates, compacting the remaining positions in their original order. Other retained factors shall preserve their entry values. This shall be the least box enclosure of the alternatives obtained by choosing either the original destination or one selected coordinate for the surviving destination value. Gaps between those alternatives may be included by the interval hull. Empty sources shall remain empty. An empty selected set shall preserve the value.

    An out-of-dimension destination or selected coordinate, or inclusion of the destination in the selected set, shall throw std::invalid_argument. Destination validity shall be required even for an empty selected set and for an empty box.

    The validity, numerical, initialization, synchronization and resource prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Operations requiring Variables_Set or mapping objects shall retain those objects' own interface prerequisites. A distinct borrowed source shall remain unchanged unless explicitly included in the destination mutation. Underlying allocation or endpoint exceptions shall retain their own guarantees; no general rollback guarantee shall be inferred.

    RATIONALE:

    Folding combines coordinate alternatives and removes their positions; interval enclosure makes its precision explicit.

    INTERFACE:

    Public header: <ppl.hh>; members of Parma_Polyhedra_Library::Box<ITV>:

    void fold_space_dimensions(const Variables_Set& vars, Variable dest);
    
    VERIFICATION_CRITERIA:

    Compute interval union hulls independently, including disjoint factors, tied extrema with different endpoint openness, unbounded factors, destination shifts after removal and multiple/nonadjacent selected positions. Compare untouched factors, empty/lazy-empty and zero-selection values; check all invalid selection classes.

    BIBLIOGRAPHY:

    GopanDMDRS04 | Whole work (background on expansion and folding of summarized dimensions).

    SOURCE:

    src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; tests/boxcoordinatesspec1.cc; tests/boxpublic1.cc.

  • PPL-SPEC-001297
    3. Ordered Cartesian concatenation UID: PPL-SPEC-001297 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    concatenate_assign(y) shall assign the ordered Cartesian product X×Y in dimension nX + nY. Either empty operand shall make the result empty. Self concatenation shall use the entry value twice. The distinct operand shall retain its mathematical value. A dimension sum beyond max_space_dimension() shall throw std::length_error before mutation.

    The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.

    RATIONALE:

    Concatenation combines independent state vectors and must snapshot self input before descriptor growth.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.

    void concatenate_assign(const Grid& y);
    
    VERIFICATION_CRITERIA:

    Check independent factor membership in both orders, self concatenation, zero-dimensional identities, empty operands, description histories and dimension-sum rejection.

    BIBLIOGRAPHY:

    BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.

    SOURCE:

    src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_chdims.cc; src/Grid_templates.hh; tests/Grid/concatenate1.cc; tests/gridoperationsspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.

  • PPL-SPEC-001301
    7. Conditional coordinate replication UID: PPL-SPEC-001301 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    expand_space_dimension(var,m) shall append m independent replicas of the selected coordinate conditioned on the unchanged other coordinates. Every replica, separately substituted for var, shall satisfy the original grid together with those other coordinates; replicas shall not be required to equal one another. Original coordinates retain their meaning. Empty remains empty and zero replicas are identity. An invalid source index shall throw std::invalid_argument; dimension overflow shall throw std::length_error, before mutation.

    The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.

    RATIONALE:

    Conditional replication preserves correlations with the common context while allowing the separate values of a nondeterministic coordinate.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.

    void expand_space_dimension(Variable var, dimension_type m);
    
    VERIFICATION_CRITERIA:

    Compare copied congruence equations with independent conditional models; distinguish periodic replicas from equal copies. Include empty, zero replicas, invalid source and dimension overflow.

    BIBLIOGRAPHY:

    BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.

    SOURCE:

    src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_chdims.cc; src/Grid_templates.hh; tests/Grid/expandspacedim1.cc; tests/gridoperationsspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.

  • PPL-SPEC-001302
    8. Least-grid folding of coordinate alternatives UID: PPL-SPEC-001302 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    fold_space_dimensions(vars,dest) shall form the least grid containing the entry grid and every alternative obtained by assigning dest the old value of one selected source, then existentially project away the selected sources. Remaining coordinates retain their order. The destination shall be a valid unselected coordinate. Invalid destination, invalid source or destination included in the selection shall throw std::invalid_argument before mutation. Empty selection is identity after destination validation; empty remains empty in the reduced space.

    The initialization, lifetime, synchronization and computational-arithmetic conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is stated, ambient dimension shall be preserved. Resource and numerical exceptions may propagate; surviving ownership shall permit destruction, without an assumed rollback or guarantee that further queries are valid. Receiver-owned views may be invalidated as in 🔗 10. Borrowed congruence and generator views of grid values.

    RATIONALE:

    Folding abstracts a choice among source coordinates, rather than adding or identifying all their values.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Member declarations of Grid.

    void fold_space_dimensions(const Variables_Set& vars, Variable dest);
    
    VERIFICATION_CRITERIA:

    Compute independent affine alternatives, their grid hull and projection. Check multiple sources, correlations, empty selection/input and each invalid-selection/destination case. Compare independent entry-grid affine images followed by grid join and projection, with zero/single/multiple noncontiguous sources, different destination positions, dense/sparse rows, rational anchors, destination-only periods or lines, correlations and pending or minimized caches.

    BIBLIOGRAPHY:

    BagnaraDHMZ07 | Section 3, grid definitions, representations and operations.

    SOURCE:

    src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_chdims.cc; src/Grid_templates.hh; tests/Grid/foldspacedims1.cc; tests/gridoperationsspec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.

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

  • PPL-SPEC-001422
    3. Pointset-powerset dimension expansion and folding UID: PPL-SPEC-001422 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Expansion shall add m independent copies of the selected coordinate's base-domain restrictions using the base expansion operation. Folding shall merge selected coordinates into the retained destination by base folding and remove the folded coordinates. They shall lift per disjunct, update ambient dimension and inherit base soundness and precision. Variables shall be in range, fold destination shall be outside the folded set, and growth shall respect structural limits; invalid variables/sets shall throw std::invalid_argument and excessive growth std::length_error.

    The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.

    RATIONALE:

    Independent expansion differs from imposing equality between duplicate coordinates; folding may approximate unions of projections.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.

    void expand_space_dimension(Variable, dimension_type);
    void fold_space_dimensions(const Variables_Set&, Variable);
    
    VERIFICATION_CRITERIA:

    Check relational expansion, independent duplicate values, folding with retained indices, empty sets and invalid dimensions. Fold previously reduced incomparable disjuncts into identical universes, and compare the public universe result with an unreduced-entry control in closed/NNC polyhedra, bounded-difference, octagonal and rational-box powersets.

    SOURCE:

    src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/spacedims1.cc.

  • PPL-SPEC-001423
    4. Pointset-powerset concatenation UID: PPL-SPEC-001423 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Concatenation shall collect base concatenations for every pair of reduced disjuncts in receiver-then-argument coordinate order, representing S×T when base concatenation is exact and otherwise its sound base approximation. Empty input shall give empty in the sum dimension. Self-concatenation shall be supported. The sum dimension shall be range-checked without unsigned wraparound; excessive extent shall throw std::length_error.

    The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.

    RATIONALE:

    Cartesian product distributes over both input unions and includes ambient dimensions of empty inputs.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.

    void concatenate_assign(const Pointset_Powerset&);
    
    VERIFICATION_CRITERIA:

    Check cross-pair products, coordinate order, empty/self inputs and overflowing sums.

    SOURCE:

    src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/argumentadmission1.cc; tests/Powerset/cancellation1.cc; tests/powersetinterruptedproducts1.cc; tests/Powerset/concatenate1.cc.

  • PPL-SPEC-001459
    1. Product coordinate operations UID: PPL-SPEC-001459 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Coordinate members shall perform the corresponding base operation on both components with identical indices, counts and maps. Growth shall add free coordinates for embedding and zero coordinates for projecting growth. Removal and mapping shall existentially eliminate omitted coordinates and compact or permute retained coordinates. Expansion and folding shall use the base independent-copy and merge semantics. Cylindrification shall reduce first and free selected coordinates without changing dimension. Results shall soundly contain the corresponding transformation of the old intersection; exact base projections alone shall not establish exact product projection. Both components shall retain equal ambient dimension on successful return. Variable/map admission and structural dimension limits shall follow both base contracts.

    The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.

    RATIONALE:

    Existential coordinate operations can lose conjunction correlations when applied independently to components.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.

    void unconstrain(Variable); void unconstrain(const Variables_Set&);
    void add_space_dimensions_and_embed(dimension_type);
    void add_space_dimensions_and_project(dimension_type);
    void remove_space_dimensions(const Variables_Set&);
    void remove_higher_space_dimensions(dimension_type);
    template <typename Partial_Function> void map_space_dimensions(const Partial_Function&);
    void expand_space_dimension(Variable, dimension_type);
    void fold_space_dimensions(const Variables_Set&, Variable);
    
    VERIFICATION_CRITERIA:

    Check all members, coordinate order and dimensions, relational projection examples, empty values, invalid variables and growth bounds.

    SOURCE:

    src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/spacedims1.cc.

  • PPL-SPEC-001460
    2. Product concatenation UID: PPL-SPEC-001460 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Concatenation shall concatenate corresponding components in receiver- then-argument coordinate order. The resulting common dimension shall be the sum, subject to both structural limits. With exact component concatenation the intersection shall represent the exact Cartesian product of the input product sets, because the coordinate blocks are independent. Self-concatenation shall be supported. Lazy reduction state shall be retained only when both operands are already marked reduced; component limit errors may propagate without rollback.

    The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.

    RATIONALE:

    Cartesian products on disjoint coordinate blocks commute with component conjunction.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.

    void concatenate_assign(const Partially_Reduced_Product&);
    
    VERIFICATION_CRITERIA:

    Check coordinate order, separate restrictions, empty and self inputs, reduction-state combinations and excessive extents.

    SOURCE:

    src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/concatenate1.cc.

3. Narrowing and descending precision recovery UID: PPL-LLR-000445 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT:

PPL shall provide narrowing facilities for the supported box, bounded-difference and octagonal profiles. In a declared narrowing context with compatible dimensions and the current element contained in the previous element, and assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, a completed result shall contain the current element and be contained in the previous element, while restoring precision according to the selected narrowing method. The supported profiles and descending-iteration conditions of the guarantees shall be stated. A finite-stabilization guarantee shall apply only to operator, profile and iteration combinations for which it is established.

RATIONALE:

Narrowing recovers precision during descending iteration after extrapolation. It must preserve the current approximation and respect the previous approximation, while its convergence claims depend on the actual operator and iteration discipline.

COMMENT:

Verification covers supported narrowing operations. Verification includes operand order, admissible profiles, precision restoration, closure assumptions and the scope of convergence guarantees. Related obligations: 🔗 4. Convergence of interval and box widening, 🔗 4. Bounded-difference widening guarantees, 🔗 5. Octagonal widening guarantees, 🔗 1. Meaning of successful exact and approximate results, 🔗 4. Explicit numerical operation contracts.

CC76 box narrowing restores complete finite boundaries, including openness; previous infinite endpoints retain the current endpoints. Containment and convergence analysis are distinct.

The journal reference provides background on weakly relational operators; the earlier conference reference describes the original framework.

VERIFICATION_CRITERIA:

Independently check both inclusions for valid ordered operands, including equal operands, empty and zero-dimensional cases, finite and infinite bounds and bounds restored after extrapolation. Assess boxes with each admitted endpoint policy separately, including changed openness at a restored finite bound. Verify the method's stated precision restoration and review any finite-stabilization argument under its exact profile and descending-iteration assumptions. Exercise representative descending recurrences without treating observed stabilization as a proof for every configuration.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | Whole work (journal background on weakly relational domains and their operators). CousotC76 | Whole work (background on the original widening and narrowing framework).

SOURCE:

Local research on the merged PPL source: src/Box_defs.hh and src/Box_templates.hh: CC76 narrowing, descending operand order and endpoint updates. src/BD_Shape_defs.hh and src/BD_Shape_templates.hh: narrowing after extrapolation and closure handling. src/Octagonal_Shape_defs.hh and src/Octagonal_Shape_templates.hh: narrowing and restored bounds. tests/Box/cc76narrowing1.cc, tests/BD_Shape/cc76narrowing1.cc and tests/Octagonal_Shape/cc76narrowing1.cc: narrowing regressions.

  • PPL-SPEC-001124
    5. Bounded-difference narrowing and descending operand order UID: PPL-SPEC-001124 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES 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 replace the receiver with a shape representing R, satisfying X ⊆ R ⊆ Y, preserving dimension and coordinate identities. An empty receiver shall stay empty, and zero-dimensional values and self-aliasing shall preserve their entry meanings.

    For nonempty operands under unbounded exact arithmetic, use the primitive unary/difference support bounds bX(v) and bY(v) defined in 🔗 1. Threshold bounded-difference 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 otherwise bX(v). Thus a finite previous bound shall be retained even if the current bound is tighter; an infinite previous bound shall allow recovery of the current bound.

    Supported rounded profiles shall use their outward closed profile bounds while preserving both set inclusions. The result shall not be required to retain every improvement of the current iterate. For fixed dimension under unbounded exact arithmetic, descending iteration using each result as the next previous argument shall stabilize after finitely many strict changes: a strict narrowing step must introduce a previously absent finite primitive bound. Finite-carrier profiles shall retain stabilization under the same inclusion and arithmetic conditions.

    The order of receiver and argument shall follow the descending inclusion above, rather than the ascending inclusion used by widening. A distinct previous argument shall retain its represented value.

    The supported-profile, initialization, rounding, range, lifetime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall apply. All operands shall remain live and valid; the stated entry-set inclusion shall be a mathematical caller precondition. Unequal operand dimensions shall throw std::invalid_argument before changing the represented receiver set. A distinct argument shall preserve its represented value. Result storage shall remain independent of the source lifetime.

    Underlying numerical, allocation or cooperative-abandonment failures may propagate. Owned temporary resources shall be released; surviving objects shall retain valid ownership, remain valid and safely destructible. No general rollback guarantee shall be required for such failures.

    RATIONALE:

    Restoring a finite previous restriction and accepting a new restriction where the previous bound was infinite are different from simply intersecting the two operands. The descending operand order is part of the interface.

    INTERFACE:

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

    void CC76_narrowing_assign(const BD_Shape& y);
    
    VERIFICATION_CRITERIA:

    Compute both complete primitive support tables independently and apply the finite-previous-bound rule. Verify current/result/previous inclusions, finite/unbounded directions, restored relational bounds, lower-dimensional sets, aliases, lazy emptiness, dimension rejection, exact and native/integral profiles. Check descending recurrences and inspect the finite-status-change proof independently of sample stabilization.

    BIBLIOGRAPHY:

    BagnaraHZ09FMSD | Sections 3.1-3.2, bounded-difference graph and shape semantics (PDF indices 5-6).

    SOURCE:

    src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; tests/bdshapeconvergencespec1.cc; tests/bdshapeconvergenceoracle.hh; tests/bdshapeconvergencefailure1.cc; tests/boxallocationfixture.hh; tests/bdshapeoperationoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/bdshapeconvergencepublic1.cc; tests/BD_Shape/cc76narrowing1.cc.

  • PPL-SPEC-001037
    4. Box narrowing with complete previous-boundary retention UID: PPL-SPEC-001037 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For equal-dimensional boxes, let X be the receiver's entry set and Y the previous argument's entry set, with X ⊆ Y. CC76_narrowing_assign(y) shall replace the receiver by a box Z with X ⊆ Z ⊆ Y.

    For nonempty positive-dimensional inputs, each finite previous lower boundary shall be retained in the result, including its exact value and openness. A previous unbounded lower boundary shall leave the current lower boundary unchanged. The corresponding rule shall apply to upper boundaries. Where both current and previous boundaries are finite, the complete previous boundary shall be retained; endpoint membership shall not be copied from the current factor when it differs from that previous boundary.

    An empty current set shall remain empty. If the previous set is empty, the containment precondition makes the current set empty as well. Zero-dimensional values shall retain their represented set. A distinct argument shall retain its set and dimension. Self-aliasing shall preserve the receiver's represented set.

    For a fixed dimension and interval policy, a descending recurrence shall supply a current set contained in the preceding narrowed result and narrow it against that preceding result. This recurrence shall stabilize after finitely many changes: a previous finite boundary remains fixed, and a previous unbounded boundary can become finite at most once. Reaching the empty set shall terminate further set changes. The selected endpoint comparisons and assignments shall meet their numerical prerequisites.

    Dimension mismatch shall throw std::invalid_argument before receiver modification, including empty and zero-dimensional cases. Nesting shall remain a caller precondition. The enabled overload shall require the exact same Box<ITV> type and an implicit conversion from const ITV& to const Interval_Base&. The validity, lifetime, synchronization and numerical conditions of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. Diagnostic reporting shall retain its initialized-context prerequisites. Numerical or resource exceptions shall follow the underlying operation's guarantees without a general rollback promise.

    RATIONALE:

    Recovering a finite bound from a previously unbounded approximation must preserve the complete boundary of every already finite previous constraint.

    INTERFACE:

    Public header: <ppl.hh>; member excerpts for Box<ITV> in Parma_Polyhedra_Library:

    template <typename T>
      requires (std::is_same_v<T, Box<ITV>> &&
                std::is_convertible_v<const ITV&, const Interval_Base&>)
    void
    CC76_narrowing_assign(const T& y);
    
    VERIFICATION_CRITERIA:

    Independently choose complete boundary descriptors from nested rational products. Cover every open/closed equality case, strict and unequal finite endpoints, all combinations of unbounded sides, singleton factors, empty/lazy states, zero dimensions and self-aliasing. Check both inclusions, source preservation, dimension rejection before mutation, descending histories and finite-boundary stabilization. Reuse the open-endpoint regression histories as well as fresh independently enumerated cases.

    SOURCE:

    src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; src/Interval_defs.hh; src/Interval_templates.hh; tests/boxconvergencespec1.cc; tests/boxconvergenceoracle.hh; tests/boxsetoracle.hh; tests/boxconvergencepublic1.cc; tests/Box/cc76narrowing1.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-LLR-000446
4. Reloadable textual representations UID: PPL-LLR-000446 STATUS: APPROVED COMPONENT: LIBRARY_WIDE APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT:

PPL shall provide reloadable textual representations for its supported numerical domain, geometric descriptor and solver facilities. Under the declared format-compatibility, arithmetic, resource and destination-state preconditions, successfully loading a complete representation produced by the corresponding facility shall preserve its mathematical meaning, dimensions and relevant problem settings. The contracts shall identify the supported representation scope and the outcomes for malformed or unsupported input.

RATIONALE:

Reloadable representations support reproduction and continued use of numerical objects and problems. A human-readable display alone does not establish that an object or its problem settings can be restored.

COMMENT:

Verification covers text export and reload operations for each supported type and exposed facility. Verification includes compatible producer and consumer formats, destination-state preconditions, preserved semantic fields, success and malformed-input outcomes, and post-failure validity guarantees. Related obligations: 🔗 1. Coordinate identity and ambient dimension, 🔗 1. Disjunctive meaning of finite powersets, 🔗 4. Intersection meaning of product domains, 🔗 1. Mixed integer problem interpretation, 🔗 4. Incremental problem changes preserve semantics, 🔗 1. Parametric problem and context interpretation, 🔗 4. Incremental parametric refinement, 🔗 3. Preservation by representation-only changes, 🔗 4. Explicit numerical operation contracts.

Format compatibility and failure-state guarantees are specified per facility. Format guarantees do not impose universal cross-version compatibility, identical internal storage, or rollback after every failed load.

VERIFICATION_CRITERIA:

Round-trip representative descriptors, primitive and compound domain objects and solver problems through the supported text representation and an admissible destination state. Compare mathematical meaning and dimensions independently; check descriptor kinds and coordinate identity, domain emptiness and boundary information, and solver constraints, objective direction, integer or parameter selections, context and relevant control settings as applicable. Include unsolved, incrementally modified and solved problems, with result access assessed according to the restored state contract. Exercise truncated, malformed, unsupported and numerically unrepresentable inputs against their declared outcomes, and check any promised post-failure state without assuming rollback.

SOURCE:

Local research on the merged PPL source: doc/definitions.dox: Generic Operations on Semantic Geometric Descriptors, ASCII input and output. src/Interval_defs.hh, src/Box_defs.hh, src/Polyhedron_defs.hh, src/Grid_defs.hh, src/BD_Shape_defs.hh and src/Octagonal_Shape_defs.hh: reloadable domain representations. src/Linear_Expression_defs.hh, src/Constraint_defs.hh, src/Congruence_defs.hh, src/Generator_defs.hh and src/Grid_Generator_defs.hh: reloadable descriptor representations. src/Pointset_Powerset_defs.hh and src/Partially_Reduced_Product_defs.hh: compound representations. src/MIP_Problem_defs.hh and src/MIP_Problem.cc: mixed-integer problem representation and settings. src/PIP_Problem_defs.hh and src/PIP_Problem.cc: parametric problem, context, control settings and solution representation.

  • PPL-SPEC-001522
    4. C reloadable FILE representations UID: PPL-SPEC-001522 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For types with ASCII operations, ppl_T_ascii_dump shall write the native reloadable representation to a live FILE. ppl_T_ascii_load shall replace the mutable owned object's value when the native loader succeeds. A native false result or detected stream failure shall report PPL_STDIO_ERROR and notify the error handler. Loading supports trusted records written by the corresponding native dumper in a compatible build. Native failure-state guarantees shall apply. A failed load may leave a partially replaced object whose ownership permits destruction. Rollback and further queries shall not be assumed. Borrowed objects shall not be loaded into.

    The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.

    RATIONALE:

    C serialization must expose the native parser outcome without changing ownership.

    INTERFACE:

    Public header: <ppl_c.h>.

    /* T ranges over types exposing the native operations. */
    int ppl_T_ascii_dump(ppl_const_T_t x, FILE *file);
    int ppl_T_ascii_load(ppl_T_t x, FILE *file);
    
    VERIFICATION_CRITERIA:

    Round-trip descriptor, system, optimizer and generated-domain values through files, test malformed and truncated input and populated destinations, and verify destruction after rejected loads.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common_defs.hh; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/cerrorsspec1.cc.

  • 4. BD_Shape<T> internal status signed-keyword export UID: PPL-SPEC-001615 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES 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 SPC SPR. 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. BD_Shape internal status value ownership and prerequisites shall apply.

    ascii_dump() shall send the same record to std::cerr. print() shall write No user level output operator defined for BD_Shape<T>::Status. followed by a flushed newline to std::cerr.

    RATIONALE:

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

    INTERFACE:

    Internal nested type BD_Shape<T>::Status in BDS_Status_idefs.hh, included through BD_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;
    void ascii_dump() const;
    void print() 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/BD_Shape_defs.hh; src/BDS_Status_idefs.hh; src/BDS_Status_inlines.hh; src/BDS_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.

  • 5. BD_Shape<T> internal status signed-keyword loading and rejection UID: PPL-SPEC-001616 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES 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. BD_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. BD_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 BD loader shall accumulate fields in a local candidate. Lexical rejection, input exceptions and a contradictory ZE marker shall leave the prior word unchanged. After a complete canonical marker/word pair, it shall install that word and return its consistency result; a false consistency result may thus leave inconsistent loaded flags. 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. BD_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 🔗 3. Compatible bounded-difference 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 BD_Shape<T>::Status in BDS_Status_idefs.hh, included through BD_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/BD_Shape_defs.hh; src/BDS_Status_idefs.hh; src/BDS_Status_inlines.hh; src/BDS_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.

  • 2. Reloadable bounded-difference record export UID: PPL-SPEC-001138 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a valid admitted source, ascii_dump(stream) shall write its status fields, a newline, its square difference-bound matrix record, a newline, and its redundancy-bit matrix record of 🔗 12. ASCII representation and loading. Status fields shall identify the stored ZE, EM, SPC and SPR conditions in that order, using + or - prefixes. The bound-matrix dimension shall be one greater than the ambient dimension, including zero-dimensional shapes. The export shall write the stored redundancy matrix when reduction is certified, and a zero-row, zero-column redundancy matrix otherwise.

    The matrix payload and mathematical numeric formatting shall follow 🔗 11. Reloadable ASCII records for admitted bound values, including exact finite native decimal values and admitted positive infinities. Compatible status, matrix, numeric policy, locale and version conventions shall retain enough information for 🔗 3. Compatible bounded-difference record loading and failure state to restore the same mathematical set and ambient dimension. Neither native object bytes nor a floating zero sign is part of this mathematical round-trip guarantee.

    Export shall preserve the source value and ownership without requiring an initial emptiness, closure or reduction query. 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 and without certifying successful delivery.

    The selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. The borrowed stream and any 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. BD_Shape internal status signed-keyword export.

    RATIONALE:

    A complete stored record includes dimension, numerical constraints and the status needed for continued use, not only a human-readable constraint list.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member signatures apply to BD_Shape<T> except the indicated free operator and destination capabilities.

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

    Inspect independent status/size/row framing for empty, universe and correlated shapes in unclosed, closed and reduced states. Round-trip exact rational/integer/native records, signed zeros and infinities, verify source preservation, concatenation/suffixes and stderr forwarding, and test output failures without assuming transactional delivery.

    SOURCE:

    src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; doc/definitions.dox; tests/bdshapefiltertextpublic1.cc; src/BDS_Status_idefs.hh; src/BDS_Status_inlines.hh; src/DB_Matrix_defs.hh; src/DB_Matrix_templates.hh; src/Bit_Matrix_defs.hh; src/Bit_Matrix.cc; src/globals_defs.hh; tests/bdshapetextspec1.cc; tests/bdshapefiltersoracle.hh; tests/bdshapeaffineoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/BD_Shape/ascii_dump_load1.cc; tests/BD_Shape/writebdshape1.cc;

  • 3. Compatible bounded-difference record loading and failure state UID: PPL-SPEC-001139 STATUS: APPROVED COMPONENT: BOUNDED_DIFFERENCES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a complete valid record of 🔗 2. Reloadable bounded-difference record export under compatible representation, numeric formatting, profile, locale and resource conditions, ascii_load(stream) shall return true and replace any valid receiver by the recorded ambient dimension and mathematical set. The previous receiver's dimension, emptiness and cache flags shall not affect the result. All serialized status conditions shall replace their previous conditions. One complete record shall be consumed while a following record or suffix remains available after permitted separating whitespace.

    Status-word rejection, a truncated or rejected bound matrix, or a truncated or rejected redundancy matrix shall return false when the component extractions return normally. An unsupported decoded bound-matrix row count shall return false before resizing or requesting storage for that extent, as specified by 🔗 12. Exact ASCII input, forbidden payloads and failure state. A zero-row bound matrix shall be rejected. When reduction certification is present, its matrix shall have the same row and column counts as the bound matrix. When reduction is uncertified, the loader shall consume the redundancy matrix without retaining its storage. That includes inactive matrices written by earlier compatible PPL versions. Inconsistent serialized status conditions shall be rejected. Numerical payload rejection shall retain 🔗 12. Exact ASCII input, forbidden payloads and failure state. Stream masks, numerical policy and recoverable resource exceptions shall retain their own propagation channels.

    The successful restoration guarantee assumes a trusted, complete and dump-compatible record. The loaded matrix, status, and retained closure and reduction information shall satisfy 🔗 5. Bounded-difference representation invariant query. If these checks detect an inconsistency, the loader shall return false in every build. Semantic queries or further shape operations require a complete valid representation.

    Rounded or bounded coefficient profiles may discard serialized reduction certification and recheck a serialized closed feasibility cache, preserving the stored matrix's exact represented set. This cache repair shall not alter the semantic meaning or ambient dimension of a compatible record.

    A false return or exception may leave replaced status or partially loaded matrices. 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 selected representation, numerical runtime and synchronization prerequisites of 🔗 1. Bounded-difference values, numerical profiles and valid use shall hold. The borrowed stream and any 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 🔗 5. BD_Shape internal status signed-keyword loading and rejection.

    RATIONALE:

    A compatible valid dump establishes the recorded value independently of prior receiver state. Local rejection checks protect basic representation structure without requiring general cache recomputation on every assertion-disabled load. Debug invariant diagnostics and partial input failure retain their separate failure channels. Admission of the decoded square extent requires both supported row and column counts before resizing.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member signatures apply to BD_Shape<T> except the indicated free operator and destination capabilities.

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

    Load valid producer records into receivers of different dimensions, empty/nonempty and cache states; check exact independent set/dimension equality and suffix framing. Exercise each truncated/malformed status and component boundary, zero-row bound matrices, mismatched certified reduction dimensions, forbidden/inexact numeric values, configured stream exceptions and allocation frontiers. Check arbitrary semantic cache inconsistencies separately as debug invariant diagnostics, without requiring their rejection as a release parse guarantee. Reassign after failed loads before semantic queries; verify destruction and reuse. Replace only the nested bound-matrix row count by the reserved non-dimension in otherwise valid empty and universe records at zero and small dimensions. Check rational, integer and floating bound types, rejection without a size-allocation exception and complete reload with preserved following input.

    SOURCE:

    src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; doc/definitions.dox; tests/bdshapefiltertextpublic1.cc; src/BDS_Status_idefs.hh; src/BDS_Status_inlines.hh; src/DB_Matrix_defs.hh; src/DB_Matrix_templates.hh; src/Bit_Matrix_defs.hh; src/Bit_Matrix.cc; src/globals_defs.hh; tests/bdshapetextspec1.cc; tests/bdshapefiltersoracle.hh; tests/bdshapeaffineoracle.hh; tests/bdshapeconversionoracle.hh; tests/bdshapevalueoracle.hh; tests/boxrefinementoracle.hh; tests/boxsetoracle.hh; tests/boxallocationfixture.hh; tests/BD_Shape/ascii_dump_load1.cc; tests/BD_Shape/writebdshape1.cc;

  • PPL-SPEC-000674
    4. Status ASCII export preserves cached claims UID: PPL-SPEC-000674 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    ascii_dump shall insert the three status fields in this order: EUP for current emptiness, EM for the empty flag and UN for universe. Each field shall consist of + when its claim is set or - when clear, followed by its keyword and one space. With default compatible formatting, the zero status shall therefore emit -EUP -EM -UN followed by one space. The inserted characters and strings shall follow ordinary stream formatting, including any pending width, fill and alignment settings.

    The no-argument ascii_dump() shall write that representation to std::cerr. print() shall write No user level output operator defined for Box<ITV>::Status. followed by a newline to std::cerr. Export shall preserve the stored claims, including stale flags, and shall not inspect the box's coordinate payload or refresh its emptiness. Partial output and stream exceptions shall follow ordinary stream rules. Other prerequisites shall follow 🔗 1. Box cached claims and independent status ownership.

    RATIONALE:

    Reloadable box state must retain whether emptiness is known, independently of what the stale empty bit happens to contain.

    INTERFACE:

    Internal nested type in Box_defs.hh / Box_Status_idefs.hh. Names belong to Parma_Polyhedra_Library; unqualified signatures apply to Box<ITV>::Status.

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

    Check exact signs, field order and final space for every valid status, ordinary width/fill formatting, source preservation, standard-error output routes and returning/throwing output failures.

    SOURCE:

    src/Box_defs.hh; src/Box_Status_idefs.hh; src/Box_Status_inlines.hh; src/Box_Status.cc; src/globals_defs.hh; tests/boxstatusspec1.cc; tests/Box/loadstatus1.cc.

  • 5. Status ASCII loading and partial rejection state UID: PPL-SPEC-000675 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    ascii_load shall extract three fields in the order and spelling of 🔗 4. Status ASCII export preserves cached claims. Each token shall begin with + or - and contain exactly the corresponding keyword. Extraction shall follow ordinary string rules, including stream width and whitespace settings. A complete consistent triple shall replace all three claims and return true, independently of the destination's previous claims; trailing tokens shall remain available for subsequent extraction.

    A missing, malformed or out-of-order token shall return false. Each successfully parsed preceding field shall already have replaced its claim; the rejected field and following claims shall retain their preceding values. A completed triple asserting current emptiness and universality shall be rejected with false. Rollback and status consistency after a failed load shall not be promised; callers shall restore a consistent status before using it as box state. Stream exceptions shall propagate under ordinary exception-mask rules, with preceding field updates retained.

    The internal get_field helper shall assign its output Boolean only when it successfully matches the requested signed keyword. It shall preserve that Boolean on rejection. Other prerequisites shall follow 🔗 1. Box cached claims and independent status ownership.

    RATIONALE:

    Replacement loading must clear prior claims when a negative field is read; malformed prefixes need an explicit failure state and must not establish a valid contradictory certificate.

    INTERFACE:

    Internal nested type in Box_defs.hh / Box_Status_idefs.hh. Names belong to Parma_Polyhedra_Library; unqualified signatures apply to Box<ITV>::Status.

    bool ascii_load(std::istream& stream);
    namespace Implementation::Boxes {
      bool get_field(std::istream& stream, const char* keyword, bool& positive);
    }
    
    VERIFICATION_CRITERIA:

    Round-trip every consistent triple through every prior consistent state, preserve trailing framing and check every truncated/malformed prefix. Exercise field signs, keyword mismatches, width/whitespace settings and input exceptions; assess rejection of a completed contradictory triple.

    SOURCE:

    src/Box_defs.hh; src/Box_Status_idefs.hh; src/Box_Status_inlines.hh; src/Box_Status.cc; tests/boxstatusspec1.cc; tests/Box/loadstatus1.cc.

  • PPL-SPEC-000970
    2. Reloadable box record export UID: PPL-SPEC-000970 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    Under compatible machine-output formatting and endpoint serialization prerequisites, ascii_dump(s) shall emit the box status record, the label space_dim, the ambient dimension and a newline, followed by exactly one serialized interval record per coordinate in increasing index order. The status protocol shall follow 🔗 5. Status ASCII loading and partial rejection state; interval records shall follow 🔗 4. Reloadable interval metadata and endpoint export. The record shall retain enough information to reload the same ambient dimension and mathematical Cartesian value with 🔗 3. Compatible box record loading and failure state.

    For a box whose status already certifies emptiness, endpoint storage may be inactive. Export shall emit a valid canonical universe interval for each such coordinate without interpreting inactive endpoint payloads. The certified empty status shall preserve the empty Cartesian meaning independently of those replacement records. For other valid status states, coordinate export shall retain the interval serialization's metadata and inactive-payload rules. Export shall preserve the source mathematical value and shall not require first querying its emptiness.

    ascii_dump() shall deliver the same record to the current std::cerr. Output shall require sufficient stream resources, compatible numeric formatting/locale and the selected endpoint codec's prerequisites. Stream/endpoint/resource failures shall retain their own state and exception behavior, with no output rollback. The record shall not imply cross-version or different-policy format compatibility.

    The validity, numerical, synchronization and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. The selected interval profile shall provide the required codec, output or memory operations. Borrowed objects and streams shall remain live throughout the call.

    RATIONALE:

    Machine records must preserve dimension and empty-set meaning without reading inactive coordinate payloads.

    INTERFACE:

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

    // Members of Box<ITV>:
    void ascii_dump(std::ostream& s) const;
    void ascii_dump() const;
    
    VERIFICATION_CRITERIA:

    Round-trip independently modeled empty/universe, zero-dimensional and mixed-factor boxes in classified and unclassified states. Inspect label/count/order and canonical inactive-factor records. Check concatenated records, source preservation, stderr delivery and failing output streams, including native endpoint profiles with inactive storage.

    SOURCE:

    src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; src/globals_defs.hh; tests/boxtextspec1.cc.

  • PPL-SPEC-000971
    3. Compatible box record loading and failure state UID: PPL-SPEC-000971 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    For a complete valid record produced under 🔗 2. Reloadable box record export with compatible status, interval policy, endpoint arithmetic, dimension limits, numeric formatting and locale, ascii_load(s) shall return true and replace the destination by the recorded ambient dimension and mathematical Cartesian value. It shall consume one box record, permitting a following record or suffix to remain in the stream. A previously different destination dimension or value shall not affect a successful result.

    Status-field parsing and its outcomes shall follow 🔗 5. Status ASCII loading and partial rejection state. A missing or incorrect space_dim label, an absent, negative-signed or unsupported dimension, or a rejected or truncated coordinate interval record shall return false when stream extraction returns normally. Coordinate loading shall follow 🔗 5. Compatible interval record loading and partial failure state. A completed record that fails the box invariant check shall return false in every build. Stream exception masks and selected endpoint/resource exceptions shall retain their own propagation rules. A complete admissible dimension shall fit the selected box profile and available resources. Use trusted compatible dumps.

    Failure may have replaced status and some coordinate records or discarded the previous coordinate sequence. A false return or exception shall not promise rollback or a complete valid mathematical box value. The object shall retain safely destructible owned resources and may be replaced by assignment from a valid box; callers shall establish a valid replacement before mathematical queries or other operations requiring a valid box. Input already consumed shall not be restored. Successful loading shall not transfer ownership of the input stream.

    The validity, numerical, synchronization and runtime prerequisites of 🔗 1. Cartesian box values, coordinate identity and valid use shall apply. The selected interval profile shall provide the required codec, output or memory operations. Borrowed objects and streams shall remain live throughout the call.

    RATIONALE:

    Reloadable records need a precise success contract and an explicit partial-update failure state.

    INTERFACE:

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

    // Member of Box<ITV>:
    bool ascii_load(std::istream& s);
    
    VERIFICATION_CRITERIA:

    Load independently generated compatible records into different prior dimensions, check exact mathematical values and repeated/concatenated loading. Exercise incorrect/truncated status, header and endpoint fields, prefixes and exception-enabled streams. Reassign valid values after every failed load before querying; check resource cleanup and successful reuse.

    SOURCE:

    src/Box_defs.hh; src/Box_inlines.hh; src/Box_templates.hh; src/globals_defs.hh; tests/boxtextspec1.cc.

  • PPL-SPEC-001431
    1. Reloadable pointset-powerset representations UID: PPL-SPEC-001431 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_dump shall write the stored collection size, ambient dimension and each base representation, preserving enough information to reload the value with the matching coefficient/base configuration. ascii_load shall return true only for a complete admitted representation with matching disjunct dimensions and valid components; malformed, truncated or structurally invalid input shall return false. A successful round trip shall preserve union and dimension, without requiring canonical text or reduced decomposition. Stream and resource exceptions may propagate. A false return shall not promise rollback or further queries; surviving ownership shall remain destructible. Human-readable print shall remain distinct from the reloadable format.

    The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.

    RATIONALE:

    Persistence must reject incompatible structure rather than create an object whose dimension disagrees with its disjuncts.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Pointset_Powerset unless qualified otherwise.

    void ascii_dump(std::ostream&) const;
    bool ascii_load(std::istream&);
    void print() const;
    
    VERIFICATION_CRITERIA:

    Check empty/universe and nonreduced round trips, every token truncation, bad labels/counts/dimensions and incompatible component encodings.

    SOURCE:

    src/Pointset_Powerset.cc; src/Pointset_Powerset_defs.hh; src/Pointset_Powerset_inlines.hh; src/Pointset_Powerset_templates.hh; src/Pointset_Powerset_types.hh; tests/Powerset/contractvalues1.cc; tests/Powerset/powerset1.cc.

  • PPL-SPEC-001464
    3. Reloadable product representations UID: PPL-SPEC-001464 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Dumping shall write the product label, reduction marker and both base representations. Loading shall accept a complete representation only when both base loads succeed, component dimensions agree and component invariants hold. Malformed, truncated or structurally inconsistent input shall return false. A successful round trip shall preserve the component pair's intersection and common dimension. A loaded reduction marker shall not bypass the requirement that a pair be admitted by its selected policy. False shall not promise rollback or further queries; surviving owned storage shall remain destructible. Stream and resource exceptions may propagate. Human display shall be distinct from the reloadable format.

    The valid-use conditions in 🔗 1. Compound-domain values and valid use shall apply. Unless dimension-changing behavior is specified, ambient dimension shall be preserved. Deferred reduction and representation changes shall preserve the stated mathematical result. Borrowed views shall not be retained across an operation that can invalidate their underlying representation.

    RATIONALE:

    Two individually valid component encodings do not form a valid product when their dimensions differ.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of Partially_Reduced_Product unless qualified otherwise.

    void ascii_dump(std::ostream&) const;
    bool ascii_load(std::istream&);
    void print() const;
    
    VERIFICATION_CRITERIA:

    Check every policy round trip, unlike component dimensions, marker/label errors, all token truncations and valid-prefix trailing content.

    SOURCE:

    src/Partially_Reduced_Product_defs.hh; src/Partially_Reduced_Product_inlines.hh; src/Partially_Reduced_Product_templates.hh; src/Partially_Reduced_Product_types.hh; tests/Partially_Reduced_Product/asciidumpload1.cc; tests/Partially_Reduced_Product/contractvalues1.cc.

  • PPL-SPEC-000153
    13. Reloadable congruence representation UID: PPL-SPEC-000153 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_dump(s) shall write the full affine coefficient expression followed by the token m and its nonnegative modulus; ascii_dump() shall use std::cerr. Export shall preserve its source. For a complete compatible export with representable coefficients, ascii_load(s) shall return true and replace the target with those coefficients, dimension and modulus, retaining destination storage.

    Malformed or truncated expressions, missing/invalid modulus tokens, negative moduli and structurally invalid coefficient counts shall return false. If expression loading fails, ascii_load(s) shall return false without reading the modulus marker or value. Trailing input shall remain available. A failed load may modify the target; it shall remain destructible and admit complete valid replacement. No rollback or cross-version wire-format stability is promised. Allocation and configured numerical exceptions may propagate.

    RATIONALE:

    Expression syntax and modulus both need validation before a loaded object can be interpreted as a congruence.

    INTERFACE:
    void Congruence::ascii_dump(std::ostream& s) const;
    void Congruence::ascii_dump() const;
    bool Congruence::ascii_load(std::istream& s);
    
    VERIFICATION_CRITERIA:

    Round-trip equality/proper, constant, gapped and trailing-zero forms across storage choices. Check exact coefficient/modulus preservation, rational meaning and trailing input; reject malformed/truncated expressions, negative modulus and invalid counts, and replace destinations after failures. Reject invalid expression prefixes followed by otherwise valid modulus suffixes, checking that those suffixes remain unread. Reject representable negative moduli through false with assertions enabled or disabled. Replace failed targets completely across storage representations, retaining modulus-zero equality and trailing input.

    SOURCE:

    src/Congruence_defs.hh; src/Congruence_inlines.hh; src/Congruence.cc; src/Congruence_System_defs.hh; src/Congruence_System_inlines.hh; src/Congruence_System.cc; tests/congruencespec1.cc; tests/exactboundedworking1.cc.

  • PPL-SPEC-000160
    20. Reloadable congruence-system representation UID: PPL-SPEC-000160 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_dump(s) shall export stored row count, public dimension, representation choice and every full congruence row; ascii_dump() shall write that representation on std::cerr. Export shall preserve the source. A complete compatible export with representable coefficients shall load with true, replacing the target conjunction, dimension, stored rows and encoded representation choice.

    Malformed/truncated headers or rows, invalid modulus or coefficient structure, and inconsistent encoded row dimensions shall return false rather than be accepted as a valid system. Trailing input shall remain available. Failure may modify a destination but shall leave it destructible and replaceable by a complete valid load. No rollback or cross-version format stability is promised. Allocation and configured numerical exceptions may propagate. The decoded row count shall be nonnegative and fit the row container. The decoded header dimension shall be nonnegative and shall not exceed max_space_dimension(), including when the record contains no rows; not_a_dimension() shall be rejected as an unsupported extent.

    RATIONALE:

    Reloading must retain the system's ambient coordinate context as well as its modular rows.

    INTERFACE:
    void Congruence_System::ascii_dump(std::ostream& s) const;
    void Congruence_System::ascii_dump() const;
    bool Congruence_System::ascii_load(std::istream& s);
    
    VERIFICATION_CRITERIA:

    Round-trip empty positive-dimension, equality/proper and duplicate/tautology-containing systems through initial destination storage choices. Check encoded representation, dimensions and independent rational truth; reject malformed/truncated headers and rows and incompatible row dimensions. Check zero, positive and maximum admitted header dimensions, maximum plus one and the reserved non-dimension, even for empty row sequences. Exercise both storage choices, preserved trailing input and complete valid replacement after rejection.

    SOURCE:

    src/Congruence_defs.hh; src/Congruence_inlines.hh; src/Congruence.cc; src/Congruence_System_defs.hh; src/Congruence_System_inlines.hh; src/Congruence_System.cc; tests/congruencespec1.cc; tests/exactboundedworking1.cc.

  • PPL-SPEC-000111
    11. Reloadable constraint representation UID: PPL-SPEC-000111 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_dump(s) shall export all fields needed to reload the constraint: its full stored coefficient expression, relation token and topology token. ascii_dump() shall use std::cerr. Export shall preserve its source. For compatible complete exported data with representable coefficients, ascii_load(s) shall return true and replace the destination's stored relation, dimension and coefficients, retaining the destination storage choice. It shall preserve the source relation's satisfying set and public kind.

    Malformed expression, relation or topology tokens, missing coefficient slots, truncated input, violations of the checked row invariants and inconsistent encoded relation/type combinations shall return false. The expression slot count shall include the constant and any required internal strictness slot; invalid counts shall not be accepted as valid relations. If expression loading fails, ascii_load(s) shall return false without reading the relation or topology suffix. Trailing input shall remain available to the caller. A failed load may change the destination; it shall remain destructible and admit replacement by a subsequent complete valid load. No rollback or cross-version format stability is promised. Allocation and configured numerical exceptions may propagate.

    RATIONALE:

    A reloadable constraint must retain strictness and public dimensions rather than merely a printed inequality.

    INTERFACE:
    void Constraint::ascii_dump(std::ostream& s) const;
    void Constraint::ascii_dump() const;
    bool Constraint::ascii_load(std::istream& s);
    
    VERIFICATION_CRITERIA:

    Round-trip every relation type, constants, sparse gaps and trailing dimensions through both producer/destination representations. Compare exposed coefficients, kind and rational truth. Test malformed/truncated expressions and relation/topology fields, invalid counts, trailing-input preservation and complete replacement after reported failure. Reject invalid expression prefixes followed by otherwise valid relation/topology suffixes, checking that those suffixes remain unread. Reject missing NNC epsilon storage and nonzero equality epsilon across source/destination representations. Preserve the exported internal epsilon bounds, including positive epsilon inequalities. Exercise both inequality strictness signs, trailing input and complete valid replacement after false.

    SOURCE:

    src/Constraint_defs.hh; src/Constraint_inlines.hh; src/Constraint.cc; src/Constraint_System_defs.hh; src/Constraint_System_inlines.hh; src/Constraint_System.cc; tests/constraintspec1.cc.

  • PPL-SPEC-000119
    19. Reloadable constraint-system representation UID: PPL-SPEC-000119 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_dump(s) shall export the system's complete stored coefficient rows, public dimension, topology, representation choice and row-state fields needed for compatible reloading. ascii_dump() shall use std::cerr. Export shall preserve the source.

    Loading a complete compatible export with representable coefficients shall return true and replace the destination with the encoded system, retaining its conjunction, public dimension and encoded representation choice. Malformed or truncated headers, row data, relation/topology fields and inconsistent encoded dimensions or row-state fields shall be reported by false rather than accepted as a valid system. Trailing input after the representation shall remain available. Failure may change the destination; it shall remain destructible and admit complete valid replacement. No rollback or cross-version format stability is promised. Allocation and configured numerical exceptions may propagate. The decoded header dimension shall not exceed max_space_dimension(), including when the record contains no rows; not_a_dimension() shall be rejected as an unsupported extent.

    RATIONALE:

    System reload preserves its conjunction and coordinate context, including fields that a human-readable list does not encode.

    INTERFACE:
    void Constraint_System::ascii_dump(std::ostream& s) const;
    void Constraint_System::ascii_dump() const;
    bool Constraint_System::ascii_load(std::istream& s);
    
    VERIFICATION_CRITERIA:

    Round-trip empty positive-dimension, singleton, duplicate/tautology-containing and mixed strict systems across initial destination choices. Compare dimensions, encoded representation and independent rational conjunction truth. Check malformed/truncated headers and rows, inconsistent counts/dimensions/state and replacement after failure. Check zero, positive and maximum admitted header dimensions, maximum plus one and the reserved non-dimension, even for empty row sequences. Exercise both storage choices, preserved trailing input and complete valid replacement after rejection.

    SOURCE:

    src/Constraint_defs.hh; src/Constraint_inlines.hh; src/Constraint.cc; src/Constraint_System_defs.hh; src/Constraint_System_inlines.hh; src/Constraint_System.cc; tests/constraintspec1.cc.

  • PPL-SPEC-000192
    12. Reloadable generator representation UID: PPL-SPEC-000192 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_dump(s) shall export the full stored coefficient expression, public kind token and topology token; ascii_dump() shall use std::cerr. Export shall preserve the source. A complete compatible representation with representable coefficients shall load with true, replacing kind, coefficients, divisor and public dimension while retaining destination storage.

    Malformed/truncated expression, kind or topology fields, missing required coefficient slots, invalid directional zero vectors, nonpositive point divisors, violations of the checked row invariants and inconsistent kind/topology combinations shall return false rather than be accepted as valid generators. If expression loading fails, ascii_load(s) shall return false without reading the kind or topology suffix. Trailing input shall remain available. Failure may modify the target but shall leave it destructible and replaceable by a complete valid load. No rollback or cross-version format stability is promised; allocation and numerical exceptions may propagate.

    RATIONALE:

    A reloaded generator needs valid rational scaling, nonzero directional data and correct topological kind, in addition to syntactically complete input.

    INTERFACE:
    void Generator::ascii_dump(std::ostream& s) const;
    void Generator::ascii_dump() const;
    bool Generator::ascii_load(std::istream& s);
    
    VERIFICATION_CRITERIA:

    Round-trip all kinds, rational points, gaps and trailing dimensions across destination storage. Compare independent geometric values and exact fields; reject malformed/truncated fields, missing slots, zero directions and invalid divisors/kinds, then exercise complete replacement. Reject invalid expression prefixes followed by otherwise valid kind/topology suffixes, checking that those suffixes remain unread. Reject complete zero line/ray records, nonpositive point divisors, missing NNC epsilon storage and inconsistent epsilon fields with assertions enabled or disabled, across destination storage. After false, perform only complete valid replacement before querying the target; preserve trailing input.

    SOURCE:

    src/Generator_defs.hh; src/Generator_inlines.hh; src/Generator.cc; src/Generator_System_defs.hh; src/Generator_System_inlines.hh; src/Generator_System.cc; tests/generatorspec1.cc; tests/generatorbranches1.cc.

  • PPL-SPEC-000200
    20. Reloadable generator-system representation UID: PPL-SPEC-000200 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_dump(s) shall export full stored rows, dimension, topology, representation and required row-state fields; ascii_dump() shall use std::cerr. Export shall preserve source value. A complete compatible export with representable coefficients shall load with true, replacing the target with the encoded generated hull, public dimension and encoded storage choice.

    Malformed/truncated headers or rows, invalid generator fields and inconsistent encoded dimensions or row-state fields shall return false rather than be accepted as valid systems. Trailing input shall remain available. Failure may modify a destination but shall leave it destructible and replaceable by a complete valid load. No rollback/cross-version format stability is promised; allocation and configured numerical exceptions may propagate. The decoded header dimension shall not exceed max_space_dimension(), including when the record contains no rows; not_a_dimension() shall be rejected as an unsupported extent.

    RATIONALE:

    A generator-system reload must retain supporting-point inclusion and closure data as well as rational coordinate scaling.

    INTERFACE:
    void Generator_System::ascii_dump(std::ostream& s) const;
    void Generator_System::ascii_dump() const;
    bool Generator_System::ascii_load(std::istream& s);
    
    VERIFICATION_CRITERIA:

    Round-trip empty positive-dimensional, direction-only, point/closure and all-kind systems across initial destination storage choices. Compare encoded dimensions/storage and independent generated-set examples; reject malformed/truncated rows and inconsistent structural fields. Check zero, positive and maximum admitted header dimensions, maximum plus one and the reserved non-dimension, even for empty row sequences. Exercise both storage choices, preserved trailing input and complete valid replacement after rejection.

    SOURCE:

    src/Generator_defs.hh; src/Generator_inlines.hh; src/Generator.cc; src/Generator_System_defs.hh; src/Generator_System_inlines.hh; src/Generator_System.cc; tests/generatorspec1.cc.

  • PPL-SPEC-000233
    13. Reloadable grid-generator representation UID: PPL-SPEC-000233 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_dump(s) shall export all stored coefficient/divisor fields and the public kind token; the no-argument form shall use std::cerr. Export shall preserve the source. Compatible complete exported data with representable coefficients shall load with true, replacing the generator's fields and public dimension while retaining destination storage.

    Malformed/truncated expression or kind fields, missing internal divisor slots, nonpositive point/parameter divisors and encoded kind/field mismatches shall return false rather than be accepted as valid generators. Trailing input shall remain available. A failed target shall remain destructible and admit complete valid replacement, without rollback or cross-version format promises. Allocation and numerical exceptions may propagate.

    RATIONALE:

    A declared point token must not silently load as a parameter merely because its coefficient fields encode that different kind.

    INTERFACE:
    void Grid_Generator::ascii_dump(std::ostream& s) const;
    void Grid_Generator::ascii_dump() const;
    bool Grid_Generator::ascii_load(std::istream& s);
    
    VERIFICATION_CRITERIA:

    Round-trip all kinds, zero/nonzero parameters, rational and unreduced tuples across destination choices. Check exact kind/divisor/coordinate fields and reject malformed/truncated expressions, kind mismatches, invalid counts/divisors and unsupported structure. Reject missing hidden divisor storage, nonpositive parameter/point divisors and inconsistent point/line fields through false rather than assertion failure. Exercise dense/sparse destination replacement and preserve positive-divisor zero parameters and valid line records retaining hidden divisor metadata.

    SOURCE:

    src/Grid_Generator_defs.hh; src/Grid_Generator_inlines.hh; src/Grid_Generator.cc; src/Grid_Generator_System_defs.hh; src/Grid_Generator_System_inlines.hh; src/Grid_Generator_System.cc; tests/gridgeneratorspec1.cc; tests/gridgeneratorbranches1.cc.

  • PPL-SPEC-000240
    20. Reloadable grid-generator-system representation UID: PPL-SPEC-000240 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_dump(s) shall export stored rows, public dimension, storage and required system-state fields; the no-argument form shall use std::cerr. Export shall preserve source value. Compatible complete exports with representable coefficients shall load with true, replacing the target's generated grid, dimension, retained rows and encoded storage.

    Malformed/truncated headers/rows, invalid divisor or kind structure, and inconsistent encoded dimensions/state fields shall return false rather than be accepted as valid systems. Trailing input shall remain available. Failed targets shall remain destructible and admit complete valid replacement, without rollback or cross-version format promises. Allocation/numerical exceptions may propagate. The decoded header dimension shall not exceed max_space_dimension(), including when the record contains no rows; not_a_dimension() shall be rejected as an unsupported extent.

    RATIONALE:

    Reload must preserve parameter periods and supporting-point offsets together with ambient dimension.

    INTERFACE:
    void Grid_Generator_System::ascii_dump(std::ostream& s) const;
    void Grid_Generator_System::ascii_dump() const;
    bool Grid_Generator_System::ascii_load(std::istream& s);
    
    VERIFICATION_CRITERIA:

    Round-trip empty positive-dimensional, no-supporting-point and mixed rational-point/parameter/line systems across destination choices. Check encoded storage, dimensions and independent lattice membership; reject malformed/truncated structural fields and row-kind/divisor inconsistencies. Check zero, positive and maximum admitted header dimensions, maximum plus one and the reserved non-dimension, even for empty row sequences. Exercise both storage choices, preserved trailing input and complete valid replacement after rejection.

    SOURCE:

    src/Grid_Generator_defs.hh; src/Grid_Generator_inlines.hh; src/Grid_Generator.cc; src/Grid_Generator_System_defs.hh; src/Grid_Generator_System_inlines.hh; src/Grid_Generator_System.cc; tests/gridgeneratorspec1.cc; tests/gridgeneratorbranches1.cc.

  • 4. Grid internal status signed-keyword export UID: PPL-SPEC-001610 STATUS: APPROVED COMPONENT: GRIDS 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 CM GM CS GS CP GP SC SG. ZE shall be positive exactly for the zero flag word; each other sign shall equal its stored named bit. One space shall separate ZE/EM, CM/GM, CS/GS, CP/GP and SC/SG; two spaces shall separate the successive pairs. The record shall end with a newline and flush. 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. Grid internal status value ownership and prerequisites shall apply.

    ascii_dump() shall send the same record to std::cerr. print() shall write No user level output operator defined for class Grid::Status. followed by a flushed newline to std::cerr.

    RATIONALE:

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

    INTERFACE:

    Internal nested type Grid::Status in Grid_Status_idefs.hh, included through Grid_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;
    void ascii_dump() const;
    void print() 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/Grid_defs.hh; src/Grid_Status_idefs.hh; src/Grid_Status_inlines.hh; src/Grid_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.

  • 5. Grid internal status signed-keyword loading and rejection UID: PPL-SPEC-001611 STATUS: APPROVED COMPONENT: GRIDS 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. Grid 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. Grid 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 reset its word to zero before reading the first field. 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. Grid 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 🔗 3. Compatible rational-grid 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 Grid::Status in Grid_Status_idefs.hh, included through Grid_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 output preservation of the translation-unit-local parser by inspection. Check the stated partial-state behavior and reject contradictory markers through full public-domain loaders.

    SOURCE:

    src/Grid_defs.hh; src/Grid_Status_idefs.hh; src/Grid_Status_inlines.hh; src/Grid_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.

  • 2. Reloadable rational-grid record export UID: PPL-SPEC-001261 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_dump(s) shall export a complete record of ambient dimension, distinguished-value/status information, stored congruence and generator systems with their current-description indicators, and dimension-kind data required by the encoded reduced descriptions. The no-argument overload shall write the same record to std::cerr. Export shall preserve the source value, dimension, stored descriptions, status and ownership.

    A compatible complete record shall support the loading contract in 🔗 3. Compatible rational-grid record loading and failure state. The scope shall be the corresponding supported producer/consumer format and representable selected coefficient profile; cross-version compatibility, fixed bytes across equivalent cache histories and compatibility with human-readable presentation shall not be implied. Stream failures and enabled stream exceptions shall propagate through the standard stream mechanism; incomplete output shall not be a complete record.

    The initialization, selected arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including temporary calculations. Source descriptions and output streams shall remain live for their respective uses. Resource and numerical failures shall not imply a stronger surviving-object guarantee than the operation states.

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

    RATIONALE:

    Text reproduction must include enough state to recover the mathematical grid without requiring prior normalization.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library and signatures are Grid members unless indicated.

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

    Round-trip literal rational grids in cold, congruence-only, generator-only and dual-description states, including dense/sparse storage, zero dimensions, empty and retained inactive descriptions. Compare repeated dumps without intervening mutation and exercise stderr and failing streams.

    BIBLIOGRAPHY:

    BagnaraDHMZ07 | Section 3, grid and double-description definitions (PDF page indices 6–8, zero-based).

    SOURCE:

    src/Grid_public.cc; src/Grid_inlines.hh; tests/gridpersistencespec1.cc; tests/gridpersistencepublic1.cc; tests/gridpersistencefailure1.cc; tests/Grid/asciidumpload1.cc through asciidumpload6.cc; tests/Grid/loadstatus1.cc.

  • 3. Compatible rational-grid record loading and failure state UID: PPL-SPEC-001262 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_load(s) shall return true on a trusted, compatible complete record produced by 🔗 2. Reloadable rational-grid record export, replacing the receiver's set and ambient dimension. Encoded storage shall be retained for the loaded descriptor systems. Cached normal forms may be invalidated and rebuilt under the current reduction rules; cache reconstruction shall preserve mathematical meaning. Trailing input shall remain available after the complete record.

    Malformed or truncated fields, unsupported ambient dimensions, invalid status/descriptor structures, incompatible current-description dimensions and nonempty-state generator descriptions lacking a point shall return false, with and without enabled assertions. For a successful load of a trusted record written by 🔗 2. Reloadable rational-grid record export, the receiver shall meet 🔗 5. Rational-grid representation invariant query. Its current descriptions shall define the same set, and an empty grid shall retain empty congruence and generator views. Structural checks can accept altered records whose descriptions contradict one another or disagree with the status. Further operations require a valid representation.

    Stream, allocation and selected numerical exceptions may propagate. After false or an exception, the receiver shall retain ownership sufficient for destruction; rollback and subsequent queries shall not be assumed.

    The initialization, selected arithmetic-profile, lifetime and synchronization conditions in 🔗 1. Rational-grid values, coefficient profile and valid use shall apply, including temporary calculations. Source descriptions and output streams shall remain live for their respective uses. Resource and numerical failures shall not imply a stronger surviving-object guarantee than the operation states.

    Storage for serialized dimension kinds shall grow with the accepted entries rather than the declared dimension alone.

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

    RATIONALE:

    Loaded status and caches influence later query shortcuts. Successful parsing must not admit mutually contradictory descriptions or a supporting-point-free nonempty representation.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library and signatures are Grid members unless indicated.

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

    Use independent literal round trips and every truncated prefix. Corrupt dimensions, distinguished states, active-description flags, generator topology and point presence. Combine individually valid but different current grids in both inclusion directions, including a proper sublattice with the same affine hull. Check false returns in optimized and assertion-enabled loader builds; exercise throwing streams and allocation failures against the destruction-only guarantee.

    BIBLIOGRAPHY:

    BagnaraDHMZ07 | Section 3, grid and double-description definitions (PDF page indices 6–8, zero-based).

    SOURCE:

    src/Grid_public.cc; src/Grid_inlines.hh; tests/gridpersistencespec1.cc; tests/gridpersistencepublic1.cc; tests/gridpersistencefailure1.cc; tests/Grid/asciidumpload1.cc through asciidumpload6.cc; tests/Grid/loadstatus1.cc.

  • 4. Reloadable interval metadata and endpoint export UID: PPL-SPEC-000727 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_dump(s) shall export one interval record as the labels info, lower and upper in that order, separated from their metadata/payload values by spaces, followed by a newline. Metadata shall use 🔗 8. Metadata ASCII representation and stream failure states, and active endpoints shall use their scalar ASCII representation under 🔗 1. Exact scalar ASCII persistence through 🔗 4. Scalar ASCII stream delivery and failure handling. A metadata-encoded SPECIAL endpoint shall instead have canonical zero payload, without inspecting its inactive numerical storage. The represented set and all active endpoint values shall remain unchanged; inactive payload bytes need not be preserved.

    The source shall be initialized and valid. The record shall be reloadable with the corresponding interval type, compatible metadata/number formats and compatible stream formatting under 🔗 5. Compatible interval record loading and partial failure state. Stream failure shall be observable through its state or configured exception mask; output shall not report a separate success value.

    Clients shall supply live streams or a live null-terminated input string as applicable. Stream access and interval mutation shall be synchronized. The selected boundary/information policies shall admit the intended result; active numerical values shall satisfy their own range, canonical-form, resource and caller-owned FPU prerequisites. No additional library initialization shall be required. Allocation exceptions shall propagate. Stream/scalar exceptions shall follow those operations and the stream exception mask; exceptions escaping them shall propagate. Partial input/output may remain.

    RATIONALE:

    Machine export must preserve interval metadata and avoid reading numerical storage whose value is carried entirely by metadata.

    INTERFACE:

    Public header: <ppl.hh>; member excerpts apply to Parma_Polyhedra_Library::Interval<Boundary, Info>; stream operators belong to Parma_Polyhedra_Library.

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

    Round-trip every ordinary endpoint topology, rays, empty/universe and finite singleton records; inspect exact label order, newline framing, metadata and canonical inactive payloads. Check concatenation, source preservation and returning/throwing output failures.

    SOURCE:

    src/Interval_defs.hh; src/Interval_inlines.hh; src/Interval_templates.hh; tests/intervaltextspec1.cc; tests/Box/intervalcontracts1.cc; tests/intervalinfinityscalartext1.cc; tests/intervalcodecspec1.cc; tests/inactiveboundcodec.hh.

  • 5. Compatible interval record loading and partial failure state UID: PPL-SPEC-000728 STATUS: APPROVED COMPONENT: INTERVALS_BOXES APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_load(s) shall read info, its metadata representation, lower, its scalar payload, upper and its scalar payload in order. It shall return true after the complete compatible record is loaded, leaving subsequent records or suffix tokens available. Loading a complete record exported by 🔗 4. Reloadable interval metadata and endpoint export under compatible formatting shall preserve its mathematical set, endpoint membership and metadata meaning. Canonical inactive zero payloads shall not replace the infinity meaning carried by SPECIAL flags.

    The stream shall carry a representation compatible with the receiving boundary/information types, including an admitted metadata/payload combination whenever loading succeeds. This low-level record interface shall not promise validation of arbitrary metadata claims or cross-type, cross-version or cross-platform format compatibility. An existing initialized destination or a default-constructed destination with live storage shall be admissible for a complete compatible replacement.

    An absent or wrong label, failed component extraction, or failed check of 🔗 3. Interval shape and endpoint classification shall return false. Input may have been consumed and the destination may contain partially loaded components. A rollback or usable mathematical interval shall not be assumed. Before subsequent mathematical use, the caller shall establish a valid complete value, for example by a successful compatible replacement. Stream exceptions shall propagate according to the configured mask, with partial state permitted. Metadata/scalar parsing shall retain their own formatting and failure guarantees.

    Clients shall supply live streams or a live null-terminated input string as applicable. Stream access and interval mutation shall be synchronized. The selected boundary/information policies shall admit the intended result; active numerical values shall satisfy their own range, canonical-form, resource and caller-owned FPU prerequisites. No additional library initialization shall be required. Allocation exceptions shall propagate. Stream/scalar exceptions shall follow those operations and the stream exception mask; exceptions escaping them shall propagate. Partial input/output may remain.

    RATIONALE:

    A staged low-level loader can preserve complete exported records without promising transactional replacement or validation of all possible raw metadata words.

    INTERFACE:

    Public header: <ppl.hh>; member excerpts apply to Parma_Polyhedra_Library::Interval<Boundary, Info>; stream operators belong to Parma_Polyhedra_Library.

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

    Check exact same-type record round trips and all metadata/active boundary meanings; load into distinct preceding values and fresh storage. Check each missing/wrong label, each failed/truncated endpoint, suffix preservation, sequential loads, recovery through a complete replacement and exception-enabled input.

    SOURCE:

    src/Interval_defs.hh; src/Interval_inlines.hh; src/Interval_templates.hh; tests/intervaltextspec1.cc; tests/Box/intervalcontracts1.cc; tests/intervalinfinityscalartext1.cc; tests/intervalcodecspec1.cc; tests/inactiveboundcodec.hh.

  • 13. Reloadable ASCII export and replacement loading UID: PPL-SPEC-000083 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_dump(s) shall write a reloadable representation consisting of the word size, the number of coefficient slots d + 1, and then the constant term followed by all homogeneous coefficients in increasing variable order. Whitespace shall separate tokens. ascii_dump() shall write the same representation to std::cerr. Export shall preserve the expression.

    Given a compatible complete representation with representable coefficient values and a positive slot count not exceeding the supported storage limit, ascii_load(s) shall return true and replace the expression with the encoded coefficients and dimension, retaining its destination representation. The slot count shall include the constant slot, so zero shall be rejected with false before resizing, preserving the destination expression. A missing or incorrect size token, missing count, malformed coefficient or truncated coefficient sequence shall yield false. Trailing input after the indicated coefficient count shall remain available to the caller. The contract shall not promise a stable cross-version wire format.

    Other reported load failures may change the destination. It shall remain destructible and may be replaced by a subsequent complete valid load; no rollback is promised. Allocation and configured numerical failures may propagate through their documented exception channels.

    RATIONALE:

    A reloadable expression carries its ambient dimension and constant term, while storage choice belongs to the destination. An empty coefficient sequence cannot encode an affine expression.

    INTERFACE:
    void Linear_Expression::ascii_dump(std::ostream& s) const;
    void Linear_Expression::ascii_dump() const;
    bool Linear_Expression::ascii_load(std::istream& s);
    
    VERIFICATION_CRITERIA:

    Round-trip constants, gaps, trailing zeros and modified expressions through all dense/sparse producer and consumer pairs. Compare literal coefficient vectors and rational evaluations. Check exact token order, trailing-input preservation, malformed headers/counts/coefficients and truncation. Verify that zero-slot rejection preserves coefficients, dimension and representation. After other failures exercise destruction and complete replacement, without assuming unchanged state.

    SOURCE:

    src/Linear_Expression_defs.hh; src/Linear_Expression_inlines.hh; src/Linear_Expression.cc; src/Linear_Expression_Impl_inlines.hh; src/Linear_Expression_Impl_templates.hh; tests/linearexpressionspec1.cc; tests/linearexpressionbranches1.cc.

  • PPL-SPEC-001481
    1. Reloadable mixed integer solver representations UID: PPL-SPEC-001481 STATUS: APPROVED COMPONENT: MIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Dumping shall write the problem and incremental solver representation. Loading a complete admitted representation produced by a matching coefficient and format configuration shall replace the destination problem and preserve its constraints, integer coordinates, objective, direction and subsequent query meaning. A valid prefix may be followed by unrelated stream content. These records are trusted solver snapshots. Malformed tokens, incompatible dimensions, invalid counts or indices and structural inconsistencies between the status, extents and basis shall return false without relying on debug assertions. The loader reads the recorded tableau. An altered record can pass those checks with a tableau that fails to represent its processed constraints. The loader shall check declared tableau extents against known solver bounds before loading rows and allocate constraint storage as records are read. False shall not promise rollback or further queries. Surviving resources shall remain destructible. Stream and resource exceptions may propagate. Valid records can require substantial resources.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    Reloading is replacement, and structural admission must hold in optimized as well as debugging builds.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of MIP_Problem or the concrete type named below.

    void ascii_dump(std::ostream&) const;
    void ascii_dump() const;
    bool ascii_load(std::istream&);
    
    VERIFICATION_CRITERIA:

    Round-trip unsolved and every solved state into fresh and populated destinations, then modify/solve; reject every truncated token, malformed extent, count, mapping and status combination. Reject raw coordinate sets containing the largest dimension_type value, reserved indices and indices outside the ambient dimension before using a derived coordinate-set dimension. Exercise unsolved and solved records, zero ambient dimensions, empty/unsorted/duplicate valid sets, trailing input and complete valid replacement after false.

    SOURCE:

    src/MIP_Problem.cc; src/MIP_Problem_defs.hh; src/MIP_Problem_inlines.hh; src/MIP_Problem_templates.hh; src/MIP_Problem_types.hh; tests/MIP_Problem/ascii_dump_load1.cc; tests/MIP_Problem/persistenceadmission1.cc; tests/MIP_Problem/mipproblem4.cc.

  • 1. Exact finite numeric token syntax UID: PPL-SPEC-000525 STATUS: APPROVED COMPONENT: NUMERICS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For supported numeric destinations and a checked policy providing any required scalar traits, input shall interpret finite tokens according to their exact rational values. A number part shall consist of an optional sign immediately followed by a nonempty mantissa, optionally followed by an exponent. A mantissa shall contain digits, optionally a single point with digits on at least one side. Unprefixed digits shall be decimal; leading zeros shall not select octal. 0x shall select radix 16, and a decimal radix followed by ^^ shall select any radix from 2 through 36. Letters shall denote digits 10 through 35 without case distinction; every mantissa digit shall be smaller than the selected radix.

    For radix B, a mantissa with integer digit value M and k fractional digits shall denote MB − k before its sign and exponent. The exponent markers e and *^ shall multiply this value by BE; the hexadecimal-only marker p shall instead multiply by 2E. Exponent signs shall be optional and their digits shall always be decimal. A letter that is a valid mantissa digit shall take precedence over interpretation as an exponent marker; thus e shall be a digit at radix 15 or greater. The explicit marker *^ shall remain available in every radix. An explicit exponent magnitude shall not exceed LONG_MAX; excess magnitude shall be rejected without native overflow.

    A slash immediately after a complete numerator part shall introduce a second signed part as denominator; the finite value shall be their exact ratio when that denominator is nonzero. Leading whitespace shall be accepted before either part, including after the slash, but not between a sign and its mantissa. A terminator outside the recognized part shall remain available to the stream after successful finite parsing. Type suffixes shall not be part of the numeric token. Resources and lexical arithmetic counters shall suffice for the requested token and exact value; no configured Coefficient width shall limit its mantissa. When exact expansion is needed after cancelling radix factors, the expansion budget shall be 2^26 bits plus twice the combined budget of the literal numerator and denominator mantissa digits. Each digit contributes the ceiling of the binary logarithm of its radix, including explicitly written zero digits. A conservative upper bound on the bits contributed by the remaining powers shall be checked separately on the numerator and denominator before materializing those powers. The budget applies to native destinations when magnitude classification needs exact expansion.

    Radix powers contributed by the numerator and denominator and their common factors with the opposite mantissa shall be canceled before expanding the remaining powers. Native conversions may use proved magnitude bounds when the outcome is the same as conversion of the exact value.

    RATIONALE:

    Parsing to an exact rational gives radix, fraction and exponent syntax one mathematical meaning before integer or floating destination rounding.

    INTERFACE:

    Public header: <ppl.hh>; effective template instantiations in Parma_Polyhedra_Library for the admitted numeric types:

    Result input(To& to, std::istream& stream, Rounding_Dir dir);
    
    VERIFICATION_CRITERIA:

    Compare literal exact fractions for decimal, hexadecimal and every supported explicit radix. Include signed numerator/denominator parts, point/exponent boundaries, e/p digit precedence, leading zeros, mixed radices, exponent cancellation and overflow rejection, and check retained terminators.

    SOURCE:

    src/Checked_Number_defs.hh; src/checked.cc; tests/numberinput1.cc; tests/numerictextspec1.cc.

  • 2. Canonical rational input and stream failure outcomes UID: PPL-SPEC-000526 STATUS: APPROVED COMPONENT: NUMERICS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The destination shall be live mpq_class storage, either raw or owned by Checked_Number<mpq_class, Policy>. The policy shall provide constant boolean has_nan and has_infinity traits for that wrapper's input and lifetime operations; no rounding default or result handler shall be required by named rational input. For an initially readable stream and a complete finite token in 🔗 1. Exact finite numeric token syntax, input shall assign its exact rational value in canonical form with positive denominator and coprime numerator/denominator. It shall return V_EQ for every valid rounding request, including strict and exactness requests. Lexical negative zero shall become rational zero. Reusing a destination shall not retain any previous numerator, denominator, sign or exponent component.

    Successful parsing shall consume the recognized token and its leading whitespace, preserve any looked-ahead terminator by stream putback, and clear a speculative failbit caused only by successful end-of-token recognition at EOF. It shall retain eofbit and shall not clear a genuine stream failure. The stream buffer shall support the required character putback for successful delimiter retention. If that operation fails, input shall report failure through stream state rather than claim a complete finite value. Syntax rejection, an exponent expansion beyond the bound above or a conservative expansion bound exceeding the supported backend storage limits shall set failbit and return V_CVT_STR_UNK when the stream exception mask allows return. Enabled stream exceptions shall propagate. A consumed prefix shall not be rolled back after failure; no universal unchanged-destination promise shall apply. The surviving destination shall remain reassignable and destructible.

    Case-insensitive inf with optional sign and unsigned nan shall be recognized as nonfinite tokens; a zero-valued denominator shall not be a successful finite value. Their nonfinite/undefined or unrepresentable outcome shall remain distinct from V_EQ finite input. This shall not promise a nonfinite representation in ordinary canonical mpq_class storage.

    Objects and streams shall be synchronized against concurrent mutation and resources shall suffice for parsing and exact canonicalization. No library initialization owner, coefficient-constant stage, FPU setup/direction, inexact-flag support or irrational-precision setting shall be required.

    RATIONALE:

    Canonical token values must not depend on destination history. Numeric parsing and stream delivery failures need observable outcomes without an unjustified full rollback guarantee.

    INTERFACE:

    Public header: <ppl.hh>; effective template instantiations in Parma_Polyhedra_Library for the admitted numeric types:

    Result input(mpq_class& to, std::istream& stream, Rounding_Dir dir);
    Result input(Checked_Number<mpq_class, Policy>& to,
                 std::istream& stream, Rounding_Dir dir);
    
    VERIFICATION_CRITERIA:

    Check exact canonical values, backend capacity preflight with a small test limit, destination reuse, signed and zero denominators, lexical zero, special-token classification, sequential tokens and retained delimiters. Exercise EOF at each syntactic stage, prefailed streams, failed putback and enabled stream exception masks; recover by resetting stream/destination state and parse a new valid value without library initialization.

    SOURCE:

    src/Checked_Number_defs.hh; src/Checked_Number_inlines.hh; src/checked_mpq_inlines.hh; src/checked.cc; tests/numberinput1.cc; tests/numerictextspec1.cc.

  • 3. Numeric text input into integral destinations UID: PPL-SPEC-000527 STATUS: APPROVED COMPONENT: NUMERICS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a successfully parsed finite token of exact value q in 🔗 1. Exact finite numeric token syntax, input into each native integer or Checked_Number<I, Check_Overflow_Policy<I>> type admitted in 🔗 3. Directed rational-to-integral conversion within range shall apply the canonical rational conversion rules in 🔗 3. Directed rational-to-integral conversion within range, 🔗 4. Truncated rational-to-integral conversion and lazy relation requests and 🔗 6. Rational conversion at and beyond integral endpoints, with the same destination value, range outcome, result relation and exactness precondition. Input into mpz_class shall use 🔗 2. Directed canonical rational conversion to an unbounded integer and 🔗 3. Delegated and exactness rational conversion to an unbounded integer. In particular, directed requests shall use floor/ceiling and delegated integer conversion shall truncate toward zero; ROUND_NOT_NEEDED shall require an integral finite token value representable in the selected destination.

    Token precision shall not first be restricted to the configured coefficient range or to a native floating type. Named input shall return the numeric conversion result without automatically dispatching a policy error handler. The token shall remain consumed if subsequent numeric conversion reports an unrepresentable result. Stream behavior, source synchronization and resources shall follow 🔗 2. Canonical rational input and stream failure outcomes. Shared rational temporary pools shall be serialized in a build without thread-safe support; thread-safe builds shall use calling-thread pools. Destination and initialization prerequisites shall follow the corresponding conversion contracts, without requiring an FPU merely to parse or round a rational into integral storage.

    RATIONALE:

    Exact token semantics avoid intermediate floating or configured-coefficient rounding. A proven range outcome can be determined before large powers are expanded.

    INTERFACE:

    Public header: <ppl.hh>; effective template instantiations in Parma_Polyhedra_Library for the admitted numeric types:

    Result input(To& to, std::istream& stream, Rounding_Dir dir);
    
    VERIFICATION_CRITERIA:

    Use exact token fractions around integer zero, signed/unsigned endpoints and large MPZ values. Check floor, ceiling, delegated truncation, weak/strict results, admitted exactness requests, out-of-range reports, consumed tokens and destination reuse for all native integer and checked forms in every coefficient configuration.

    SOURCE:

    src/Checked_Number_defs.hh; src/Checked_Number_inlines.hh; src/checked_inlines.hh; src/checked_int_inlines.hh; src/checked_mpz_inlines.hh; src/checked.cc; tests/numberinput1.cc; tests/numerictextspec1.cc.

  • 4. Numeric text input into supported native floating destinations UID: PPL-SPEC-000528 STATUS: APPROVED COMPONENT: NUMERICS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a successfully parsed finite token of exact rational value q, input into raw or Checked_Number<F, Check_Overflow_Policy<F>> storage shall apply the value, direction, exactness and range rules in 🔗 1. Supported exact integer and rational conversion to native floating storage, 🔗 2. Directed conversion to adjacent finite normal floating-point bounds, 🔗 3. Directed conversion in the subnormal and underflow range, 🔗 4. Delegated and exactness requests for floating-point conversion and 🔗 5. Floating conversion overflow thresholds and computed-value classes for the corresponding configured supported native format. The returned relation shall compare q with the stored native value. Strict requests shall retain the precision of that rational conversion; native token parsing shall not round through a narrower intermediate format or the configured coefficient type.

    A lexical negative-zero token shall parse as rational zero and therefore store positive native zero. Nonzero negative underflow shall retain the negative sign required by the rational conversion. Named input shall return its numeric outcome directly, without policy handler dispatch. Stream consumption/failure and temporary-pool prerequisites shall follow 🔗 3. Numeric text input into integral destinations. No library initialization owner, coefficient-constant stage or irrational-precision setting shall be needed, and hardware direction shall not change. Native format availability and any arithmetic conditions shall follow the cited rational conversion contracts.

    RATIONALE:

    Using the exact token rational as the floating conversion source prevents double rounding and distinguishes mathematical zero from a nonzero value underflowing to signed zero.

    INTERFACE:

    Public header: <ppl.hh>; effective template instantiations in Parma_Polyhedra_Library for the admitted numeric types:

    Result input(To& to, std::istream& stream, Rounding_Dir dir);
    
    VERIFICATION_CRITERIA:

    Check exact dyadics, decimal fractions, half-ULP neighbors, subnormal endpoints and native finite-range limits with independent rational oracles. Cross all supported formats/raw-checked destinations, directions and strict statuses, verify lexical versus underflow zero signs, exactness cases and hardware preservation.

    SOURCE:

    src/Checked_Number_defs.hh; src/Checked_Number_inlines.hh; src/checked_inlines.hh; src/checked_float_inlines.hh; src/checked.cc; tests/numberinput1.cc; tests/numerictextspec1.cc.

  • 5. Mathematical numeric output and stream delivery status UID: PPL-SPEC-000529 STATUS: APPROVED COMPONENT: NUMERICS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    output shall preserve a live source number and write its mathematical text using the supplied stream. With ordinary decimal formatting, native integer, mpz_class and canonical finite mpq_class sources shall use their exact ordinary integer/rational representation; character-sized integer sources shall be printed numerically rather than as glyphs. A native finite floating source shall be written as an exact finite decimal representation of its represented binary rational value, without rounding to the stream precision or changing hardware direction. Both zero signs shall be written as 0. Admitted native infinities and quiet NaNs shall be written as -inf, +inf and nan respectively.

    Exact integer/rational output shall follow its ordinary stream formatting flags. Native floating mathematical output shall insert the exact decimal string instead of using the stream's native floating formatting. Pending width/fill/alignment shall act through the corresponding ordinary insertion; no newline shall be added. Live Numeric_Format instances shall select the same formatting rules. Every valid rounding request shall return V_EQ when insertion returns, indicating no numeric approximation; it shall not by itself certify successful stream delivery. Stream error state and enabled exceptions shall follow ordinary insertion semantics, without a partial-output rollback promise or policy handler dispatch by named output.

    Resources shall suffice for exact decimal expansion and insertion; source, format and stream access shall be synchronized against mutation. Supported native formats shall satisfy their availability conditions. No library initialization owner, coefficient-constant stage, FPU rounding setup, inexact-flag support or irrational-precision setting shall be required. Ordinary decimal output read by compatible numeric input shall preserve the mathematical finite value, without promising to preserve a floating zero's sign or machine object representation.

    RATIONALE:

    Mathematical numeric text should preserve exact values while stream delivery remains governed by stream state and exceptions; readable output is distinct from ABI-specific object-byte dumps.

    INTERFACE:

    Public header: <ppl.hh>; effective template instantiations in Parma_Polyhedra_Library for the admitted numeric types:

    class Numeric_Format;
    Result output(std::ostream& stream, const From& from,
                  const Numeric_Format& format, Rounding_Dir dir);
    
    VERIFICATION_CRITERIA:

    Check exact numeric strings for native integer widths, very large MPZ values, canonical rationals and every supported native floating format, including negative fractions, both zero signs and admitted specials. Round-trip finite mathematical values, vary flags/precision/width, preserve sources and hardware, and exercise returning/throwing stream-buffer failures without interpreting numeric EQ as stream success.

    SOURCE:

    src/Checked_Number_defs.hh; src/Checked_Number_inlines.hh; src/Numeric_Format_defs.hh; src/checked_int_inlines.hh; src/checked_mpz_inlines.hh; src/checked_mpq_inlines.hh; src/checked_float_inlines.hh; src/checked.cc; tests/numberinput1.cc; tests/numerictextspec1.cc.

  • 6. Checked numeric stream policy integration UID: PPL-SPEC-000530 STATUS: APPROVED COMPONENT: NUMERICS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a Checked_Number<T, Policy> instantiation whose policy provides ROUND_DEFAULT_INPUT and handle_result(Result), input stream extraction shall call numeric input with that default direction and return the same stream reference. On a returned V_CVT_STR_UNK, it shall set failbit and shall not dispatch that syntax result to the policy handler. For another returned numeric result, it shall invoke the handler once. Stream exceptions and exceptions raised by the handler shall propagate. No successful destination value shall be inferred after a failed parse or a handler rejection; reuse shall meet the destination's declared post-failure prerequisites.

    Output stream insertion shall require the policy handler, without requiring an input-default direction. It shall call numeric output with a default Numeric_Format and ROUND_IGNORE, dispatch a returned result to the policy handler once, and return the same output-stream reference. A stream exception shall propagate before a returned numeric result can be dispatched. The source shall remain unchanged by library formatting. Input/output mathematical values and stream semantics shall follow 🔗 2. Canonical rational input and stream failure outcomes, 🔗 3. Numeric text input into integral destinations, 🔗 4. Numeric text input into supported native floating destinations and 🔗 5. Mathematical numeric output and stream delivery status for admitted underlying types. Check_Overflow_Policy alone shall not be assumed to provide these stream-operator policy members; the named result-returning interfaces shall remain governed by their own contracts.

    RATIONALE:

    Checked stream operators integrate numeric conversion with an explicit policy, while syntax rejection remains an ordinary stream failure rather than an implicit numeric success.

    INTERFACE:

    Public header: <ppl.hh>; effective template instantiations in Parma_Polyhedra_Library for the admitted numeric types:

    std::istream& operator>>(std::istream& stream,
                             Checked_Number<T, Policy>& value);
    std::ostream& operator<<(std::ostream& stream,
                             const Checked_Number<T, Policy>& value);
    
    VERIFICATION_CRITERIA:

    Use policies with observable default directions and handlers. Check one handler invocation per returned numeric result, no handler for syntax rejection, exact stream-reference identity, conversion rounding, input recovery, source preservation, stream exception masks and handler-thrown exceptions. Compile named interfaces with policies that lack stream defaults to distinguish their supported surface.

    SOURCE:

    src/Checked_Number_defs.hh; src/Checked_Number_inlines.hh; tests/numberinput1.cc; tests/numerictextspec1.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-001494
    2. Reloadable parametric solver representations UID: PPL-SPEC-001494 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Dumping shall write original problem data, parameter context, controls, big-parameter selection and incremental tree state. Loading a complete admitted representation produced by a matching configuration shall replace the destination and preserve subsequent context-relative solution meaning. Every loaded node shall belong to the destination, with valid parent links. A complete prefix may be followed by unrelated stream content.

    These records are trusted solver snapshots. Malformed tokens, extents, counts, parameter/control selections and status, tree or tableau structures inconsistent with the declared dimensions, parameters and status shall return false in both optimized and debugging builds. The loader shall validate leaf dimensions and parameter references against the processed model and the path's artificial parameter definitions. The loader reads the recorded tableaux. An altered record can pass those checks with tableaux that fail to represent its processed constraints. False shall not promise rollback or further queries. Surviving owned storage shall remain destructible. Stream and resource exceptions may propagate. Valid records can require substantial resources.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    A valid tree depends on a compatible problem, context and owner; retaining old destination constraints changes its meaning.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Problem or the concrete type named below.

    void ascii_dump(std::ostream&) const;
    void ascii_dump() const;
    bool ascii_load(std::istream&);
    
    VERIFICATION_CRITERIA:

    Round-trip every solver state and heuristic into fresh/populated destinations, then refine; check recursive false branches, owners, truncations, incompatible parameter dimensions, status/tree contradictions and malformed controls. Reject raw coordinate sets containing the largest dimension_type value, reserved indices and indices outside the ambient dimension before using a derived coordinate-set dimension. Exercise unsolved and solved records, zero ambient dimensions, empty/unsorted/duplicate valid sets, trailing input and complete valid replacement after false.

    SOURCE:

    src/PIP_Problem.cc; src/PIP_Problem_defs.hh; src/PIP_Problem_inlines.hh; src/PIP_Problem_templates.hh; src/PIP_Problem_types.hh; tests/PIP_Problem/ascii_dump_load1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipmalformedvalues1.cc.

  • PPL-SPEC-001501
    6. Artificial parameter persistence and diagnostics UID: PPL-SPEC-001501 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Serialization shall retain numerator dimension, coefficients and the positive denominator. Loading shall preserve an admitted stored representation, including a common factor, without constructor normalization. Malformed or nonpositive denominators shall return false in both build modes. False shall not promise rollback or further queries; owned storage shall remain destructible. OK shall require a positive denominator. Human output shall display the expression and integer-division denominator and return its stream. External memory shall estimate expression storage; total shall add the artificial-parameter object's own size.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    An admitted serialized denominator must support a defined integer floor, while persistence need not canonicalize its representation.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Tree_Node or the concrete type named below.

    void ascii_dump(std::ostream&) const;
    void ascii_dump() const; bool ascii_load(std::istream&);
    bool OK() const; void print() const;
    memory_size_type external_memory_in_bytes() const;
    memory_size_type total_memory_in_bytes() const;
    std::ostream& IO_Operators::operator<<(
        std::ostream&, const PIP_Tree_Node::Artificial_Parameter&);
    
    VERIFICATION_CRITERIA:

    Check noncanonical positive round trips, replacement loads, zero/negative denominators, truncations, stream identity and byte relationships.

    SOURCE:

    src/PIP_Tree.cc; src/PIP_Tree_defs.hh; src/PIP_Tree_inlines.hh; src/PIP_Tree_types.hh; tests/PIP_Problem/ascii_dump_load1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipproblem2.cc.

  • PPL-SPEC-001502
    7. Reloadable parametric tree structure UID: PPL-SPEC-001502 STATUS: APPROVED COMPONENT: PIP_SOLVER APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Node dumping shall write local guards and artificial parameters; concrete solution and decision dumping shall additionally write their complete respective representation. Concrete loading shall replace the corresponding stored state, retain the receiver's live owner association and restore parent and owner links for loaded children. Reloading shall not append old artificial parameters. Recursive decision subtrees shall be supported on both branches.

    Malformed fields, nonpositive tableau denominators, incompatible vector/matrix sizes, out-of-range mappings and invalid decision structure shall return false in both build modes, before unsafe indexing or successful use of the broken representation. Surviving ownership shall remain destructible after false, without a rollback or further-query guarantee. A tree shall be interpreted only after association with a compatible live problem. Stream and resource exceptions may propagate.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    Local formulas, tableau coordinates and ownership links must describe the same tree after replacement.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members of PIP_Tree_Node or the concrete type named below.

    void PIP_Tree_Node::ascii_dump(std::ostream&) const;
    bool PIP_Tree_Node::ascii_load(std::istream&);
    void PIP_Solution_Node::ascii_dump(std::ostream&) const;
    bool PIP_Solution_Node::ascii_load(std::istream&);
    void PIP_Decision_Node::ascii_dump(std::ostream&) const;
    bool PIP_Decision_Node::ascii_load(std::istream&);
    
    VERIFICATION_CRITERIA:

    Round-trip fresh and populated clones, including local artificial parameters and recursive false branches; reject mismatched vector extents, mapping indices, denominators, kinds, guards and truncations with sanitizers.

    SOURCE:

    src/PIP_Tree.cc; src/PIP_Tree_defs.hh; src/PIP_Tree_inlines.hh; src/PIP_Tree_types.hh; tests/PIP_Problem/ascii_dump_load1.cc; tests/PIP_Problem/persistenceadmission1.cc; tests/PIP_Problem/pipmalformedvalues1.cc.

  • 4. Polyhedron internal status signed-keyword export UID: PPL-SPEC-001605 STATUS: APPROVED COMPONENT: POLYHEDRA 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 CM GM CS GS CP GP SC SG. ZE shall be positive exactly for the zero flag word; each other sign shall equal its stored named bit. One space shall separate ZE/EM, CM/GM, CS/GS, CP/GP and SC/SG; two spaces shall separate the successive pairs. 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. Polyhedron internal status value ownership and prerequisites shall apply.

    ascii_dump() shall send the same record to std::cerr. print() shall write No user level output operator defined for class Polyhedron::Status. followed by a flushed newline to std::cerr.

    RATIONALE:

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

    INTERFACE:

    Internal nested type Polyhedron::Status in Ph_Status_idefs.hh, included through Polyhedron_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;
    void ascii_dump() const;
    void print() 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/Polyhedron_defs.hh; src/Ph_Status_idefs.hh; src/Ph_Status_inlines.hh; src/Ph_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.

  • PPL-SPEC-001606
    5. Polyhedron internal status signed-keyword loading and rejection UID: PPL-SPEC-001606 STATUS: APPROVED COMPONENT: POLYHEDRA 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. Polyhedron 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. Polyhedron 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 reset its word to zero before reading the first field. 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. Polyhedron 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 🔗 1. Reloadable polyhedral ASCII descriptions.

    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 Polyhedron::Status in Ph_Status_idefs.hh, included through Polyhedron_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 output preservation of the translation-unit-local parser by inspection. Check the stated partial-state behavior and reject contradictory markers through full public-domain loaders.

    SOURCE:

    src/Polyhedron_defs.hh; src/Ph_Status_idefs.hh; src/Ph_Status_inlines.hh; src/Ph_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc.

  • 1. Exact scalar ASCII persistence UID: PPL-SPEC-000571 STATUS: APPROVED COMPONENT: NUMERICS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For the eleven standard native integer types, mpz_class, mpq_class and their Checked_Number wrappers, ascii_dump shall write a finite scalar's exact mathematical value in the compatible decimal representation. Integral values, including raw char, signed char and unsigned char, shall be represented numerically. A canonical rational shall use its exact integer or numerator/denominator representation.

    Under compatible scalar type, policy, locale and stream-format conditions, ascii_load of a complete representation emitted for an admitted finite value shall return true and restore that value. All representable native integer values shall belong to the round-trip scope. Distinct successive records separated by whitespace shall be reloadable in order without consuming another record's value. The stream shall remain positioned after the loaded numeric token. Canonical finite GMP rational producer records shall restore canonical finite rational storage.

    The producer and consumer shall use classic-locale ordinary decimal numeric formatting, with no field padding. Checked exact input shall require the policy capabilities of 🔗 6. Checked numeric stream policy integration, including a default input direction compatible with the exact stored value and a result handler that permits its returned result. Checked output shall require a result handler. Underlying scalar storage shall be live and finite; rational producer values and compatible rational records shall be canonical with positive denominator. The corresponding mathematical input and output semantics and relevant serialization prerequisites shall follow 🔗 1. Exact finite numeric token syntax through 🔗 6. Checked numeric stream policy integration for checked stream operations. These numeric-text parser rules shall not replace the ordinary GMP extraction rules for raw GMP destinations. Successful raw GMP rational extraction shall not by itself promise canonicalization or a nonzero denominator: for example, 2/4 and 1/0 may be accepted as those numerator/denominator representations. Subsequent numerical use shall first meet its canonicalization and nonzero- denominator prerequisites.

    RATIONALE:

    An exact numerical representation shall preserve every admitted integer or canonical rational value when scalar records are embedded in larger saved objects.

    INTERFACE:

    Public header: <ppl.hh>; effective instantiations in PPL:

    void ascii_dump(std::ostream& stream, const Number& value);
    bool ascii_load(std::istream& stream, Number& value);
    

    Number shall be an admitted exact scalar type stated above.

    VERIFICATION_CRITERIA:

    Round-trip literal positive, negative, zero and endpoint values for every admitted integer type and checked form. Include raw and checked character values that coincide with whitespace, and sequential-record framing. Check large GMP integers and nonintegral canonical rationals with independently known values. Verify the required policy capabilities, destination reuse, retained following records and no coefficient-width restriction.

    SOURCE:

    src/Checked_Number_defs.hh; src/Checked_Number_templates.hh; tests/scalarasciispec1.cc; tests/numberinput1.cc.

  • 2. Finite floating scalar ASCII byte records UID: PPL-SPEC-000572 STATUS: APPROVED COMPONENT: NUMERICS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a configured supported native floating type or its checked wrapper, ascii_dump shall emit exactly two hexadecimal digits for each byte of the source object's representation, in increasing memory-address order. Leading zero nibbles shall be included. The byte token shall be followed by one space and a nonempty parenthesized display token. The byte token shall be authoritative for reload; the display shall be supplementary.

    The source shall be live and finite, including either signed zero, subnormal values and finite range endpoints. Producer and consumer shall use the same scalar or checked type, object size and ABI. In particular, the record shall not promise interchange between different floating formats or checked object types. The producer stream shall use the classic locale, right adjustment, no base prefix and ordinary numeric display formatting. Checked display output shall require a policy result handler under 🔗 6. Checked numeric stream policy integration. On normal return, original formatting flags shall be restored; byte emission shall select a zero fill character. The source value and hardware rounding direction shall remain unchanged. No library initialization or FPU rounding setup shall be required; available resources and nontrapping floating exceptions shall be prerequisites.

    RATIONALE:

    Object bytes preserve finite floating values, signed zero and subnormals independently of the precision used for a supplementary human-readable number.

    INTERFACE:

    Public header: <ppl.hh>; effective instantiation in PPL:

    void ascii_dump(std::ostream& stream, const Number& value);
    

    Number shall be a configured supported native floating type or its checked wrapper with the stated output capability.

    VERIFICATION_CRITERIA:

    Compare the emitted byte token against independently inspected unsigned object bytes for each supported native and checked floating format. Include signed zero, opposite signs, subnormal and normal boundaries and maximum finite magnitudes. Vary display precision without changing the byte token; check exact token width, original formatting flags, zero fill selection, source preservation and unchanged hardware direction.

    SOURCE:

    src/Checked_Number_defs.hh; src/Checked_Number_templates.hh; tests/scalarasciispec1.cc; tests/numberinput1.cc.

  • 3. Finite floating scalar ASCII reload and framing UID: PPL-SPEC-000573 STATUS: APPROVED COMPONENT: NUMERICS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For the compatible finite object records of 🔗 2. Finite floating scalar ASCII byte records, ascii_load shall read a hexadecimal byte token of exactly twice the destination object's size. Each hexadecimal letter shall be accepted in upper or lower case. It shall restore the bytes to the corresponding memory positions and require a following nonempty whitespace-delimited token whose first character is ( and last character is ). There shall be at least one character between the parentheses. On successful reload it shall return true and preserve the represented finite value and zero sign. The contents between parentheses shall be discarded; they shall not override or be required to numerically agree with the byte token. A following record shall remain available for a subsequent load.

    An absent or wrong-length byte token, a nonhexadecimal byte digit, a missing display token or a display token without that nonempty parenthesized framing shall return false when the stream's exception mask permits normal return. A false return shall not require failbit if a lexical token was successfully extracted before the record-shape check failed. The destination may already have been changed; rollback shall not be promised.

    The destination shall be live, and finite records shall encode a valid finite object of that same type and ABI. Resetting storage after a rejected record shall precede any numerical use that requires a valid finite representation. Checked floating reload shall require a policy providing the input-stream capabilities of 🔗 6. Checked numeric stream policy integration, including ROUND_DEFAULT_INPUT and handle_result. Successful byte reload shall restore the representation directly without applying that numerical rounding default or invoking the handler. No library initialization or FPU rounding setup shall be required, and the hardware direction shall remain unchanged.

    RATIONALE:

    The saved bytes determine the restored number. Structural validation and explicit failure-state limits permit composite readers to detect truncated or malformed records without assuming transactional reload.

    INTERFACE:

    Public header: <ppl.hh>; effective instantiation in PPL:

    bool ascii_load(std::istream& stream, Number& value);
    

    Number shall be a configured supported native floating type or its checked wrapper with the stated input-stream capabilities.

    VERIFICATION_CRITERIA:

    Reload independently generated compatible byte records in both hex letter cases and compare object bytes, finite values and zero signs. Replace the display contents with other nonempty text to verify byte authority. Test all byte-length and digit rejection stages, missing or malformed display tokens, sequential records and destination reset/reuse. Use a recording policy to confirm that successful checked floating byte reload invokes no handler.

    SOURCE:

    src/Checked_Number_defs.hh; src/Checked_Number_templates.hh; tests/scalarasciispec1.cc; tests/numberinput1.cc.

  • PPL-SPEC-000574
    4. Scalar ASCII stream delivery and failure handling UID: PPL-SPEC-000574 STATUS: APPROVED COMPONENT: NUMERICS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Scalar ASCII persistence shall use ordinary stream delivery state and the stream's selected exception mask. ascii_dump shall return no delivery status; normal return shall not imply that the output stream accepted every character. ascii_load shall return false when a required formatted extraction fails and no enabled exception interrupts the operation. Exact checked scalar loads shall retain the policy exception behavior of 🔗 6. Checked numeric stream policy integration. Exceptions enabled by the stream mask and policy handler exceptions shall propagate. Stream-buffer exception handling shall follow the underlying formatted stream operation.

    Producer source values shall remain unchanged. On failed input, destination storage and stream position may already have changed; callers shall reset an affected destination and clear or replace the stream before retrying. Native and GMP scalar storage shall remain destructible and assignable; no earlier numerical value shall be promised. After a successful compatible retry the destination shall have the newly loaded finite value.

    Callers shall synchronize stream and object access overlapping modification. The selected scalar's allocation and representation prerequisites shall apply. No coefficient-constant stage or library initialization shall be introduced by scalar persistence. Checked exact numeric parsing shall retain its shared-temporary serialization requirements from 🔗 3. Numeric text input into integral destinations. Floating byte records shall retain the finite/type/ABI prerequisites of 🔗 2. Finite floating scalar ASCII byte records and 🔗 3. Finite floating scalar ASCII reload and framing.

    RATIONALE:

    Composite persistence needs observable delivery failures and usable retry rules without a universal rollback guarantee.

    INTERFACE:

    Public header: <ppl.hh>; effective instantiations in PPL:

    void ascii_dump(std::ostream& stream, const Number& value);
    bool ascii_load(std::istream& stream, Number& value);
    

    Number shall be an admitted exact or finite floating scalar type from 🔗 1. Exact scalar ASCII persistence through 🔗 3. Finite floating scalar ASCII reload and framing.

    VERIFICATION_CRITERIA:

    Use bidirectional streams, preexisting failure states, truncation, returning and throwing stream buffers and enabled fail/bad exception masks. Confirm false returns or the precise stream/policy exceptions as appropriate, source preservation, explicit destination reset and successful retry. Distinguish a shape-check false return from an extraction failure and an output stream's normal return with bad state.

    SOURCE:

    src/Checked_Number_defs.hh; src/Checked_Number_templates.hh; tests/scalarasciispec1.cc; tests/numberinput1.cc.

  • PPL-SPEC-000027
    7. Reloadable coordinate-set text export UID: PPL-SPEC-000027 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection, Review LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a live Variables_Set and a stream with decimal integer formatting, zero pending field width and the classic C locale, successful ascii_dump(s) shall write a newline, "variables( ", the number of stored indices, " )", a newline, and then each raw stored index in increasing order followed by one space. An empty set shall have no index payload. The operation shall append no additional characters or explicit flush after this sequence. It shall leave the set unchanged and shall not invoke the Variable formatter and shall also permit raw indices that fail coordinate validity. The no-argument overload shall write the same representation to std::cerr under those formatting conditions.

    For coordinate-valid input and compatible producer/consumer formatting, successful loading of this representation under 🔗 8. Coordinate-set text loading and partial failure state shall preserve the selected indices and enclosing dimension. The format shall not promise compatibility with every library version or with arbitrary incompatible locale, numeric base or formatting settings. Stream failure shall follow C++ stream state and exception-mask semantics; partial output may remain and the source set shall remain unchanged.

    RATIONALE:

    Machine-oriented coordinate indices must be reloadable independently of custom human-readable coordinate names.

    INTERFACE:

    Public declarations:

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

    Compare exact empty and sparse dumps against independently written literals. Round-trip valid sets including the greatest valid index and compare all indices and dimensions. Verify dump ignores a throwing Variable formatter, forwards the no-argument overload to std::cerr and preserves the source after nonthrowing or throwing stream failure.

    SOURCE:

    src/Variables_Set.cc: stream dump implementation. src/globals_defs.hh: generated no-argument dump forwarding definition. tests/variablesset1.cc: literal frames, reload and dump-failure cases.

  • PPL-SPEC-000028
    8. Coordinate-set text loading and partial failure state UID: PPL-SPEC-000028 STATUS: APPROVED COMPONENT: GEOMETRIC_DESCRIPTORS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection, Review LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_load(s) shall first clear the destination's existing indices. With whitespace-skipping extraction enabled, decimal integer conversion and the classic C locale, it shall accept an opening token "variables(", a nonnegative dimension_type count, a closing token ")" and exactly that count of nonnegative indices below Variable::max_space_dimension(). On successful loading it shall return true and contain exactly the set of extracted indices. Duplicate payload indices shall be collapsed and payload order need not be sorted. Tokens following the declared payload shall remain available to the caller. Loading shall not invoke the Variable formatter.

    Missing, wrong, unextractable or out-of-range required fields shall return false unless the stream's exception mask causes an exception. A false result shall leave the destination empty if the header failed, or containing exactly the successfully inserted prefix of payload indices if a payload extraction failed. Allocation or stream exceptions shall propagate; the old value shall not be restored, and successfully inserted prefix indices may remain. The destination shall remain a live base-container object available for inspection, clear, reassignment and destruction. No unchanged-state guarantee shall be implied.

    A true result shall certify a coordinate-valid set with exactly the loaded indices and their enclosing dimension as checked by 🔗 10. Coordinate-validity checking of raw indices.

    RATIONALE:

    A nontransactional parser must make replacement and valid-prefix state explicit.

    INTERFACE:

    Public declaration:

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

    Load independent empty, sparse, unsorted and duplicate-containing literals into nonempty receivers. Check allowed whitespace, exact payload framing and an unconsumed trailing marker. Exercise every bounded truncation, wrong markers, nonnumeric and overflowing counts/indices; check the exact retained prefix before reset. Reject signed-negative counts and out-of-range coordinate indices. Inject allocation failure at payload insertion and throwing stream extraction, checking live prefix state and successful later clear/reload.

    SOURCE:

    src/Variables_Set.cc: ascii_load clear, token parsing and index insertion. tests/variablesset1.cc: valid, malformed and exceptional loading cases.