Parma Polyhedra Library requirements
C++ bounded-difference convergence operators

C++ bounded-difference convergence operators

1. Threshold bounded-difference extrapolation and precision-sensitive tokens
UID: PPL-SPEC-001120
STATUS: APPROVED
COMPONENT: BOUNDED_DIFFERENCES
APPLICABILITY: IF_CPP
VERIFICATION_METHODS: Test, Analysis, Inspection
LANGUAGE: CPP
VISIBILITY: Public
RELATIONS (Parent):
STATEMENT:

Let Y be the argument's entry set and X the receiver's entry set, with Y ⊆ X. The explicit-iterator CC76_extrapolation_assign shall produce a bounded-difference enclosure of X, preserving the ambient dimension. An empty argument shall leave the receiver's represented set unchanged. Empty and universe in zero dimensions shall retain their distinct meanings; self-aliasing shall preserve the represented set.

For nonempty operands under unbounded exact arithmetic, let bZ(v) = sup{v⋅p ∣ p ∈ Z} for each unary or coordinate-difference normal v. With no available delay token, a stable finite bound bX(v) = bY(v) shall be retained. An increasing bound bX(v) > bY(v) shall move to the least supplied threshold not below bX(v), or become unbounded when there is no such threshold. An already unbounded bound shall remain unbounded. The result shall be the conjunction of these closed upper inequalities. General closed bounded-difference iterations of this extrapolation shall not carry a finite-stabilization guarantee.

Other supported profiles shall apply this comparison-and-threshold rule to an outward closed bound representation preserving the entry sets under [LINK: PPL-SPEC-001056]. Assigning a selected threshold shall round outward in the selected profile. This shall not exclude any point of X; rounded closure shall not be required to supply exact support values.

The half-open threshold range shall use readable multipass forward iterators. Its values shall be finite, sorted in nondecreasing numerical order and stable throughout the call. Empty ranges and duplicate values shall be admitted. Comparison with the selected coefficient type and outward assignment to that type shall satisfy their numerical contracts. The range shall not borrow storage invalidated or modified by the call.

A null token pointer or a zero counter shall select the undelayed result. With a positive counter the receiver's represented set shall remain X; the counter shall decrease by exactly one if the corresponding undelayed result strictly enlarges X, and otherwise remain unchanged. The counter shall be a live, separately owned, externally synchronized writable unsigned object. The argument, range and any distinct source value shall remain unchanged.

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 or supplied token counter. 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:

Scalar stop points control the loss of individual difference bounds. Closing a relational representation can recover discarded information, so this extrapolation must remain distinct from a proven semantic widening.

INTERFACE:

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

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

Compute exact primitive support bounds with independent rational elimination and select thresholds from mathematical ordered sets. Exercise strict changes, stable and unbounded bounds, exact hits, empty/duplicate ranges, pointer/vector/forward-list iterators, source/range ownership, all token states, self-aliasing, classified and lazy emptiness and dimension rejection. For rounded profiles check containment and defined outward assignment without assuming a canonical closure.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | Section 3.1, Definition 2 and the following convergence discussion (PDF index 5). BagnaraHRZ05SCP | Section 7, widening with tokens (PDF index 29).

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

PPL-SPEC-001121
2. Default bounded-difference stop points
UID: PPL-SPEC-001121
STATUS: APPROVED
COMPONENT: BOUNDED_DIFFERENCES
APPLICABILITY: IF_CPP
VERIFICATION_METHODS: Test, Analysis, Inspection
LANGUAGE: CPP
VISIBILITY: Public
RELATIONS (Parent):
STATEMENT:

CC76_extrapolation_assign(y,tp) shall have the behavior of [LINK: PPL-SPEC-001120] with the ordered mathematical stop points  − 2,  − 1, 0, 1, 2, interpreted through the selected profile's outward bound operations. Stop points already exactly representable shall retain their values. A stop point below every admitted finite bound shall not create an extra restriction.

