Parma Polyhedra Library requirements
Rational grids
1. Rational-grid meaning UID: PPL-LLR-000041 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

A rational grid shall denote the solutions of a finite system of rational linear congruences, including the empty grid and the universe grid in every supported space dimension.

RATIONALE:

Grid membership combines affine equalities and periodic restrictions; it is not restricted to the integer points of a convex polyhedron.

COMMENT:

Verification covers grid value types, congruence interpretation and distinguished elements. Related obligations: 🔗 11. Preservation of integer points in integer restriction.

VERIFICATION_CRITERIA:

Use exact congruence calculations to check affine subspaces, discrete periodic sets, rational offsets and inconsistent systems. Include empty and universe grids in zero dimensions.

BIBLIOGRAPHY:

BagnaraDHMZ07 | whole work (background)

SOURCE:

doc/definitions.dox: Rational Grids; Congruences and Congruence Relations. src/Grid_defs.hh: grid domain semantics.

2. Equivalent grid representations UID: PPL-LLR-000042 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, successful conversion between a grid's congruence description and its generator description shall preserve the represented grid, with grid parameters retaining integer displacement and grid lines retaining arbitrary real displacement.

RATIONALE:

The two descriptions must agree on periodicity as well as affine geometry.

COMMENT:

Verification covers grid representation conversion and generator interpretation. Related obligations: 🔗 3. Preservation by representation-only changes, 🔗 4. Sound conversion between numerical abstractions.

VERIFICATION_CRITERIA:

Independently derive dual descriptions of rational grids containing points, periodic parameters and continuous directions. Check conversion in both directions, redundant descriptions and grids without generating points.

BIBLIOGRAPHY:

BagnaraDHMZ07 | whole work (background)

SOURCE:

doc/definitions.dox: Points, Parameters and Lines; The Grid Generator Representation; Minimized Grid Representations. src/Grid_defs.hh: grid representations. src/Grid_conversion.cc: representation conversion.

3. Grid intersection and grid hull UID: PPL-LLR-000043 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, for dimension-compatible grids, a successful intersection shall denote their exact set intersection and a successful grid hull shall denote the least rational grid containing both inputs.

RATIONALE:

The least containing grid can include points absent from the union, so the hull must not be interpreted as exact disjunction.

COMMENT:

Verification covers grid intersection and hull operations. Related obligations: 🔗 8. Abstract set-difference semantics.

VERIFICATION_CRITERIA:

Compute simple periodic intersections and containing grids by exact arithmetic on residues and rational generators. Include incompatible periods, shifted grids, continuous directions and empty operands.

SOURCE:

doc/definitions.dox: Rational Grids; Operations on Rational Grids. src/Grid_defs.hh: intersection and upper-bound contracts.

PPL-LLR-000044
4. Rational affine transformations of grids UID: PPL-LLR-000044 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, for a valid deterministic rational affine transformation, successful grid image and inverse-image operations shall denote the exact image and exact inverse image of the input grid under that transformation.

RATIONALE:

Affine transformations must preserve the appropriate combination of equalities, periods and continuous directions.

COMMENT:

Verification covers grid affine-image and inverse-image operations, retaining this exactness requirement. Related obligations: 🔗 6. Sound affine forward and backward transfers.

VERIFICATION_CRITERIA:

Compute images and preimages independently from rational congruences and generators. Include rational scaling, translations, constant assignments, noninvertible maps and empty grids.

BIBLIOGRAPHY:

BagnaraDHMZ07 | whole work (background)

SOURCE:

