Parma Polyhedra Library requirements
C++ interface requirements

C++ interface 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
LLR
1
PPL-LLR-000311
PPL-LLR-000311
Public C++ access to supported facilities

The public C++ interface shall expose the configured library's supported numerical facilities and their public value types through the documented public headers, preserving the declared numerical meanings and public type contracts of those facilities.

C++ is the primary interface through which clients directly use domains, descriptors and solvers.

Verification covers the public C++ header and type-exposure contracts. Client compilation and mathematical behavior checks verify those contracts. 🔗 2. Installation of configured public artifacts owns installation completeness and deployment information; public C++ facility and type exposure is distinct from installation packaging. No additional client language-edition promise is introduced here.

APPROVED
LIBRARY_WIDE
IF_CPP
Test, Analysis, Review

Compile and link representative clients using the public C++ types and facilities in each selected supported configuration. Compare behavior with the corresponding mathematical obligations and review exclusions for unavailable facilities. Use installed-client checks together with 🔗 2. Installation of configured public artifacts to establish that the public interface remains usable after installation.

doc/definitions.dox: PPL_CXX_interface and use_of_library; src/ppl_header.hh; src/Makefile.am: public header generation and installation.

LLR
2
PPL-LLR-000312
PPL-LLR-000312
Independent values after copying domain objects

When a supported numerical domain object is copied by value into another object of the same domain and scalar instantiation, the copy shall initially represent the same numerical set and dimension. Subsequent mutation of either value shall not change the other value's represented set.

Clients need predictable value semantics regardless of internal sharing or deferred normalization.

Verification covers supported same-domain copy and mutation contracts. Independent-mutation tests and analysis of sharing and normalization verify value independence. These guarantees apply to documented value copies, not borrowed references or input-recycling operations.

APPROVED
LIBRARY_WIDE
IF_CPP
Test, Analysis, Review

Construct and copy representative empty, universe and constrained domain values. Mutate each copy independently and check that only the selected value changes; include copies made before and after normalization.

src/Polyhedron_defs.hh: copy construction; src/Grid_defs.hh: copy construction; src/BD_Shape_defs.hh; src/Octagonal_Shape_defs.hh; src/Box_defs.hh.