The mathematical operand order, compatible dimensions, source preservation, aliases, empty/zero-dimensional cases and precision-sensitive token rule shall be those of 🔗 1. Threshold bounded-difference extrapolation and precision-sensitive tokens. A positive token counter shall retain the receiver's entry set and shall be decremented only for an undelayed strict enlargement. Sharing the default stop-point objects among calls shall not change represented results or token decisions.

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 or supplied token counter. 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:

A fixed default threshold set makes the convenience overload predictable while retaining the same delay policy and relational convergence limits as the explicit overload.

INTERFACE:

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

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

Compare against the independent five-stop transition model and the explicit overload. Include exact hits, changes beyond the last stop point, both unary directions, differences, repeated token use, null/zero counters, aliases, empty/lazy/zero-dimensional cases, selected integral/native profiles and required rounding-state preservation.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | Section 3.1, Definition 2 and extrapolation versus widening (PDF index 5). BagnaraHRZ05SCP | Section 7, widening with tokens (PDF index 29).

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

PPL-SPEC-001122
3. Semantic bounded-difference widening
UID: PPL-SPEC-001122
STATUS: APPROVED
COMPONENT: BOUNDED_DIFFERENCES
APPLICABILITY: IF_CPP
VERIFICATION_METHODS: Test, Analysis, Inspection
LANGUAGE: CPP
VISIBILITY: Public
RELATIONS (Parent):
STATEMENT:

With argument entry set Y contained in receiver entry set X, BHMZ05_widening_assign shall produce a bounded-difference set containing both. An empty argument, a singleton argument, or an increase of affine dimension from Y to X shall retain X.

For equal positive affine dimension under unbounded exact arithmetic, the undelayed result shall be the semantic standard widening: choose a nonredundant bounded-difference inequality description of Y, retain the inequalities satisfied by all points of X, and conjoin them. Equivalent descriptions, redundant bounds, closure/reduction histories and choices of an irredundant basis shall not change the represented result. This shall not require a least widening or strict precision loss at every call. Supported rounded arithmetic shall preserve inclusion and the stated semantic and convergence obligations under 🔗 1. Bounded-difference values, numerical profiles and valid use.

The token rule shall be the precision-sensitive rule of [LINK: PPL-SPEC-001120], using this operator's undelayed result. Self-aliasing shall retain the entry set and not consume a token.

For a fixed dimension and profile, an ascending iteration shall first enclose the preceding widened result and the next input, then apply this operator with that enclosure as receiver and the preceding result as argument. Under its inclusion and arithmetic prerequisites, the represented results shall stabilize after finitely many strict changes. A finite initial token budget, without replenishment, shall preserve this guarantee.

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 or supplied token counter. 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:

Removing redundant restrictions before testing stability prevents closure from defeating widening. The affine-dimension guard gives a semantic operation independent of a chosen graph basis.

INTERFACE:

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

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

Build an irredundant description by independent halfspace implication, filter it by the current set and compare exact results by rational elimination. Include full-dimensional and affine sets, changing affine dimension, stable facets, redundancy/order/cache histories, all token outcomes, source preservation and aliases. Check upper-bound inclusions throughout representative ascending recurrences and inspect the finite-convergence argument separately.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | Sections 3.2-3.3, Definition 3; Section 4.2, Definition 11, Theorem 2 and the explicit BDS extension (PDF indices 6-7 and 14). BagnaraHZ09FMSD | Appendix A.4, Proposition 1 (PDF index 38). BagnaraHRZ05SCP | Section 7, widening with tokens (PDF index 29).

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

PPL-SPEC-001123
4. Limited semantic bounded-difference extrapolation
UID: PPL-SPEC-001123
STATUS: APPROVED
COMPONENT: BOUNDED_DIFFERENCES
APPLICABILITY: IF_CPP
VERIFICATION_METHODS: Test, Analysis, Inspection
LANGUAGE: CPP
VISIBILITY: Public
RELATIONS (Parent):
STATEMENT:

For Y ⊆ X, limited_BHMZ05_extrapolation_assign shall combine the semantic widening of 🔗 3. Semantic bounded-difference widening with selected limiting bounds.