doc/definitions.dox: Affine Images and Preimages for Grids. src/Grid_defs.hh: affine image and preimage contracts.

  • PPL-SPEC-001287
    1. Exact rational affine image UID: PPL-SPEC-001287 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    affine_image(var, expr, denominator) shall assign the exact image under x’v = e(x) ⁄ d, with all other coordinates unchanged. denominator defaults to one. The entry denominator value shall be used even when borrowed from a receiver-owned congruence or generator. External expression and scalar values shall be preserved. Zero denominator, an invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers.

    Bounded-coefficient congruence substitution shall clear the denominator, replace the target coefficient and form complete exact coefficients before admission. Proper constants may be reduced modulo the new positive modulus; all coefficients and that modulus may be divided by their common positive factor. Homogeneous coefficients shall not be reduced modulo a modulus. Numeric generator reductions shall complete each subtraction before admission and shall preserve every integer-parameter period. In a discrete generator system, a common physical factor of every point/parameter coordinate and divisor may be cancelled during elimination and restored afterwards. Such working-scale cancellation shall preserve the previous strong-form storage scale and shall not rescale one lattice direction independently.

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

    RATIONALE:

    An affine transformation maps supporting points, integer parameters and real directions exactly; entry scalar capture prevents descriptor invalidation from changing the transformation.

    INTERFACE:

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

    void affine_image(Variable var,
                      const Linear_Expression& expr,
                      Coefficient_traits::const_reference denominator
                      = Coefficient_one());
    
    VERIFICATION_CRITERIA:

    Use independent rational generator transformations for invertible and singular maps, negative denominators, all cache histories, borrowed scalar owners, zero values and dimension rejection.

    BIBLIOGRAPHY:

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

    SOURCE:

    src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Congruence.cc; src/Grid_templates.hh; tests/Grid/affineimage1.cc; tests/Grid/affineimage2.cc; tests/gridoperationsspec1.cc; tests/gridaffineborrow1.cc; tests/gridoperationsfailure1.cc.

  • PPL-SPEC-001288
    2. Exact rational affine preimage UID: PPL-SPEC-001288 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    affine_preimage(var, expr, denominator) shall assign exactly the set of x whose image under x’v = e(x) ⁄ d, with other coordinates unchanged, belongs to the entry receiver. denominator defaults to one. It shall use the entry denominator value even when borrowed from receiver-owned descriptions, and preserve external inputs. Zero denominator, invalid target index or excess expression dimension shall throw std::invalid_argument before mutation, including empty receivers.

    Bounded-coefficient congruence substitution shall clear the denominator, replace the target coefficient and form complete exact coefficients before admission. Proper constants may be reduced modulo the new positive modulus; all coefficients and that modulus may be divided by their common positive factor. Homogeneous coefficients shall not be reduced modulo a modulus. Numeric generator reductions shall complete each subtraction before admission and shall preserve every integer-parameter period. In a discrete generator system, a common physical factor of every point/parameter coordinate and divisor may be cancelled during elimination and restored afterwards. Such working-scale cancellation shall preserve the previous strong-form storage scale and shall not rescale one lattice direction independently.

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

    RATIONALE:

    Substitution in congruences computes inverse images even when the transformation is singular.

    INTERFACE:

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

    void affine_preimage(Variable var,
                         const Linear_Expression& expr,
                         Coefficient_traits::const_reference denominator
                           = Coefficient_one());
    
    VERIFICATION_CRITERIA:

    Check independently substituted congruences, invertible/singular maps, constants, negative denominators, fractional phases, borrowed scalars and invalid arguments under every cache history.

    BIBLIOGRAPHY:

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

    SOURCE:

    src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Congruence.cc; src/Grid_templates.hh; tests/Grid/affinepreimage1.cc; tests/Grid/affinepreimage2.cc; tests/gridoperationsspec1.cc; tests/gridaffineborrow1.cc; tests/gridoperationsfailure1.cc.

  • PPL-SPEC-001289
    3. Generalized variable affine image UID: PPL-SPEC-001289 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For EQUAL, generalized_affine_image(var, relsym, expr, denominator, modulus) shall assign the exact relational image under x’v = e(x) ⁄ d + mk, k ∈ Z, with other coordinates unchanged. Zero modulus shall mean ordinary affine image; either sign of a nonzero modulus shall denote the same period. Defaults are denominator one and modulus zero. Borrowed scalars shall use their entry values. For an ordered inequality and zero modulus, it shall conservatively cylindrify the target. NOT_EQUAL and ordered relations with nonzero modulus are unsupported and shall throw std::invalid_argument before mutation, including on empty receivers. Zero denominator and dimension errors shall likewise be rejected before mutation.

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

    RATIONALE:

    An integer target period represents modular nondeterminism; ignoring an ordered bound still gives a sound coarse grid abstraction.

    INTERFACE:

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

    void
    generalized_affine_image(Variable var,
                             Relation_Symbol relsym,
                             const Linear_Expression& expr,
                             Coefficient_traits::const_reference denominator
                             = Coefficient_one(),
                             Coefficient_traits::const_reference modulus
                             = Coefficient_zero());
    
    VERIFICATION_CRITERIA:

    Check every ordered relation with positive/negative nonzero moduli on marked-empty, unclassified contradictory and nonempty receivers. Require rejection without receiver mutation; zero-modulus ordered relations retain their documented coordinate frame.

    Use independent rational image generators plus the target period, signed and zero moduli, singular maps, borrowed denominators/moduli, inequality cylindrification and rejection controls.

    BIBLIOGRAPHY:

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

    SOURCE:

    tests/Grid/affineadmission1.cc; tests/affinecontractmatrix1.cc; src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/generalizedaffineimage1.cc; tests/Grid/generalizedaffineimage2.cc; tests/gridoperationsspec1.cc; tests/gridaffineborrow1.cc; tests/gridoperationsfailure1.cc.

  • PPL-SPEC-001290
    4. Generalized variable affine preimage UID: PPL-SPEC-001290 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    generalized_affine_preimage(var, relsym, expr, denominator, modulus) shall assign the exact inverse relational image for the EQUAL relation in [LINK: PPL-SPEC-001289]. Defaults, modulus sign, borrowed entry values and rejection scope shall be the same. Ordered inequalities with zero modulus shall conservatively cylindrify the target coordinate of the entry receiver.

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

    RATIONALE:

    Inverse modular substitution must retain both denominator and modulus until the induced inverse period has been formed.

    INTERFACE:

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

    void
    generalized_affine_preimage(Variable var,
                                Relation_Symbol relsym,
                                const Linear_Expression& expr,
                                Coefficient_traits::const_reference denominator
                                = Coefficient_one(),
                                Coefficient_traits::const_reference modulus
                                = Coefficient_zero());
    
    VERIFICATION_CRITERIA:

    Check every ordered relation with positive/negative nonzero moduli on marked-empty, unclassified contradictory and nonempty receivers. Require rejection without receiver mutation; zero-modulus ordered relations retain their documented coordinate frame.

    Check rational range and congruence substitution independently for unit, negative, nonunit and zero target coefficients, signed moduli, singular preimages, borrowed scalar owners and relation/dimension errors.

    BIBLIOGRAPHY:

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

    SOURCE:

    tests/Grid/affineadmission1.cc; tests/affinecontractmatrix1.cc; src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/generalizedaffinepreimage1.cc; tests/Grid/generalizedaffinepreimage2.cc; tests/gridoperationsspec1.cc; tests/gridaffineborrow1.cc; tests/gridoperationsfailure1.cc.

  • PPL-SPEC-001291
    5. Generalized expression affine image UID: PPL-SPEC-001291 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For EQUAL, generalized_affine_image(lhs, relsym, rhs, modulus) shall assign the exact image of the relation lhs(x’) − rhs(x) ∈ mZ, where the coordinates with nonzero coefficients in lhs may change simultaneously and all other coordinates are unchanged. Zero modulus means equality and is the default; modulus sign is immaterial. Constant lhs shall constrain the old state without assigning a coordinate. The modulus shall use its entry value even if borrowed. Ordered inequalities with zero modulus shall conservatively cylindrify the assigned coordinates. NOT_EQUAL or an ordered relation with nonzero modulus shall throw std::invalid_argument before mutation, including on empty receivers. Excess expression dimensions shall likewise be rejected before mutation.

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

    RATIONALE:

    The expression overload is a simultaneous relation, so it must preserve the pre-update meaning of the right-hand side.

    INTERFACE:

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

    void
    generalized_affine_image(const Linear_Expression& lhs,
                             Relation_Symbol relsym,
                             const Linear_Expression& rhs,
                             Coefficient_traits::const_reference modulus
                             = Coefficient_zero());
    
    VERIFICATION_CRITERIA:

    Check every ordered relation with positive/negative nonzero moduli on marked-empty, unclassified contradictory and nonempty receivers. Require rejection without receiver mutation; zero-modulus ordered relations retain their documented coordinate frame.

    Check independent projected generator/range calculations for overlapping and disjoint expression supports, constant sides, signed/zero moduli, borrowed moduli, inequality cylindrification and invalid dimensions.

    BIBLIOGRAPHY:

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

    SOURCE:

    tests/Grid/affineadmission1.cc; tests/affinecontractmatrix1.cc; src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/generalizedaffineimage3.cc; tests/gridoperationsspec1.cc; tests/gridaffineborrow1.cc; tests/gridoperationsfailure1.cc.

  • PPL-SPEC-001292
    6. Generalized expression affine preimage UID: PPL-SPEC-001292 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    generalized_affine_preimage(lhs, relsym, rhs, modulus) shall assign the exact inverse relational image of EQUAL as defined in [LINK: PPL-SPEC-001291]. Assigned coordinates are those occurring in lhs; all others are shared between old and new states. Default modulus, sign, borrowed entry-value and rejection rules shall be the same. Ordered inequalities with zero modulus shall conservatively cylindrify those coordinates of the entry receiver.

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

    RATIONALE:

    The inverse relation constrains the old right-hand-side value by the possible new left-hand-side values.

    INTERFACE:

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

    void
    generalized_affine_preimage(const Linear_Expression& lhs,
                                Relation_Symbol relsym,
                                const Linear_Expression& rhs,
                                Coefficient_traits::const_reference modulus
                                = Coefficient_zero());
    
    VERIFICATION_CRITERIA:

    Check every ordered relation with positive/negative nonzero moduli on marked-empty, unclassified contradictory and nonempty receivers. Require rejection without receiver mutation; zero-modulus ordered relations retain their documented coordinate frame.

    Use independent rational range and congruence calculations for both expression supports, constant cases, signed periods, borrowed moduli, inequalities and dimension/relation rejection.

    BIBLIOGRAPHY:

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

    SOURCE:

    tests/Grid/affineadmission1.cc; tests/affinecontractmatrix1.cc; src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; tests/Grid/generalizedaffinepreimage3.cc; tests/gridoperationsspec1.cc; tests/gridaffineborrow1.cc; tests/gridoperationsfailure1.cc.

