Parma Polyhedra Library requirements
C++ interface requirements

C++ interface requirements

PPL-LLR-000311
1. Public C++ access to supported facilities
UID: PPL-LLR-000311
STATUS: APPROVED
COMPONENT: LIBRARY_WIDE
APPLICABILITY: IF_CPP
VERIFICATION_METHODS: Test, Analysis, Review
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

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.

RATIONALE:

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

COMMENT:

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.

VERIFICATION_CRITERIA:

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.

SOURCE:

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

PPL-LLR-000312
2. Independent values after copying domain objects
UID: PPL-LLR-000312
STATUS: APPROVED
COMPONENT: LIBRARY_WIDE
APPLICABILITY: IF_CPP
VERIFICATION_METHODS: Test, Analysis, Review
RELATIONS (Parent): RELATIONS (Child):
STATEMENT:

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.

RATIONALE:

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

COMMENT:

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.

VERIFICATION_CRITERIA:

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.

SOURCE:

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.