Parma Polyhedra Library requirements
Safe and secure implementation and development
  • PPL-HLR-000012
    12. Safe and secure implementation and development PPL-HLR-000012

    PPL shall be implemented using documented safe and secure subsets of standardized programming languages. Its development, verification and maintenance shall comply with the applicable requirements of explicitly identified functional safety and cybersecurity standards.

PPL-LLR-000401
1. Language and coding-subset conformance PPL-LLR-000401

Each part of the PPL implementation shall conform to an explicitly identified standardized language edition and a documented safe and secure coding subset. The subset shall define the rules governing reliance on undefined, unspecified and implementation-defined behavior.

  • PPL-HLR-000012
    12. Safe and secure implementation and development PPL-HLR-000012

    PPL shall be implemented using documented safe and secure subsets of standardized programming languages. Its development, verification and maintenance shall comply with the applicable requirements of explicitly identified functional safety and cybersecurity standards.

2. Controlled use of language extensions PPL-LLR-000402

A language extension shall be used only where compatible with the governing language, coding-subset and standards obligations. Its purpose, semantics, supported configurations and safety and security justification shall be documented and verified.

  • PPL-HLR-000012
    12. Safe and secure implementation and development PPL-HLR-000012

    PPL shall be implemented using documented safe and secure subsets of standardized programming languages. Its development, verification and maintenance shall comply with the applicable requirements of explicitly identified functional safety and cybersecurity standards.

PPL-LLR-000403
3. Standards applicability and conformance PPL-LLR-000403

PPL development, verification and maintenance shall satisfy the applicable requirements of the ISO 26262:2018 series and ISO/SAE 21434:2021. Applicability shall be defined for the library's development, verification and maintenance activities and supported uses, with justified decisions identifying the applicable parts and provisions, amendments and relevant assurance classifications.

  • PPL-HLR-000012
    12. Safe and secure implementation and development PPL-HLR-000012

    PPL shall be implemented using documented safe and secure subsets of standardized programming languages. Its development, verification and maintenance shall comply with the applicable requirements of explicitly identified functional safety and cybersecurity standards.

PPL-LLR-000404
4. Generated code and external dependencies PPL-LLR-000404

Generated implementation code shall satisfy its applicable language and coding-subset obligations. Reliance on external libraries and runtime components shall be supported by an assessment identifying their versions, relevant assumptions, known limitations and assurance obligations.

  • PPL-HLR-000012
    12. Safe and secure implementation and development PPL-HLR-000012

    PPL shall be implemented using documented safe and secure subsets of standardized programming languages. Its development, verification and maintenance shall comply with the applicable requirements of explicitly identified functional safety and cybersecurity standards.

5. Permitted deviations PPL-LLR-000405

Every deviation from an applicable obligation shall identify the affected rule, scope, justification, assessed safety and security consequences, necessary compensating measures and approval. A deviation shall be accepted only where the governing obligation permits it and its conditions are satisfied.

  • PPL-HLR-000012
    12. Safe and secure implementation and development PPL-HLR-000012

    PPL shall be implemented using documented safe and secure subsets of standardized programming languages. Its development, verification and maintenance shall comply with the applicable requirements of explicitly identified functional safety and cybersecurity standards.

6. Conformance evidence PPL-LLR-000406

Each conformance claim shall be supported by reviewable evidence identifying the assessed PPL source version, configurations, applicable obligations and verification results. Findings shall have documented dispositions, and unmet obligations and evidence gaps shall remain explicit.

  • PPL-HLR-000012
    12. Safe and secure implementation and development PPL-HLR-000012

    PPL shall be implemented using documented safe and secure subsets of standardized programming languages. Its development, verification and maintenance shall comply with the applicable requirements of explicitly identified functional safety and cybersecurity standards.

PPL-LLR-000407
7. Adequacy of relied-upon tools PPL-LLR-000407

Development and verification tools whose outputs are relied upon for conformance shall be assessed for their intended use, version, configuration and relevant limitations. Validation or qualification required by the applicable standards shall be completed before relying on those outputs.

  • PPL-HLR-000012
    12. Safe and secure implementation and development PPL-HLR-000012

    PPL shall be implemented using documented safe and secure subsets of standardized programming languages. Its development, verification and maintenance shall comply with the applicable requirements of explicitly identified functional safety and cybersecurity standards.

PPL-LLR-000408
8. Preservation of conformance through change PPL-LLR-000408

