-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment UID: PPL-LLR-000134 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001553 C deterministic timeout lifecycle (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-001741 Integer feasibility of parametric compatibility contexts (Specified by)
- PPL-SPEC-000536 Indirect-sort failure and cooperative interruption states (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
STATEMENT: At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
RATIONALE: Expensive computations need a way to return control while retaining a clear distinction between cooperative checks and hard real-time interruption.
COMMENT: Verification covers native checkpoints, computational-weight monitoring and caller-owned request persistence. Interruption tests and checkpoint-path analysis verify those contracts. The low-level caller-owned request is distinct from binding-owned timeout state, whose cleanup follows 🔗 4. Binding interruption support and state changes. Queue ownership and concurrency preconditions follow 🔗 6. Thread entry and shared-facility use. No hard elapsed-time response bound is promised.
VERIFICATION_CRITERIA: Exercise caller-owned abandonment requests during solver and polyhedral operations and check exception propagation and persistence until the caller clears the request. Check computational-weight handlers at abandonment checkpoints after their thresholds are reached. Assess binding-owned timeout reset and notification behavior separately under 🔗 4. Binding interruption support and state changes. Review the per-queue ownership and nonreentrancy restrictions for threshold queues under 🔗 6. Thread entry and shared-facility use.
SOURCE: src/globals_defs.hh and src/globals_inlines.hh: abandonment request ownership, computational-weight checks, and exception dispatch. src/Threshold_Watcher_defs.hh and src/Threshold_Watcher_templates.hh: configured queue ownership and reached-threshold dispatch. tests/PIP_Problem/weightwatch1.cc and tests/Polyhedron/weightwatch1.cc: cooperative interruption scenarios.
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use UID: PPL-LLR-000438 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001515 C library and thread lifecycle (Specified by)
- PPL-SPEC-001518 C rounding and irrational precision controls (Specified by)
- PPL-SPEC-001514 C handles, arguments and successful outcomes (Specified by)
- PPL-SPEC-000042 Finite coefficient construction, copying and comparison (Specified by)
- PPL-SPEC-000046 Coefficient zero and one constant access (Specified by)
- PPL-SPEC-000047 Coefficient constant-stage acquisition and release (Specified by)
- PPL-SPEC-001735 Conversion worker queue and shutdown protocol (Specified by)
- PPL-SPEC-000141 Affine congruence meaning and valid numerical use (Specified by)
- PPL-SPEC-000142 Default congruence and shared zero-dimensional values (Specified by)
- PPL-SPEC-000156 Congruence-system meaning and construction (Specified by)
- PPL-SPEC-000101 Constraint relation meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000103 Default and shared zero-dimensional constraints (Specified by)
- PPL-SPEC-000114 Constraint-system conjunction, construction and shared contradiction (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001622 Internal affine value, coefficient storage and dispatch prerequisites (Specified by)
- PPL-SPEC-001623 Independent backend construction, copying and affine arithmetic (Specified by)
- PPL-SPEC-001624 Raw coefficient access, zero ranges, gcd and support filtering (Specified by)
- PPL-SPEC-001625 Range scaling and exact affine elimination (Specified by)
- PPL-SPEC-001626 Backend equality, comparison and common-variable queries (Specified by)
- PPL-SPEC-001627 Owned raw iterator handles and borrowed coefficient positions (Specified by)
- PPL-SPEC-001628 Backend row export, serialization, diagnostics and accounting (Specified by)
- PPL-SPEC-000181 Generator kinds and numerical prerequisites (Specified by)
- PPL-SPEC-000184 Default generator and shared zero-dimensional origins (Specified by)
- PPL-SPEC-000195 Generator-system hull meaning and construction (Specified by)
- PPL-SPEC-000221 Grid-generator values and integer versus continuous displacement (Specified by)
- PPL-SPEC-000224 Rational grid-point construction, defaults and shared origin (Specified by)
- PPL-SPEC-000235 Grid-generator-system integer-affine span and construction (Specified by)
- PPL-SPEC-000031 Initialization owners and automatic C++ initialization (Specified by)
- PPL-SPEC-000032 Explicit whole-library initialization and finalization (Specified by)
- PPL-SPEC-000033 Thread initialization, default state and finalization (Specified by)
- PPL-SPEC-000034 Rounding-state exchange during an initialized thread lifetime (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000071 Affine value, numerical prerequisites and shared zero (Specified by)
- PPL-SPEC-000921 Interval-linear-form meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000001 Public partial coordinate-map type and valid use (Specified by)
- PPL-SPEC-000008 Coordinate-map diagnostic printing and output failures (Specified by)
- PPL-SPEC-000009 Move construction and empty source (Specified by)
- PPL-SPEC-000010 Move assignment and empty source (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-000891 Temporary-cache values, leases and element prerequisites (Specified by)
- PPL-SPEC-000892 Slow-copy trait selection and built-in GMP classifications (Specified by)
- PPL-SPEC-000893 Obtaining a fresh or retained pool item (Specified by)
- PPL-SPEC-000894 Returning a lease without destroying its value (Specified by)
- PPL-SPEC-000895 Qualified item reference and admitted borrowing (Specified by)
- PPL-SPEC-000896 Pool-item construction and ownership restrictions (Specified by)
- PPL-SPEC-000897 Reference-holder acquisition, access and scope cleanup (Specified by)
- PPL-SPEC-000898 Local value-holder construction and lifetime (Specified by)
- PPL-SPEC-000899 Dirty temporary storage strategy (Specified by)
- PPL-SPEC-000900 Dirty-temporary declaration macro and lexical lifetime (Specified by)
- PPL-SPEC-000901 Allocation and element-construction failure cleanup (Specified by)
- PPL-SPEC-000902 Cache contexts, teardown and retained storage lifetime (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-000021 Public coordinate-index set and value lifecycle (Specified by)
- PPL-SPEC-000026 Coordinate-set diagnostic output and formatter prerequisites (Specified by)
- PPL-SPEC-000012 Variable value identity and lifetime operations (Specified by)
- PPL-SPEC-000017 Active Variable formatter and initialized thread state (Specified by)
- PPL-SPEC-000018 Variable names, formatter dispatch and output failures (Specified by)
- PPL-SPEC-000871 Watchdog platform availability and initialization prerequisites (Specified by)
- PPL-SPEC-000872 Flag-form watchdog registration (Specified by)
- PPL-SPEC-000873 Function-form watchdog registration (Specified by)
- PPL-SPEC-000874 Positive watchdog duration and exact nominal units (Specified by)
- PPL-SPEC-000875 Stable watcher and notification lifetimes (Specified by)
- PPL-SPEC-000876 Ordered event multiplicity and existing-event preservation (Specified by)
- PPL-SPEC-000877 Logical deadlines and bounded physical timer checkpoints (Specified by)
- PPL-SPEC-000878 Failed watchdog construction and surviving events (Specified by)
- PPL-SPEC-000879 Nonthrowing destruction and ordinary cancellation (Specified by)
- PPL-SPEC-000880 Cancellation failure and retained-checkpoint fallback (Specified by)
- PPL-SPEC-000881 Process timer ownership and signal-safe callbacks (Specified by)
- PPL-SPEC-000882 Signal-mask transactions and fatal restoration failures (Specified by)
- PPL-SPEC-000883 Stale timer-notification suppression (Specified by)
- PPL-SPEC-000884 Due-event signal dispatch and successful one-shot expiration (Specified by)
- PPL-SPEC-000885 Deferred timeout accounting inside a transaction (Specified by)
- PPL-SPEC-000886 Fatal signal-context timer-rearm failure (Specified by)
- PPL-SPEC-000887 Timer-read validity and context-specific error channels (Specified by)
- PPL-SPEC-000888 Class initialization and preceding signal action (Specified by)
- PPL-SPEC-000889 Class finalization and pending-notification cleanup (Specified by)
- PPL-SPEC-000890 Timeout and signal-mask errno preservation (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
- PPL-SPEC-001689 Java library initialization and finalization (Specified by)
- PPL-SPEC-001730 Native Java floating-point environment lifetime (Specified by)
STATEMENT: For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
RATIONALE: A thread-safe build can provide thread-specific state while retaining restrictions on mutable objects and process-wide interruption facilities.
COMMENT: Verification covers thread entry and exit, state ownership and supported shared-facility protocols. Thread lifecycle checks and direct state/queue/signal analysis verify the contracts in each supported configuration. The caller must satisfy the declared preconditions; automatic detection of arbitrary sharing or initialization violations is not required. Thread entry and shared-facility conditions complement 🔗 1. Initialization and finalization lifecycle without relaxing 🔗 5. Watchdog scheduling and cancellation scope.
VERIFICATION_CRITERIA: Review thread-entry and exit protocols across native, C and Java interfaces and the supported regimes of other bindings. Check initialization and finalization sequences and isolation of state promised to be thread-specific. Assess simultaneous-use and object-sharing preconditions and the per-thread computational-weight queues and single-owner native watchdog signals. Do not infer unrestricted sharing from a thread-safe configuration token.
SOURCE: src/Init_defs.hh and src/Init.cc: library and thread-specific initialization; src/thread_safe.hh: configured thread-local state; src/Threshold_Watcher_defs.hh and src/globals_defs.hh: shared-trait restrictions and per-thread computational-weight queues; src/Watchdog_defs.hh: single-owner signal discipline; interfaces/C/ppl_c_header.h and interfaces/Java/parma_polyhedra_library/Parma_Polyhedra_Library.java: explicit thread entry and exit.
Weightwatch_Traits::Threshold and Delta shall denote unsigned long long. The computational-weight counter shall initially be zero and get() shall return a const reference to its current counter, without copying or allocating. The returned reference shall observe later admitted serial updates. In a thread-safe configuration, that counter/reference shall belong to the calling thread and shall not be used after that thread exits or from another thread. The checking slot shall initially be null and retain the watcher-owned protocol in 🔗 6. Published checking function and empty-queue transitions. In a thread-safe build the counter, checking slot and Threshold_Watcher<Weightwatch_Traits> queue shall all belong to the calling thread. Each watcher and its borrowed notification bindings shall be used and destroyed in that thread before it exits. Other threads may independently compute, register, cancel and dispatch their own budgets.
In a thread-safe build, the checking slot shall be a function-pointer proxy: assignment, conversion to void (*)(), invocation and independent copied snapshots shall retain their ordinary meanings. Assigning a local snapshot shall not change the live slot. A live-slot assignment shall not alter another thread's hook or the signal-notification gate. Direct field-address/type-trait compatibility with former raw/shared fields is not required; clients shall be rebuilt with matching library headers. Library and clients shall agree on the bool/function-pointer atomic capability selection; a compatible C++ ABI alone shall not permit mixing dispatcher modes. Clients shall not overwrite their checker while its queue contains events.
At an owner checkpoint that selects pending atomic-watchdog work, that work shall be published before checking computational thresholds. A notification arriving after the checkpoint's dispatch snapshot may be processed at the next checkpoint. With always-lock-free notification and function-pointer atomics, unexpired timers shall not install an extra checkpoint callback. Otherwise, ordinary owner code shall use a deferred per-thread hook; the signal action shall not access thread-local objects or call a potentially locking atomic operation.
The budget counter, pending events and checking hook must have the same owner; independent thread budgets must not alter or dispatch one another.
Defining C++ headers: globals_defs.hh and globals_inlines.hh. Names belong to Parma_Polyhedra_Library unless a macro is shown. Computational-weight watchers retain 🔗 12. Watcher notification lifetimes and exclusive use.
struct Weightwatch_Traits { using Threshold = unsigned long long; using Delta = unsigned long long; static constexpr bool thread_local_queue = true; static const Threshold& get(); static Threshold weight; // Thread-local in a thread-safe build. #ifdef PPL_THREAD_SAFE static Implementation::Watchdog::Checkpoint_Hook check_function; // Thread-local. #else // !defined(PPL_THREAD_SAFE) static void (*check_function)(); #endif // !defined(PPL_THREAD_SAFE) };
Check configured slot types, reference identity, serial updates and copied hook snapshots; inspect initial/thread-local declarations and per-queue ownership. Check simultaneous thread budgets and cancellation without serializing independent PPL work. Exercise both admitted function-pointer dispatch and a coherently rebuilt deferred fallback, including cancellation, wrong-thread checkpoints and real timer delivery.
src/globals_defs.hh; src/globals_inlines.hh; src/globals.cc; src/thread_safe.hh; tests/weightwatchspec1.cc; tests/weightwatchlegacy1.cc; tests/atomicwatchdogspec1.cc; tests/Polyhedron/weightwatch1.cc.
-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment UID: PPL-LLR-000134 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001553 C deterministic timeout lifecycle (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-001741 Integer feasibility of parametric compatibility contexts (Specified by)
- PPL-SPEC-000536 Indirect-sort failure and cooperative interruption states (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
STATEMENT: At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
RATIONALE: Expensive computations need a way to return control while retaining a clear distinction between cooperative checks and hard real-time interruption.
COMMENT: Verification covers native checkpoints, computational-weight monitoring and caller-owned request persistence. Interruption tests and checkpoint-path analysis verify those contracts. The low-level caller-owned request is distinct from binding-owned timeout state, whose cleanup follows 🔗 4. Binding interruption support and state changes. Queue ownership and concurrency preconditions follow 🔗 6. Thread entry and shared-facility use. No hard elapsed-time response bound is promised.
VERIFICATION_CRITERIA: Exercise caller-owned abandonment requests during solver and polyhedral operations and check exception propagation and persistence until the caller clears the request. Check computational-weight handlers at abandonment checkpoints after their thresholds are reached. Assess binding-owned timeout reset and notification behavior separately under 🔗 4. Binding interruption support and state changes. Review the per-queue ownership and nonreentrancy restrictions for threshold queues under 🔗 6. Thread entry and shared-facility use.
SOURCE: src/globals_defs.hh and src/globals_inlines.hh: abandonment request ownership, computational-weight checks, and exception dispatch. src/Threshold_Watcher_defs.hh and src/Threshold_Watcher_templates.hh: configured queue ownership and reached-threshold dispatch. tests/PIP_Problem/weightwatch1.cc and tests/Polyhedron/weightwatch1.cc: cooperative interruption scenarios.
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use UID: PPL-LLR-000438 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001515 C library and thread lifecycle (Specified by)
- PPL-SPEC-001518 C rounding and irrational precision controls (Specified by)
- PPL-SPEC-001514 C handles, arguments and successful outcomes (Specified by)
- PPL-SPEC-000042 Finite coefficient construction, copying and comparison (Specified by)
- PPL-SPEC-000046 Coefficient zero and one constant access (Specified by)
- PPL-SPEC-000047 Coefficient constant-stage acquisition and release (Specified by)
- PPL-SPEC-001735 Conversion worker queue and shutdown protocol (Specified by)
- PPL-SPEC-000141 Affine congruence meaning and valid numerical use (Specified by)
- PPL-SPEC-000142 Default congruence and shared zero-dimensional values (Specified by)
- PPL-SPEC-000156 Congruence-system meaning and construction (Specified by)
- PPL-SPEC-000101 Constraint relation meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000103 Default and shared zero-dimensional constraints (Specified by)
- PPL-SPEC-000114 Constraint-system conjunction, construction and shared contradiction (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001622 Internal affine value, coefficient storage and dispatch prerequisites (Specified by)
- PPL-SPEC-001623 Independent backend construction, copying and affine arithmetic (Specified by)
- PPL-SPEC-001624 Raw coefficient access, zero ranges, gcd and support filtering (Specified by)
- PPL-SPEC-001625 Range scaling and exact affine elimination (Specified by)
- PPL-SPEC-001626 Backend equality, comparison and common-variable queries (Specified by)
- PPL-SPEC-001627 Owned raw iterator handles and borrowed coefficient positions (Specified by)
- PPL-SPEC-001628 Backend row export, serialization, diagnostics and accounting (Specified by)
- PPL-SPEC-000181 Generator kinds and numerical prerequisites (Specified by)
- PPL-SPEC-000184 Default generator and shared zero-dimensional origins (Specified by)
- PPL-SPEC-000195 Generator-system hull meaning and construction (Specified by)
- PPL-SPEC-000221 Grid-generator values and integer versus continuous displacement (Specified by)
- PPL-SPEC-000224 Rational grid-point construction, defaults and shared origin (Specified by)
- PPL-SPEC-000235 Grid-generator-system integer-affine span and construction (Specified by)
- PPL-SPEC-000031 Initialization owners and automatic C++ initialization (Specified by)
- PPL-SPEC-000032 Explicit whole-library initialization and finalization (Specified by)
- PPL-SPEC-000033 Thread initialization, default state and finalization (Specified by)
- PPL-SPEC-000034 Rounding-state exchange during an initialized thread lifetime (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000071 Affine value, numerical prerequisites and shared zero (Specified by)
- PPL-SPEC-000921 Interval-linear-form meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000001 Public partial coordinate-map type and valid use (Specified by)
- PPL-SPEC-000008 Coordinate-map diagnostic printing and output failures (Specified by)
- PPL-SPEC-000009 Move construction and empty source (Specified by)
- PPL-SPEC-000010 Move assignment and empty source (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-000891 Temporary-cache values, leases and element prerequisites (Specified by)
- PPL-SPEC-000892 Slow-copy trait selection and built-in GMP classifications (Specified by)
- PPL-SPEC-000893 Obtaining a fresh or retained pool item (Specified by)
- PPL-SPEC-000894 Returning a lease without destroying its value (Specified by)
- PPL-SPEC-000895 Qualified item reference and admitted borrowing (Specified by)
- PPL-SPEC-000896 Pool-item construction and ownership restrictions (Specified by)
- PPL-SPEC-000897 Reference-holder acquisition, access and scope cleanup (Specified by)
- PPL-SPEC-000898 Local value-holder construction and lifetime (Specified by)
- PPL-SPEC-000899 Dirty temporary storage strategy (Specified by)
- PPL-SPEC-000900 Dirty-temporary declaration macro and lexical lifetime (Specified by)
- PPL-SPEC-000901 Allocation and element-construction failure cleanup (Specified by)
- PPL-SPEC-000902 Cache contexts, teardown and retained storage lifetime (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-000021 Public coordinate-index set and value lifecycle (Specified by)
- PPL-SPEC-000026 Coordinate-set diagnostic output and formatter prerequisites (Specified by)
- PPL-SPEC-000012 Variable value identity and lifetime operations (Specified by)
- PPL-SPEC-000017 Active Variable formatter and initialized thread state (Specified by)
- PPL-SPEC-000018 Variable names, formatter dispatch and output failures (Specified by)
- PPL-SPEC-000871 Watchdog platform availability and initialization prerequisites (Specified by)
- PPL-SPEC-000872 Flag-form watchdog registration (Specified by)
- PPL-SPEC-000873 Function-form watchdog registration (Specified by)
- PPL-SPEC-000874 Positive watchdog duration and exact nominal units (Specified by)
- PPL-SPEC-000875 Stable watcher and notification lifetimes (Specified by)
- PPL-SPEC-000876 Ordered event multiplicity and existing-event preservation (Specified by)
- PPL-SPEC-000877 Logical deadlines and bounded physical timer checkpoints (Specified by)
- PPL-SPEC-000878 Failed watchdog construction and surviving events (Specified by)
- PPL-SPEC-000879 Nonthrowing destruction and ordinary cancellation (Specified by)
- PPL-SPEC-000880 Cancellation failure and retained-checkpoint fallback (Specified by)
- PPL-SPEC-000881 Process timer ownership and signal-safe callbacks (Specified by)
- PPL-SPEC-000882 Signal-mask transactions and fatal restoration failures (Specified by)
- PPL-SPEC-000883 Stale timer-notification suppression (Specified by)
- PPL-SPEC-000884 Due-event signal dispatch and successful one-shot expiration (Specified by)
- PPL-SPEC-000885 Deferred timeout accounting inside a transaction (Specified by)
- PPL-SPEC-000886 Fatal signal-context timer-rearm failure (Specified by)
- PPL-SPEC-000887 Timer-read validity and context-specific error channels (Specified by)
- PPL-SPEC-000888 Class initialization and preceding signal action (Specified by)
- PPL-SPEC-000889 Class finalization and pending-notification cleanup (Specified by)
- PPL-SPEC-000890 Timeout and signal-mask errno preservation (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
- PPL-SPEC-001689 Java library initialization and finalization (Specified by)
- PPL-SPEC-001730 Native Java floating-point environment lifetime (Specified by)
STATEMENT: For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
RATIONALE: A thread-safe build can provide thread-specific state while retaining restrictions on mutable objects and process-wide interruption facilities.
COMMENT: Verification covers thread entry and exit, state ownership and supported shared-facility protocols. Thread lifecycle checks and direct state/queue/signal analysis verify the contracts in each supported configuration. The caller must satisfy the declared preconditions; automatic detection of arbitrary sharing or initialization violations is not required. Thread entry and shared-facility conditions complement 🔗 1. Initialization and finalization lifecycle without relaxing 🔗 5. Watchdog scheduling and cancellation scope.
VERIFICATION_CRITERIA: Review thread-entry and exit protocols across native, C and Java interfaces and the supported regimes of other bindings. Check initialization and finalization sequences and isolation of state promised to be thread-specific. Assess simultaneous-use and object-sharing preconditions and the per-thread computational-weight queues and single-owner native watchdog signals. Do not infer unrestricted sharing from a thread-safe configuration token.
SOURCE: src/Init_defs.hh and src/Init.cc: library and thread-specific initialization; src/thread_safe.hh: configured thread-local state; src/Threshold_Watcher_defs.hh and src/globals_defs.hh: shared-trait restrictions and per-thread computational-weight queues; src/Watchdog_defs.hh: single-owner signal discipline; interfaces/C/ppl_c_header.h and interfaces/Java/parma_polyhedra_library/Parma_Polyhedra_Library.java: explicit thread entry and exit.
compute_delta(u, s) shall return the exact integer u2s when that result is representable in Delta. For u == 0 it shall return zero for every unsigned scale. For nonzero u, an excessive shift or a scaled result larger than Delta's maximum shall throw std::invalid_argument rather than wrap. The function shall not change the current counter or checking slot. Returning a zero delta shall not imply that an already reached watcher threshold is admissible under 🔗 4. Threshold conversion and already-reached rejection.
Scaling must distinguish exact increments from an unrepresentable user request independently of watcher registration.
Defining C++ headers: globals_defs.hh and globals_inlines.hh. Names belong to Parma_Polyhedra_Library unless a macro is shown. Computational-weight watchers retain 🔗 12. Watcher notification lifetimes and exclusive use.
static Delta compute_delta(unsigned long unscaled, unsigned scale);
Compare against arbitrary-precision shifts over zero, all bit boundaries and maximum inputs; reject each excessive nonzero scale and overflow and preserve backend state.
src/globals_defs.hh; src/globals_inlines.hh; src/globals.cc; src/thread_safe.hh; tests/weightwatchspec1.cc; tests/weightwatchlegacy1.cc; tests/Polyhedron/weightwatch1.cc.
-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment UID: PPL-LLR-000134 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001553 C deterministic timeout lifecycle (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-001741 Integer feasibility of parametric compatibility contexts (Specified by)
- PPL-SPEC-000536 Indirect-sort failure and cooperative interruption states (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
STATEMENT: At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
RATIONALE: Expensive computations need a way to return control while retaining a clear distinction between cooperative checks and hard real-time interruption.
COMMENT: Verification covers native checkpoints, computational-weight monitoring and caller-owned request persistence. Interruption tests and checkpoint-path analysis verify those contracts. The low-level caller-owned request is distinct from binding-owned timeout state, whose cleanup follows 🔗 4. Binding interruption support and state changes. Queue ownership and concurrency preconditions follow 🔗 6. Thread entry and shared-facility use. No hard elapsed-time response bound is promised.
VERIFICATION_CRITERIA: Exercise caller-owned abandonment requests during solver and polyhedral operations and check exception propagation and persistence until the caller clears the request. Check computational-weight handlers at abandonment checkpoints after their thresholds are reached. Assess binding-owned timeout reset and notification behavior separately under 🔗 4. Binding interruption support and state changes. Review the per-queue ownership and nonreentrancy restrictions for threshold queues under 🔗 6. Thread entry and shared-facility use.
SOURCE: src/globals_defs.hh and src/globals_inlines.hh: abandonment request ownership, computational-weight checks, and exception dispatch. src/Threshold_Watcher_defs.hh and src/Threshold_Watcher_templates.hh: configured queue ownership and reached-threshold dispatch. tests/PIP_Problem/weightwatch1.cc and tests/Polyhedron/weightwatch1.cc: cooperative interruption scenarios.
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use UID: PPL-LLR-000438 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001515 C library and thread lifecycle (Specified by)
- PPL-SPEC-001518 C rounding and irrational precision controls (Specified by)
- PPL-SPEC-001514 C handles, arguments and successful outcomes (Specified by)
- PPL-SPEC-000042 Finite coefficient construction, copying and comparison (Specified by)
- PPL-SPEC-000046 Coefficient zero and one constant access (Specified by)
- PPL-SPEC-000047 Coefficient constant-stage acquisition and release (Specified by)
- PPL-SPEC-001735 Conversion worker queue and shutdown protocol (Specified by)
- PPL-SPEC-000141 Affine congruence meaning and valid numerical use (Specified by)
- PPL-SPEC-000142 Default congruence and shared zero-dimensional values (Specified by)
- PPL-SPEC-000156 Congruence-system meaning and construction (Specified by)
- PPL-SPEC-000101 Constraint relation meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000103 Default and shared zero-dimensional constraints (Specified by)
- PPL-SPEC-000114 Constraint-system conjunction, construction and shared contradiction (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001622 Internal affine value, coefficient storage and dispatch prerequisites (Specified by)
- PPL-SPEC-001623 Independent backend construction, copying and affine arithmetic (Specified by)
- PPL-SPEC-001624 Raw coefficient access, zero ranges, gcd and support filtering (Specified by)
- PPL-SPEC-001625 Range scaling and exact affine elimination (Specified by)
- PPL-SPEC-001626 Backend equality, comparison and common-variable queries (Specified by)
- PPL-SPEC-001627 Owned raw iterator handles and borrowed coefficient positions (Specified by)
- PPL-SPEC-001628 Backend row export, serialization, diagnostics and accounting (Specified by)
- PPL-SPEC-000181 Generator kinds and numerical prerequisites (Specified by)
- PPL-SPEC-000184 Default generator and shared zero-dimensional origins (Specified by)
- PPL-SPEC-000195 Generator-system hull meaning and construction (Specified by)
- PPL-SPEC-000221 Grid-generator values and integer versus continuous displacement (Specified by)
- PPL-SPEC-000224 Rational grid-point construction, defaults and shared origin (Specified by)
- PPL-SPEC-000235 Grid-generator-system integer-affine span and construction (Specified by)
- PPL-SPEC-000031 Initialization owners and automatic C++ initialization (Specified by)
- PPL-SPEC-000032 Explicit whole-library initialization and finalization (Specified by)
- PPL-SPEC-000033 Thread initialization, default state and finalization (Specified by)
- PPL-SPEC-000034 Rounding-state exchange during an initialized thread lifetime (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000071 Affine value, numerical prerequisites and shared zero (Specified by)
- PPL-SPEC-000921 Interval-linear-form meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000001 Public partial coordinate-map type and valid use (Specified by)
- PPL-SPEC-000008 Coordinate-map diagnostic printing and output failures (Specified by)
- PPL-SPEC-000009 Move construction and empty source (Specified by)
- PPL-SPEC-000010 Move assignment and empty source (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-000891 Temporary-cache values, leases and element prerequisites (Specified by)
- PPL-SPEC-000892 Slow-copy trait selection and built-in GMP classifications (Specified by)
- PPL-SPEC-000893 Obtaining a fresh or retained pool item (Specified by)
- PPL-SPEC-000894 Returning a lease without destroying its value (Specified by)
- PPL-SPEC-000895 Qualified item reference and admitted borrowing (Specified by)
- PPL-SPEC-000896 Pool-item construction and ownership restrictions (Specified by)
- PPL-SPEC-000897 Reference-holder acquisition, access and scope cleanup (Specified by)
- PPL-SPEC-000898 Local value-holder construction and lifetime (Specified by)
- PPL-SPEC-000899 Dirty temporary storage strategy (Specified by)
- PPL-SPEC-000900 Dirty-temporary declaration macro and lexical lifetime (Specified by)
- PPL-SPEC-000901 Allocation and element-construction failure cleanup (Specified by)
- PPL-SPEC-000902 Cache contexts, teardown and retained storage lifetime (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-000021 Public coordinate-index set and value lifecycle (Specified by)
- PPL-SPEC-000026 Coordinate-set diagnostic output and formatter prerequisites (Specified by)
- PPL-SPEC-000012 Variable value identity and lifetime operations (Specified by)
- PPL-SPEC-000017 Active Variable formatter and initialized thread state (Specified by)
- PPL-SPEC-000018 Variable names, formatter dispatch and output failures (Specified by)
- PPL-SPEC-000871 Watchdog platform availability and initialization prerequisites (Specified by)
- PPL-SPEC-000872 Flag-form watchdog registration (Specified by)
- PPL-SPEC-000873 Function-form watchdog registration (Specified by)
- PPL-SPEC-000874 Positive watchdog duration and exact nominal units (Specified by)
- PPL-SPEC-000875 Stable watcher and notification lifetimes (Specified by)
- PPL-SPEC-000876 Ordered event multiplicity and existing-event preservation (Specified by)
- PPL-SPEC-000877 Logical deadlines and bounded physical timer checkpoints (Specified by)
- PPL-SPEC-000878 Failed watchdog construction and surviving events (Specified by)
- PPL-SPEC-000879 Nonthrowing destruction and ordinary cancellation (Specified by)
- PPL-SPEC-000880 Cancellation failure and retained-checkpoint fallback (Specified by)
- PPL-SPEC-000881 Process timer ownership and signal-safe callbacks (Specified by)
- PPL-SPEC-000882 Signal-mask transactions and fatal restoration failures (Specified by)
- PPL-SPEC-000883 Stale timer-notification suppression (Specified by)
- PPL-SPEC-000884 Due-event signal dispatch and successful one-shot expiration (Specified by)
- PPL-SPEC-000885 Deferred timeout accounting inside a transaction (Specified by)
- PPL-SPEC-000886 Fatal signal-context timer-rearm failure (Specified by)
- PPL-SPEC-000887 Timer-read validity and context-specific error channels (Specified by)
- PPL-SPEC-000888 Class initialization and preceding signal action (Specified by)
- PPL-SPEC-000889 Class finalization and pending-notification cleanup (Specified by)
- PPL-SPEC-000890 Timeout and signal-mask errno preservation (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
- PPL-SPEC-001689 Java library initialization and finalization (Specified by)
- PPL-SPEC-001730 Native Java floating-point environment lifetime (Specified by)
STATEMENT: For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
RATIONALE: A thread-safe build can provide thread-specific state while retaining restrictions on mutable objects and process-wide interruption facilities.
COMMENT: Verification covers thread entry and exit, state ownership and supported shared-facility protocols. Thread lifecycle checks and direct state/queue/signal analysis verify the contracts in each supported configuration. The caller must satisfy the declared preconditions; automatic detection of arbitrary sharing or initialization violations is not required. Thread entry and shared-facility conditions complement 🔗 1. Initialization and finalization lifecycle without relaxing 🔗 5. Watchdog scheduling and cancellation scope.
VERIFICATION_CRITERIA: Review thread-entry and exit protocols across native, C and Java interfaces and the supported regimes of other bindings. Check initialization and finalization sequences and isolation of state promised to be thread-specific. Assess simultaneous-use and object-sharing preconditions and the per-thread computational-weight queues and single-owner native watchdog signals. Do not infer unrestricted sharing from a thread-safe configuration token.
SOURCE: src/Init_defs.hh and src/Init.cc: library and thread-specific initialization; src/thread_safe.hh: configured thread-local state; src/Threshold_Watcher_defs.hh and src/globals_defs.hh: shared-trait restrictions and per-thread computational-weight queues; src/Watchdog_defs.hh: single-owner signal discipline; interfaces/C/ppl_c_header.h and interfaces/Java/parma_polyhedra_library/Parma_Polyhedra_Library.java: explicit thread entry and exit.
from_delta(out, d) shall assign the unsigned modular sum of the current weight and the supplied delta to out. It shall admit out aliasing the delta object or the current counter and evaluate the sum from their values before assignment. It shall neither register an event nor invoke a notification. This arithmetic conversion shall not itself validate whether the result is future under 🔗 4. Strict circular ordering of computational weights; watcher construction shall perform that check under 🔗 4. Threshold conversion and already-reached rejection.
Threshold formation uses defined unsigned wraparound and must retain legitimate input/output aliases.
Defining C++ headers: globals_defs.hh and globals_inlines.hh. Names belong to Parma_Polyhedra_Library unless a macro is shown. Computational-weight watchers retain 🔗 12. Watcher notification lifetimes and exclusive use.
static void from_delta(Threshold& threshold, const Delta& delta);
Compare ordinary and wrapping sums against exact-integer modular arithmetic; cover independent output, output/delta alias, output/current alias and all-three aliases without dispatch.
src/globals_defs.hh; src/globals_inlines.hh; src/globals.cc; src/thread_safe.hh; tests/weightwatchspec1.cc; tests/weightwatchlegacy1.cc; tests/Polyhedron/weightwatch1.cc.
-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment UID: PPL-LLR-000134 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001553 C deterministic timeout lifecycle (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-001741 Integer feasibility of parametric compatibility contexts (Specified by)
- PPL-SPEC-000536 Indirect-sort failure and cooperative interruption states (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
STATEMENT: At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
RATIONALE: Expensive computations need a way to return control while retaining a clear distinction between cooperative checks and hard real-time interruption.
COMMENT: Verification covers native checkpoints, computational-weight monitoring and caller-owned request persistence. Interruption tests and checkpoint-path analysis verify those contracts. The low-level caller-owned request is distinct from binding-owned timeout state, whose cleanup follows 🔗 4. Binding interruption support and state changes. Queue ownership and concurrency preconditions follow 🔗 6. Thread entry and shared-facility use. No hard elapsed-time response bound is promised.
VERIFICATION_CRITERIA: Exercise caller-owned abandonment requests during solver and polyhedral operations and check exception propagation and persistence until the caller clears the request. Check computational-weight handlers at abandonment checkpoints after their thresholds are reached. Assess binding-owned timeout reset and notification behavior separately under 🔗 4. Binding interruption support and state changes. Review the per-queue ownership and nonreentrancy restrictions for threshold queues under 🔗 6. Thread entry and shared-facility use.
SOURCE: src/globals_defs.hh and src/globals_inlines.hh: abandonment request ownership, computational-weight checks, and exception dispatch. src/Threshold_Watcher_defs.hh and src/Threshold_Watcher_templates.hh: configured queue ownership and reached-threshold dispatch. tests/PIP_Problem/weightwatch1.cc and tests/Polyhedron/weightwatch1.cc: cooperative interruption scenarios.
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use UID: PPL-LLR-000438 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001515 C library and thread lifecycle (Specified by)
- PPL-SPEC-001518 C rounding and irrational precision controls (Specified by)
- PPL-SPEC-001514 C handles, arguments and successful outcomes (Specified by)
- PPL-SPEC-000042 Finite coefficient construction, copying and comparison (Specified by)
- PPL-SPEC-000046 Coefficient zero and one constant access (Specified by)
- PPL-SPEC-000047 Coefficient constant-stage acquisition and release (Specified by)
- PPL-SPEC-001735 Conversion worker queue and shutdown protocol (Specified by)
- PPL-SPEC-000141 Affine congruence meaning and valid numerical use (Specified by)
- PPL-SPEC-000142 Default congruence and shared zero-dimensional values (Specified by)
- PPL-SPEC-000156 Congruence-system meaning and construction (Specified by)
- PPL-SPEC-000101 Constraint relation meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000103 Default and shared zero-dimensional constraints (Specified by)
- PPL-SPEC-000114 Constraint-system conjunction, construction and shared contradiction (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001622 Internal affine value, coefficient storage and dispatch prerequisites (Specified by)
- PPL-SPEC-001623 Independent backend construction, copying and affine arithmetic (Specified by)
- PPL-SPEC-001624 Raw coefficient access, zero ranges, gcd and support filtering (Specified by)
- PPL-SPEC-001625 Range scaling and exact affine elimination (Specified by)
- PPL-SPEC-001626 Backend equality, comparison and common-variable queries (Specified by)
- PPL-SPEC-001627 Owned raw iterator handles and borrowed coefficient positions (Specified by)
- PPL-SPEC-001628 Backend row export, serialization, diagnostics and accounting (Specified by)
- PPL-SPEC-000181 Generator kinds and numerical prerequisites (Specified by)
- PPL-SPEC-000184 Default generator and shared zero-dimensional origins (Specified by)
- PPL-SPEC-000195 Generator-system hull meaning and construction (Specified by)
- PPL-SPEC-000221 Grid-generator values and integer versus continuous displacement (Specified by)
- PPL-SPEC-000224 Rational grid-point construction, defaults and shared origin (Specified by)
- PPL-SPEC-000235 Grid-generator-system integer-affine span and construction (Specified by)
- PPL-SPEC-000031 Initialization owners and automatic C++ initialization (Specified by)
- PPL-SPEC-000032 Explicit whole-library initialization and finalization (Specified by)
- PPL-SPEC-000033 Thread initialization, default state and finalization (Specified by)
- PPL-SPEC-000034 Rounding-state exchange during an initialized thread lifetime (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000071 Affine value, numerical prerequisites and shared zero (Specified by)
- PPL-SPEC-000921 Interval-linear-form meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000001 Public partial coordinate-map type and valid use (Specified by)
- PPL-SPEC-000008 Coordinate-map diagnostic printing and output failures (Specified by)
- PPL-SPEC-000009 Move construction and empty source (Specified by)
- PPL-SPEC-000010 Move assignment and empty source (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-000891 Temporary-cache values, leases and element prerequisites (Specified by)
- PPL-SPEC-000892 Slow-copy trait selection and built-in GMP classifications (Specified by)
- PPL-SPEC-000893 Obtaining a fresh or retained pool item (Specified by)
- PPL-SPEC-000894 Returning a lease without destroying its value (Specified by)
- PPL-SPEC-000895 Qualified item reference and admitted borrowing (Specified by)
- PPL-SPEC-000896 Pool-item construction and ownership restrictions (Specified by)
- PPL-SPEC-000897 Reference-holder acquisition, access and scope cleanup (Specified by)
- PPL-SPEC-000898 Local value-holder construction and lifetime (Specified by)
- PPL-SPEC-000899 Dirty temporary storage strategy (Specified by)
- PPL-SPEC-000900 Dirty-temporary declaration macro and lexical lifetime (Specified by)
- PPL-SPEC-000901 Allocation and element-construction failure cleanup (Specified by)
- PPL-SPEC-000902 Cache contexts, teardown and retained storage lifetime (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-000021 Public coordinate-index set and value lifecycle (Specified by)
- PPL-SPEC-000026 Coordinate-set diagnostic output and formatter prerequisites (Specified by)
- PPL-SPEC-000012 Variable value identity and lifetime operations (Specified by)
- PPL-SPEC-000017 Active Variable formatter and initialized thread state (Specified by)
- PPL-SPEC-000018 Variable names, formatter dispatch and output failures (Specified by)
- PPL-SPEC-000871 Watchdog platform availability and initialization prerequisites (Specified by)
- PPL-SPEC-000872 Flag-form watchdog registration (Specified by)
- PPL-SPEC-000873 Function-form watchdog registration (Specified by)
- PPL-SPEC-000874 Positive watchdog duration and exact nominal units (Specified by)
- PPL-SPEC-000875 Stable watcher and notification lifetimes (Specified by)
- PPL-SPEC-000876 Ordered event multiplicity and existing-event preservation (Specified by)
- PPL-SPEC-000877 Logical deadlines and bounded physical timer checkpoints (Specified by)
- PPL-SPEC-000878 Failed watchdog construction and surviving events (Specified by)
- PPL-SPEC-000879 Nonthrowing destruction and ordinary cancellation (Specified by)
- PPL-SPEC-000880 Cancellation failure and retained-checkpoint fallback (Specified by)
- PPL-SPEC-000881 Process timer ownership and signal-safe callbacks (Specified by)
- PPL-SPEC-000882 Signal-mask transactions and fatal restoration failures (Specified by)
- PPL-SPEC-000883 Stale timer-notification suppression (Specified by)
- PPL-SPEC-000884 Due-event signal dispatch and successful one-shot expiration (Specified by)
- PPL-SPEC-000885 Deferred timeout accounting inside a transaction (Specified by)
- PPL-SPEC-000886 Fatal signal-context timer-rearm failure (Specified by)
- PPL-SPEC-000887 Timer-read validity and context-specific error channels (Specified by)
- PPL-SPEC-000888 Class initialization and preceding signal action (Specified by)
- PPL-SPEC-000889 Class finalization and pending-notification cleanup (Specified by)
- PPL-SPEC-000890 Timeout and signal-mask errno preservation (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
- PPL-SPEC-001689 Java library initialization and finalization (Specified by)
- PPL-SPEC-001730 Native Java floating-point environment lifetime (Specified by)
STATEMENT: For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
RATIONALE: A thread-safe build can provide thread-specific state while retaining restrictions on mutable objects and process-wide interruption facilities.
COMMENT: Verification covers thread entry and exit, state ownership and supported shared-facility protocols. Thread lifecycle checks and direct state/queue/signal analysis verify the contracts in each supported configuration. The caller must satisfy the declared preconditions; automatic detection of arbitrary sharing or initialization violations is not required. Thread entry and shared-facility conditions complement 🔗 1. Initialization and finalization lifecycle without relaxing 🔗 5. Watchdog scheduling and cancellation scope.
VERIFICATION_CRITERIA: Review thread-entry and exit protocols across native, C and Java interfaces and the supported regimes of other bindings. Check initialization and finalization sequences and isolation of state promised to be thread-specific. Assess simultaneous-use and object-sharing preconditions and the per-thread computational-weight queues and single-owner native watchdog signals. Do not infer unrestricted sharing from a thread-safe configuration token.
SOURCE: src/Init_defs.hh and src/Init.cc: library and thread-specific initialization; src/thread_safe.hh: configured thread-local state; src/Threshold_Watcher_defs.hh and src/globals_defs.hh: shared-trait restrictions and per-thread computational-weight queues; src/Watchdog_defs.hh: single-owner signal discipline; interfaces/C/ppl_c_header.h and interfaces/Java/parma_polyhedra_library/Parma_Polyhedra_Library.java: explicit thread entry and exit.
Let N be the number of value bits in Threshold and let d be the unsigned modular difference of b and a, in [0, 2N). less_than(a, b) shall return true exactly when 0 < d < 2N − 1. Equal weights shall compare false; values separated by exactly a half-range shall not acquire an arbitrary orientation. An admitted queue/check history shall keep its current and pending thresholds within a common circular interval shorter than a half-range so that this comparison gives the coherent strict ordering required by 🔗 1. Generic threshold-watcher traits and admitted value protocol. The function shall not allocate, notify or change its operands/backend state.
A modular counter needs a strict unambiguous local order, including equality, to support duplicate deadlines and exact-threshold dispatch.
Defining C++ headers: globals_defs.hh and globals_inlines.hh. Names belong to Parma_Polyhedra_Library unless a macro is shown. Computational-weight watchers retain 🔗 12. Watcher notification lifetimes and exclusive use.
static bool less_than(const Threshold& a, const Threshold& b);
Compare equal, unequal, wrapping and half-range boundaries against an independent modular-distance oracle; verify duplicate future deadlines, zero-delta rejection and exact-deadline dispatch through the generic watcher.
src/globals_defs.hh; src/globals_inlines.hh; src/globals.cc; src/thread_safe.hh; tests/weightwatchspec1.cc; tests/weightwatchlegacy1.cc; tests/Polyhedron/weightwatch1.cc.
-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment UID: PPL-LLR-000134 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001553 C deterministic timeout lifecycle (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-001741 Integer feasibility of parametric compatibility contexts (Specified by)
- PPL-SPEC-000536 Indirect-sort failure and cooperative interruption states (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
STATEMENT: At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
RATIONALE: Expensive computations need a way to return control while retaining a clear distinction between cooperative checks and hard real-time interruption.
COMMENT: Verification covers native checkpoints, computational-weight monitoring and caller-owned request persistence. Interruption tests and checkpoint-path analysis verify those contracts. The low-level caller-owned request is distinct from binding-owned timeout state, whose cleanup follows 🔗 4. Binding interruption support and state changes. Queue ownership and concurrency preconditions follow 🔗 6. Thread entry and shared-facility use. No hard elapsed-time response bound is promised.
VERIFICATION_CRITERIA: Exercise caller-owned abandonment requests during solver and polyhedral operations and check exception propagation and persistence until the caller clears the request. Check computational-weight handlers at abandonment checkpoints after their thresholds are reached. Assess binding-owned timeout reset and notification behavior separately under 🔗 4. Binding interruption support and state changes. Review the per-queue ownership and nonreentrancy restrictions for threshold queues under 🔗 6. Thread entry and shared-facility use.
SOURCE: src/globals_defs.hh and src/globals_inlines.hh: abandonment request ownership, computational-weight checks, and exception dispatch. src/Threshold_Watcher_defs.hh and src/Threshold_Watcher_templates.hh: configured queue ownership and reached-threshold dispatch. tests/PIP_Problem/weightwatch1.cc and tests/Polyhedron/weightwatch1.cc: cooperative interruption scenarios.
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use UID: PPL-LLR-000438 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001515 C library and thread lifecycle (Specified by)
- PPL-SPEC-001518 C rounding and irrational precision controls (Specified by)
- PPL-SPEC-001514 C handles, arguments and successful outcomes (Specified by)
- PPL-SPEC-000042 Finite coefficient construction, copying and comparison (Specified by)
- PPL-SPEC-000046 Coefficient zero and one constant access (Specified by)
- PPL-SPEC-000047 Coefficient constant-stage acquisition and release (Specified by)
- PPL-SPEC-001735 Conversion worker queue and shutdown protocol (Specified by)
- PPL-SPEC-000141 Affine congruence meaning and valid numerical use (Specified by)
- PPL-SPEC-000142 Default congruence and shared zero-dimensional values (Specified by)
- PPL-SPEC-000156 Congruence-system meaning and construction (Specified by)
- PPL-SPEC-000101 Constraint relation meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000103 Default and shared zero-dimensional constraints (Specified by)
- PPL-SPEC-000114 Constraint-system conjunction, construction and shared contradiction (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001622 Internal affine value, coefficient storage and dispatch prerequisites (Specified by)
- PPL-SPEC-001623 Independent backend construction, copying and affine arithmetic (Specified by)
- PPL-SPEC-001624 Raw coefficient access, zero ranges, gcd and support filtering (Specified by)
- PPL-SPEC-001625 Range scaling and exact affine elimination (Specified by)
- PPL-SPEC-001626 Backend equality, comparison and common-variable queries (Specified by)
- PPL-SPEC-001627 Owned raw iterator handles and borrowed coefficient positions (Specified by)
- PPL-SPEC-001628 Backend row export, serialization, diagnostics and accounting (Specified by)
- PPL-SPEC-000181 Generator kinds and numerical prerequisites (Specified by)
- PPL-SPEC-000184 Default generator and shared zero-dimensional origins (Specified by)
- PPL-SPEC-000195 Generator-system hull meaning and construction (Specified by)
- PPL-SPEC-000221 Grid-generator values and integer versus continuous displacement (Specified by)
- PPL-SPEC-000224 Rational grid-point construction, defaults and shared origin (Specified by)
- PPL-SPEC-000235 Grid-generator-system integer-affine span and construction (Specified by)
- PPL-SPEC-000031 Initialization owners and automatic C++ initialization (Specified by)
- PPL-SPEC-000032 Explicit whole-library initialization and finalization (Specified by)
- PPL-SPEC-000033 Thread initialization, default state and finalization (Specified by)
- PPL-SPEC-000034 Rounding-state exchange during an initialized thread lifetime (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000071 Affine value, numerical prerequisites and shared zero (Specified by)
- PPL-SPEC-000921 Interval-linear-form meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000001 Public partial coordinate-map type and valid use (Specified by)
- PPL-SPEC-000008 Coordinate-map diagnostic printing and output failures (Specified by)
- PPL-SPEC-000009 Move construction and empty source (Specified by)
- PPL-SPEC-000010 Move assignment and empty source (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-000891 Temporary-cache values, leases and element prerequisites (Specified by)
- PPL-SPEC-000892 Slow-copy trait selection and built-in GMP classifications (Specified by)
- PPL-SPEC-000893 Obtaining a fresh or retained pool item (Specified by)
- PPL-SPEC-000894 Returning a lease without destroying its value (Specified by)
- PPL-SPEC-000895 Qualified item reference and admitted borrowing (Specified by)
- PPL-SPEC-000896 Pool-item construction and ownership restrictions (Specified by)
- PPL-SPEC-000897 Reference-holder acquisition, access and scope cleanup (Specified by)
- PPL-SPEC-000898 Local value-holder construction and lifetime (Specified by)
- PPL-SPEC-000899 Dirty temporary storage strategy (Specified by)
- PPL-SPEC-000900 Dirty-temporary declaration macro and lexical lifetime (Specified by)
- PPL-SPEC-000901 Allocation and element-construction failure cleanup (Specified by)
- PPL-SPEC-000902 Cache contexts, teardown and retained storage lifetime (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-000021 Public coordinate-index set and value lifecycle (Specified by)
- PPL-SPEC-000026 Coordinate-set diagnostic output and formatter prerequisites (Specified by)
- PPL-SPEC-000012 Variable value identity and lifetime operations (Specified by)
- PPL-SPEC-000017 Active Variable formatter and initialized thread state (Specified by)
- PPL-SPEC-000018 Variable names, formatter dispatch and output failures (Specified by)
- PPL-SPEC-000871 Watchdog platform availability and initialization prerequisites (Specified by)
- PPL-SPEC-000872 Flag-form watchdog registration (Specified by)
- PPL-SPEC-000873 Function-form watchdog registration (Specified by)
- PPL-SPEC-000874 Positive watchdog duration and exact nominal units (Specified by)
- PPL-SPEC-000875 Stable watcher and notification lifetimes (Specified by)
- PPL-SPEC-000876 Ordered event multiplicity and existing-event preservation (Specified by)
- PPL-SPEC-000877 Logical deadlines and bounded physical timer checkpoints (Specified by)
- PPL-SPEC-000878 Failed watchdog construction and surviving events (Specified by)
- PPL-SPEC-000879 Nonthrowing destruction and ordinary cancellation (Specified by)
- PPL-SPEC-000880 Cancellation failure and retained-checkpoint fallback (Specified by)
- PPL-SPEC-000881 Process timer ownership and signal-safe callbacks (Specified by)
- PPL-SPEC-000882 Signal-mask transactions and fatal restoration failures (Specified by)
- PPL-SPEC-000883 Stale timer-notification suppression (Specified by)
- PPL-SPEC-000884 Due-event signal dispatch and successful one-shot expiration (Specified by)
- PPL-SPEC-000885 Deferred timeout accounting inside a transaction (Specified by)
- PPL-SPEC-000886 Fatal signal-context timer-rearm failure (Specified by)
- PPL-SPEC-000887 Timer-read validity and context-specific error channels (Specified by)
- PPL-SPEC-000888 Class initialization and preceding signal action (Specified by)
- PPL-SPEC-000889 Class finalization and pending-notification cleanup (Specified by)
- PPL-SPEC-000890 Timeout and signal-mask errno preservation (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
- PPL-SPEC-001689 Java library initialization and finalization (Specified by)
- PPL-SPEC-001730 Native Java floating-point environment lifetime (Specified by)
STATEMENT: For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
RATIONALE: A thread-safe build can provide thread-specific state while retaining restrictions on mutable objects and process-wide interruption facilities.
COMMENT: Verification covers thread entry and exit, state ownership and supported shared-facility protocols. Thread lifecycle checks and direct state/queue/signal analysis verify the contracts in each supported configuration. The caller must satisfy the declared preconditions; automatic detection of arbitrary sharing or initialization violations is not required. Thread entry and shared-facility conditions complement 🔗 1. Initialization and finalization lifecycle without relaxing 🔗 5. Watchdog scheduling and cancellation scope.
VERIFICATION_CRITERIA: Review thread-entry and exit protocols across native, C and Java interfaces and the supported regimes of other bindings. Check initialization and finalization sequences and isolation of state promised to be thread-specific. Assess simultaneous-use and object-sharing preconditions and the per-thread computational-weight queues and single-owner native watchdog signals. Do not infer unrestricted sharing from a thread-safe configuration token.
SOURCE: src/Init_defs.hh and src/Init.cc: library and thread-specific initialization; src/thread_safe.hh: configured thread-local state; src/Threshold_Watcher_defs.hh and src/globals_defs.hh: shared-trait restrictions and per-thread computational-weight queues; src/Watchdog_defs.hh: single-owner signal discipline; interfaces/C/ppl_c_header.h and interfaces/Java/parma_polyhedra_library/Parma_Polyhedra_Library.java: explicit thread entry and exit.
In the normal computational-weight configuration (PPL_PROFILE_ADD_WEIGHT == 0), WEIGHT_BEGIN() shall not change the counter. Outside the assertion suppression of 🔗 6. Assertion-scope instrumentation suppression, WEIGHT_ADD(d) shall add the value of its supplied expression and WEIGHT_ADD_MUL(d, f) shall add the product of the values of both supplied expressions. Each supplied expression shall be evaluated once; the caller shall supply arithmetic expressions with defined evaluation, conversion and multiplication. Accumulation shall retain unsigned modular arithmetic and shall not itself dispatch pending notifications. The same admitted expressions shall have the same mathematical effect in assertion and nonassertion builds.
An explicitly enabled release-build Weight_Profiler configuration shall follow 🔗 1. Optional profiler selection and instrumentation protocol through 🔗 4. Profiler reports, lifetime output and startup calibration.
The counter must reflect instrumented arithmetic independently of ordinary build diagnostics, while the optional profiler has a separate role.
Defining C++ headers: globals_defs.hh and globals_inlines.hh. Names belong to Parma_Polyhedra_Library unless a macro is shown. Computational-weight watchers retain 🔗 12. Watcher notification lifetimes and exclusive use.
WEIGHT_BEGIN(); WEIGHT_ADD(delta); WEIGHT_ADD_MUL(delta, factor);
Check direct and product increments against modular integer arithmetic, compound expressions, argument evaluation counts, wrapping boundaries, no implicit dispatch and assertion suppression in both build modes.
src/globals_defs.hh; src/globals_inlines.hh; src/globals.cc; src/thread_safe.hh; tests/weightwatchspec1.cc; tests/weightwatchlegacy1.cc; tests/Polyhedron/weightwatch1.cc; tests/MIP_Problem/mipproblem2.cc.
-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment UID: PPL-LLR-000134 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001553 C deterministic timeout lifecycle (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-001741 Integer feasibility of parametric compatibility contexts (Specified by)
- PPL-SPEC-000536 Indirect-sort failure and cooperative interruption states (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
STATEMENT: At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
RATIONALE: Expensive computations need a way to return control while retaining a clear distinction between cooperative checks and hard real-time interruption.
COMMENT: Verification covers native checkpoints, computational-weight monitoring and caller-owned request persistence. Interruption tests and checkpoint-path analysis verify those contracts. The low-level caller-owned request is distinct from binding-owned timeout state, whose cleanup follows 🔗 4. Binding interruption support and state changes. Queue ownership and concurrency preconditions follow 🔗 6. Thread entry and shared-facility use. No hard elapsed-time response bound is promised.
VERIFICATION_CRITERIA: Exercise caller-owned abandonment requests during solver and polyhedral operations and check exception propagation and persistence until the caller clears the request. Check computational-weight handlers at abandonment checkpoints after their thresholds are reached. Assess binding-owned timeout reset and notification behavior separately under 🔗 4. Binding interruption support and state changes. Review the per-queue ownership and nonreentrancy restrictions for threshold queues under 🔗 6. Thread entry and shared-facility use.
SOURCE: src/globals_defs.hh and src/globals_inlines.hh: abandonment request ownership, computational-weight checks, and exception dispatch. src/Threshold_Watcher_defs.hh and src/Threshold_Watcher_templates.hh: configured queue ownership and reached-threshold dispatch. tests/PIP_Problem/weightwatch1.cc and tests/Polyhedron/weightwatch1.cc: cooperative interruption scenarios.
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use UID: PPL-LLR-000438 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001515 C library and thread lifecycle (Specified by)
- PPL-SPEC-001518 C rounding and irrational precision controls (Specified by)
- PPL-SPEC-001514 C handles, arguments and successful outcomes (Specified by)
- PPL-SPEC-000042 Finite coefficient construction, copying and comparison (Specified by)
- PPL-SPEC-000046 Coefficient zero and one constant access (Specified by)
- PPL-SPEC-000047 Coefficient constant-stage acquisition and release (Specified by)
- PPL-SPEC-001735 Conversion worker queue and shutdown protocol (Specified by)
- PPL-SPEC-000141 Affine congruence meaning and valid numerical use (Specified by)
- PPL-SPEC-000142 Default congruence and shared zero-dimensional values (Specified by)
- PPL-SPEC-000156 Congruence-system meaning and construction (Specified by)
- PPL-SPEC-000101 Constraint relation meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000103 Default and shared zero-dimensional constraints (Specified by)
- PPL-SPEC-000114 Constraint-system conjunction, construction and shared contradiction (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001622 Internal affine value, coefficient storage and dispatch prerequisites (Specified by)
- PPL-SPEC-001623 Independent backend construction, copying and affine arithmetic (Specified by)
- PPL-SPEC-001624 Raw coefficient access, zero ranges, gcd and support filtering (Specified by)
- PPL-SPEC-001625 Range scaling and exact affine elimination (Specified by)
- PPL-SPEC-001626 Backend equality, comparison and common-variable queries (Specified by)
- PPL-SPEC-001627 Owned raw iterator handles and borrowed coefficient positions (Specified by)
- PPL-SPEC-001628 Backend row export, serialization, diagnostics and accounting (Specified by)
- PPL-SPEC-000181 Generator kinds and numerical prerequisites (Specified by)
- PPL-SPEC-000184 Default generator and shared zero-dimensional origins (Specified by)
- PPL-SPEC-000195 Generator-system hull meaning and construction (Specified by)
- PPL-SPEC-000221 Grid-generator values and integer versus continuous displacement (Specified by)
- PPL-SPEC-000224 Rational grid-point construction, defaults and shared origin (Specified by)
- PPL-SPEC-000235 Grid-generator-system integer-affine span and construction (Specified by)
- PPL-SPEC-000031 Initialization owners and automatic C++ initialization (Specified by)
- PPL-SPEC-000032 Explicit whole-library initialization and finalization (Specified by)
- PPL-SPEC-000033 Thread initialization, default state and finalization (Specified by)
- PPL-SPEC-000034 Rounding-state exchange during an initialized thread lifetime (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000071 Affine value, numerical prerequisites and shared zero (Specified by)
- PPL-SPEC-000921 Interval-linear-form meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000001 Public partial coordinate-map type and valid use (Specified by)
- PPL-SPEC-000008 Coordinate-map diagnostic printing and output failures (Specified by)
- PPL-SPEC-000009 Move construction and empty source (Specified by)
- PPL-SPEC-000010 Move assignment and empty source (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-000891 Temporary-cache values, leases and element prerequisites (Specified by)
- PPL-SPEC-000892 Slow-copy trait selection and built-in GMP classifications (Specified by)
- PPL-SPEC-000893 Obtaining a fresh or retained pool item (Specified by)
- PPL-SPEC-000894 Returning a lease without destroying its value (Specified by)
- PPL-SPEC-000895 Qualified item reference and admitted borrowing (Specified by)
- PPL-SPEC-000896 Pool-item construction and ownership restrictions (Specified by)
- PPL-SPEC-000897 Reference-holder acquisition, access and scope cleanup (Specified by)
- PPL-SPEC-000898 Local value-holder construction and lifetime (Specified by)
- PPL-SPEC-000899 Dirty temporary storage strategy (Specified by)
- PPL-SPEC-000900 Dirty-temporary declaration macro and lexical lifetime (Specified by)
- PPL-SPEC-000901 Allocation and element-construction failure cleanup (Specified by)
- PPL-SPEC-000902 Cache contexts, teardown and retained storage lifetime (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-000021 Public coordinate-index set and value lifecycle (Specified by)
- PPL-SPEC-000026 Coordinate-set diagnostic output and formatter prerequisites (Specified by)
- PPL-SPEC-000012 Variable value identity and lifetime operations (Specified by)
- PPL-SPEC-000017 Active Variable formatter and initialized thread state (Specified by)
- PPL-SPEC-000018 Variable names, formatter dispatch and output failures (Specified by)
- PPL-SPEC-000871 Watchdog platform availability and initialization prerequisites (Specified by)
- PPL-SPEC-000872 Flag-form watchdog registration (Specified by)
- PPL-SPEC-000873 Function-form watchdog registration (Specified by)
- PPL-SPEC-000874 Positive watchdog duration and exact nominal units (Specified by)
- PPL-SPEC-000875 Stable watcher and notification lifetimes (Specified by)
- PPL-SPEC-000876 Ordered event multiplicity and existing-event preservation (Specified by)
- PPL-SPEC-000877 Logical deadlines and bounded physical timer checkpoints (Specified by)
- PPL-SPEC-000878 Failed watchdog construction and surviving events (Specified by)
- PPL-SPEC-000879 Nonthrowing destruction and ordinary cancellation (Specified by)
- PPL-SPEC-000880 Cancellation failure and retained-checkpoint fallback (Specified by)
- PPL-SPEC-000881 Process timer ownership and signal-safe callbacks (Specified by)
- PPL-SPEC-000882 Signal-mask transactions and fatal restoration failures (Specified by)
- PPL-SPEC-000883 Stale timer-notification suppression (Specified by)
- PPL-SPEC-000884 Due-event signal dispatch and successful one-shot expiration (Specified by)
- PPL-SPEC-000885 Deferred timeout accounting inside a transaction (Specified by)
- PPL-SPEC-000886 Fatal signal-context timer-rearm failure (Specified by)
- PPL-SPEC-000887 Timer-read validity and context-specific error channels (Specified by)
- PPL-SPEC-000888 Class initialization and preceding signal action (Specified by)
- PPL-SPEC-000889 Class finalization and pending-notification cleanup (Specified by)
- PPL-SPEC-000890 Timeout and signal-mask errno preservation (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
- PPL-SPEC-001689 Java library initialization and finalization (Specified by)
- PPL-SPEC-001730 Native Java floating-point environment lifetime (Specified by)
STATEMENT: For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
RATIONALE: A thread-safe build can provide thread-specific state while retaining restrictions on mutable objects and process-wide interruption facilities.
COMMENT: Verification covers thread entry and exit, state ownership and supported shared-facility protocols. Thread lifecycle checks and direct state/queue/signal analysis verify the contracts in each supported configuration. The caller must satisfy the declared preconditions; automatic detection of arbitrary sharing or initialization violations is not required. Thread entry and shared-facility conditions complement 🔗 1. Initialization and finalization lifecycle without relaxing 🔗 5. Watchdog scheduling and cancellation scope.
VERIFICATION_CRITERIA: Review thread-entry and exit protocols across native, C and Java interfaces and the supported regimes of other bindings. Check initialization and finalization sequences and isolation of state promised to be thread-specific. Assess simultaneous-use and object-sharing preconditions and the per-thread computational-weight queues and single-owner native watchdog signals. Do not infer unrestricted sharing from a thread-safe configuration token.
SOURCE: src/Init_defs.hh and src/Init.cc: library and thread-specific initialization; src/thread_safe.hh: configured thread-local state; src/Threshold_Watcher_defs.hh and src/globals_defs.hh: shared-trait restrictions and per-thread computational-weight queues; src/Watchdog_defs.hh: single-owner signal discipline; interfaces/C/ppl_c_header.h and interfaces/Java/parma_polyhedra_library/Parma_Polyhedra_Library.java: explicit thread entry and exit.
In builds without NDEBUG, In_Assert shall maintain a nesting count in the calling thread (or the sole configured global context). Its construction shall enter assertion evaluation and destruction shall leave it. asserting() shall be true exactly while that count is nonzero. Balanced nested scopes, including exception unwinding, shall restore the previous state. During such a scope, computational-weight increment macros shall neither increment the counter nor evaluate their increment expressions, and maybe_abandon() shall return without checking thresholds or caller-owned requests. Clients shall retain properly nested, noncopied guard lifetimes. In_Assert shall not be required to exist in builds with NDEBUG.
Diagnostic assertions must not add computational work or trigger cooperative interruption themselves.
Defining C++ headers: globals_defs.hh and globals_inlines.hh. Names belong to Parma_Polyhedra_Library unless a macro is shown. Computational-weight watchers retain 🔗 12. Watcher notification lifetimes and exclusive use.
#ifndef NDEBUG class In_Assert { public: In_Assert(); ~In_Assert(); static bool asserting(); }; #endif
Check nested scopes, suppressed expression side effects, held callbacks/requests and restoration after normal exit and exception unwinding; inspect configured thread-local storage.
src/globals_defs.hh; src/globals_inlines.hh; src/globals.cc; src/thread_safe.hh; tests/weightwatchspec1.cc; tests/weightwatchlegacy1.cc; tests/Polyhedron/weightwatch1.cc.
-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment UID: PPL-LLR-000134 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001553 C deterministic timeout lifecycle (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-001741 Integer feasibility of parametric compatibility contexts (Specified by)
- PPL-SPEC-000536 Indirect-sort failure and cooperative interruption states (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
STATEMENT: At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
RATIONALE: Expensive computations need a way to return control while retaining a clear distinction between cooperative checks and hard real-time interruption.
COMMENT: Verification covers native checkpoints, computational-weight monitoring and caller-owned request persistence. Interruption tests and checkpoint-path analysis verify those contracts. The low-level caller-owned request is distinct from binding-owned timeout state, whose cleanup follows 🔗 4. Binding interruption support and state changes. Queue ownership and concurrency preconditions follow 🔗 6. Thread entry and shared-facility use. No hard elapsed-time response bound is promised.
VERIFICATION_CRITERIA: Exercise caller-owned abandonment requests during solver and polyhedral operations and check exception propagation and persistence until the caller clears the request. Check computational-weight handlers at abandonment checkpoints after their thresholds are reached. Assess binding-owned timeout reset and notification behavior separately under 🔗 4. Binding interruption support and state changes. Review the per-queue ownership and nonreentrancy restrictions for threshold queues under 🔗 6. Thread entry and shared-facility use.
SOURCE: src/globals_defs.hh and src/globals_inlines.hh: abandonment request ownership, computational-weight checks, and exception dispatch. src/Threshold_Watcher_defs.hh and src/Threshold_Watcher_templates.hh: configured queue ownership and reached-threshold dispatch. tests/PIP_Problem/weightwatch1.cc and tests/Polyhedron/weightwatch1.cc: cooperative interruption scenarios.
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use UID: PPL-LLR-000438 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001515 C library and thread lifecycle (Specified by)
- PPL-SPEC-001518 C rounding and irrational precision controls (Specified by)
- PPL-SPEC-001514 C handles, arguments and successful outcomes (Specified by)
- PPL-SPEC-000042 Finite coefficient construction, copying and comparison (Specified by)
- PPL-SPEC-000046 Coefficient zero and one constant access (Specified by)
- PPL-SPEC-000047 Coefficient constant-stage acquisition and release (Specified by)
- PPL-SPEC-001735 Conversion worker queue and shutdown protocol (Specified by)
- PPL-SPEC-000141 Affine congruence meaning and valid numerical use (Specified by)
- PPL-SPEC-000142 Default congruence and shared zero-dimensional values (Specified by)
- PPL-SPEC-000156 Congruence-system meaning and construction (Specified by)
- PPL-SPEC-000101 Constraint relation meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000103 Default and shared zero-dimensional constraints (Specified by)
- PPL-SPEC-000114 Constraint-system conjunction, construction and shared contradiction (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001622 Internal affine value, coefficient storage and dispatch prerequisites (Specified by)
- PPL-SPEC-001623 Independent backend construction, copying and affine arithmetic (Specified by)
- PPL-SPEC-001624 Raw coefficient access, zero ranges, gcd and support filtering (Specified by)
- PPL-SPEC-001625 Range scaling and exact affine elimination (Specified by)
- PPL-SPEC-001626 Backend equality, comparison and common-variable queries (Specified by)
- PPL-SPEC-001627 Owned raw iterator handles and borrowed coefficient positions (Specified by)
- PPL-SPEC-001628 Backend row export, serialization, diagnostics and accounting (Specified by)
- PPL-SPEC-000181 Generator kinds and numerical prerequisites (Specified by)
- PPL-SPEC-000184 Default generator and shared zero-dimensional origins (Specified by)
- PPL-SPEC-000195 Generator-system hull meaning and construction (Specified by)
- PPL-SPEC-000221 Grid-generator values and integer versus continuous displacement (Specified by)
- PPL-SPEC-000224 Rational grid-point construction, defaults and shared origin (Specified by)
- PPL-SPEC-000235 Grid-generator-system integer-affine span and construction (Specified by)
- PPL-SPEC-000031 Initialization owners and automatic C++ initialization (Specified by)
- PPL-SPEC-000032 Explicit whole-library initialization and finalization (Specified by)
- PPL-SPEC-000033 Thread initialization, default state and finalization (Specified by)
- PPL-SPEC-000034 Rounding-state exchange during an initialized thread lifetime (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000071 Affine value, numerical prerequisites and shared zero (Specified by)
- PPL-SPEC-000921 Interval-linear-form meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000001 Public partial coordinate-map type and valid use (Specified by)
- PPL-SPEC-000008 Coordinate-map diagnostic printing and output failures (Specified by)
- PPL-SPEC-000009 Move construction and empty source (Specified by)
- PPL-SPEC-000010 Move assignment and empty source (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-000891 Temporary-cache values, leases and element prerequisites (Specified by)
- PPL-SPEC-000892 Slow-copy trait selection and built-in GMP classifications (Specified by)
- PPL-SPEC-000893 Obtaining a fresh or retained pool item (Specified by)
- PPL-SPEC-000894 Returning a lease without destroying its value (Specified by)
- PPL-SPEC-000895 Qualified item reference and admitted borrowing (Specified by)
- PPL-SPEC-000896 Pool-item construction and ownership restrictions (Specified by)
- PPL-SPEC-000897 Reference-holder acquisition, access and scope cleanup (Specified by)
- PPL-SPEC-000898 Local value-holder construction and lifetime (Specified by)
- PPL-SPEC-000899 Dirty temporary storage strategy (Specified by)
- PPL-SPEC-000900 Dirty-temporary declaration macro and lexical lifetime (Specified by)
- PPL-SPEC-000901 Allocation and element-construction failure cleanup (Specified by)
- PPL-SPEC-000902 Cache contexts, teardown and retained storage lifetime (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-000021 Public coordinate-index set and value lifecycle (Specified by)
- PPL-SPEC-000026 Coordinate-set diagnostic output and formatter prerequisites (Specified by)
- PPL-SPEC-000012 Variable value identity and lifetime operations (Specified by)
- PPL-SPEC-000017 Active Variable formatter and initialized thread state (Specified by)
- PPL-SPEC-000018 Variable names, formatter dispatch and output failures (Specified by)
- PPL-SPEC-000871 Watchdog platform availability and initialization prerequisites (Specified by)
- PPL-SPEC-000872 Flag-form watchdog registration (Specified by)
- PPL-SPEC-000873 Function-form watchdog registration (Specified by)
- PPL-SPEC-000874 Positive watchdog duration and exact nominal units (Specified by)
- PPL-SPEC-000875 Stable watcher and notification lifetimes (Specified by)
- PPL-SPEC-000876 Ordered event multiplicity and existing-event preservation (Specified by)
- PPL-SPEC-000877 Logical deadlines and bounded physical timer checkpoints (Specified by)
- PPL-SPEC-000878 Failed watchdog construction and surviving events (Specified by)
- PPL-SPEC-000879 Nonthrowing destruction and ordinary cancellation (Specified by)
- PPL-SPEC-000880 Cancellation failure and retained-checkpoint fallback (Specified by)
- PPL-SPEC-000881 Process timer ownership and signal-safe callbacks (Specified by)
- PPL-SPEC-000882 Signal-mask transactions and fatal restoration failures (Specified by)
- PPL-SPEC-000883 Stale timer-notification suppression (Specified by)
- PPL-SPEC-000884 Due-event signal dispatch and successful one-shot expiration (Specified by)
- PPL-SPEC-000885 Deferred timeout accounting inside a transaction (Specified by)
- PPL-SPEC-000886 Fatal signal-context timer-rearm failure (Specified by)
- PPL-SPEC-000887 Timer-read validity and context-specific error channels (Specified by)
- PPL-SPEC-000888 Class initialization and preceding signal action (Specified by)
- PPL-SPEC-000889 Class finalization and pending-notification cleanup (Specified by)
- PPL-SPEC-000890 Timeout and signal-mask errno preservation (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
- PPL-SPEC-001689 Java library initialization and finalization (Specified by)
- PPL-SPEC-001730 Native Java floating-point environment lifetime (Specified by)
STATEMENT: For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
RATIONALE: A thread-safe build can provide thread-specific state while retaining restrictions on mutable objects and process-wide interruption facilities.
COMMENT: Verification covers thread entry and exit, state ownership and supported shared-facility protocols. Thread lifecycle checks and direct state/queue/signal analysis verify the contracts in each supported configuration. The caller must satisfy the declared preconditions; automatic detection of arbitrary sharing or initialization violations is not required. Thread entry and shared-facility conditions complement 🔗 1. Initialization and finalization lifecycle without relaxing 🔗 5. Watchdog scheduling and cancellation scope.
VERIFICATION_CRITERIA: Review thread-entry and exit protocols across native, C and Java interfaces and the supported regimes of other bindings. Check initialization and finalization sequences and isolation of state promised to be thread-specific. Assess simultaneous-use and object-sharing preconditions and the per-thread computational-weight queues and single-owner native watchdog signals. Do not infer unrestricted sharing from a thread-safe configuration token.
SOURCE: src/Init_defs.hh and src/Init.cc: library and thread-specific initialization; src/thread_safe.hh: configured thread-local state; src/Threshold_Watcher_defs.hh and src/globals_defs.hh: shared-trait restrictions and per-thread computational-weight queues; src/Watchdog_defs.hh: single-owner signal discipline; interfaces/C/ppl_c_header.h and interfaces/Java/parma_polyhedra_library/Parma_Polyhedra_Library.java: explicit thread entry and exit.
Throwable shall provide a const virtual throw_me() action and virtual destruction. abandon_expensive_computations shall initially be null and shall retain a borrowed pointer to a caller-owned live Throwable. The client shall keep the request object alive through all admitted reads/actions, publish it under the configured synchronization and execution-context rules, and clear/replace the slot before ending that lifetime. The library shall not own/delete the object or clear a request after invoking it. In a thread-safe configuration the request slot shall be thread-local and atomic; the ordinary configuration shall use its declared volatile pointer protocol. Cross-thread publication shall target the intended live slot under the caller's synchronization; thread-local storage shall not turn a write to another thread's own slot into a request for the computing thread.
Cooperative interruption borrows a client-supplied exception mechanism with explicit persistence and lifetime ownership.
Defining C++ headers: globals_defs.hh and globals_inlines.hh. Names belong to Parma_Polyhedra_Library unless a macro is shown. Computational-weight watchers retain 🔗 12. Watcher notification lifetimes and exclusive use.
class Throwable { public: virtual void throw_me() const = 0; virtual ~Throwable(); }; extern abandon_type abandon_expensive_computations;
Check derived const dispatch, virtual destruction, retained object lifetime and request identity through normal-returning and throwing actions; inspect atomic/thread-local versus volatile declarations.
src/globals_defs.hh; src/globals_inlines.hh; src/globals.cc; src/thread_safe.hh; tests/weightwatchspec1.cc; tests/weightwatchlegacy1.cc; tests/Polyhedron/weightwatch1.cc.
-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment UID: PPL-LLR-000134 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001553 C deterministic timeout lifecycle (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-001741 Integer feasibility of parametric compatibility contexts (Specified by)
- PPL-SPEC-000536 Indirect-sort failure and cooperative interruption states (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
STATEMENT: At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
RATIONALE: Expensive computations need a way to return control while retaining a clear distinction between cooperative checks and hard real-time interruption.
COMMENT: Verification covers native checkpoints, computational-weight monitoring and caller-owned request persistence. Interruption tests and checkpoint-path analysis verify those contracts. The low-level caller-owned request is distinct from binding-owned timeout state, whose cleanup follows 🔗 4. Binding interruption support and state changes. Queue ownership and concurrency preconditions follow 🔗 6. Thread entry and shared-facility use. No hard elapsed-time response bound is promised.
VERIFICATION_CRITERIA: Exercise caller-owned abandonment requests during solver and polyhedral operations and check exception propagation and persistence until the caller clears the request. Check computational-weight handlers at abandonment checkpoints after their thresholds are reached. Assess binding-owned timeout reset and notification behavior separately under 🔗 4. Binding interruption support and state changes. Review the per-queue ownership and nonreentrancy restrictions for threshold queues under 🔗 6. Thread entry and shared-facility use.
SOURCE: src/globals_defs.hh and src/globals_inlines.hh: abandonment request ownership, computational-weight checks, and exception dispatch. src/Threshold_Watcher_defs.hh and src/Threshold_Watcher_templates.hh: configured queue ownership and reached-threshold dispatch. tests/PIP_Problem/weightwatch1.cc and tests/Polyhedron/weightwatch1.cc: cooperative interruption scenarios.
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use UID: PPL-LLR-000438 STATUS: APPROVED COMPONENT: RUNTIME APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001515 C library and thread lifecycle (Specified by)
- PPL-SPEC-001518 C rounding and irrational precision controls (Specified by)
- PPL-SPEC-001514 C handles, arguments and successful outcomes (Specified by)
- PPL-SPEC-000042 Finite coefficient construction, copying and comparison (Specified by)
- PPL-SPEC-000046 Coefficient zero and one constant access (Specified by)
- PPL-SPEC-000047 Coefficient constant-stage acquisition and release (Specified by)
- PPL-SPEC-001735 Conversion worker queue and shutdown protocol (Specified by)
- PPL-SPEC-000141 Affine congruence meaning and valid numerical use (Specified by)
- PPL-SPEC-000142 Default congruence and shared zero-dimensional values (Specified by)
- PPL-SPEC-000156 Congruence-system meaning and construction (Specified by)
- PPL-SPEC-000101 Constraint relation meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000103 Default and shared zero-dimensional constraints (Specified by)
- PPL-SPEC-000114 Constraint-system conjunction, construction and shared contradiction (Specified by)
- PPL-SPEC-000815 Polymorphic event-action interface and virtual destruction (Specified by)
- PPL-SPEC-000816 Flag-handler binding and binding-preserving copies (Specified by)
- PPL-SPEC-000817 Strict-priority flag installation (Specified by)
- PPL-SPEC-000818 Function-handler target binding and copies (Specified by)
- PPL-SPEC-000819 Function action dispatch and callback failure (Specified by)
- PPL-SPEC-001622 Internal affine value, coefficient storage and dispatch prerequisites (Specified by)
- PPL-SPEC-001623 Independent backend construction, copying and affine arithmetic (Specified by)
- PPL-SPEC-001624 Raw coefficient access, zero ranges, gcd and support filtering (Specified by)
- PPL-SPEC-001625 Range scaling and exact affine elimination (Specified by)
- PPL-SPEC-001626 Backend equality, comparison and common-variable queries (Specified by)
- PPL-SPEC-001627 Owned raw iterator handles and borrowed coefficient positions (Specified by)
- PPL-SPEC-001628 Backend row export, serialization, diagnostics and accounting (Specified by)
- PPL-SPEC-000181 Generator kinds and numerical prerequisites (Specified by)
- PPL-SPEC-000184 Default generator and shared zero-dimensional origins (Specified by)
- PPL-SPEC-000195 Generator-system hull meaning and construction (Specified by)
- PPL-SPEC-000221 Grid-generator values and integer versus continuous displacement (Specified by)
- PPL-SPEC-000224 Rational grid-point construction, defaults and shared origin (Specified by)
- PPL-SPEC-000235 Grid-generator-system integer-affine span and construction (Specified by)
- PPL-SPEC-000031 Initialization owners and automatic C++ initialization (Specified by)
- PPL-SPEC-000032 Explicit whole-library initialization and finalization (Specified by)
- PPL-SPEC-000033 Thread initialization, default state and finalization (Specified by)
- PPL-SPEC-000034 Rounding-state exchange during an initialized thread lifetime (Specified by)
- PPL-SPEC-001733 Interruptible thread registration and request lifetime (Specified by)
- PPL-SPEC-000071 Affine value, numerical prerequisites and shared zero (Specified by)
- PPL-SPEC-000921 Interval-linear-form meaning and numerical prerequisites (Specified by)
- PPL-SPEC-000001 Public partial coordinate-map type and valid use (Specified by)
- PPL-SPEC-000008 Coordinate-map diagnostic printing and output failures (Specified by)
- PPL-SPEC-000009 Move construction and empty source (Specified by)
- PPL-SPEC-000010 Move assignment and empty source (Specified by)
- PPL-SPEC-000801 Threshold-ordered pending events and caller prerequisites (Specified by)
- PPL-SPEC-000802 Pending-element construction and embedded-link lifetime (Specified by)
- PPL-SPEC-000803 Element attribute reassignment without relinking (Specified by)
- PPL-SPEC-000804 Threshold, handler and expired-flag reference access (Specified by)
- PPL-SPEC-000805 Pending-element attribute checker scope (Specified by)
- PPL-SPEC-000806 Queue construction and complete active/free ownership cleanup (Specified by)
- PPL-SPEC-000807 Sorted insertion and equivalent-deadline multiplicity (Specified by)
- PPL-SPEC-000808 Insertion with borrowed active attributes (Specified by)
- PPL-SPEC-000809 Active-event erasure and successor preservation (Specified by)
- PPL-SPEC-000810 Recycled-node insertion and allocation-free reuse (Specified by)
- PPL-SPEC-000811 Active-event iterator ranges and borrowed traversal (Specified by)
- PPL-SPEC-000812 Active emptiness independent of retained pool storage (Specified by)
- PPL-SPEC-000813 Queue node checks and threshold-order validation (Specified by)
- PPL-SPEC-000814 Insertion-allocation failure preservation and retry (Specified by)
- PPL-SPEC-000891 Temporary-cache values, leases and element prerequisites (Specified by)
- PPL-SPEC-000892 Slow-copy trait selection and built-in GMP classifications (Specified by)
- PPL-SPEC-000893 Obtaining a fresh or retained pool item (Specified by)
- PPL-SPEC-000894 Returning a lease without destroying its value (Specified by)
- PPL-SPEC-000895 Qualified item reference and admitted borrowing (Specified by)
- PPL-SPEC-000896 Pool-item construction and ownership restrictions (Specified by)
- PPL-SPEC-000897 Reference-holder acquisition, access and scope cleanup (Specified by)
- PPL-SPEC-000898 Local value-holder construction and lifetime (Specified by)
- PPL-SPEC-000899 Dirty temporary storage strategy (Specified by)
- PPL-SPEC-000900 Dirty-temporary declaration macro and lexical lifetime (Specified by)
- PPL-SPEC-000901 Allocation and element-construction failure cleanup (Specified by)
- PPL-SPEC-000902 Cache contexts, teardown and retained storage lifetime (Specified by)
- PPL-SPEC-000851 Generic threshold-watcher traits and admitted value protocol (Specified by)
- PPL-SPEC-000852 Flag-notification watcher construction (Specified by)
- PPL-SPEC-000853 Function-notification watcher construction (Specified by)
- PPL-SPEC-000854 Threshold conversion and already-reached rejection (Specified by)
- PPL-SPEC-000855 Per-trait event ordering and multiplicity (Specified by)
- PPL-SPEC-000856 Published checking function and empty-queue transitions (Specified by)
- PPL-SPEC-000857 Due-event dispatch and successful expiration (Specified by)
- PPL-SPEC-000858 Action exceptions and partially completed dispatch (Specified by)
- PPL-SPEC-000859 Watcher destruction, cancellation and handler ownership (Specified by)
- PPL-SPEC-000860 Construction failure cleanup and existing-event preservation (Specified by)
- PPL-SPEC-000861 Noncopyable watcher lifetime identity (Specified by)
- PPL-SPEC-000862 Watcher notification lifetimes and exclusive use (Specified by)
- PPL-SPEC-000021 Public coordinate-index set and value lifecycle (Specified by)
- PPL-SPEC-000026 Coordinate-set diagnostic output and formatter prerequisites (Specified by)
- PPL-SPEC-000012 Variable value identity and lifetime operations (Specified by)
- PPL-SPEC-000017 Active Variable formatter and initialized thread state (Specified by)
- PPL-SPEC-000018 Variable names, formatter dispatch and output failures (Specified by)
- PPL-SPEC-000871 Watchdog platform availability and initialization prerequisites (Specified by)
- PPL-SPEC-000872 Flag-form watchdog registration (Specified by)
- PPL-SPEC-000873 Function-form watchdog registration (Specified by)
- PPL-SPEC-000874 Positive watchdog duration and exact nominal units (Specified by)
- PPL-SPEC-000875 Stable watcher and notification lifetimes (Specified by)
- PPL-SPEC-000876 Ordered event multiplicity and existing-event preservation (Specified by)
- PPL-SPEC-000877 Logical deadlines and bounded physical timer checkpoints (Specified by)
- PPL-SPEC-000878 Failed watchdog construction and surviving events (Specified by)
- PPL-SPEC-000879 Nonthrowing destruction and ordinary cancellation (Specified by)
- PPL-SPEC-000880 Cancellation failure and retained-checkpoint fallback (Specified by)
- PPL-SPEC-000881 Process timer ownership and signal-safe callbacks (Specified by)
- PPL-SPEC-000882 Signal-mask transactions and fatal restoration failures (Specified by)
- PPL-SPEC-000883 Stale timer-notification suppression (Specified by)
- PPL-SPEC-000884 Due-event signal dispatch and successful one-shot expiration (Specified by)
- PPL-SPEC-000885 Deferred timeout accounting inside a transaction (Specified by)
- PPL-SPEC-000886 Fatal signal-context timer-rearm failure (Specified by)
- PPL-SPEC-000887 Timer-read validity and context-specific error channels (Specified by)
- PPL-SPEC-000888 Class initialization and preceding signal action (Specified by)
- PPL-SPEC-000889 Class finalization and pending-notification cleanup (Specified by)
- PPL-SPEC-000890 Timeout and signal-mask errno preservation (Specified by)
- PPL-SPEC-001598 Optional profiler selection and instrumentation protocol (Specified by)
- PPL-SPEC-001599 Profiler clock boundaries and zero-iteration weight accounting (Specified by)
- PPL-SPEC-001600 Profiler sample classification and weighted statistics (Specified by)
- PPL-SPEC-001601 Profiler reports, lifetime output and startup calibration (Specified by)
- PPL-SPEC-000863 Computational-weight value and current-state binding (Specified by)
- PPL-SPEC-000864 Exact scaled-weight conversion and representability (Specified by)
- PPL-SPEC-000865 Absolute threshold formation and modular aliases (Specified by)
- PPL-SPEC-000866 Strict circular ordering of computational weights (Specified by)
- PPL-SPEC-000867 Computational-weight instrumentation outside profiling mode (Specified by)
- PPL-SPEC-000868 Assertion-scope instrumentation suppression (Specified by)
- PPL-SPEC-000869 Caller-owned abandonment request and exception object (Specified by)
- PPL-SPEC-000870 Cooperative abandonment checkpoint ordering and propagation (Specified by)
- PPL-SPEC-001689 Java library initialization and finalization (Specified by)
- PPL-SPEC-001730 Native Java floating-point environment lifetime (Specified by)
STATEMENT: For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
RATIONALE: A thread-safe build can provide thread-specific state while retaining restrictions on mutable objects and process-wide interruption facilities.
COMMENT: Verification covers thread entry and exit, state ownership and supported shared-facility protocols. Thread lifecycle checks and direct state/queue/signal analysis verify the contracts in each supported configuration. The caller must satisfy the declared preconditions; automatic detection of arbitrary sharing or initialization violations is not required. Thread entry and shared-facility conditions complement 🔗 1. Initialization and finalization lifecycle without relaxing 🔗 5. Watchdog scheduling and cancellation scope.
VERIFICATION_CRITERIA: Review thread-entry and exit protocols across native, C and Java interfaces and the supported regimes of other bindings. Check initialization and finalization sequences and isolation of state promised to be thread-specific. Assess simultaneous-use and object-sharing preconditions and the per-thread computational-weight queues and single-owner native watchdog signals. Do not infer unrestricted sharing from a thread-safe configuration token.
SOURCE: src/Init_defs.hh and src/Init.cc: library and thread-specific initialization; src/thread_safe.hh: configured thread-local state; src/Threshold_Watcher_defs.hh and src/globals_defs.hh: shared-trait restrictions and per-thread computational-weight queues; src/Watchdog_defs.hh: single-owner signal discipline; interfaces/C/ppl_c_header.h and interfaces/Java/parma_polyhedra_library/Parma_Polyhedra_Library.java: explicit thread entry and exit.
Outside 🔗 6. Assertion-scope instrumentation suppression, maybe_abandon() shall first invoke the nonnull computational-weight checking hook. If that action returns, it shall select the current registration-scoped request in a thread-safe build 🔗 5. Interruptible thread registration and request lifetime, if one is present, or read the current caller-owned abandonment slot. It shall invoke the selected nonnull object's const throw_me() action. The read shall observe admitted serial request changes made by the hook. A throwing hook shall propagate its exception and prevent the later action for that invocation. A throwing request action shall likewise propagate. Neither path shall clear a request, undo callback effects or take ownership of its object. A null hook/request shall be skipped. The checkpoint shall not promise a fixed elapsed-time interruption bound.
Threshold handling precedes the current client request, and interruption effects must remain visible for retry or explicit cancellation.
Defining C++ headers: globals_defs.hh and globals_inlines.hh. Names belong to Parma_Polyhedra_Library unless a macro is shown. Computational-weight watchers retain 🔗 12. Watcher notification lifetimes and exclusive use.
void maybe_abandon();
Use exact event logs for null/present hook/request combinations, hook publication/clearing of requests, normal/throwing actions, persistent requests and assertion suppression; verify propagated exception identity and action order.
src/globals_defs.hh; src/globals_inlines.hh; src/globals.cc; src/make_threadable.cc; tests/Polyhedron/threadsafe2.cc; src/thread_safe.hh; tests/weightwatchspec1.cc; tests/weightwatchlegacy1.cc; tests/Polyhedron/weightwatch1.cc; tests/MIP_Problem/mipproblem2.cc.