The limiting system shall have dimension at most the common operand dimension and contain no strict inequality; larger dimensions and any strict row shall throw std::invalid_argument before changing the receiver or token counter, including empty and zero-dimensional cases.

For nonempty positive-dimensional exact-profile operands, selection shall use the entry receiver X. Recognized nonconstant rows shall be unary bounds or differences with opposite coefficients of equal magnitude. Normalize every recognized inequality outward in the selected coefficient profile. A recognized equality shall contribute both normalized opposite inequalities together only when both hold throughout X. A recognized inequality shall be selected when its normalized bound holds throughout X. Unsupported forms shall be ignored. Constant tautologies shall impose no restriction and false constants shall not be selected on a nonempty receiver.

Let L be the bounded-difference conjunction of the selected normalized bounds. With rounded closure the eligibility test may use its sound outward profile bounds as in 🔗 1. Bounded-difference values, numerical profiles and valid use; selection shall remain sound for X. The original, unnormalized limiting constraints need not all hold in the result. Selected inequalities can be weaker after outward scalar normalization.

Let W be the delayed or undelayed base widening result, with its token decision made before applying L. The result shall denote W∩L; it shall contain X and be contained in W. Positive available tokens shall therefore retain X, while their consumption shall follow the undelayed base widening rather than the final limited result.

An empty previous argument, an empty receiver or zero-dimensional operands shall retain the receiver's entry set without consuming a token. A distinct argument and the supplied system shall retain their represented values; self-aliasing shall be admitted.

A fixed finite limiting system, fixed dimension/profile, admitted exact comparisons and normalization, and a finite unreplenished token budget shall retain finite stabilization in the prescribed ascending recurrence. Arbitrarily replacing the limiting system shall carry no general convergence guarantee.

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 or supplied token counter. 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:

Satisfied normalized limits can recover selected information after a widening without turning unsupported relational rows into undocumented facets.

INTERFACE:

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

void limited_BHMZ05_extrapolation_assign(const BD_Shape& y,
  const Constraint_System& cs, unsigned* tp = nullptr);
VERIFICATION_CRITERIA:

Independently select normalized recognized bounds, compute the base semantic widening and intersect both models. Cover scalings/signs, equalities selected as a pair, ignored general linear rows, exact/inexact scalar bounds, duplicate systems, finite-limit recurrences, tokens consumed before limiting, source ownership, empty/cache histories, strict rejection and incompatible dimensions.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | Sections 3.2-3.3 and Section 4.2, semantic widening and its BDS extension (PDF indices 6-7 and 14). BagnaraHRZ05SCP | Section 7, tokens and widening up to a fixed finite constraint set (PDF indices 29-30).

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/limitedbhmz05extrapolation1.cc; tests/BD_Shape/limitedcc76extrapolation1.cc.

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-001125
6. Limited threshold bounded-difference extrapolation
UID: PPL-SPEC-001125
STATUS: APPROVED
COMPONENT: BOUNDED_DIFFERENCES
APPLICABILITY: IF_CPP
VERIFICATION_METHODS: Test, Analysis, Inspection
LANGUAGE: CPP
VISIBILITY: Public
RELATIONS (Parent):
STATEMENT:

For Y ⊆ X, limited_CC76_extrapolation_assign shall combine the default threshold extrapolation of 🔗 2. Default bounded-difference stop points with selected limiting bounds.

The limiting system shall have dimension at most the common operand dimension and contain no strict inequality; larger dimensions and any strict row shall throw std::invalid_argument before changing the receiver or token counter, including empty and zero-dimensional cases.

For nonempty positive-dimensional exact-profile operands, selection shall use the entry receiver X. Recognized nonconstant rows shall be unary bounds or differences with opposite coefficients of equal magnitude. Normalize every recognized inequality outward in the selected coefficient profile. A recognized equality shall contribute both normalized opposite inequalities together only when both hold throughout X. A recognized inequality shall be selected when its normalized bound holds throughout X. Unsupported forms shall be ignored. Constant tautologies shall impose no restriction and false constants shall not be selected on a nonempty receiver.