Changes to PPL, its language or coding subsets, applicable standards, dependencies or relied-upon tools shall be assessed for their effect on conformance. Affected verification and evidence shall be updated before conformance of the changed version is accepted.

  • PPL-HLR-000012
    12. Safe and secure implementation and development PPL-HLR-000012

    PPL shall be implemented using documented safe and secure subsets of standardized programming languages. Its development, verification and maintenance shall comply with the applicable requirements of explicitly identified functional safety and cybersecurity standards.

PPL-LLR-000409
9. Safety-defect and vulnerability management PPL-LLR-000409

Potential safety defects and cybersecurity vulnerabilities affecting PPL or its relied-upon dependencies shall be assessed and tracked to a documented disposition. The assessment shall identify affected supported versions, and corrective changes shall be verified before release.

  • PPL-HLR-000012
    12. Safe and secure implementation and development PPL-HLR-000012

    PPL shall be implemented using documented safe and secure subsets of standardized programming languages. Its development, verification and maintenance shall comply with the applicable requirements of explicitly identified functional safety and cybersecurity standards.

10. C++ language baseline PPL-LLR-000410

PPL-maintained production C++ code shall conform to ISO/IEC 14882:2020 (C++20). This obligation includes generated C++ implementation code and headers in their C++ use contexts. PPL C++ translation units shall be compiled in C++20 language mode. Any use of language extensions shall satisfy 🔗 2. Controlled use of language extensions.

  • PPL-SPEC-001639
    1. Native integral checked-number value move PPL-SPEC-001639

    For an admitted native integral storage type T, move construction of Checked_Number<T, Policy> shall copy the source's stored integer value and preserve the source. It shall be a trivial, nonthrowing constructor and shall invoke neither a conversion operation nor Policy::handle_result. The wrapper shall have a trivial destructor and one native integral data member; it shall be an implicit-lifetime class under C++20. Its size and alignment shall equal those of T. These properties shall not imply that the wrapper is trivially copyable. The copy constructor and copy assignment shall retain their separately specified behavior.

    This constructor shall be available only when Is_Native<T>::value is nonzero and std::is_integral_v<T> is true. GMP and floating-point storage shall retain the existing copy-from-rvalue behavior. The source shall be a live initialized object with an admitted stored representation; no library initialization, rounding setup, allocation or policy callback shall be required.

  • PPL-SPEC-001640
    2. Consuming coefficient relocation PPL-SPEC-001640

    For the configured coefficient type, relocate_coefficient(to,from) shall transfer the entry source value to a distinct destination slot. relocate_coefficients(to,from,count) shall transfer the ordered sequence of count source values between disjoint ranges. relocate_coefficients_right(from,count,shift) shall transfer that sequence to the range beginning shift slots later in the same allocation; overlapping, touching and disjoint ranges, zero count and zero shift shall be admitted. Overlap shall preserve the entry sequence, as if its values were first retained before writing the destination.

    Source slots shall contain live initialized coefficients. Destination-only slots shall be suitably aligned uninitialized or previously consumed storage. All pointers shall designate valid storage even when count is zero; the source and destination extents and byte-size products shall be representable and fit their allocations. After relocation the destination range shall hold live coefficients with the entry source values and ownership. Source-only slots shall be consumed: their old values shall neither be accessed nor destroyed; they may be reconstructed or their storage released without coefficient destruction. Overlap slots belonging to the destination shall remain live. No coefficient-owned resource shall be duplicated or lost.

    The helpers shall be nonthrowing, allocate no storage and invoke no numerical conversion, policy handler or rounding control. They shall require no library initialization. Native integral coefficient relocation shall preserve each integer representation using the implicit-lifetime wrapper property of 🔗 1. Native integral checked-number value move.

  • PPL-HLR-000012
    12. Safe and secure implementation and development PPL-HLR-000012

    PPL shall be implemented using documented safe and secure subsets of standardized programming languages. Its development, verification and maintenance shall comply with the applicable requirements of explicitly identified functional safety and cybersecurity standards.

11. MISRA C++ compliance PPL-LLR-000411

Release applicability: deferred beyond PPL 2.0.

