-
Incoming link from: 4. Command-line input and outcome reporting1
1. Polyhedral representation conversion tool UID: PPL-LLR-000219 STATUS: APPROVED COMPONENT: COMMAND_LINE_TOOLS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT: When built with the PPL backend, the polyhedral conversion tool shall, on successful completion within its documented arithmetic and resource assumptions, convert an accepted constraint representation of a polyhedron to a generator representation, or an accepted generator representation to a constraint representation, denoting the same polyhedron.
RATIONALE: Representation conversion makes the library's polyhedral algorithms usable through a standalone program.
COMMENT: Verification covers the conversion tool's supported PPL-backend input interpretation and mathematically equivalent output representations. Independent reconstruction checks and parser/output inspection verify these contracts. The requirement applies only when the tool is selected and built with that backend; it does not prescribe platform-dependent timing or multithreaded output-path behavior. Failure and incomplete-computation reporting is governed by 🔗 4. Command-line input and outcome reporting.
VERIFICATION_CRITERIA: Accepted nonempty, empty and unbounded examples are converted in both directions; an independent reconstruction from each output denotes the input polyhedron; checks are restricted to formats and modes supported by the configured tool.
SOURCE: README.configure.md, Programs that Come with the Library; demos/ppl_lcdd/ppl_lcdd.cc, usage description and representation input/output; demos/ppl_lcdd/Makefile.am.
-
4. Command-line input and outcome reporting UID: PPL-LLR-000441 STATUS: APPROVED COMPONENT: COMMAND_LINE_TOOLS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): - PPL-SPEC-001657 Native output pathname construction for polyhedral conversion (Specified by)
- PPL-SPEC-001705 MPS linear optimization command protocol (Specified by)
- PPL-SPEC-001706 Parametric integer solver command protocol (Specified by)
- PPL-SPEC-001734 Polyhedral conversion command protocol (Specified by)
STATEMENT: Each distributed numerical command-line tool shall define its accepted input formats and option interpretation, output conventions, and diagnostics for invalid input, input/output failure, arithmetic or resource failure, and supported interruption. Its observable output and termination conventions shall distinguish completed numerical results from failed or incomplete computations. A failed or incomplete computation shall not be presented as a completed numerical result.
RATIONALE: A mathematical success contract is insufficient for command-line clients that must distinguish valid numerical conclusions from failure to compute them.
COMMENT: Verification covers each tool's accepted input, options, diagnostics and observable completion/failure conventions. Command-line scenario checks and parser/reporting-path inspection verify these contracts. 🔗 1. Polyhedral representation conversion tool, 🔗 2. Linear optimization command-line solver and 🔗 3. Parametric integer optimization tool own the completed mathematical results. The tools need not share exit codes or diagnostic text; an existing zero-status timeout convention may remain valid only when its observable output identifies an incomplete computation.
VERIFICATION_CRITERIA: For each selected tool and supported backend or mode, review accepted formats and options and exercise completed numerical outcomes, malformed input, invalid options, unavailable files, output failures, supported numerical/resource failures and interruptions. Check diagnostics and termination conventions together rather than assuming a uniform exit-code policy. Distinguish a mathematically infeasible problem from invalid input, and an explicitly reported timeout from a completed conversion or optimization.
SOURCE: demos/ppl_lcdd/ppl_lcdd.cc: input, option and output handling, diagnostics and timeout marker; demos/ppl_lpsol/ppl_lpsol.c: MPS input and reported outcomes; demos/ppl_pips/ppl_pips.cc: input parsers, option processing and error reporting; README.configure.md: Programs that Come with the Library.
In the threaded PPL backend of ppl_lcdd, build_output_name shall accept a non-null null-terminated input pathname and an optional null-terminated output-directory pathname. It shall return the native input basename followed by .out, joined to the supplied nonempty directory or to . when that directory is null or empty. An empty basename shall yield .out. Native path separators and basename rules shall apply; in particular, a backslash in a POSIX basename shall be preserved. The inputs shall remain unchanged. The function shall not access the filesystem. Allocation and native pathname-conversion failures may propagate.
Preserving characters inside a native basename avoids conflating distinct basenames when routing threaded conversion output into a directory.
Internal function in demos/ppl_lcdd/ppl_lcdd.cc:
std::string build_output_name(const char* path_out, const char* name_in);
Compare native basename and join semantics for null, empty and explicit directories, trailing separators, empty and long basenames and literal backslashes. Through the actual command line, convert distinct POSIX input names that previously collided and compare both result files with a known conversion, in default and explicit output directories.
demos/ppl_lcdd/ppl_lcdd.cc; demos/ppl_lcdd/outputnamespec1.cc; demos/ppl_lcdd/check_named_output.sh.
-
Incoming link from: 4. Command-line input and outcome reporting1
1. Polyhedral representation conversion tool UID: PPL-LLR-000219 STATUS: APPROVED COMPONENT: COMMAND_LINE_TOOLS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT: When built with the PPL backend, the polyhedral conversion tool shall, on successful completion within its documented arithmetic and resource assumptions, convert an accepted constraint representation of a polyhedron to a generator representation, or an accepted generator representation to a constraint representation, denoting the same polyhedron.
RATIONALE: Representation conversion makes the library's polyhedral algorithms usable through a standalone program.
COMMENT: Verification covers the conversion tool's supported PPL-backend input interpretation and mathematically equivalent output representations. Independent reconstruction checks and parser/output inspection verify these contracts. The requirement applies only when the tool is selected and built with that backend; it does not prescribe platform-dependent timing or multithreaded output-path behavior. Failure and incomplete-computation reporting is governed by 🔗 4. Command-line input and outcome reporting.
VERIFICATION_CRITERIA: Accepted nonempty, empty and unbounded examples are converted in both directions; an independent reconstruction from each output denotes the input polyhedron; checks are restricted to formats and modes supported by the configured tool.
SOURCE: README.configure.md, Programs that Come with the Library; demos/ppl_lcdd/ppl_lcdd.cc, usage description and representation input/output; demos/ppl_lcdd/Makefile.am.
-
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.
Threadsafe_Queue shall serialize access to its FIFO. A successful try_pop shall assign and remove the oldest queued item; an empty queue shall return false without assigning an item. empty is a synchronized observation rather than a reservation. These operations require the element type's used copy/move operations to complete successfully when a completed queue action is required.
The pool shall select at least one worker. If starting a worker fails, the constructor shall stop and join every worker it has started before propagating the exception.
For a successfully constructed pool, submissions made before finalize or destruction shall be queued. Workers shall repeatedly claim and invoke queued work. finalize shall request stopping once the queue is drained; destruction shall request that stop and join every worker before returning. Work submitted before stopping shall be invoked once when work and queue operations complete normally. No submission may race with or follow the stop request. Work must not allow an exception to escape its worker entry point. The queue and pool shall not be copied, moved or assigned.
Queue locking, stop signalling and joining together determine whether a conversion task is executed and whether its storage remains alive.
Internal templates in the conversion tool:
template <typename T> class Threadsafe_Queue; template <typename Work> class Thread_Pool;
Queue operations: empty, push and try_pop. Pool operations: construction, submit, finalize and destruction. work_type names Work. The pool chooses its worker count from std::thread::hardware_concurrency, using one worker if that value is zero and capping the count by a positive task count when provided.
Inspect mutex ownership and FIFO removal, stop/drain ordering, and joins before queue destruction. Exercise multiple producers/consumers with uniquely numbered nonthrowing work and verify no lost or repeated invocation. Check the one-worker fallback and verify that a failure during partial construction stops and joins every started worker.
demos/ppl_lcdd/Thread_Pool_defs.hh; demos/ppl_lcdd/Thread_Pool_templates.hh; demos/ppl_lcdd/ppl_lcdd.cc.