Parma Polyhedra Library requirements
Low-Level Requirements: Command-Line Tools
  • 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-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-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-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.

  • PPL-SPEC-001734
    3. Polyhedral conversion command protocol PPL-SPEC-001734

    With the PPL backend, ppl_lcdd shall interpret its supported cdd-style H or V representation and, on successful conversion within configured arithmetic and resource limits, emit the opposite representation of the same polyhedron. Input shall recognize representation selection, pre-begin linearity indices, row/column counts (including the supported unknown-row-count marker), number type, coefficient rows and end. Integer and rational coefficients shall keep their exact values; real input denotes the rational value obtained from the parsed host floating-point value. Rational row normalization shall preserve the represented constraints or generators. Invalid or incomplete input and output failures shall be reported distinctly from completed conversion.

    The advertised build-specific options shall select input/output paths, supported CPU/memory limits, optional timing/verbose diagnostics, version/help and optional reference checking. Serial output-file mode appends; threaded named-input mode uses the output directory and pathname rule of 🔗 1. Native output pathname construction for polyhedral conversion. Standard input/output defaults and build-specific checking restrictions shall be those printed by --help. CPU-time and address-space limit availability shall be determined independently. Requests for an unavailable limit shall fail with a diagnostic before reading input. Supported limits shall accept zero to leave the inherited limit unchanged, reject malformed or unrepresentable values, and keep any stricter inherited limit. CPU expiration shall report TIMEOUT on standard error with status 124 to identify incomplete conversion.

  • 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-LLR-000220
2. Linear optimization command-line solver PPL-LLR-000220

When the linear optimization tool is built with its required input-library dependency, it shall accept its supported MPS problem descriptions and, on successful completion within its documented arithmetic and resource assumptions, use the selected PPL solving mode to report infeasibility, unboundedness or an optimum for the interpreted linear or mixed-integer problem.

  • PPL-SPEC-001705
    1. MPS linear optimization command protocol PPL-SPEC-001705

    In a build providing ppl_lpsol and its GLPK input dependency, the tool shall interpret supported MPS input using the documented GLPK import semantics, including row relations, column bounds, integrality and objective constant. On completed computation within the selected mode's arithmetic/resource preconditions, it shall report infeasibility, unboundedness or the exact optimum of the interpreted problem. Mixed-integer restrictions apply only in modes supporting them. Batch, incremental and supported worker execution shall preserve numerical outcomes.

    With GLPK comparison selected, an LP comparison shall preserve the imported coefficients and certify primal/dual feasibility and objective equality using exact arithmetic rather than treat a floating-point suggestion as proof. By default, the optimum comparison shall use a tolerance of 1e-9 for an exactly certified LP optimum and of 1e-9 times (1 + the absolute value of the GLPK optimum) for a MIP optimum. An explicit threshold shall set an absolute tolerance. Failed input or incomplete computation shall be observably distinguished from a completed numerical conclusion. Supported options, mode restrictions, diagnostics and exit conventions shall be those advertised by the tool.

  • 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-LLR-000221
3. Parametric integer optimization tool PPL-LLR-000221