PPL-maintained production C++ code shall comply with MISRA C++:2023 incorporating Technical Corrigendum 1. Use of the C++20 language baseline shall be covered by an explicit documented language-baseline deviation satisfying 🔗 5. Permitted deviations. Compliance shall include the associated compliance provisions and assessment at the analysis scopes prescribed by the guidelines. Any other deviations shall also satisfy 🔗 5. Permitted deviations, and conformance evidence shall satisfy 🔗 6. Conformance evidence.

  • PPL-HLR-000012
    12. Safe and secure implementation and development PPL-HLR-000012

    PPL shall be implemented using documented safe and secure subsets of standardized programming languages. Its development, verification and maintenance shall comply with the applicable requirements of explicitly identified functional safety and cybersecurity standards.

12. C language baseline PPL-LLR-000412

PPL-maintained production C code shall conform to ISO/IEC 9899:2018 (C18). This obligation includes generated C implementation code and headers in their C use contexts. PPL C translation units shall be compiled in C18 language mode. Any use of language extensions shall satisfy 🔗 2. Controlled use of language extensions.

  • PPL-HLR-000012
    12. Safe and secure implementation and development PPL-HLR-000012

    PPL shall be implemented using documented safe and secure subsets of standardized programming languages. Its development, verification and maintenance shall comply with the applicable requirements of explicitly identified functional safety and cybersecurity standards.

13. MISRA C compliance PPL-LLR-000413

Release applicability: deferred beyond PPL 2.0.

PPL-maintained production C code shall comply with MISRA C:2025. Compliance shall include the associated compliance provisions and assessment at the analysis scopes prescribed by the guidelines. Any deviations shall satisfy 🔗 5. Permitted deviations, and conformance evidence shall satisfy 🔗 6. Conformance evidence.

  • PPL-HLR-000012
    12. Safe and secure implementation and development PPL-HLR-000012

    PPL shall be implemented using documented safe and secure subsets of standardized programming languages. Its development, verification and maintenance shall comply with the applicable requirements of explicitly identified functional safety and cybersecurity standards.

PPL-LLR-000457
14. Fidelity of native verification fixtures PPL-LLR-000457

Native verification fixtures used for failure injection or for constructing reference inputs shall set up the stated scenarios and describe their observations with the limits of the measurement mechanism. Where a failure is injected for a scoped check, the fixture shall disable subsequent injection before independent observations. Equivalent encodings of a reference input shall describe the same mathematical object.

  • PPL-SPEC-001736
    7. Replacement allocation failure injection PPL-SPEC-001736

    The fixture shall initialize its failure countdown to a disabled state. When a replacement allocation is attempted with a nonnegative countdown, the allocation path shall decrement it. An entry value of zero shall throw std::bad_alloc before requesting storage. An entry value below zero shall leave the countdown unchanged and permit the ordinary replacement allocation path. That path shall request the given byte count, or one byte for a zero-size request. It shall throw std::bad_alloc when allocation fails. Array allocation shall use the same path. A countdown observation shall return the current countdown. Clients shall serialize control and observation of the fixture.

  • PPL-SPEC-001737
    8. Replacement allocation observations PPL-SPEC-001737

    The fixture shall initialize its allocation balance to zero. It shall increment the balance for each successful allocation through its replacement and decrement it for each nonnull pointer passed to its replacement deallocator. Sized and array forms shall use the same accounting path. A balance observation shall return the current balance. The balance measures only events that reach the replacements. Counts may include just one end of an allocation lifetime when interposition is incomplete.

    The summary shall start with a zero count and zero extrema. Given two balance observations, it shall ignore equal values. Otherwise it shall count the observation and update the minimum and maximum of the signed difference, later minus earlier, over all recorded nonzero differences. The fixture assumes serialized use and representable counts and differences.

  • PPL-SPEC-001738
    9. Partial-function input and failure-scope fixtures PPL-SPEC-001738

    The reference pair shall hold source and image coordinates as separate dimension indices. The population helper shall insert the supplied pairs in sequence using that coordinate order and the library operation's valid insertion preconditions. The allocation-failure scope shall set the requested countdown at entry and disable injection at destruction, including during exception unwinding. Callers shall use the failure scopes without copying or nesting them.

  • PPL-SPEC-001739
    10. Equivalent one-coordinate ranking countdown fixtures PPL-SPEC-001739

    The full fixture shall construct a two-dimensional closed polyhedron describing x ≥ 0,  x’ = x − 1 with after-state coordinate x’ at index zero and before-state coordinate x at index one. For the paired encoding, the guard fixture shall construct a one-dimensional closed polyhedron for x ≥ 0 at index zero. The update fixture shall construct the two-dimensional closed polyhedron for x’ = x − 1 in the same coordinate order as the full fixture. Their aligned conjunction shall equal the full fixture, using the coordinate interpretation in 🔗 1. Transition encoding and ranking interpretation.

  • PPL-SPEC-001742
    12. Parametric compatibility verification fixtures PPL-SPEC-001742

    The row and matrix fixtures shall preserve supplied constants, coordinate coefficients and logical widths when constructing variants with different capacities or explicit stored zeroes. The symmetric-equation fixture shall encode each supplied equation by both signs of its row. The protected test accessors shall expose the existing compatibility overloads without solving a public problem. Snapshot comparisons shall serialize source rows or compare their logical contents as appropriate to the test.

    A scoped hook shall restore the preceding checkpoint callback on exit, including exceptional exit. The indexed interruption fixtures shall count calls and interrupt at the selected checkpoint. A one-shot client overflow shall disable further callback invocation before throwing. A nested call shall use the supplied inner workspace, context and row and shall suppress recursive reentry of that same hook.

    The public-problem setup used with the zero-coordinate cases shall preserve the specified variable order, parameter identities and input-row meanings across variations of representation and insertion order. It shall set the selected solver controls before the assertions evaluate the public result.

  • PPL-HLR-000012
    12. Safe and secure implementation and development PPL-HLR-000012

    PPL shall be implemented using documented safe and secure subsets of standardized programming languages. Its development, verification and maintenance shall comply with the applicable requirements of explicitly identified functional safety and cybersecurity standards.

