Parma Polyhedra Library requirements
Safe and secure implementation and development

Safe and secure implementation and development

UID:
VERSION:
CLASSIFICATION:
PREFIX:
Type
Level
MID
UID
REFS
Title
Statement
Rationale
Comment
BIBLIOGRAPHY
STATUS
COMPONENT
APPLICABILITY
VERIFICATION_METHODS
VERIFICATION_CRITERIA
SOURCE
LANGUAGE
VISIBILITY
INTERFACE
TEXT
0
MISRA compliance and release scope

The MISRA compliance obligations in 🔗 11. MISRA C++ compliance and 🔗 13. MISRA C compliance are targets for a future release.

TEXT
0
Production scope of the C and C++ baselines

For 🔗 10. C++ language baseline through 🔗 13. MISRA C compliance, PPL-maintained production code includes library code, native binding implementations, distributed command-line tools, public and internal headers, and generated production code. The applicable language and coding baseline follows the implementation language, not the identity of the exposed interface. For example, a C interface implemented in C++ is subject to the C++ baseline. Public C headers used from both C and C++ are assessed against the corresponding language requirements in each context.

These requirements use LIBRARY_WIDE and ALL because they address the production implementation across components and supported configurations. IF_CPP and IF_C identify interface contexts; they do not select implementation languages.

External dependencies are assessed under 🔗 4. Generated code and external dependencies. Development and verification tools, including generators, are assessed under 🔗 7. Adequacy of relied-upon tools. Tests and generator implementations remain subject to the general applicability and tool-reliance assessments.

TEXT
0
C++20 language-baseline deviation

The selected baselines are ISO/IEC 14882:2020 (C++20), MISRA C++:2023 incorporating Technical Corrigendum 1, ISO/IEC 9899:2018 (C18), and MISRA C:2025. C++20 use with the selected MISRA C++ baseline requires an explicit documented language-baseline deviation. Technical Corrigendum 1 remains selected.

Prepare, assess and review that deviation under 🔗 5. Permitted deviations and 🔗 11. MISRA C++ compliance, identifying the affected language-baseline provisions, scope, justification, safety and security consequences, necessary compensating measures and approval.

Normative standards are cited by their exact editions and corrigenda. Research references do not replace the governing standards with secondary publications.

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

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.

Conformance can be assessed only against identified language and coding rules. Explicit treatment of behavior whose meaning is absent from, left open by, or delegated by the language standard prevents unsupported portability, safety and security assumptions.

🔗 10. C++ language baseline through 🔗 13. MISRA C compliance select the production C and C++ language and coding baselines within the production scope described above. The C++20 baseline requires the explicit documented language-baseline deviation under 🔗 5. Permitted deviations and 🔗 11. MISRA C++ compliance. Language and coding-subset assessment also covers maintained Java, OCaml and Prolog production code, including relevant runtime or dialect assumptions. Direct verification reviews language and subset assignments and assesses maintained and generated implementation code against those assignments.

APPROVED
LIBRARY_WIDE
ALL
Analysis, Inspection, Review

For the defined implementation scope, inspect the assignments to language editions and coding subsets for uncovered or conflicting parts. Review the subset rules governing undefined, unspecified and implementation-defined behavior. Assess the implementation and its documented assumptions against the assigned rules in the configurations for which conformance is claimed.

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

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.

An extension can introduce behavior outside the selected standardized language or assumptions not shared by all toolchains. Its documented purpose and verified semantics must therefore be assessed against the obligations that govern its use.

Native 128-bit integer use is an extension-assessment case, not a public numeric-profile guarantee. Project approval cannot override a prohibition in a governing language, coding-subset or standards obligation. Direct verification assesses actual extension use, governing obligations, documented semantics and configuration-specific justification, using analysis and semantic tests where required.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Inspection, Review