Let L be the bounded-difference conjunction of the selected normalized bounds. With rounded closure the eligibility test may use its sound outward profile bounds as in 🔗 1. Bounded-difference values, numerical profiles and valid use; selection shall remain sound for X. The original, unnormalized limiting constraints need not all hold in the result. Selected inequalities can be weaker after outward scalar normalization.

Let W be that default extrapolation, including its token decision before applying the limits. The result shall denote W∩L, containing X and contained in W. Positive tokens shall retain X and be consumed according to the undelayed base extrapolation, even if limiting would restore the lost information.

An empty argument, an empty receiver or zero-dimensional operands shall retain the entry receiver set and counter. The supplied system and distinct argument shall retain their values; self-aliasing shall be admitted. This operation remains a relational extrapolation without a general finite-stabilization guarantee for arbitrary closed-shape iterations.

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 or supplied token counter. 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:

The limiting construction has the same recognized descriptor fragment as limited semantic widening, but does not upgrade threshold graph extrapolation into a general widening.

INTERFACE:

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

void limited_CC76_extrapolation_assign(const BD_Shape& y,
  const Constraint_System& cs, unsigned* tp = nullptr);
VERIFICATION_CRITERIA:

Use the independent default-threshold model and normalized-limit selection, then compare the resulting intersection. Check unsupported constraints, scaled/equality limits, outward conversion, finite hits and rays, positive/zero/null counters, base-loss versus final-loss decisions, empty/cache histories, aliases, strict rows and dimension rejection.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | Sections 3.1 and 3.3, graph extrapolation and limiting precision (PDF indices 5 and 7). BagnaraHRZ05SCP | Section 7, tokens and fixed limiting systems (PDF indices 29-30).

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/limitedcc76extrapolation1.cc; tests/BD_Shape/cc76extrapolation1.cc.

7. Polyhedral standard widening of bounded-difference values
UID: PPL-SPEC-001126
STATUS: APPROVED
COMPONENT: BOUNDED_DIFFERENCES
APPLICABILITY: IF_CPP
VERIFICATION_METHODS: Test, Analysis, Inspection
LANGUAGE: CPP
VISIBILITY: Public
RELATIONS (Parent):
STATEMENT:

For Y ⊆ X, H79_widening_assign shall compute the standard H79 widening of the closed polyhedra denoted by the entry operands and convert the result to the selected bounded-difference profile. The conversion shall follow 🔗 2. Complexity-sensitive bounded-difference conversion from polyhedra. widening_assign shall have the same mathematical result and token behavior.

The result shall contain both entry sets. With exact representable arithmetic, the standard widening result for bounded-difference inputs shall retain its mathematical meaning. Supported rounded conversion shall be conservative under 🔗 1. Bounded-difference values, numerical profiles and valid use. On nonempty equal-affine-dimension operands, the standard polyhedral result shall be characterized by retaining from an irredundant inequality description of Y precisely the inequalities satisfied throughout X.

The precision-sensitive token policy of 🔗 1. Threshold bounded-difference extrapolation and precision-sensitive tokens shall be applied to the intermediate polyhedral widening before conversion. A positive counter shall retain the receiver's entry set and decrease only for a strict undelayed widening enlargement. Empty previous arguments, self-aliasing and zero-dimensional values shall retain their usual upper-bound meanings.

For fixed dimension/profile and a finite unreplenished initial token budget, the prescribed ascending recurrence shall stabilize under its mathematical inclusion and arithmetic prerequisites. Convergence shall not depend on a redundant source description or on when closure/export queries were performed. No least-widening or strict-progress requirement shall be inferred.

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 or supplied token counter. 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:

The standard semantic widening is defined on represented polyhedra. Conversion back to a bounded-difference value must preserve its soundness and distinguish numerical abstraction from the widening decision.

INTERFACE:

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

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

