Parma Polyhedra Library requirements
C++ bounded-difference convergence operators
1. Threshold bounded-difference extrapolation and precision-sensitive tokens PPL-SPEC-001120

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.

PPL-SPEC-001121
2. Default bounded-difference stop points PPL-SPEC-001121

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.

PPL-SPEC-001122
3. Semantic bounded-difference widening PPL-SPEC-001122

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.

PPL-SPEC-001123
4. Limited semantic bounded-difference extrapolation PPL-SPEC-001123

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.

PPL-SPEC-001124
5. Bounded-difference narrowing and descending operand order PPL-SPEC-001124

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.

PPL-SPEC-001125
6. Limited threshold bounded-difference extrapolation PPL-SPEC-001125

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.

7. Polyhedral standard widening of bounded-difference values PPL-SPEC-001126

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.

PPL-SPEC-001127
8. Polyhedral limited extrapolation of bounded-difference values PPL-SPEC-001127

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.