Inspect each identified extension's purpose, semantics, supported configurations and safety and security justification. Check compatibility against the actual governing obligations and review the evidence supporting its claimed semantics in those configurations. Where semantic tests contribute to verification, compare their observations with the documented semantics rather than treating successful compilation alone as proof of compatibility.

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

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.

A shared functional-safety and cybersecurity baseline supports use of the library in systems governed by these standards. Applicability distinguishes library and lifecycle obligations from provisions specific to an integrating system.

🔗 10. C++ language baseline through 🔗 13. MISRA C compliance select production C and C++ language and MISRA baselines, including the explicit documented C++20 language-baseline deviation required under 🔗 5. Permitted deviations and 🔗 11. MISRA C++ compliance. Standards-baseline assessment covers lifecycle standards, assurance classifications and applicability of their provisions. Direct verification assesses actual development, verification and maintenance activity records and results against the applicable provisions.

APPROVED
LIBRARY_WIDE
ALL
Analysis, Inspection, Review

Inspect the applicability decisions against the ISO 26262:2018 series and ISO/SAE 21434:2021, including the applicable parts, provisions, amendments, activity scope and assurance classifications. Compare development, verification and maintenance evidence with those applicable requirements. Check that the library assessment identifies its integration assumptions without assigning a single application-specific assurance classification to every use.

https://www.iso.org/standard/68383.html: ISO 26262-1:2018 and the functional-safety series. https://www.iso.org/standard/70918.html: ISO/SAE 21434:2021, Road vehicles — Cybersecurity engineering.

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

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.

Generation changes how implementation code is produced, not the obligations governing that code. External libraries and runtimes can affect the validity of PPL's safety and security claims even when their maintenance is outside the project.

Generated implementation code remains within its applicable conformance scope. External origin does not establish a blanket exemption. Direct verification assesses generated output against its assigned language and coding subset and reviews dependency versions, assumptions, limitations and assurance assessments against the available evidence.

APPROVED
LIBRARY_WIDE
ALL
Analysis, Inspection, Review

Assess generated implementation output against its assigned language edition and coding subset in the configurations covered by the conformance claim. Inspect the reliance assessments for the external libraries and runtime components used in that claim, checking the identified versions, assumptions, known limitations and assurance obligations against the available evidence.

LLR
5
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.

A documented project decision is not sufficient to set aside a governing obligation. Reviewable deviation records distinguish permitted, justified departures from unresolved nonconformance.

The C++20/MISRA C++:2023 baseline requires an explicit documented language-baseline deviation under 🔗 11. MISRA C++ compliance. A project exception cannot authorize a language extension or other departure prohibited by a governing obligation. Direct verification reviews each deviation's governing permission, scope, assessment, acceptance conditions and approval evidence, and assesses the implementation and effectiveness of necessary compensating measures.

APPROVED
LIBRARY_WIDE
ALL
Analysis, Inspection, Review

Inspect deviation records for the affected rule, scope, justification, safety and security consequences, necessary compensating measures and approval. Include the explicit C++20 language-baseline deviation required by 🔗 11. MISRA C++ compliance. Compare each accepted deviation with the governing obligation to establish that the departure is permitted and that its acceptance conditions are satisfied. Treat a prohibited or unsupported departure as unresolved rather than as an approved exception.

LLR
6
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.

A conformance claim must be assessable for a specific implementation and configuration. Explicit findings and evidence gaps prevent a successful activity or tool invocation from being mistaken for demonstrated satisfaction of every obligation.

Direct verification reviews each claim's assessed source version, configurations, applicable obligations, verification results and finding dispositions, and checks that cited evidence supports the claim within its assessed scope. The production language and coding baselines are specified by 🔗 10. C++ language baseline through 🔗 13. MISRA C compliance; the C++20 language-baseline deviation is governed by 🔗 5. Permitted deviations and 🔗 11. MISRA C++ compliance.

APPROVED
LIBRARY_WIDE
ALL
Analysis, Inspection, Review

