-
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.
Computational-weight profiling shall be selected by nonzero PPL_PROFILE_ADD_WEIGHT together with NDEBUG. Assertion builds shall retain ordinary weight instrumentation even when the profiling flag is nonzero; profiling-disabled release builds shall retain 🔗 5. Computational-weight instrumentation outside profiling mode. Profiler implementation definitions and automatic calibration shall be present only in the selected profiling configuration. The profiler declaration shall be included after Weightwatch_Traits is complete, with the time declarations required by its interface.
In profiling mode, WEIGHT_BEGIN() shall call Weight_Profiler::begin(). Each expansion of WEIGHT_ADD(d) or WEIGHT_ADD_MUL(d, f) shall own a function-static profiling point identified by that expansion's file and line. The first execution shall evaluate and capture d as the point's Delta; later executions of that expansion shall reuse it. WEIGHT_ADD shall end a one-iteration sample; WEIGHT_ADD_MUL shall evaluate f once per execution, convert it to unsigned int, and end that many iterations. Expressions and their conversions shall be defined. Deltas intended to vary between calls shall use distinct explicit profiling points instead.
The profiler shall borrow its file-name string through its last output or destruction. Calls using the shared clock boundary, calibration and statistics shall be serialized, including in a thread-safe library build. A successful POSIX calling-thread CPU clock shall be available. Timing calls shall occur in the same thread over each interval. Admitted statistics shall remain representable in their unsigned int sample/iteration counters; timing differences shall remain representable in the clock arithmetic. No numerical-library initialization prerequisite shall be imposed by the profiler itself. The ordinary weight counter shall retain 🔗 1. Computational-weight value and current-state binding.
Optional measurement needs a distinct configuration and a stable per-site weight without changing ordinary instrumentation. Shared clock and stream state require explicit serialization.
Defining C++ headers: globals_defs.hh and Weight_Profiler_defs.hh. Names belong to Parma_Polyhedra_Library unless a macro is shown. Member excerpts apply to Weight_Profiler.
// Selected only for NDEBUG && PPL_PROFILE_ADD_WEIGHT: #define WEIGHT_BEGIN() /* begin the shared timing interval */ #define WEIGHT_ADD(delta) /* end one iteration at this point */ #define WEIGHT_ADD_MUL(delta, factor) /* end factor iterations */
Compile and run enabled release, enabled assertion and disabled release variants. Check absence of clock calls and calibration outside the selected configuration. Exercise two calls at one macro expansion with different delta expressions, single evaluation of factors, and distinct one-iteration sites. Inspect borrowed-string lifetime, shared-state restrictions and counter bounds.
src/globals_defs.hh; src/Weight_Profiler_defs.hh; src/Weight_Profiler.cc; tests/weightprofilerspec1.cc; tests/weightprofilerimpl1.cc; tests/weightprofilertestclock.hh.
-
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.
begin() shall replace the shared timestamp with the calling thread CPU time. For end(n) with n > 0, the profiler shall add δn to Weightwatch_Traits::weight using that unsigned counter's modular arithmetic, read a new timestamp, and use the preceding shared boundary as the interval start. A nanosecond-field rollover shall retain the elapsed time across the seconds boundary. After subtracting the calibrated overhead a, it shall supply the elapsed nanoseconds e and per-iteration value x = e ⁄ n to 🔗 3. Profiler sample classification and weighted statistics. Timing arithmetic shall use double and its rounding; adjusted times need not be nonnegative.
For end(0), the profiler shall refresh the shared timestamp without changing the weight, sample counts, iteration counts or accumulated statistics. It shall perform no division by zero or statistical arithmetic for that call. The next sample shall start at the refreshed boundary, so an interval with no iterations shall not be attributed to subsequent work. All calls shall satisfy 🔗 1. Optional profiler selection and instrumentation protocol.
Per-iteration time is defined only for a positive iteration count. A zero count adds zero computational weight but must still separate timing intervals.
Defining C++ headers: globals_defs.hh and Weight_Profiler_defs.hh. Names belong to Parma_Polyhedra_Library unless a macro is shown. Member excerpts apply to Weight_Profiler.
class Weight_Profiler { public: static void begin(); void end(unsigned int factor = 1); };
Use a controlled clock to check direct and borrowed-nanosecond differences, multiple seconds, modular weight wrap, positive counts and default count one. Check zero-count calls before and after samples, their clock refresh, unchanged output/weight, and absence of FE_DIVBYZERO and FE_INVALID. Check that a later positive sample excludes the zero-count interval.
src/globals_defs.hh; src/Weight_Profiler_defs.hh; src/Weight_Profiler.cc; tests/weightprofilerspec1.cc; tests/weightprofilerimpl1.cc; tests/weightprofilertestclock.hh.
-
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.
Construction shall capture the source location, delta and timing thresholds, and initialize both the valid and discarded statistical classes to zero. It shall leave the shared timing boundary and computational weight unchanged. For each positive-count sample from 🔗 2. Profiler clock boundaries and zero-iteration weight accounting, let x = e ⁄ n. The sample shall be discarded exactly when x < m or (M > 0 ∧ x > M), where m and M are the minimum and maximum thresholds. Equality with either active threshold shall be valid; a nonpositive maximum threshold shall disable the upper test.
In the selected class, the sample count shall increase by one and the iteration count N by n. The elapsed-time sum S shall increase by e, and the weighted square sum Q by ex. The first sample shall set both extrema to x; later samples shall retain the minimum and maximum per-iteration values. The other class shall remain unchanged. Classification shall not suppress the computational-weight increment. Statistics shall use double arithmetic with its rounding. The output mean shall be S ⁄ N, and valid-sample population variance Q ⁄ N − (S ⁄ N)2, the iteration-weighted statistics. Floating rounding can make the computed variance negative; no exact-time or nonnegative rounded variance guarantee shall be imposed. 🔗 1. Optional profiler selection and instrumentation protocol shall apply.
Samples can contain different iteration counts. Weighting the first and second moments by iterations preserves their mathematical interpretation; thresholds separate admitted and discarded timing observations.
Defining C++ headers: globals_defs.hh and Weight_Profiler_defs.hh. Names belong to Parma_Polyhedra_Library unless a macro is shown. Member excerpts apply to Weight_Profiler.
class Weight_Profiler { public: Weight_Profiler(const char* file, int line, Weightwatch_Traits::Delta delta, double min_threshold = 0, double max_threshold = 0); void end(unsigned int factor = 1); };
Check independent weighted sums and moments, initial/extreme/interior samples, both threshold equalities, lower and upper rejection, a disabled upper bound, and valid-only/discarded-only/mixed classes. Verify that discarded observations still add weight, and that zero-count calls preserve an existing report. Check finite exactly representable timing fixtures; inspect rounding limits.
src/globals_defs.hh; src/Weight_Profiler_defs.hh; src/Weight_Profiler.cc; tests/weightprofilerspec1.cc; tests/weightprofilerimpl1.cc; tests/weightprofilertestclock.hh.
-
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.
output_stats() shall write to std::cout without clearing the stored statistics. Its prefix shall identify the borrowed file and line followed by Weight_Profiler. An unvisited point shall report never reached.. A nonempty valid class shall report samples, iterations, per-iteration extrema, mean, variance and square root of variance. A nonempty discarded class shall report thresholds, samples, iterations, extrema and mean. Both classes shall be reported when nonempty, valid first, with a terminating flushed newline. Numerical formatting shall follow the stream's current state. Stream failures shall follow standard stream behavior; destruction shall call this output operation subject to ordinary nonthrowing-destructor rules.
Automatic initialization in the selected configuration shall set the shared adjustment to tune_adjustment()'s return value. That internal calibration shall begin a shared interval, set the adjustment to zero, and perform 1000 one-iteration measurements at a function-static point with zero delta and zero thresholds. It shall return that point's stored valid minimum. Its statistics shall remain available for the point's destruction report. Calibration shall not change the computational weight. Direct subsequent calls shall again zero the adjustment, append 1000 measurements to that same point, and return its retained minimum; they shall not install the returned adjustment themselves. Calls shall satisfy 🔗 1. Optional profiler selection and instrumentation protocol.
Per-point output supplies the observations used to assess computational weights. Startup calibration estimates the measurement infrastructure cost without charging it as algorithmic weight.
Defining C++ headers: globals_defs.hh and Weight_Profiler_defs.hh. Names belong to Parma_Polyhedra_Library unless a macro is shown. Member excerpts apply to Weight_Profiler.
class Weight_Profiler { public: void output_stats(); ~Weight_Profiler(); static double tune_adjustment(); };
Check exact report fields against independently calculated values and check unvisited, valid-only, discarded-only and mixed output. Check repeatable output without reset, borrowed label identity, destructor reporting and newline flush. Use a constant-step clock to check the 1001 startup clock reads, zero calibration weight, adjustment subtraction, and the retained calibration report. Inspect stream exception and destructor behavior and exercise explicit recalibration.
src/globals_defs.hh; src/Weight_Profiler_defs.hh; src/Weight_Profiler.cc; tests/weightprofilerspec1.cc; tests/weightprofilerimpl1.cc; tests/weightprofilertestclock.hh.