For equal affine dimension independently form and filter an irredundant description. For affine-dimension changes independently construct current supporting faces of the previous set, test their emptiness and compute their exact affine dimensions to distinguish facets and equalities from smaller faces. Check exact rational results, numeric inclusions, the public alias, affine-dimension changes, empty/universe/lazy/zero-dimensional values, representations and source preservation. Exercise tokens and representative converging recurrences; inspect the semantic-convergence and conversion argument separately.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | Section 3.2, closure under standard widening; Appendix A.4, Proposition 1 (PDF indices 6 and 38). BagnaraHRZ05SCP | Section 7, widening with tokens (PDF index 29).

SOURCE:

src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; src/Polyhedron_widenings.cc; doc/definitions.dox (user-manual section BD_H79_Standard_Widening); 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/h79widening1.cc; tests/BD_Shape/closure1.cc.

PPL-SPEC-001127
8. Polyhedral limited extrapolation of bounded-difference values
UID: PPL-SPEC-001127
STATUS: APPROVED
COMPONENT: BOUNDED_DIFFERENCES
APPLICABILITY: IF_CPP
VERIFICATION_METHODS: Test, Analysis, Inspection
LANGUAGE: CPP
VISIBILITY: Public
RELATIONS (Parent):
STATEMENT:

For Y ⊆ X, limited_H79_extrapolation_assign shall first interpret the entry sets as closed polyhedra, compute polyhedral limited H79 extrapolation using the supplied constraint system, and convert that result under 🔗 2. Complexity-sensitive bounded-difference conversion from polyhedra. The system dimension shall not exceed the common operand dimension and shall contain no strict row; invalid dimensions or strictness shall throw std::invalid_argument before changing receiver or counter, including empty and zero-dimensional cases.

For nonempty positive-dimensional inputs, every supplied non-strict constraint satisfied by the entry receiver shall be eligible for the intermediate polyhedral intersection. General linear forms shall be admitted; selection shall not be restricted to unary and coordinate-difference rows. The intermediate result shall be the base H79 widening intersected with the selected constraints. Its token decision shall precede that intersection and follow 🔗 7. Polyhedral standard widening of bounded-difference values.

The final bounded-difference result shall contain X. Facets outside the domain and outward scalar conversion may prevent that result from satisfying the original limiting constraints. For example, a selected two-variable sum can influence the intermediate polyhedron even though it is absent from the final template description.

An empty previous argument, an empty receiver or zero-dimensional operands shall retain the receiver's entry set and counter. A distinct argument and the supplied system shall preserve their values, and self-aliasing shall be admitted. A fixed finite limiting system and finite unreplenished token budget shall preserve finite stabilization under the standard polyhedral widening's ascending recurrence and arithmetic prerequisites. Arbitrarily changing the limiting system shall carry no general convergence guarantee.

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 or supplied token counter. 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:

General limiting facets can affect the intermediate polyhedron before template abstraction. Treating them as ignored rows or demanding every facet survive conversion would give different contracts.

INTERFACE:

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

void limited_H79_extrapolation_assign(const BD_Shape& y,
  const Constraint_System& cs, unsigned* tp = nullptr);
VERIFICATION_CRITERIA:

Independently filter raw general halfspaces by exact implication, intersect them with the standard widening model and project every primitive bounded-difference support. Include a triangle from a non-difference sum limit, selected/rejected equalities, normalization/scaling, tokens consumed before limiting, fixed-limit recurrences, aliases, lazy emptiness, strict rejection, all dimension checks and exact versus outward numerical conversion.

BIBLIOGRAPHY:

BagnaraHZ09FMSD | Section 3.2 and Appendix A.4, standard widening semantics (PDF indices 6 and 38). BagnaraHRZ05SCP | Section 7, widening up to a fixed finite constraint set (PDF index 30).

SOURCE:

src/BD_Shape_defs.hh; src/BD_Shape_inlines.hh; src/BD_Shape_templates.hh; src/Polyhedron_widenings.cc; doc/definitions.dox (user-manual section BD_H79_Standard_Widening); 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/limitedh79extrapolation1.cc; tests/BD_Shape/limitedcc76extrapolation1.cc.