Select conformance claims and follow their evidence to the assessed source version, configurations, applicable obligations and verification results. Review finding dispositions and confirm that unmet obligations, limitations and evidence gaps remain visible. Check that evidence for another version or configuration is not presented as applicable without its supporting assessment.

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

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.

The significance of a tool result depends on its intended use and limitations. Any validation or qualification obligation follows from the selected standards and the reliance placed on the result.

Direct verification assesses intended reliance on each relevant tool output, its version, configuration and limitations, and evidence that required validation or qualification was completed before reliance.

APPROVED
LIBRARY_WIDE
ALL
Analysis, Inspection, Review

Inspect the assessments for development and verification outputs relied upon by the conformance claim. Check the intended use, tool version, configuration and relevant limitations. Determine what validation or qualification the applicable standards require for that reliance, and inspect evidence that the required work was completed before the outputs were relied upon.

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

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.

Evidence accepted for one baseline can become invalid after an implementation, dependency, tool or governing-obligation change. Impact assessment identifies which claims and verification results remain applicable.

Direct verification reviews change-impact assessments, affected obligations and verification, updated evidence, and the sequence leading to acceptance of conformance for the changed version. It also reviews the basis for retaining unaffected evidence.

APPROVED
LIBRARY_WIDE
ALL
Analysis, Inspection, Review

Review change records covering the implementation, language or coding subsets, applicable standards, dependencies and relied-upon tools. Inspect their conformance-impact assessments and follow affected obligations to the updated verification and evidence. Check that acceptance of conformance for the changed version follows those updates, and review the basis for any conclusion that evidence remains unaffected.

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

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.

A potential defect or vulnerability can affect multiple maintained versions and can originate in a relied-upon dependency. Documented assessment and verified corrections support justified release decisions.

Direct verification reviews potential-defect and vulnerability assessments, affected supported versions, dispositions, corrective verification results and their completion before release.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Inspection, Review

Inspect recorded potential safety defects and vulnerabilities for an assessment, affected supported versions and a documented disposition. For corrective changes, review the verification evidence and its completion before release. Where tests support that verification, check that the cases address the corrected behavior and relevant affected behavior rather than merely execute the changed code.

LLR
10
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.

A fixed standardized language edition gives implementation, generation, compilation and verification a common semantic baseline. Assessing headers in their use contexts prevents an interface label from concealing C++ implementation obligations.

The production scope follows implementation language. Build prerequisite checks are addressed separately by 🔗 1. Core build prerequisite validation; they do not impose a minimum compilation language on every client program. Direct verification assesses source and generated code, compilation evidence and actual compilation modes.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Inspection, Review

Inspect the production-source and generated-output inventory for complete identification of C++ code and header use contexts. Review the compilation commands for the assessed configurations, including native bindings and distributed command-line tools, to establish use of C++20 language mode. Compile the applicable production translation units and representative header use contexts with the required facilities. Assess actual maintained and generated code against ISO/IEC 14882:2020 and review identified language extensions against 🔗 2. Controlled use of language extensions. Successful compilation alone does not establish language conformance.

LLR
11
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.

An identified coding-guideline edition and corrigendum provide a common basis for assessing safe and secure C++ implementation. Guideline-required analysis scopes and compliance provisions are necessary to support a meaningful conformance claim for a library and its integration contexts.

The production scope follows implementation language. C++20 use requires the explicit documented language-baseline deviation under 🔗 5. Permitted deviations; Technical Corrigendum 1 remains part of the selected MISRA C++ baseline. No project deviation can override a prohibited governing obligation. Direct verification assesses actual source and generated output at the required analysis scopes, supported by reviewed applicability, deviation and evidence records.

APPROVED
LIBRARY_WIDE
ALL
Analysis, Inspection, Review