PPL-LLR-000433
5. Rational-grid widening facilities UID: PPL-LLR-000433 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT:

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

RATIONALE:

Grid joins alone do not ensure finite stabilization of ascending iterations. Congruence- and generator-based widening need the same stated soundness and convergence obligations.

COMMENT:

The cited proceedings article provides background on the grid construction.

Verification covers grid widening operations, representation choices and inclusion or delay preconditions. Related obligations: 🔗 1. Rational-grid meaning, 🔗 2. Equivalent grid representations, 🔗 3. Grid intersection and grid hull, 🔗 6. Compound extrapolation and finite convergence.

VERIFICATION_CRITERIA:

Review the convergence argument for each supported grid widening and check containment during independently described ascending iterations. Include changing periods, affine equalities, empty and universe grids, alternate representations and exhaustion of a finite delay budget.

BIBLIOGRAPHY:

BagnaraDHMZ07 | Whole work (background on grid operations).

SOURCE:

doc/definitions.dox: Grid Widening Operators; Grid Widening with Tokens. src/Grid_defs.hh: congruence, generator and default grid widening. src/Grid_widenings.cc: supported grid widening algorithms.

  • 1. Congruence widening and finite delay UID: PPL-SPEC-001307 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    congruence_widening_assign(y,tp) requires Y ⊆ X and shall return a grid containing X, preserving dimension and the operand value. Empty previous, empty current and zero dimensions shall preserve the receiver. After normalization, if the current grid has fewer independent equalities than the previous one, it shall retain the current grid. Otherwise it shall retain all current equalities and the current proper congruences whose corresponding normalized pivot coefficients agree with the previous description, discarding other proper rows. A sequence with fixed coordinate order and finite delay shall stabilize.

    With tp null or pointing to zero, the computed widening shall be assigned. With a positive token count, the entry grid shall be retained and one token consumed exactly when the computed widening strictly enlarges it. The token object shall be separate writable storage. Unequal dimensions shall throw std::invalid_argument before mutation. Failure guarantees shall not imply rollback of tokens.

    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:

    Pivot-stable normalized congruences give a finite descending certificate while retaining modular information. The published paper defines both widenings; the technical report supplies the full congruence-widening proof and certificate discussion.

    INTERFACE:

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

    void congruence_widening_assign(const Grid& y, unsigned* tp = nullptr);
    
    VERIFICATION_CRITERIA:

    Check normalized-pivot selection, strict chains, equality-dimension growth, fixed points, zero/positive tokens, empty and zero-dimensional cases, source preservation and dimension errors.

    BIBLIOGRAPHY:

    BagnaraDHMZ07 | Section 5, Definitions 5–8 and Proposition 9 (printed pages 13–14). BagnaraDHMZ05TR | Section 6, Definitions 4–6, Proposition 11, finite convergence certificate and limited extrapolation (printed pages 19–22).

    SOURCE:

    src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_widenings.cc; src/Grid_Certificate_defs.hh; src/Grid_Certificate_inlines.hh; src/Grid_Certificate.cc; tests/Grid/widening1.cc; tests/gridoperationsspec1.cc; tests/gridconvergencespec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.

  • PPL-SPEC-001308
    2. Generator widening and finite delay UID: PPL-SPEC-001308 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    generator_widening_assign(y,tp) shall obey the inclusion, dimensions, empty cases and finite-token rules in 🔗 1. Congruence widening and finite delay. It shall normalize generator descriptions. If the current grid has more generators or real lines than the previous grid, it shall retain the current grid. Otherwise it shall retain the supporting point and real lines, retain parameters with unchanged corresponding normalized pivots, and replace changed parameter directions by real lines. With fixed coordinate order and finite delay, increasing iterations shall stabilize.

    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:

    Promoting changing discrete directions to real directions forces finite progress while preserving the current grid.

    INTERFACE:

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

    void generator_widening_assign(const Grid& y, unsigned* tp = nullptr);
    
    VERIFICATION_CRITERIA:

    Check independent parameter/line promotion cases and ascending lattice chains, point phases, tokens, generator/congruence caches, zero dimensions and invalid dimensions.

    BIBLIOGRAPHY:

    BagnaraDHMZ07 | Section 5, Definitions 5–8 and Proposition 9 (printed pages 13–14).

    SOURCE:

    src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_widenings.cc; src/Grid_Certificate_defs.hh; src/Grid_Certificate_inlines.hh; src/Grid_Certificate.cc; tests/Grid/widening2.cc; tests/gridoperationsspec1.cc; tests/gridconvergencespec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.

  • PPL-SPEC-001309
    3. Representation-selected default grid widening UID: PPL-SPEC-001309 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    widening_assign(y,tp) shall select congruence widening when both congruence descriptions are current, otherwise generator widening when both generator descriptions are current. For mixed histories it may choose either strategy and normalize the required descriptions. It shall obey the common inclusion, dimension, empty and finite-token rules in 🔗 1. Congruence widening and finite delay. The selected strategy may affect precision; identical output across different cache histories is not required. With fixed coordinate order and finite delay, increasing iterations shall stabilize, including when available descriptions change the selected strategy between calls.

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

    RATIONALE:

    The default strategy exploits available descriptions without promising identical precision from the two distinct widenings.

    INTERFACE:

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

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

    Check each cache-selection route against the corresponding named widening and check containment, tokens, fixed points and convergence on ascending chains.

    BIBLIOGRAPHY:

    BagnaraDHMZ07 | Section 5, Definitions 5–8 and Proposition 9 (printed pages 13–14).

    SOURCE:

    src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_widenings.cc; src/Grid_Certificate_defs.hh; src/Grid_Certificate_inlines.hh; src/Grid_Certificate.cc; tests/Grid/widening3.cc; tests/gridoperationsspec1.cc; tests/gridconvergencespec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.

  • PPL-SPEC-001310
    4. Congruence-limited extrapolations UID: PPL-SPEC-001310 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    limited_congruence_extrapolation_assign, limited_generator_extrapolation_assign and limited_extrapolation_assign shall require Y ⊆ X and apply their corresponding named or default widening, then intersect with the supplied limiter congruences satisfied by every entry point of X. Valid equalities already retained by widening need not be inserted redundantly. With an empty limiter they shall have exactly the corresponding widening's mathematical result and token effect. Finite-token behavior shall follow 🔗 1. Congruence widening and finite delay. The result shall contain the entry receiver, preserve ambient dimension and preserve external limiter/operand values. Unequal grid dimensions or excess limiter dimension shall throw std::invalid_argument before mutation. Convergence requires the usual widening iteration and a fixed finite limiter set; changing limiters provide only extrapolation guarantees.

    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:

    Limiting restores established entry invariants, and an empty limiter must not silently switch the named widening strategy. The report gives the additional extrapolation details.

    INTERFACE:

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

    void limited_congruence_extrapolation_assign(const Grid& y,
                                                 const Congruence_System& cgs,
                                                 unsigned* tp = nullptr);
    
    void limited_generator_extrapolation_assign(const Grid& y,
                                                const Congruence_System& cgs,
                                                unsigned* tp = nullptr);
    
    void limited_extrapolation_assign(const Grid& y,
                                      const Congruence_System& cgs,
                                      unsigned* tp = nullptr);
    
    VERIFICATION_CRITERIA:

    Compare all three variants with their corresponding widenings for empty, satisfied, unsatisfied and mixed limiter rows; check generator-only caches, tokens, ascending chains, empty grids and invalid dimensions.

    BIBLIOGRAPHY:

    BagnaraDHMZ07 | Section 5, Definitions 5–8 and Proposition 9 (printed pages 13–14). BagnaraDHMZ05TR | Section 6, Definitions 4–6, Proposition 11, finite convergence certificate and limited extrapolation (printed pages 19–22).

    SOURCE:

    src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_widenings.cc; src/Grid_Certificate_defs.hh; src/Grid_Certificate_inlines.hh; src/Grid_Certificate.cc; tests/Grid/limitedextrapolation1.cc; tests/Grid/limitedextrapolation2.cc; tests/Grid/limitedextrapolation3.cc; tests/gridoperationsspec1.cc; tests/gridconvergencespec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.

  • PPL-SPEC-001311
    5. Grid convergence certificates UID: PPL-SPEC-001311 STATUS: APPROVED COMPONENT: GRIDS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Grid_Certificate shall represent the lexicographic pair (e, p): the number of independent equalities and the number of proper congruence rows in a minimal description of a nonempty grid. In positive ambient dimension, p includes the normalization congruence and is one plus the number of independent discrete parameter directions. The grid-taking constructor and grid-taking comparison/stabilization queries require a nonempty grid. Default construction shall represent the zero-dimensional-universe certificate (0, 0); copying and assignment shall preserve the pair.

    compare shall return minus one, zero or plus one for a smaller, equal or greater pair. is_stabilizing(gr) shall return exactly whether this pair is strictly greater than gr's pair. Compare shall order greater pairs first. OK() shall return true for certificates constructed through this interface. Computing a certificate may normalize grid caches but shall preserve its mathematical value. The two counts are the finite progress measure for compatible Grid widenings; they do not encode the grid's phase or coefficients.

    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:

    Finite structural counts support powerset convergence without storing an entire represented grid. The report supplies the certificate construction.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. The compiler-supplied copy assignment preserves the certificate counts.

    class Grid_Certificate {
    public:
      Grid_Certificate();
      Grid_Certificate(const Grid& gr);
      Grid_Certificate(const Grid_Certificate& y);
      ~Grid_Certificate();
      int compare(const Grid_Certificate& y) const;
      int compare(const Grid& gr) const;
      bool is_stabilizing(const Grid& gr) const;
      struct Compare {
        bool operator()(const Grid_Certificate& x,
                        const Grid_Certificate& y) const;
      };
      bool OK() const;
    };
    
    VERIFICATION_CRITERIA:

    Compute equality and parameter ranks independently for empty-excluded product/coupled grids and every cache route. Check defaults, copies, assignment, comparison signs, equal-count distinct grids, reverse ordering and stabilization equivalence.

    BIBLIOGRAPHY:

    BagnaraDHMZ07 | Section 5, Definitions 5–8 and Proposition 9 (printed pages 13–14). BagnaraDHMZ05TR | Section 6, Definitions 4–6, Proposition 11, finite convergence certificate and limited extrapolation (printed pages 19–22).

    SOURCE:

    src/Grid_defs.hh; src/Grid_inlines.hh; src/Grid_public.cc; src/Grid_nonpublic.cc; src/Grid_widenings.cc; src/Grid_Certificate_defs.hh; src/Grid_Certificate_inlines.hh; src/Grid_Certificate.cc; tests/Grid/certificate1.cc; tests/gridoperationsspec1.cc; tests/gridconvergencespec1.cc; tests/gridoperationsfailure1.cc; tests/gridedgespec1.cc.

  • PPL-SPEC-001463
    1. Product component widening and convergence scope UID: PPL-SPEC-001463 STATUS: APPROVED COMPONENT: DOMAIN_COMBINATIONS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The set represented by y shall be contained in the set represented by the receiver. Default widening shall reduce both operands and mark the receiver's reduction unknown. If a reduced receiver component does not contain the corresponding reduced component of y, replace that receiver component with their upper bound before component widening. Both default component widenings shall receive the same optional token budget. The resulting intersection shall contain both input products.

    widening_assign_with(y, widening1, widening2, tokens) shall perform the same input reductions and receiver reduction-state invalidation. The reduced component pairs shall already meet the selected preconditions. It shall invoke widening1 on the first pair of components before invoking widening2 on the second pair. Both shall receive the same optional token pointer. Callables shall be forwarded with their supplied value categories, without copying or storing them. They shall meet the selected component widening's preconditions and preserve its ambient dimension and upper-bound guarantees.

    If a component callable throws, the exception shall propagate, subsequent callables shall not be invoked, and earlier component and token effects shall remain. The receiver shall be marked for lazy reduction. No whole-operation rollback shall be promised. The existing widening_assign member shall remain unambiguous when taking its address.

    For direct and smash policies, the component convergence guarantees shall be preserved under their iteration and finite-delay conditions. For information- sharing policies, this operation shall be treated as componentwise extrapolation unless a separate combined convergence proof is supplied: reduction between iterations can restore discarded bounds. To use component convergence with sharing operations, a separate direct-product widening history shall remain free of sharing reduction, with reduced copies used for information exchange.

    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:

    Restoring a discarded constraint through another component can prevent finite stabilization. Caller-selected component widenings expose the component domains' precision choices without changing the default operation or storing additional state in the product.

    INTERFACE:

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

    void widening_assign(const Partially_Reduced_Product&, unsigned* tokens=nullptr);
    template <typename Widening1, typename Widening2>
    void widening_assign_with(const Partially_Reduced_Product&,
                              Widening1&&, Widening2&&, unsigned* tokens=nullptr);
    
    VERIFICATION_CRITERIA:

    Check upper-bound inclusion, shared token changes, direct/smash stabilization, and default widening after a join that leaves incomparable reduced components; review history separation. Compare selected component algorithms with independent component calls using the same token budget. Check lvalue and rvalue noncopyable callables, component invocation order, exceptions in either callable, deferred reduction after exceptions, default member-address compatibility and self-aliasing.

    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/widening1.cc; tests/Partially_Reduced_Product/selectedwidenings1.cc.