Parma Polyhedra Library requirements
C++ solver valid use

C++ solver valid use

PPL-SPEC-001466
1. Optimization and ranking valid use
UID: PPL-SPEC-001466
STATUS: APPROVED
COMPONENT: LIBRARY_WIDE
APPLICABILITY: IF_CPP
VERIFICATION_METHODS: Test, Analysis, Inspection
LANGUAGE: CPP
VISIBILITY: Public
RELATIONS (Parent):
STATEMENT:

Solver and ranking interfaces shall use the selected coefficient profile without loss of mathematical information when every intermediate arithmetic operation meets that profile's range and exactness conditions. Initialization shall follow 🔗 1. Initialization owners and automatic C++ initialization and 🔗 3. Thread initialization, default state and finalization; coordinate indices shall follow 🔗 1. Coordinate type and reserved dimension index. Objects, descriptors, iterators and streams shall remain live and valid throughout each operation.

A completed mathematical result shall satisfy the applicable solver or ranking contract. Arithmetic, allocation and cancellation exceptions may propagate; exceptional completion shall not constitute a feasibility or termination conclusion. Surviving owned resources shall remain destructible, without a general rollback or further-query guarantee. Separate output coefficients shall refer to distinct writable objects and shall not alias input expression or generator storage. Borrowed views shall not survive a mutation, replacement, destruction or query that can invalidate their backing representation. Accesses that can change solver state, trees or caches shall be externally synchronized. Solver heuristics shall affect search choices rather than the meaning of successfully completed results.

RATIONALE:

Exact mathematical conclusions require explicit arithmetic and ownership conditions; resource failure is a separate outcome.

INTERFACE:

Public header: <ppl.hh>; namespace Parma_Polyhedra_Library.

class MIP_Problem;
class PIP_Problem;
class PIP_Tree_Node;
VERIFICATION_CRITERIA:

Check independently interpreted models, all result classes, unavailable results, ownership during failures and state invalidation after changes.

SOURCE:

src/MIP_Problem.cc; src/MIP_Problem_defs.hh; src/MIP_Problem_inlines.hh; src/MIP_Problem_templates.hh; src/MIP_Problem_types.hh; src/PIP_Problem.cc; src/PIP_Problem_defs.hh; src/PIP_Problem_inlines.hh; src/PIP_Problem_templates.hh; src/PIP_Problem_types.hh; src/PIP_Tree.cc; src/PIP_Tree_defs.hh; src/PIP_Tree_inlines.hh; src/PIP_Tree_types.hh; src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/MIP_Problem/enumeratedmodels1.cc; tests/MIP_Problem/mipfeasibilityhistories1.cc; tests/PIP_Problem/boundedcontexts1.cc; tests/PIP_Problem/contextrefinement1.cc; tests/Polyhedron/termination1.cc; tests/MIP_Problem/mipproblem2.cc.