Parma Polyhedra Library requirements
Internal watchdog time-interval values
1. Normalized nonnegative microsecond interval values PPL-SPEC-000821

Time shall represent an exact nonnegative integral number of microseconds, with maximum value 106  LONG_MAX + 999999. A valid completed value shall have whole seconds in [0,  LONG_MAX] and a residual microsecond count in [0, 999999]. This raw value interface shall be available independently of operating-system watchdog-timer support and shall not require PPL initialization or floating-point state.

Constructor inputs shall satisfy their stated nonnegative argument preconditions. Concurrent access shall retain ordinary C++ object synchronization requirements. An interval value shall not itself promise elapsed-time measurement, timer resolution or notification scheduling.

PPL-SPEC-000822
2. Zero and centisecond construction PPL-SPEC-000822

Default construction shall produce the zero interval. Construction from a nonnegative long centisecond count c shall produce exactly 10000c microseconds in normalized form. Every nonnegative long centisecond value, including LONG_MAX, shall be representable by this conversion. Construction shall retain the allocation-free value protocol of 🔗 9. Allocation-free value operations and fatal range policy.

PPL-SPEC-000823
3. Second/microsecond normalization and excessive results PPL-SPEC-000823

For nonnegative long arguments s and m, two-argument construction shall represent exactly 106s + m microseconds when that result is within 🔗 1. Normalized nonnegative microsecond interval values. Microseconds at or above one million shall be carried into whole seconds and reduced to a residual less than one million. If this nonnegative mathematical result exceeds the representable maximum, construction shall call std::abort under 🔗 9. Allocation-free value operations and fatal range policy, without signed arithmetic overflow or a constructed C++ exception.

PPL-SPEC-000824
4. Independent value copies and assignment PPL-SPEC-000824

Copy construction and assignment shall preserve the exact interval value in independent scalar state. Rvalue construction/assignment shall retain the same value semantics, leaving the source value unchanged. Self-assignment shall preserve the interval. Assignment shall return the target object. No copy shall share owned duration state or require allocation, and ordinary destruction shall require no external resource cleanup.

PPL-SPEC-000825
5. Whole-second, residual-microsecond and validity queries PPL-SPEC-000825

For a valid completed interval, seconds() shall return its whole second count and microseconds() its normalized residual, so their mathematical combination equals the exact value. OK() shall test the stored normalization conditions: nonnegative whole seconds and a residual in [0, 999999]. The queries shall preserve the value and require no allocation. They shall not provide a memory-safe validity check for arbitrary corrupted storage or remove constructor preconditions.

PPL-SPEC-000826
6. Exact interval ordering and equality PPL-SPEC-000826

The six comparison operators shall compare exact total-microsecond values. Equality shall hold exactly for the same duration, regardless of which admitted normalization inputs produced it. Strict and nonstrict order shall have their ordinary mathematical meanings and inequality shall negate equality. Comparing valid values shall not change either operand, allocate or depend on the current clock.

PPL-SPEC-000827
7. Exact addition, aliasing and representability failure PPL-SPEC-000827

For valid operands with a representable sum, compound addition shall replace the target by their exact total-microsecond sum, normalized into seconds and residual microseconds, and return the target object. Adding an object to itself shall use its value on entry. Free addition shall produce the same exact value without changing either input.

If the exact sum exceeds 🔗 1. Normalized nonnegative microsecond interval values, both forms shall call std::abort under 🔗 9. Allocation-free value operations and fatal range policy before signed arithmetic overflow, without constructing a C++ exception. A valid microsecond carry shall be included in that representability decision.

PPL-SPEC-000828
8. Saturating nonnegative interval subtraction PPL-SPEC-000828

For valid operands, compound subtraction shall replace the target by max(0, x − y), using their exact values on entry, and return the target object. A needed microsecond borrow shall preserve that exact nonnegative result. Self-subtraction shall yield zero. Free subtraction shall return the same value without modifying either input. Subtraction shall remain within the normalized value domain and shall not allocate or signal an arithmetic-range failure for valid operands.

9. Allocation-free value operations and fatal range policy PPL-SPEC-000829

Admitted Time construction, copying, queries, comparisons, addition and subtraction shall use no heap allocation, floating-point arithmetic, PPL initialization or operating-system timer operation. Unrepresentable normalization/addition shall report its fatal condition by calling std::abort; it shall not allocate or construct a C++ exception in an attempt to report that condition. No recovery or owned- resource cleanup after process termination shall be promised by this value interface. The caller shall retain any surrounding signal/thread context restrictions.