PPL-LLR-000458
15. Reliability of native verification support PPL-LLR-000458

Native verification support shall distinguish test results, fatal harness failures, unavailable tests and compilation-only checks. Diagnostic verbosity shall not change a test's result. File and timing helpers shall report setup or measurement failures through their declared failure paths. Timing observations shall identify the measured clock and its scope. Runtime doubles shall model only their declared operations. Numerical reference calculations shall derive the expected result independently of the library operation being assessed.

  • PPL-SPEC-001719
    1. Verification diagnostic routing PPL-SPEC-001719

    Test verbosity selection shall enable output when the named environment variable exists, where getenv is available; its value need not be nonempty. Otherwise, the configured NOISY and VERY_NOISY fallbacks shall govern the corresponding names. An unrecognized name shall be disabled in that fallback. A disabled noisy stream shall discard characters while reporting successful writes. An enabled stream shall use the supplied stream's buffer. nout and vnout shall select the ordinary and very-noisy channels independently. The C harness query functions shall expose the corresponding Boolean decisions. print_function shall print a nonempty introduction followed by a newline and then delegate to the partial function's print operation. These helpers shall not determine whether a numerical test passed.

  • PPL-SPEC-001720
    2. Fatal test-process diagnostics PPL-SPEC-001720

    set_handlers shall install a terminate handler which reports an uncaught exception and exits unsuccessfully. Where sigaction is available it shall install the selected SIGFPE handler; installation failure shall diagnose and abort. SIGFPE handling shall report the available cause or exception flags and exit unsuccessfully. These are fatal test-process diagnostics, not a recoverable library exception or signal-safety guarantee.

  • PPL-SPEC-001721
    3. Test file opening and closing PPL-SPEC-001721

    open shall open the supplied fstream with the requested path and mode. On failure it shall report the path, identify the ordinary read/write modes when recognized, and exit with status 1. close shall call the stream close operation only when its entry Boolean stream state is true; it shall not clear a failed stream or promise to close an already-failed stream. Paths and stream lifetimes shall be valid for the underlying standard-library operations.

  • PPL-SPEC-001722
    4. Test user-CPU timing observations PPL-SPEC-001722

    Where getrusage and timeval are configured, start_clock shall save process user-CPU time for a subsequent print_clock call. print_clock shall print the nonnegative elapsed user time rounded to centiseconds, carrying into the seconds field as needed and restoring the output stream's fill character. A getrusage failure shall diagnose and exit with status 1. Without that configured facility start_clock shall do nothing and print_clock shall emit "(no clock available)". Calls shall be ordered and synchronized appropriately for the configured thread-local or shared saved timestamp. This observation shall not be interpreted as wall-clock time or a performance acceptance test.

  • PPL-SPEC-001723
    5. Restricted foreign-runtime verification doubles PPL-SPEC-001723

    The OCaml integer fixture shall model only the tagged immediate-integer ABI used by the native conversion helpers. Its selected word types and tag operations shall agree on that encoding. Any attempted heap/custom-block access shall throw logic_error with the fixture diagnostic; it shall not return a plausible heap value. Its unsigned-argument error double shall throw invalid_argument with the supplied message. The fixture shall not claim to implement the OCaml collector, ownership protocol or exception runtime.

    The SWI coefficient fixture shall model only the term and initialized-GMP exchange needed by its conversion tests. Its modern extraction double shall leave output untouched and fail when requested; on success it shall copy the selected integer and record the output address. Its legacy extraction double shall perform that copy without a result status. The unification and variable reset doubles shall supply only the successful/no-op behavior used by this fixture, not a complete Prolog term store.

  • PPL-SPEC-001726
    6. Compilation-only and unavailable-profile test drivers PPL-SPEC-001726

    An unavailable-profile test driver shall return the test harness skip status 77 without claiming to execute the disabled threaded verification. Its enabled branch shall retain that branch's actual verification allocations. The C_Expr compilation fixture shall include the authored expression header and provide a successful entry point. Successful compilation establishes only that the selected declarations are well formed in that build; returning zero shall not be treated as a mathematical test of every expression operation.

  • PPL-SPEC-001740
    11. IBM hexadecimal rounding reference fixture PPL-SPEC-001740

    The reference quantizer shall model normalized hexadecimal rounding toward zero with six or fourteen stored fraction digits and a radix-16 exponent in the range -64 through 63. It shall use exact rational arithmetic. A magnitude below the smallest normalized value, 16 − 65, shall map to zero. Other inputs shall be within the modeled exponent range. Scaling by a power of 16 and truncating the magnitude to the selected number of hexadecimal digits shall preserve the sign of a nonzero result.

    The fixture shall supply the two input intervals and the associated coordinates of each reference to the target-adapted linearizer. It shall decline constant and integer-expression queries. Given a bounded affine form with finite endpoints, the comparison shall evaluate its two coordinate contributions using exact rational conversions of the stored endpoints and check containment of the reference result. The reference quantizer shall not invoke the linearization operation being verified.

  • PPL-SPEC-001743
    13. Exact reference calculations for bounded MIP tests PPL-SPEC-001743

    The model helpers shall supply the same affine rows, bounds, integer coordinates and objectives used by their comparison tests. Reference feasibility and objective values shall be computed with exact rational arithmetic independently of the MIP solver. Enumerate the admitted integer coordinates over the models' finite bounds. For a continuous coordinate remaining after the other coordinates are fixed, derive its closed feasible interval and test its endpoints. For the bounded real half-plane models, examine intersections of nonparallel boundary lines and retain only feasible points. In the integer and mixed half-plane cases, enumerate the bounded integer coordinates and use the corresponding feasible interval endpoints when a coordinate remains continuous.

    A reference result shall distinguish absence of a feasible point from a feasible exact extremum. The coefficient adapters shall supply exact integer or rational values for the comparisons. An adapter that returns a conversion status shall indicate whether the conversion is exact. A borrowed GMP value shall be used only while its coefficient remains live.

  • PPL-SPEC-001744
    14. Exact PIP tree interpretation in tests PPL-SPEC-001744

    The interpreter shall take a live solution tree and supplied finite parameter values in the scope of that tree. It shall read the native guards, artificial-parameter definitions and leaf expressions and evaluate them with unbounded integer arithmetic. It shall append artificial parameters in introduction order using mathematical floor with a positive denominator. It shall require referenced coordinates to be in scope and refuse to interpret an original decision coordinate as a parameter.

    A decision shall select its true child only when all local guards hold. A missing node or failed solution guard shall yield false. A feasible solution node shall yield one value per requested decision coordinate in the supplied order. The coefficient-input adapter shall convert to GMP before evaluation and shall require a result representable by the requested answer type. The mode fixture shall call the supplied test with both input representations, both insertion orders and every supported cutting and pivot choice, stopping if the test returns false.

  • PPL-SPEC-001745
    15. MIP regression fixture coefficient-profile handling PPL-SPEC-001745

    A regression fixture shall have a stated coefficient width for completion. GMP and bounded profiles meeting that width shall propagate the callback's Boolean result and exceptions. A narrower checked profile shall preserve a returned Boolean result and propagate exceptions other than arithmetic overflow. It may report an allowed arithmetic overflow with the corresponding diagnostic. A narrower native profile shall record a skip before the fixture callback is invoked. These paths shall retain the distinction between a completed solver result, a checked overflow and a skipped native fixture.