Parma Polyhedra Library requirements
PPL high-level requirements

PPL high-level requirements

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

Optional facilities are considered in their supported contexts.

HLR
1
PPL-HLR-000001
PPL-HLR-000001
Numerical and geometric foundations

PPL shall provide numerical values and finite-dimensional geometric descriptors with defined mathematical meanings, so that clients can describe numerical problems consistently across the library.

Domains and solvers need a common interpretation of coefficients, coordinates, expressions, constraints and generators.

BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Review the common mathematical definitions and their consistency across domains; exercise representative descriptor construction, arithmetic and dimension changes under each supported numerical configuration.

doc/definitions.dox: Basic_Geometric_Descriptors, Syntactic_Geometric_Descriptors; src/Coefficient_defs.hh; src/Linear_Expression_defs.hh.

HLR
2
PPL-HLR-000002
PPL-HLR-000002
Primitive numerical abstractions

PPL shall provide intervals and boxes, closed and not necessarily closed convex polyhedra, grids, bounded difference shapes, and octagonal shapes, together with operations whose semantic effects and precision guarantees are defined for each abstraction.

Clients need alternative numerical representations with different expressiveness and computation costs.

BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Review that each abstraction has a mathematical interpretation and defined operations; check representative exact results and conservative approximations, including empty and zero-dimensional cases.

doc/definitions.dox: Semantic_Geometric_Descriptors, Intervals_and_Boxes, Weakly_Relational_Shapes, convex_polys, sect_rational_grids.

HLR
3
PPL-HLR-000003
PPL-HLR-000003
Disjunctions and combinations of numerical abstractions

PPL shall support finite disjunctions and combinations of numerical abstractions, with a defined relationship between the represented set and the meanings of the constituent domain elements.

Nonconvex information and complementary forms of numerical information require more than a single primitive abstraction.

BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).

APPROVED
DOMAIN_COMBINATIONS
ALL
Test, Analysis, Review

Review finite-powerset and product semantics; check that representative lifted operations and reductions preserve their declared meaning and precision.

doc/definitions.dox: powerset, pointset_powerset; src/Pointset_Powerset_defs.hh; src/Partially_Reduced_Product_defs.hh.

HLR
4
PPL-HLR-000004
PPL-HLR-000004
Abstract expression evaluation

PPL shall provide numerical expression analysis facilities whose successful results conservatively enclose the concrete evaluations admitted by the input approximation and the selected arithmetic model.

Numerical analysis must account for uncertainty and the arithmetic semantics of the expressions being analysed.

BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).

APPROVED
EXPRESSION_ANALYSIS
ALL
Test, Analysis, Review

Analyse the enclosure argument for each supported expression category; compare abstract results with concrete evaluations at representative boundaries, including rounding and unsupported-operation outcomes.

src/Floating_Point_Expression_defs.hh; src/Linear_Form_defs.hh; src/Interval_defs.hh.

HLR
5
PPL-HLR-000005
PPL-HLR-000005
Linear optimization with integrality and parameters

PPL shall provide mixed-integer linear optimization and parametric integer programming facilities with defined feasibility, optimization and solution-result semantics for their supported problem classes.

Clients need numerical decision and optimization services as well as abstract-domain operations.

BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Review the problem classes and result meanings; check feasible, infeasible, unbounded and parameter-dependent examples against independently established results where those outcomes belong to the selected solver.

src/MIP_Problem_defs.hh; src/PIP_Problem_defs.hh.

HLR
6
PPL-HLR-000006
PPL-HLR-000006
Termination analysis using linear ranking functions

PPL shall provide termination analysis facilities that decide the existence of, or construct, affine ranking functions for the transition-relation classes admitted by the selected method. A ranking found within the method's stated scope shall certify termination. An unsuccessful ranking search shall leave termination inconclusive.

A termination claim must be justified by a ranking-function argument under the method's stated assumptions.

BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).

APPROVED
TERMINATION_ANALYSIS
ALL
Test, Analysis, Review

Review each method's accepted transition model and arithmetic assumptions. Validate returned ranking functions against transition constraints. Check examples with and without an affine ranking in the method's decision scope, and check that an unsuccessful search is reported as inconclusive about termination.

src/termination_defs.hh; src/termination_templates.hh; src/termination.cc.

HLR
7
PPL-HLR-000007
PPL-HLR-000007
Access through supported language interfaces

PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.

