Parma Polyhedra Library requirements
Octagonal abstractions

Octagonal abstractions

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

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

RATIONALE:

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

COMMENT:

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

VERIFICATION_CRITERIA:

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

BIBLIOGRAPHY:

BagnaraHZ09FMSD | whole work (background)

SOURCE:

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

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

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

RATIONALE:

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

COMMENT:

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

VERIFICATION_CRITERIA:

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

BIBLIOGRAPHY:

BagnaraHZ09FMSD | whole work (background)

SOURCE:

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

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

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

RATIONALE:

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

COMMENT:

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

VERIFICATION_CRITERIA:

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

BIBLIOGRAPHY:

BagnaraHZ09FMSD | whole work (background)

SOURCE:

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

4. Preservation of integer points during octagonal refinement
UID: PPL-LLR-000064
STATUS: APPROVED
COMPONENT: OCTAGONS
APPLICABILITY: ALL
VERIFICATION_METHODS: Test, Analysis
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

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

RATIONALE:

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

COMMENT:

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

VERIFICATION_CRITERIA:

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

BIBLIOGRAPHY:

BagnaraHZ09FMSD | whole work (background)

SOURCE:

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

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

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

RATIONALE:

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

COMMENT:

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

VERIFICATION_CRITERIA:

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

BIBLIOGRAPHY:

BagnaraHZ09FMSD | whole work (background)

SOURCE:

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