Parma Polyhedra Library requirements
C++ command-line output pathname support
  • PPL-LLR-000219
    1. Polyhedral representation conversion tool PPL-LLR-000219

    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.

    • PPL-HLR-000010
      10. Configurable distribution and command-line access PPL-HLR-000010

      PPL shall provide a configurable source distribution that identifies the enabled numerical and language facilities, and shall provide its distributed command-line tools with documented input, output and failure behavior.

  • 4. Command-line input and outcome reporting PPL-LLR-000441

    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.

    • PPL-HLR-000010
      10. Configurable distribution and command-line access PPL-HLR-000010

      PPL shall provide a configurable source distribution that identifies the enabled numerical and language facilities, and shall provide its distributed command-line tools with documented input, output and failure behavior.

PPL-SPEC-001657
1. Native output pathname construction for polyhedral conversion PPL-SPEC-001657

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.

  • PPL-LLR-000219
    1. Polyhedral representation conversion tool PPL-LLR-000219

    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.

    • PPL-HLR-000010
      10. Configurable distribution and command-line access PPL-HLR-000010

      PPL shall provide a configurable source distribution that identifies the enabled numerical and language facilities, and shall provide its distributed command-line tools with documented input, output and failure behavior.

  • 6. Thread entry and shared-facility use PPL-LLR-000438

    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.

    • PPL-HLR-000008
      8. Controlled runtime operation and resource use PPL-HLR-000008

      PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.

PPL-SPEC-001735
2. Conversion worker queue and shutdown protocol PPL-SPEC-001735

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.