Verify TC1's exact publication identifier and the supporting normative provisions against the authoritative MISRA C++:2023 and TC1 texts. Inspect their applicable compliance provisions. Review the explicit C++20 language-baseline deviation for its affected provisions, scope, justification, assessed safety and security consequences, necessary compensating measures and approval under 🔗 5. Permitted deviations. Review guideline applicability and an assessment plan covering the production scope, assessed configurations and each prescribed translation-unit, system or program analysis scope. Assess actual maintained and generated C++ code, including manual assessment of applicable rules and directives not discharged by automated analysis. Review findings, permitted deviations and conformance evidence against 🔗 5. Permitted deviations and 🔗 6. Conformance evidence. Identify the integration assumptions and evidence still required from a client or whole-program assessment; do not infer arbitrary client-program compliance from assessment of the library alone. Tool support or an absence of reported findings does not establish that all applicable obligations are satisfied.

LLR
12
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.

A fixed standardized C edition gives production C implementations and their verification a common semantic baseline. Checking headers in C use contexts protects the C contract independently of the implementation language of a binding.

The production scope follows implementation language; IF_C identifies an interface context. 🔗 1. Core build prerequisite validation addresses prerequisite checks when selected components require C compilation. Direct verification assesses source and generated code, compilation evidence and actual compilation modes.

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Inspection, Review

Inspect the production-source and generated-output inventory for complete identification of C code and header use contexts. Review the compilation commands for the assessed configurations, including selected distributed command-line tools, to establish use of C18 language mode. Compile the applicable production translation units and representative header use contexts with the required facilities. Assess actual maintained and generated C code against ISO/IEC 9899:2018 and review identified language extensions against 🔗 2. Controlled use of language extensions. Assess public headers exposed to C in their supported C use contexts even where the implementation is C++. Successful compilation alone does not establish language conformance.

LLR
13
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.

An identified coding-guideline edition provides an assessable basis for safe and secure C implementation. Applying its compliance provisions and required analysis scopes prevents a partial source check from being presented as a complete conformance claim.

The production scope follows implementation language. No project deviation can override a prohibited governing obligation. Direct verification assesses actual source and generated output at the required analysis scopes, supported by reviewed applicability, deviation and evidence records.

APPROVED
LIBRARY_WIDE
ALL
Analysis, Inspection, Review

Inspect the identified MISRA C:2025 text and its applicable compliance provisions, including their application to the selected C18 baseline. Review guideline applicability and an assessment plan covering the production scope, assessed configurations and each prescribed translation-unit, system or program analysis scope. Assess actual maintained and generated C code and headers in their C use contexts, including manual assessment of applicable rules and directives not discharged by automated analysis. Review findings, permitted deviations and conformance evidence against 🔗 5. Permitted deviations and 🔗 6. Conformance evidence. Identify integration assumptions and any client or whole-program evidence required beyond the library assessment. Tool support or an absence of reported findings does not establish that all applicable obligations are satisfied.

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

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.

Verification evidence depends on reproducible setup and a correct interpretation of what the test actually observes.

Software specification contracts cover the behavior of the support declarations. Separate test assertions provide verification evidence for the library operations exercised with those fixtures.

APPROVED
LIBRARY_WIDE
IF_CPP
Analysis, Inspection

Inspect fault controls and scoped cleanup, including exceptional exit. Check the meaning and limits of raw allocation observations. Compare fixture data, insertion order, dimensions and variable positions with the reference models specified for the tests.

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

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.

Verification evidence is meaningful only when its test outcomes, reference values and supporting observations have the stated interpretation.

APPROVED
LIBRARY_WIDE
IF_CPP
Test, Analysis, Inspection

Inspect the outcome and diagnostic paths, including unavailable facilities, file failures, clock failures and fatal process exits. Check the declared scope of each runtime double against its supported operations. Compare numerical reference calculations with explicit expected values at normal and boundary cases and inspect their independence from the tested operation.

tests/ppl_test.hh, tests/ppl_test.cc, tests/files.cc, utils/timings.cc, tests/ocaml_integer_conversion1.cc, tests/swi_coefficient_conversion1.cc, tests/Concrete_Expression/C_Expr.cc and tests/Concrete_Expression/ibmroundoff1.cc.