When built with the PPL backend, the parametric integer optimization tool shall interpret its accepted problem input and, on successful completion within its documented arithmetic and resource assumptions, display a parametric solution describing the lexicographic minimum over feasible integer solutions as a function of the problem parameters.

  • PPL-SPEC-001706
    2. Parametric integer solver command protocol PPL-SPEC-001706

    With its PPL backend, ppl_pips shall accept the documented PolyLib format or selected PipLib format, preserving the integer constraints, context, variable/parameter split and designated big-parameter convention. In ordinary single-solve output mode, successful completion within native arithmetic and resource preconditions shall display the PIP solution tree: case guards select parameter regions and leaves describe the lexicographically least feasible integer variables; bottom denotes infeasibility. Benchmark iteration mode need not print a solution tree.

    Both input formats shall reject a problem that declares more than 65536 variables and parameters in total with no matrix row listing them. Any constraint row shall count for all declared variables and parameters; any context row shall count for the parameters only. This input limit shall apply to the command's parsers.

    Where semantic checking is configured, a reference shall be checked against the interpreted problem and computed tree. Failed reference checks shall not publish a verified result or overwrite the requested result output. Malformed or incomplete input and supported failures shall produce diagnostics distinct from a completed mathematical result. Options and available checking capability shall be identified by the configured command interface.

  • 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-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-SPEC-001705
    1. MPS linear optimization command protocol PPL-SPEC-001705

    In a build providing ppl_lpsol and its GLPK input dependency, the tool shall interpret supported MPS input using the documented GLPK import semantics, including row relations, column bounds, integrality and objective constant. On completed computation within the selected mode's arithmetic/resource preconditions, it shall report infeasibility, unboundedness or the exact optimum of the interpreted problem. Mixed-integer restrictions apply only in modes supporting them. Batch, incremental and supported worker execution shall preserve numerical outcomes.

    With GLPK comparison selected, an LP comparison shall preserve the imported coefficients and certify primal/dual feasibility and objective equality using exact arithmetic rather than treat a floating-point suggestion as proof. By default, the optimum comparison shall use a tolerance of 1e-9 for an exactly certified LP optimum and of 1e-9 times (1 + the absolute value of the GLPK optimum) for a MIP optimum. An explicit threshold shall set an absolute tolerance. Failed input or incomplete computation shall be observably distinguished from a completed numerical conclusion. Supported options, mode restrictions, diagnostics and exit conventions shall be those advertised by the tool.

  • PPL-SPEC-001706
    2. Parametric integer solver command protocol PPL-SPEC-001706

    With its PPL backend, ppl_pips shall accept the documented PolyLib format or selected PipLib format, preserving the integer constraints, context, variable/parameter split and designated big-parameter convention. In ordinary single-solve output mode, successful completion within native arithmetic and resource preconditions shall display the PIP solution tree: case guards select parameter regions and leaves describe the lexicographically least feasible integer variables; bottom denotes infeasibility. Benchmark iteration mode need not print a solution tree.

    Both input formats shall reject a problem that declares more than 65536 variables and parameters in total with no matrix row listing them. Any constraint row shall count for all declared variables and parameters; any context row shall count for the parameters only. This input limit shall apply to the command's parsers.

    Where semantic checking is configured, a reference shall be checked against the interpreted problem and computed tree. Failed reference checks shall not publish a verified result or overwrite the requested result output. Malformed or incomplete input and supported failures shall produce diagnostics distinct from a completed mathematical result. Options and available checking capability shall be identified by the configured command interface.

  • PPL-SPEC-001734
    3. Polyhedral conversion command protocol PPL-SPEC-001734

    With the PPL backend, ppl_lcdd shall interpret its supported cdd-style H or V representation and, on successful conversion within configured arithmetic and resource limits, emit the opposite representation of the same polyhedron. Input shall recognize representation selection, pre-begin linearity indices, row/column counts (including the supported unknown-row-count marker), number type, coefficient rows and end. Integer and rational coefficients shall keep their exact values; real input denotes the rational value obtained from the parsed host floating-point value. Rational row normalization shall preserve the represented constraints or generators. Invalid or incomplete input and output failures shall be reported distinctly from completed conversion.

    The advertised build-specific options shall select input/output paths, supported CPU/memory limits, optional timing/verbose diagnostics, version/help and optional reference checking. Serial output-file mode appends; threaded named-input mode uses the output directory and pathname rule of 🔗 1. Native output pathname construction for polyhedral conversion. Standard input/output defaults and build-specific checking restrictions shall be those printed by --help. CPU-time and address-space limit availability shall be determined independently. Requests for an unavailable limit shall fail with a diagnostic before reading input. Supported limits shall accept zero to leave the inherited limit unchanged, reject malformed or unrepresentable values, and keep any stricter inherited limit. CPU expiration shall report TIMEOUT on standard error with status 124 to identify incomplete conversion.