Language-specific representations and error mechanisms must not silently change the numerical meaning of an exposed facility.

BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Review the supported facility set for each interface and compare equivalent computations across enabled interfaces, including value conversion, object lifetime and error reporting.

doc/definitions.dox: PPL_CXX_interface; interfaces/Makefile.am; interfaces/C/C_interface.dox; interfaces/Java/README.java.md; interfaces/OCaml/OCaml_interface.dox; interfaces/Prolog/Prolog_interface.dox.

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

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.

Numerical correctness depends on a valid runtime environment and on controlled handling of interrupted or unsuccessful computations.

BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).

APPROVED
RUNTIME
ALL
Test, Analysis, Review

Review initialization, thread-safety and interruption assumptions for each supported configuration; exercise normal completion, reported failures and supported interruption paths with checks on object validity and resource ownership.

doc/definitions.dox: use_of_library; src/Init_defs.hh; src/Init.cc; src/thread_safe.hh; src/Watchdog_defs.hh.

HLR
9
PPL-HLR-000009
PPL-HLR-000009
Semantics-preserving support for variable-size problems

PPL shall support the representation and manipulation of finite-dimensional numerical data at variable problem sizes, preserving the association between coordinates and values when data are resized, reordered or transformed, subject to documented dimension and resource limits.

Reusable supporting structures must preserve the numerical information on which domain and solver computations depend.

BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).

APPROVED
CORE_DATA_STRUCTURES
ALL
Test, Analysis, Review

Review coordinate/value invariants and supported size limits; check growth, shrinking, reordering and empty structures against independent finite models.

src/Partial_Function_defs.hh; src/Bit_Row_defs.hh; src/Bit_Matrix_defs.hh; src/CO_Tree_defs.hh; src/max_space_dimension.hh.

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

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.

Users need to select supported configurations, link applications consistently and use the distributed numerical tools.

BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).

APPROVED
BUILD_DISTRIBUTION
ALL
Test, Analysis, Review

Review supported configuration choices and published build/link information; check representative enabled and disabled features and the documented success and failure outcomes of each command-line tool.

configure.ac; README.md; INSTALL; src/ppl-config.cc.in; demos/ppl_lcdd; demos/ppl_lpsol; demos/ppl_pips.

HLR
11
PPL-HLR-000011
PPL-HLR-000011
Sound and explicit numerical guarantees

PPL shall distinguish exact numerical results, conservative approximations and inconclusive outcomes, and shall make the assumptions and precision guarantees of each numerical operation explicit.

Analysis and verification clients must be able to rely on a result without mistaking an approximation or an inconclusive answer for an exact mathematical conclusion.

BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).

APPROVED
LIBRARY_WIDE
ALL
Test, Analysis, Review

Review the classification and stated assumptions of numerical operations; check representative exact, approximate and inconclusive cases against their declared result meanings.

doc/definitions.dox: Semantic_Geometric_Descriptors; src/checked_defs.hh; src/Box_defs.hh; src/BD_Shape_defs.hh; src/Octagonal_Shape_defs.hh.

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

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.

Faults and vulnerabilities in the implementation or its development process can compromise the numerical services on which analysis and verification clients rely. Restricting language use and applying systematic development, verification and maintenance practices supports prevention and detection of such defects and provides a basis for justified safety and security assurance throughout the library's lifecycle.

The production C++20 and C18 language baselines are specified by 🔗 10. C++ language baseline and 🔗 12. C language baseline. The MISRA compliance requirements 🔗 11. MISRA C++ compliance and 🔗 13. MISRA C compliance apply to a future release beyond PPL 2.0. The future C++ assessment includes Technical Corrigendum 1 and the explicit C++20 language-baseline deviation under 🔗 5. Permitted deviations and 🔗 11. MISRA C++ compliance.

APPROVED
LIBRARY_WIDE
ALL
Analysis, Inspection, Review

Review the identified implementation scope, language standards and editions, coding subsets, and functional safety and cybersecurity standards, including their editions, applicable provisions and relevant assurance classifications. Inspect and analyse implementation conformance to the selected subsets, and review evidence that the actual development, verification and maintenance activities satisfy the applicable standards requirements. Check that any exclusions or deviations are justified and permitted by the governing obligations, that evidence identifies the assessed PPL baseline and configurations, and that affected evidence is reassessed after relevant changes. Record unresolved violations, limitations and evidence gaps; successful tool execution or the existence of a compliance document alone does not establish conformance.