-
7. Access through supported language interfaces PPL-HLR-000007 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.
The C interface shall provide explicit initialization and finalization of library state. Repeated initialization without an intervening finalization, and repeated finalization without an intervening initialization, shall report an invalid lifecycle request.
-
1. C library and thread lifecycle PPL-SPEC-001515 ppl_initialize shall initialize native library state, published symbolic constants and the calling thread's C variable formatter. ppl_finalize shall release C-owned interruption objects and its native library-initialization owner and restore the preceding native variable formatter. Initialization and finalization shall return zero on success and invalid-argument status for duplicate lifecycle requests. Reinitialization after a completed finalization shall succeed. Independently owned client objects shall be released before finalization.
New participating threads shall enter and leave using the thread functions in supported configurations. The initializing thread shall use the library lifecycle rather than duplicate thread entry or exit. Thread finalization shall restore that thread's preceding native formatter. Shared lifecycle and interruption ownership shall obey the native synchronization prerequisites.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C version, dimensions and published constants PPL-SPEC-001517 Version and banner accessors shall expose the built library's version components and borrowed static strings. Dimension accessors shall assign the native maximum extent and reserved non-dimension sentinel without changing them numerically. Initialization shall publish relation flags, complexity classes, optimizer statuses, modes and controls corresponding to the native values. Callers shall use these symbolic values in the operations that accept them. Version component functions shall return their nonnegative component directly.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
7. Access through supported language interfaces PPL-HLR-000007 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.
The C interface shall distinguish caller-owned objects from borrowed access to an existing object's contents. Creating an owned object shall establish a separate lifetime, whereas obtaining a borrowed handle shall not transfer ownership or extend the owner's lifetime.
-
1. C generated domain values and conversions PPL-SPEC-001554 Domain constructors, copying, assignment, exchange, deletion and recycling shall preserve the corresponding native domain values, topology and complexity-policy guarantees. Each successful new result shall be independently owned. Borrowed inputs shall obey their documented lifetime and mutation restrictions. Failure cleanup shall not leak partially acquired owned results.
Complexity-taking constructors shall accept the public polynomial, simplex and any-complexity selectors. An unrecognized selector shall report PPL_ERROR_INVALID_ARGUMENT without constructing a result or changing the output handle.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C generated domain observations PPL-SPEC-001555 Predicates, containment/equality, dimension and relation queries shall return the corresponding native outcomes or flags. Bounds, optimization and frequency functions shall assign their native exact or sound values and admitted witnesses only when their operation reports success. Caller-supplied coefficient/witness outputs shall obey native nonaliasing restrictions. False or inconclusive results shall not be interpreted as a numerical proof beyond the native contract.
The selected-coordinate integer-point query shall decide existence with exactly the listed coordinates integral and all others real. An empty list shall test ordinary feasibility. Out-of-space indices shall be rejected and the represented input shall be preserved, as specified in 🔗 1. Selected-coordinate integer-point existence.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C generated system extraction ownership PPL-SPEC-001556 Polyhedron constraint/generator and Grid congruence/grid-generator getters shall return borrowed native systems, including minimized getters, with the documented owner-call invalidation rules. Getters designated to construct an independent system for other domains shall transfer an owned system. Successful extraction shall preserve the corresponding native mathematical meaning and approximation direction. Independent copies shall remain valid after domain mutation or destruction.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C generated domain transformations PPL-SPEC-001557 Constraint/congruence insertion, intersection, upper bounds, differences, simplification and other selected set transformations shall forward the corresponding native value and approximation contracts. Boolean exactness outcomes shall retain their native meaning. Dimension, topology, inclusion and ownership preconditions shall apply to the corresponding native arguments; designated admission failures shall be translated.
Integer-point refinement operations shall accept the public polynomial, simplex and any-complexity selectors. An unrecognized selector shall report PPL_ERROR_INVALID_ARGUMENT and leave the receiver unchanged.
Minkowski addition shall preserve the exact closed/NNC value contract in 🔗 1. Exact Minkowski sum of polyhedra. Generator-based time elapse shall preserve 🔗 1. Nonnegative polyhedral time elapse, including matching system dimension and borrowed receiver input. HH95, HPW01 and bounded Chvatal refinement shall require closed operands and reject NNC handles before a derived-class cast. Their native contracts in 🔗 1. HH95 closed-polyhedron edge extrapolation, 🔗 1. HPW01 closed-polyhedron extrapolation and 🔗 1. Bounded Chvatal half-pair refinement shall apply, including the pair-budget scope. These entry points shall be generated only with the Polyhedron interface.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C generated affine transformations PPL-SPEC-001558 Affine image/preimage and generalized/bounded families shall interpret expression coefficients, denominator, relation symbol and affected coordinates exactly as the corresponding native operation. Pointer parameters shall denote live expressions and coefficient objects, with native supported aliasing and nonzero-denominator rules. Successful results shall preserve the native exactness or sound enclosure guarantee.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
6. C generated dimension arrays and maps PPL-SPEC-001559 Dimension growth, projection/removal, expansion/folding and coordinate maps shall preserve native coordinate meanings. Counted dimension lists shall form sets where the native interface accepts sets. Map arrays shall associate source index i with entry i, using the published non-dimension sentinel for undefined entries. Entries outside the supplied array shall be undefined. Map emptiness and maximum codomain shall have finite partial-map meanings; valid maps shall satisfy the native dimension-map admission rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
7. C generated convergence operations PPL-SPEC-001560 Selected widening, extrapolation and narrowing functions shall apply their corresponding native operators and preconditions. Optional token pointers shall be forwarded with native token-update meaning; convenience forms shall have the same effect as their tokenless native form. Constraints limiting or bounding extrapolation shall retain their native role. These operations shall not be reinterpreted as exact joins or intersections.
The Rational_Box powerset BHZ03_CC76_CC76 function shall use the default CC76 stopping points and tokenless certificate contract of 🔗 5. Threshold-aware CC76 box convergence certificates. It shall be available when the powerset interface is selected, even when the separate Rational_Box interface is not selected. Other box types shall remain excluded unless separately certified for export.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
8. C finite-disjunction ownership and traversal PPL-SPEC-001561 Generated powerset iterator objects shall own only positions in a live disjunction. Disjunct getters shall return borrowed const disjuncts; adding shall copy the supplied value. Single/range removal shall use valid positions and native invalidation rules. Disjunct iteration shall preserve the native representation and shall not assert a canonical or pairwise-disjoint decomposition.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
9. C partition result ownership PPL-SPEC-001562 Partition functions shall produce the corresponding native intersection and finite-disjunction remainder, including the native finiteness/exactness indicator where provided. Successful output handles shall denote independently owned results. Results shall be published only after all required owned outputs have been acquired; failure shall release partial results and preserve output handle values. Output addresses shall be distinct as required.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
10. C affine-ranking outcomes and coefficient spaces PPL-SPEC-001563 Generated termination tests and one/all-ranking functions shall preserve the selected native MS/PR method, including the coordinate interpretation in 🔗 1. Transition encoding and ranking interpretation, normalization and strictness conventions. A false test or witness result shall remain inconclusive about termination. Successful witnesses shall satisfy the native ranking obligations; all-ranking outputs shall represent the native coefficient space, including universe for empty transitions. Paired input dimensions and selected output types shall satisfy native and binding-generation dependencies.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
11. C bounded integer wrapping PPL-SPEC-001564 Generated wrap functions shall interpret the selected coordinate set, width, signedness, overflow mode, guard system, complexity threshold and individual/joint option as the corresponding native bounded-integer wrapping operation. Width and representation shall define the same finite integer range; permitted approximations shall remain sound. The guard argument shall address a readable constraint-system handle. A null handle stored at that address shall denote absent guards; the address itself shall be non-null.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
1. C mixed integer problem values PPL-SPEC-001539 MIP constructors shall create an owned trivial, copied or constraint/objective/mode problem with the corresponding native MIP_Problem meaning. Copied constraints and objectives shall remain independent of later source mutations. Assignment shall replace the problem; deletion shall release owned state. A failed constructor shall leave its output handle unchanged and release acquired resources. The accepted mode shall select the published minimization value or maximization behavior.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C mixed integer descriptors and borrowing PPL-SPEC-001540 MIP queries shall report ambient dimension, integer-coordinate count/list, constraint count and optimization mode. Constraint-at-index and objective getters shall return borrowed const views of the stored problem. An admitted strict inequality shall appear as the equivalent closed row under the declared integrality restrictions. Indexed constraints shall follow native insertion order and reject out-of-range indices. The caller shall supply output arrays large enough for the separately queried count. Borrowed descriptors shall not be deleted or mutated and shall remain valid only under the accessor's owner-lifetime/invalidation rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C mixed integer incremental updates PPL-SPEC-001541 MIP clear, dimension growth, integer-coordinate selection, constraint additions and objective/mode replacement shall forward the corresponding native updates, including integer-supported strict admission under 🔗 1. Integer-supported strict MIP admission. Counted dimension arrays shall identify selected coordinates, with duplicates having set semantics. Completed later queries shall describe the updated problem; native admission errors shall retain their categories. Clear shall restore the zero-dimensional trivial problem.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C mixed integer solution outcomes and witnesses PPL-SPEC-001542 Satisfiability shall return the native boolean result. Solve shall return the published infeasible, unbounded or optimized status. Feasible/optimizing point getters shall return borrowed native point witnesses and reject requests for unavailable witnesses; their output handles shall remain unchanged on failure. Objective evaluation and optimum queries shall assign exact numerator/positive denominator values to existing coefficient objects under native admission and nonaliasing prerequisites. Solver-computing calls may invalidate earlier borrowed witnesses.
The standalone strict mixed-integer query shall decide the exact feasibility contract in 🔗 1. Exact strict mixed-integer feasibility using its explicit ambient dimension. Unused coordinates and empty systems shall retain that dimension. Out-of-space rows or integer coordinates shall be rejected. Constraint-system dimension completion shall occur on a copy, preserving the input and its metadata. The standalone query shall remain available with no selected domain interface.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C mixed integer controls, validity and memory PPL-SPEC-001543 Control functions shall use the published native pricing names/values and return or apply the corresponding supported strategy. Validity shall return the native invariant result. Memory queries shall assign native total/external estimates to the caller's size_t outputs. Pricing shall affect the search strategy without changing the exact successful mathematical result.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C textual output and allocated buffers PPL-SPEC-001520 The ppl_io_print_T and ppl_io_fprint_T families shall write the native human-readable representation to standard output or the supplied live FILE. ppl_io_asprint_T shall allocate a NUL-terminated buffer containing that representation, store its address and transfer ownership to the caller for free. On a reported allocation or I/O failure no completed representation shall be promised; partial external stream output may already exist. Formatting shall remain distinct from reloadable serialization. Buffered C streams remain subject to the caller's later flushing and closing errors.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C line wrapping and pointer failure result PPL-SPEC-001521 ppl_io_wrap_string shall apply native byte-oriented line wrapping through the first NUL byte, with the supplied indentation and preferred line lengths. Its successful result shall be a caller-owned NUL-terminated malloc buffer released with free. Preferred widths shall guide separator selection without splitting unbroken words. Native C++ exceptions and failure to allocate the final C buffer shall produce null and the corresponding error-handler notification. Successful wrapping shall preserve the native text and separator rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C reloadable FILE representations PPL-SPEC-001522 For types with ASCII operations, ppl_T_ascii_dump shall write the native reloadable representation to a live FILE. ppl_T_ascii_load shall replace the mutable owned object's value when the native loader succeeds. A native false result or detected stream failure shall report PPL_STDIO_ERROR and notify the error handler. Loading supports trusted records written by the corresponding native dumper in a compatible build. Native failure-state guarantees shall apply. A failed load may leave a partially replaced object whose ownership permits destruction. Rollback and further queries shall not be assumed. Borrowed objects shall not be loaded into.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
1. C parametric problem values and ownership PPL-SPEC-001544 PIP constructors shall create independent owned trivial, copied or constraint-range problems with the selected parameter coordinates. Range and counted-array arguments shall be valid during construction. Assignment shall replace native problem/tree state and rebind its owned nodes to the destination. Deletion shall release owned trees and problem data. Failed construction shall preserve its output handle and release acquired resources.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C parametric descriptors and parameter lists PPL-SPEC-001545 PIP descriptor queries shall expose native dimension, parameter-coordinate count/list and original constraint count. Constraint-at-index shall return the corresponding borrowed input constraint and reject an out-of-range index without changing the output handle. Output arrays shall have sufficient capacity for their separately queried count. Read-only metadata inspection shall follow the documented safe borrowing rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C parametric incremental updates PPL-SPEC-001546 PIP clear, variable/parameter growth, parameter-coordinate selection and constraint additions shall have native PIP_Problem effects and admission rules. Variables shall be appended before newly appended parameters. Selected dimensions shall be interpreted as a set. Existing processed decision variables shall not be reinterpreted as parameters. An empty constraint system shall still retain its declared dimension for compatibility checks. Later completed solution queries shall refer to the updated input and initial context.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C parametric outcomes and borrowed solution trees PPL-SPEC-001547 PIP satisfiability and solve shall return native boolean/status outcomes in the selected mode, including the big-parameter convention in 🔗 1. Parametric problem and context interpretation. Solution accessors shall return a borrowed root owned by the problem, or null as a successful result for infeasibility in that mode. The solution shall retain native nonnegative-integer, initial-context and lexicographic semantics within the declared assignment scope. Tree handles shall not be modified or deleted. Operations that compute or replace problem/tree state may invalidate them; documented read-only traversal and metadata queries shall remain permitted. Failed access shall preserve its output handle.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C parametric controls, big parameter and memory PPL-SPEC-001548 PIP cutting/pivot controls and big-parameter selection shall forward native admission and stored values. A designated big parameter shall remain an admitted parameter coordinate and shall select the asymptotic interpretation in 🔗 1. Parametric problem and context interpretation. Native validity and memory results shall be returned or assigned without changing their meaning.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
6. C solution-tree kind, guards, children and values PPL-SPEC-001549 Tree-kind accessors shall return an alias of the input node for a matching kind and null for a different kind, without transferring ownership. Decision-child access shall select the requested boolean branch and return null for an absent branch. Guard getters shall return borrowed native constraint systems. Solution-coordinate getters shall return borrowed native affine expressions for decision coordinates, with native domain/index errors for invalid queries. Null handles shall be tested before further use. Traversal and independent coordinate queries shall not invalidate other documented read-only tree views.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
7. C artificial-parameter expression and coefficient queries PPL-SPEC-001550 The artificial-parameter input handle shall borrow an element of the owning tree. Expression access shall copy its affine numerator into the caller's existing expression object. That copy shall remain independent of the tree. Coefficient, constant and denominator queries shall assign their stored native values to existing coefficient objects. The artificial value shall remain the mathematical floor of the numerator divided by its positive denominator, including negative numerators. These accessors shall not normalize or replace the source representation or transfer ownership of the artificial parameter.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
8. C artificial-parameter sequence traversal PPL-SPEC-001551 Allocated artificial-parameter iterators shall own only their iterator storage. Node begin/end shall position them in that node's local ordered sequence; equality, increment and dereference shall use valid positions in the same live sequence. Dereference shall return a borrowed artificial parameter tied to the owning problem/tree. Copying positions shall not copy parameters or extend tree lifetime; deleting positions shall not delete tree contents. Count shall report the local sequence length.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
1. C constraint systems PPL-SPEC-001534 The Constraint_System functions shall construct independent empty, copied, single-element or dedicated canonical native systems as exposed. Insertion shall copy the supplied constraint with the native system's topology and dimension rules. The represented condition after insertion shall be the conjunction of the previous condition and the inserted constraint. Assignment, clear and deletion shall have the native value and ownership effects. Dimension, emptiness and validity queries shall expose the native result. Begin/end operations shall position caller-owned iterators in the live system; dereferenced elements shall remain borrowed from that system and shall not be deleted or mutated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C generator systems PPL-SPEC-001535 The Generator_System functions shall construct independent empty, copied, single-element or dedicated canonical native systems as exposed. Insertion shall copy the supplied element with the native system's topology and dimension rules. Assignment, clear and deletion shall have the native value and ownership effects. Dimension, emptiness and validity queries shall expose the native result. Begin/end operations shall position caller-owned iterators in the live system; dereferenced elements shall remain borrowed from that system and shall not be deleted or mutated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C congruence systems PPL-SPEC-001536 The Congruence_System functions shall construct independent empty, copied, single-element or dedicated canonical native systems as exposed. Insertion shall copy the supplied congruence with the native system's dimension rules. The represented condition after insertion shall be the conjunction of the previous condition and the inserted congruence. Assignment, clear and deletion shall have the native value and ownership effects. Dimension, emptiness and validity queries shall expose the native result. Begin/end operations shall position caller-owned iterators in the live system; dereferenced elements shall remain borrowed from that system and shall not be deleted or mutated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C grid generator systems PPL-SPEC-001537 The Grid_Generator_System functions shall construct independent empty, copied, single-element or dedicated canonical native systems as exposed. Insertion shall copy the supplied element with the native system's topology and dimension rules. Assignment, clear and deletion shall have the native value and ownership effects. Dimension, emptiness and validity queries shall expose the native result. Begin/end operations shall position caller-owned iterators in the live system; dereferenced elements shall remain borrowed from that system and shall not be deleted or mutated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C descriptor-system iterator lifetimes PPL-SPEC-001538 Iterator constructors shall allocate caller-owned iterator positions; copying and assignment shall copy positions without copying or extending the lifetime of their system or elements. Begin/end shall position them in the supplied live system. Equality shall compare valid positions in that same system. Increment shall advance a valid non-end position; dereference shall return a borrowed const element at a dereferenceable position. Mutation, replacement or destruction of the owning system shall obey the native invalidation rules. Iterator deletion shall release only iterator storage.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
Incoming links from: 1. C generated domain values and conversions 2. C generated domain observations 3. C generated system extraction ownership 4. C generated domain transformations 5. C generated affine transformations 6. C generated dimension arrays and maps 7. C generated convergence operations 8. C finite-disjunction ownership and traversal 9. C partition result ownership 10. C affine-ranking outcomes and coefficient spaces 11. C bounded integer wrapping 12. C selected domains and generated dependencies 1. C mixed integer problem values 2. C mixed integer descriptors and borrowing 3. C mixed integer incremental updates 4. C mixed integer solution outcomes and witnesses 5. C mixed integer controls, validity and memory 1. C variable formatting and callback failures 2. C textual output and allocated buffers 3. C line wrapping and pointer failure result 4. C reloadable FILE representations 1. C parametric problem values and ownership 2. C parametric descriptors and parameter lists 3. C parametric incremental updates 4. C parametric outcomes and borrowed solution trees 5. C parametric controls, big parameter and memory 6. C solution-tree kind, guards, children and values 7. C artificial-parameter expression and coefficient queries 8. C artificial-parameter sequence traversal 1. C library and thread lifecycle 2. C failures and installed error notification 3. C version, dimensions and published constants 4. C rounding and irrational precision controls 5. C signal timeout lifecycle 6. C deterministic timeout lifecycle 1. C constraint systems 2. C generator systems 3. C congruence systems 4. C grid generator systems 5. C descriptor-system iterator lifetimes 1. C coefficient ownership, conversion and bounds 2. C affine expression values and updates 3. C affine expression queries 4. C linear constraint values 5. C linear constraint queries 6. C polyhedral generator values 7. C polyhedral generator queries 8. C rational congruence values 9. C rational congruence queries 10. C grid generator values 11. C grid generator queries51
1. C handles, arguments and successful outcomes PPL-SPEC-001514 C clients shall use the installed <ppl_c.h> declarations with compatible native and GMP libraries. Input handles shall denote live objects of the declared type. Mutable handles shall denote writable objects; a borrowed const handle shall not be modified or deleted. Output addresses shall be non-null and writable. Arrays shall contain their declared number of elements; a zero count shall require no element access. Iterators shall have valid positions in the same live container. Caller synchronization, thread entry and floating-point prerequisites shall follow the native operations.
A nonnegative function result shall have the meaning assigned by its operation: zero status, boolean result, enumeration or flags. Negative results shall denote failures. Successful mathematical results shall preserve the corresponding native operation's exactness, approximation direction, inconclusive outcomes and admitted witnesses. Failed operations shall not imply a completed mathematical result or unspecified rollback. Unless explicitly guaranteed, output parameters shall be used only after success.
-
1. C coefficient ownership, conversion and bounds PPL-SPEC-001523 Coefficient creation shall produce independent caller-owned zero, GMP-integer or copied values. Assignment and conversion to or from initialized mpz_t objects shall preserve the mathematical integer for every admitted value. For checked coefficient profiles, conversion from GMP with an out-of-range value shall report PPL_ARITHMETIC_OVERFLOW. Deletion shall release owned coefficients. The boundedness predicate shall identify the configured coefficient representation. Minimum/maximum queries shall assign bounds and return true for bounded coefficients, and return false without modifying the output for unbounded coefficients. OK shall report the coefficient representation's admitted validity.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C affine expression values and updates PPL-SPEC-001524 Expression construction shall produce independent zero, dimensioned, copied or descriptor-derived native affine expressions. Assignment, coefficient additions, constant additions, expression addition/subtraction and scaling shall have the corresponding native affine meaning and retain native dimension/admission rules. Source handles shall remain valid during operations; owned results shall be independently deletable. Mutations shall not alter an independent source copy.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C affine expression queries PPL-SPEC-001525 Expression dimension and coefficient queries shall assign the corresponding native extent, selected coefficient or constant. Zero tests and validity tests shall return boolean results. Query outputs shall be live writable coefficient objects rather than newly allocated handles. Indexed access shall observe native index admission and virtual zero coefficients where provided.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C linear constraint values PPL-SPEC-001526 Creation shall copy inputs into an independent owned Constraint representing the supplied affine expression compared with zero using the requested supported relation, including strict relations. Dedicated zero-dimensional constructors shall provide the corresponding native canonical objects. Copying and assignment shall preserve native value and dimension; deletion shall release owned storage. An unsupported relation code shall report PPL_ERROR_INVALID_ARGUMENT. Native dimension and size failures shall be translated by the C failure protocol.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C linear constraint queries PPL-SPEC-001527 Queries shall report the native Constraint relation type, dimension, variable coefficients and inhomogeneous term. Validity queries shall return a boolean outcome. Coefficient and inhomogeneous-term outputs shall assign existing writable coefficient objects. Native argument failures shall be translated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
6. C polyhedral generator values PPL-SPEC-001528 Creation shall copy inputs into an independent owned Generator representing the requested line, ray, point or closure point with the native direction or divisor semantics. Dedicated zero-dimensional constructors shall provide the corresponding native canonical objects. Copying and assignment shall preserve native value and dimension; deletion shall release owned storage. Invalid kinds, undefined divisors and dimension/size violations designated by the native operation shall be reported through the C failure protocol.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
7. C polyhedral generator queries PPL-SPEC-001529 Queries shall report the native Generator kind, dimension and variable coefficients. Divisor queries shall report the native divisor for a point or closure point and shall report PPL_ERROR_INVALID_ARGUMENT for a line or ray. Validity queries shall return a boolean outcome. Coefficient and divisor outputs shall assign existing writable coefficient objects. Native argument failures shall be translated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
8. C rational congruence values PPL-SPEC-001530 Creation shall copy inputs into an independent owned Congruence representing the supplied affine expression and modulus, with modulus zero denoting equality and native normalization of nonzero moduli. Dedicated zero-dimensional constructors shall provide the corresponding native canonical objects. Copying and assignment shall preserve native value and dimension; deletion shall release owned storage. Native dimension and size failures shall be translated by the C failure protocol.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
9. C rational congruence queries PPL-SPEC-001531 Queries shall report the native Congruence dimension, variable coefficients, inhomogeneous term and modulus. Validity queries shall return a boolean outcome. Coefficient, inhomogeneous-term and modulus outputs shall assign existing writable coefficient objects. Native argument failures shall be translated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
10. C grid generator values PPL-SPEC-001532 Creation shall copy inputs into an independent owned Grid_Generator representing the requested line, parameter or point with the native direction and divisor semantics. Dedicated zero-dimensional constructors shall provide the corresponding native canonical objects. Copying and assignment shall preserve native value and dimension; deletion shall release owned storage. Invalid kinds, undefined divisors and dimension/size violations designated by the native operation shall be reported through the C failure protocol.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
11. C grid generator queries PPL-SPEC-001533 Queries shall report the native Grid_Generator kind, dimension and variable coefficients. Divisor queries shall report the native divisor for a point or parameter and shall report PPL_ERROR_INVALID_ARGUMENT for a line. Validity queries shall return a boolean outcome. Coefficient and divisor outputs shall assign existing writable coefficient objects. Native argument failures shall be translated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
7. Access through supported language interfaces PPL-HLR-000007 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.
The C interface shall report every failure designated by its supported failure model through the corresponding negative error status and invoke the installed error handler with the error category and a textual description. Native C++ exceptions raised by supported operations shall be contained at the C language boundary rather than escaping to the caller.
-
1. C generated domain values and conversions PPL-SPEC-001554 Domain constructors, copying, assignment, exchange, deletion and recycling shall preserve the corresponding native domain values, topology and complexity-policy guarantees. Each successful new result shall be independently owned. Borrowed inputs shall obey their documented lifetime and mutation restrictions. Failure cleanup shall not leak partially acquired owned results.
Complexity-taking constructors shall accept the public polynomial, simplex and any-complexity selectors. An unrecognized selector shall report PPL_ERROR_INVALID_ARGUMENT without constructing a result or changing the output handle.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C generated domain observations PPL-SPEC-001555 Predicates, containment/equality, dimension and relation queries shall return the corresponding native outcomes or flags. Bounds, optimization and frequency functions shall assign their native exact or sound values and admitted witnesses only when their operation reports success. Caller-supplied coefficient/witness outputs shall obey native nonaliasing restrictions. False or inconclusive results shall not be interpreted as a numerical proof beyond the native contract.
The selected-coordinate integer-point query shall decide existence with exactly the listed coordinates integral and all others real. An empty list shall test ordinary feasibility. Out-of-space indices shall be rejected and the represented input shall be preserved, as specified in 🔗 1. Selected-coordinate integer-point existence.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C generated system extraction ownership PPL-SPEC-001556 Polyhedron constraint/generator and Grid congruence/grid-generator getters shall return borrowed native systems, including minimized getters, with the documented owner-call invalidation rules. Getters designated to construct an independent system for other domains shall transfer an owned system. Successful extraction shall preserve the corresponding native mathematical meaning and approximation direction. Independent copies shall remain valid after domain mutation or destruction.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C generated domain transformations PPL-SPEC-001557 Constraint/congruence insertion, intersection, upper bounds, differences, simplification and other selected set transformations shall forward the corresponding native value and approximation contracts. Boolean exactness outcomes shall retain their native meaning. Dimension, topology, inclusion and ownership preconditions shall apply to the corresponding native arguments; designated admission failures shall be translated.
Integer-point refinement operations shall accept the public polynomial, simplex and any-complexity selectors. An unrecognized selector shall report PPL_ERROR_INVALID_ARGUMENT and leave the receiver unchanged.
Minkowski addition shall preserve the exact closed/NNC value contract in 🔗 1. Exact Minkowski sum of polyhedra. Generator-based time elapse shall preserve 🔗 1. Nonnegative polyhedral time elapse, including matching system dimension and borrowed receiver input. HH95, HPW01 and bounded Chvatal refinement shall require closed operands and reject NNC handles before a derived-class cast. Their native contracts in 🔗 1. HH95 closed-polyhedron edge extrapolation, 🔗 1. HPW01 closed-polyhedron extrapolation and 🔗 1. Bounded Chvatal half-pair refinement shall apply, including the pair-budget scope. These entry points shall be generated only with the Polyhedron interface.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C generated affine transformations PPL-SPEC-001558 Affine image/preimage and generalized/bounded families shall interpret expression coefficients, denominator, relation symbol and affected coordinates exactly as the corresponding native operation. Pointer parameters shall denote live expressions and coefficient objects, with native supported aliasing and nonzero-denominator rules. Successful results shall preserve the native exactness or sound enclosure guarantee.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
6. C generated dimension arrays and maps PPL-SPEC-001559 Dimension growth, projection/removal, expansion/folding and coordinate maps shall preserve native coordinate meanings. Counted dimension lists shall form sets where the native interface accepts sets. Map arrays shall associate source index i with entry i, using the published non-dimension sentinel for undefined entries. Entries outside the supplied array shall be undefined. Map emptiness and maximum codomain shall have finite partial-map meanings; valid maps shall satisfy the native dimension-map admission rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
7. C generated convergence operations PPL-SPEC-001560 Selected widening, extrapolation and narrowing functions shall apply their corresponding native operators and preconditions. Optional token pointers shall be forwarded with native token-update meaning; convenience forms shall have the same effect as their tokenless native form. Constraints limiting or bounding extrapolation shall retain their native role. These operations shall not be reinterpreted as exact joins or intersections.
The Rational_Box powerset BHZ03_CC76_CC76 function shall use the default CC76 stopping points and tokenless certificate contract of 🔗 5. Threshold-aware CC76 box convergence certificates. It shall be available when the powerset interface is selected, even when the separate Rational_Box interface is not selected. Other box types shall remain excluded unless separately certified for export.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
8. C finite-disjunction ownership and traversal PPL-SPEC-001561 Generated powerset iterator objects shall own only positions in a live disjunction. Disjunct getters shall return borrowed const disjuncts; adding shall copy the supplied value. Single/range removal shall use valid positions and native invalidation rules. Disjunct iteration shall preserve the native representation and shall not assert a canonical or pairwise-disjoint decomposition.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
9. C partition result ownership PPL-SPEC-001562 Partition functions shall produce the corresponding native intersection and finite-disjunction remainder, including the native finiteness/exactness indicator where provided. Successful output handles shall denote independently owned results. Results shall be published only after all required owned outputs have been acquired; failure shall release partial results and preserve output handle values. Output addresses shall be distinct as required.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
10. C affine-ranking outcomes and coefficient spaces PPL-SPEC-001563 Generated termination tests and one/all-ranking functions shall preserve the selected native MS/PR method, including the coordinate interpretation in 🔗 1. Transition encoding and ranking interpretation, normalization and strictness conventions. A false test or witness result shall remain inconclusive about termination. Successful witnesses shall satisfy the native ranking obligations; all-ranking outputs shall represent the native coefficient space, including universe for empty transitions. Paired input dimensions and selected output types shall satisfy native and binding-generation dependencies.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
11. C bounded integer wrapping PPL-SPEC-001564 Generated wrap functions shall interpret the selected coordinate set, width, signedness, overflow mode, guard system, complexity threshold and individual/joint option as the corresponding native bounded-integer wrapping operation. Width and representation shall define the same finite integer range; permitted approximations shall remain sound. The guard argument shall address a readable constraint-system handle. A null handle stored at that address shall denote absent guards; the address itself shall be non-null.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
1. C mixed integer problem values PPL-SPEC-001539 MIP constructors shall create an owned trivial, copied or constraint/objective/mode problem with the corresponding native MIP_Problem meaning. Copied constraints and objectives shall remain independent of later source mutations. Assignment shall replace the problem; deletion shall release owned state. A failed constructor shall leave its output handle unchanged and release acquired resources. The accepted mode shall select the published minimization value or maximization behavior.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C mixed integer descriptors and borrowing PPL-SPEC-001540 MIP queries shall report ambient dimension, integer-coordinate count/list, constraint count and optimization mode. Constraint-at-index and objective getters shall return borrowed const views of the stored problem. An admitted strict inequality shall appear as the equivalent closed row under the declared integrality restrictions. Indexed constraints shall follow native insertion order and reject out-of-range indices. The caller shall supply output arrays large enough for the separately queried count. Borrowed descriptors shall not be deleted or mutated and shall remain valid only under the accessor's owner-lifetime/invalidation rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C mixed integer incremental updates PPL-SPEC-001541 MIP clear, dimension growth, integer-coordinate selection, constraint additions and objective/mode replacement shall forward the corresponding native updates, including integer-supported strict admission under 🔗 1. Integer-supported strict MIP admission. Counted dimension arrays shall identify selected coordinates, with duplicates having set semantics. Completed later queries shall describe the updated problem; native admission errors shall retain their categories. Clear shall restore the zero-dimensional trivial problem.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C mixed integer solution outcomes and witnesses PPL-SPEC-001542 Satisfiability shall return the native boolean result. Solve shall return the published infeasible, unbounded or optimized status. Feasible/optimizing point getters shall return borrowed native point witnesses and reject requests for unavailable witnesses; their output handles shall remain unchanged on failure. Objective evaluation and optimum queries shall assign exact numerator/positive denominator values to existing coefficient objects under native admission and nonaliasing prerequisites. Solver-computing calls may invalidate earlier borrowed witnesses.
The standalone strict mixed-integer query shall decide the exact feasibility contract in 🔗 1. Exact strict mixed-integer feasibility using its explicit ambient dimension. Unused coordinates and empty systems shall retain that dimension. Out-of-space rows or integer coordinates shall be rejected. Constraint-system dimension completion shall occur on a copy, preserving the input and its metadata. The standalone query shall remain available with no selected domain interface.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C mixed integer controls, validity and memory PPL-SPEC-001543 Control functions shall use the published native pricing names/values and return or apply the corresponding supported strategy. Validity shall return the native invariant result. Memory queries shall assign native total/external estimates to the caller's size_t outputs. Pricing shall affect the search strategy without changing the exact successful mathematical result.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
1. C variable formatting and callback failures PPL-SPEC-001519 The C formatter getter and setter shall expose and replace the calling thread's variable-output callback. The supplied callback shall be callable, return normally and return a borrowed NUL-terminated representation, or null to signal failure. The default callback shall use the native letter-and-quotient naming convention.
Direct variable output and object output containing a variable shall use that callback. A null callback result shall make the enclosing C output operation report PPL_STDIO_ERROR and notify the installed error handler. Failed formatting shall not be reported as successful output with the variable silently omitted.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C textual output and allocated buffers PPL-SPEC-001520 The ppl_io_print_T and ppl_io_fprint_T families shall write the native human-readable representation to standard output or the supplied live FILE. ppl_io_asprint_T shall allocate a NUL-terminated buffer containing that representation, store its address and transfer ownership to the caller for free. On a reported allocation or I/O failure no completed representation shall be promised; partial external stream output may already exist. Formatting shall remain distinct from reloadable serialization. Buffered C streams remain subject to the caller's later flushing and closing errors.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C line wrapping and pointer failure result PPL-SPEC-001521 ppl_io_wrap_string shall apply native byte-oriented line wrapping through the first NUL byte, with the supplied indentation and preferred line lengths. Its successful result shall be a caller-owned NUL-terminated malloc buffer released with free. Preferred widths shall guide separator selection without splitting unbroken words. Native C++ exceptions and failure to allocate the final C buffer shall produce null and the corresponding error-handler notification. Successful wrapping shall preserve the native text and separator rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C reloadable FILE representations PPL-SPEC-001522 For types with ASCII operations, ppl_T_ascii_dump shall write the native reloadable representation to a live FILE. ppl_T_ascii_load shall replace the mutable owned object's value when the native loader succeeds. A native false result or detected stream failure shall report PPL_STDIO_ERROR and notify the error handler. Loading supports trusted records written by the corresponding native dumper in a compatible build. Native failure-state guarantees shall apply. A failed load may leave a partially replaced object whose ownership permits destruction. Rollback and further queries shall not be assumed. Borrowed objects shall not be loaded into.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
1. C parametric problem values and ownership PPL-SPEC-001544 PIP constructors shall create independent owned trivial, copied or constraint-range problems with the selected parameter coordinates. Range and counted-array arguments shall be valid during construction. Assignment shall replace native problem/tree state and rebind its owned nodes to the destination. Deletion shall release owned trees and problem data. Failed construction shall preserve its output handle and release acquired resources.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C parametric descriptors and parameter lists PPL-SPEC-001545 PIP descriptor queries shall expose native dimension, parameter-coordinate count/list and original constraint count. Constraint-at-index shall return the corresponding borrowed input constraint and reject an out-of-range index without changing the output handle. Output arrays shall have sufficient capacity for their separately queried count. Read-only metadata inspection shall follow the documented safe borrowing rules.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C parametric incremental updates PPL-SPEC-001546 PIP clear, variable/parameter growth, parameter-coordinate selection and constraint additions shall have native PIP_Problem effects and admission rules. Variables shall be appended before newly appended parameters. Selected dimensions shall be interpreted as a set. Existing processed decision variables shall not be reinterpreted as parameters. An empty constraint system shall still retain its declared dimension for compatibility checks. Later completed solution queries shall refer to the updated input and initial context.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C parametric outcomes and borrowed solution trees PPL-SPEC-001547 PIP satisfiability and solve shall return native boolean/status outcomes in the selected mode, including the big-parameter convention in 🔗 1. Parametric problem and context interpretation. Solution accessors shall return a borrowed root owned by the problem, or null as a successful result for infeasibility in that mode. The solution shall retain native nonnegative-integer, initial-context and lexicographic semantics within the declared assignment scope. Tree handles shall not be modified or deleted. Operations that compute or replace problem/tree state may invalidate them; documented read-only traversal and metadata queries shall remain permitted. Failed access shall preserve its output handle.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C parametric controls, big parameter and memory PPL-SPEC-001548 PIP cutting/pivot controls and big-parameter selection shall forward native admission and stored values. A designated big parameter shall remain an admitted parameter coordinate and shall select the asymptotic interpretation in 🔗 1. Parametric problem and context interpretation. Native validity and memory results shall be returned or assigned without changing their meaning.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
6. C solution-tree kind, guards, children and values PPL-SPEC-001549 Tree-kind accessors shall return an alias of the input node for a matching kind and null for a different kind, without transferring ownership. Decision-child access shall select the requested boolean branch and return null for an absent branch. Guard getters shall return borrowed native constraint systems. Solution-coordinate getters shall return borrowed native affine expressions for decision coordinates, with native domain/index errors for invalid queries. Null handles shall be tested before further use. Traversal and independent coordinate queries shall not invalidate other documented read-only tree views.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
7. C artificial-parameter expression and coefficient queries PPL-SPEC-001550 The artificial-parameter input handle shall borrow an element of the owning tree. Expression access shall copy its affine numerator into the caller's existing expression object. That copy shall remain independent of the tree. Coefficient, constant and denominator queries shall assign their stored native values to existing coefficient objects. The artificial value shall remain the mathematical floor of the numerator divided by its positive denominator, including negative numerators. These accessors shall not normalize or replace the source representation or transfer ownership of the artificial parameter.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
8. C artificial-parameter sequence traversal PPL-SPEC-001551 Allocated artificial-parameter iterators shall own only their iterator storage. Node begin/end shall position them in that node's local ordered sequence; equality, increment and dereference shall use valid positions in the same live sequence. Dereference shall return a borrowed artificial parameter tied to the owning problem/tree. Copying positions shall not copy parameters or extend tree lifetime; deleting positions shall not delete tree contents. Count shall report the local sequence length.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C failures and installed error notification PPL-SPEC-001516 Supported native exceptions shall be contained at the C boundary and translated to the corresponding negative category: allocation, invalid argument, domain, size, logic, checked arithmetic overflow, internal runtime error, other standard exception, unexpected exception or interruption. The installed non-null error handler shall receive that category and a description exactly once for each reported failure, including directly detected I/O, buffer-allocation and unsupported-operation failures. Its description shall be borrowed only during the callback. A null handler shall disable notification. Handlers shall return normally and obey synchronization and reentrancy prerequisites.
ppl_set_error_handler shall replace the calling thread's handler where thread-local state is configured. Direct C I/O errors shall preserve their errno detail across notification. Pointer-returning text wrapping shall use null on failure, with handler notification, rather than allowing a C++ exception to escape.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C signal timeout lifecycle PPL-SPEC-001552 Supported signal-timeout requests shall arm the native watchdog for the positive centisecond duration under its thread/signal ownership prerequisites. Replacing a timeout shall cancel the preceding signal timeout before admitting and arming its replacement; failure after cancellation shall not restore the old one. Reset shall release the C-owned signal watchdog and its binding-owned notification state. A delivered signal interruption shall report the timeout category and release that signal timeout before notification. Thread-safe C configurations shall reject the unsupported request without arming it. C library finalization shall release any remaining C-owned signal watchdog before native watchdog finalization.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
6. C deterministic timeout lifecycle PPL-SPEC-001553 Supported deterministic requests shall use the native positive scaled computational-weight increment, its admitted circular threshold domain and cooperative checkpoints. Replacing shall cancel the preceding deterministic setting before admitting the replacement; reset shall release its C-owned watcher and notification state. A deterministic interruption shall release that deterministic watcher before reporting the timeout category. It shall not remain active merely because the signal-timeout cleanup path was selected instead. Reset shall clear only the C-owned deterministic request and preserve unrelated borrowed interruption requests. In thread-safe C configurations, each initialized thread shall own its independent watcher, threshold queue, checker and budget counter. Setting, canceling or expiring one thread's budget shall not alter another's. Thread and library finalization shall release the calling thread's remaining C-owned deterministic state before native teardown; a later thread session shall inherit no pending C deterministic timeout.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
1. C constraint systems PPL-SPEC-001534 The Constraint_System functions shall construct independent empty, copied, single-element or dedicated canonical native systems as exposed. Insertion shall copy the supplied constraint with the native system's topology and dimension rules. The represented condition after insertion shall be the conjunction of the previous condition and the inserted constraint. Assignment, clear and deletion shall have the native value and ownership effects. Dimension, emptiness and validity queries shall expose the native result. Begin/end operations shall position caller-owned iterators in the live system; dereferenced elements shall remain borrowed from that system and shall not be deleted or mutated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C generator systems PPL-SPEC-001535 The Generator_System functions shall construct independent empty, copied, single-element or dedicated canonical native systems as exposed. Insertion shall copy the supplied element with the native system's topology and dimension rules. Assignment, clear and deletion shall have the native value and ownership effects. Dimension, emptiness and validity queries shall expose the native result. Begin/end operations shall position caller-owned iterators in the live system; dereferenced elements shall remain borrowed from that system and shall not be deleted or mutated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C congruence systems PPL-SPEC-001536 The Congruence_System functions shall construct independent empty, copied, single-element or dedicated canonical native systems as exposed. Insertion shall copy the supplied congruence with the native system's dimension rules. The represented condition after insertion shall be the conjunction of the previous condition and the inserted congruence. Assignment, clear and deletion shall have the native value and ownership effects. Dimension, emptiness and validity queries shall expose the native result. Begin/end operations shall position caller-owned iterators in the live system; dereferenced elements shall remain borrowed from that system and shall not be deleted or mutated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C grid generator systems PPL-SPEC-001537 The Grid_Generator_System functions shall construct independent empty, copied, single-element or dedicated canonical native systems as exposed. Insertion shall copy the supplied element with the native system's topology and dimension rules. Assignment, clear and deletion shall have the native value and ownership effects. Dimension, emptiness and validity queries shall expose the native result. Begin/end operations shall position caller-owned iterators in the live system; dereferenced elements shall remain borrowed from that system and shall not be deleted or mutated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C descriptor-system iterator lifetimes PPL-SPEC-001538 Iterator constructors shall allocate caller-owned iterator positions; copying and assignment shall copy positions without copying or extending the lifetime of their system or elements. Begin/end shall position them in the supplied live system. Equality shall compare valid positions in that same system. Increment shall advance a valid non-end position; dereference shall return a borrowed const element at a dereferenceable position. Mutation, replacement or destruction of the owning system shall obey the native invalidation rules. Iterator deletion shall release only iterator storage.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
Incoming links from: 1. C generated domain values and conversions 2. C generated domain observations 3. C generated system extraction ownership 4. C generated domain transformations 5. C generated affine transformations 6. C generated dimension arrays and maps 7. C generated convergence operations 8. C finite-disjunction ownership and traversal 9. C partition result ownership 10. C affine-ranking outcomes and coefficient spaces 11. C bounded integer wrapping 12. C selected domains and generated dependencies 1. C mixed integer problem values 2. C mixed integer descriptors and borrowing 3. C mixed integer incremental updates 4. C mixed integer solution outcomes and witnesses 5. C mixed integer controls, validity and memory 1. C variable formatting and callback failures 2. C textual output and allocated buffers 3. C line wrapping and pointer failure result 4. C reloadable FILE representations 1. C parametric problem values and ownership 2. C parametric descriptors and parameter lists 3. C parametric incremental updates 4. C parametric outcomes and borrowed solution trees 5. C parametric controls, big parameter and memory 6. C solution-tree kind, guards, children and values 7. C artificial-parameter expression and coefficient queries 8. C artificial-parameter sequence traversal 1. C library and thread lifecycle 2. C failures and installed error notification 3. C version, dimensions and published constants 4. C rounding and irrational precision controls 5. C signal timeout lifecycle 6. C deterministic timeout lifecycle 1. C constraint systems 2. C generator systems 3. C congruence systems 4. C grid generator systems 5. C descriptor-system iterator lifetimes 1. C coefficient ownership, conversion and bounds 2. C affine expression values and updates 3. C affine expression queries 4. C linear constraint values 5. C linear constraint queries 6. C polyhedral generator values 7. C polyhedral generator queries 8. C rational congruence values 9. C rational congruence queries 10. C grid generator values 11. C grid generator queries51
1. C handles, arguments and successful outcomes PPL-SPEC-001514 C clients shall use the installed <ppl_c.h> declarations with compatible native and GMP libraries. Input handles shall denote live objects of the declared type. Mutable handles shall denote writable objects; a borrowed const handle shall not be modified or deleted. Output addresses shall be non-null and writable. Arrays shall contain their declared number of elements; a zero count shall require no element access. Iterators shall have valid positions in the same live container. Caller synchronization, thread entry and floating-point prerequisites shall follow the native operations.
A nonnegative function result shall have the meaning assigned by its operation: zero status, boolean result, enumeration or flags. Negative results shall denote failures. Successful mathematical results shall preserve the corresponding native operation's exactness, approximation direction, inconclusive outcomes and admitted witnesses. Failed operations shall not imply a completed mathematical result or unspecified rollback. Unless explicitly guaranteed, output parameters shall be used only after success.
-
1. C coefficient ownership, conversion and bounds PPL-SPEC-001523 Coefficient creation shall produce independent caller-owned zero, GMP-integer or copied values. Assignment and conversion to or from initialized mpz_t objects shall preserve the mathematical integer for every admitted value. For checked coefficient profiles, conversion from GMP with an out-of-range value shall report PPL_ARITHMETIC_OVERFLOW. Deletion shall release owned coefficients. The boundedness predicate shall identify the configured coefficient representation. Minimum/maximum queries shall assign bounds and return true for bounded coefficients, and return false without modifying the output for unbounded coefficients. OK shall report the coefficient representation's admitted validity.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
2. C affine expression values and updates PPL-SPEC-001524 Expression construction shall produce independent zero, dimensioned, copied or descriptor-derived native affine expressions. Assignment, coefficient additions, constant additions, expression addition/subtraction and scaling shall have the corresponding native affine meaning and retain native dimension/admission rules. Source handles shall remain valid during operations; owned results shall be independently deletable. Mutations shall not alter an independent source copy.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
3. C affine expression queries PPL-SPEC-001525 Expression dimension and coefficient queries shall assign the corresponding native extent, selected coefficient or constant. Zero tests and validity tests shall return boolean results. Query outputs shall be live writable coefficient objects rather than newly allocated handles. Indexed access shall observe native index admission and virtual zero coefficients where provided.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
4. C linear constraint values PPL-SPEC-001526 Creation shall copy inputs into an independent owned Constraint representing the supplied affine expression compared with zero using the requested supported relation, including strict relations. Dedicated zero-dimensional constructors shall provide the corresponding native canonical objects. Copying and assignment shall preserve native value and dimension; deletion shall release owned storage. An unsupported relation code shall report PPL_ERROR_INVALID_ARGUMENT. Native dimension and size failures shall be translated by the C failure protocol.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
5. C linear constraint queries PPL-SPEC-001527 Queries shall report the native Constraint relation type, dimension, variable coefficients and inhomogeneous term. Validity queries shall return a boolean outcome. Coefficient and inhomogeneous-term outputs shall assign existing writable coefficient objects. Native argument failures shall be translated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
6. C polyhedral generator values PPL-SPEC-001528 Creation shall copy inputs into an independent owned Generator representing the requested line, ray, point or closure point with the native direction or divisor semantics. Dedicated zero-dimensional constructors shall provide the corresponding native canonical objects. Copying and assignment shall preserve native value and dimension; deletion shall release owned storage. Invalid kinds, undefined divisors and dimension/size violations designated by the native operation shall be reported through the C failure protocol.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
7. C polyhedral generator queries PPL-SPEC-001529 Queries shall report the native Generator kind, dimension and variable coefficients. Divisor queries shall report the native divisor for a point or closure point and shall report PPL_ERROR_INVALID_ARGUMENT for a line or ray. Validity queries shall return a boolean outcome. Coefficient and divisor outputs shall assign existing writable coefficient objects. Native argument failures shall be translated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
8. C rational congruence values PPL-SPEC-001530 Creation shall copy inputs into an independent owned Congruence representing the supplied affine expression and modulus, with modulus zero denoting equality and native normalization of nonzero moduli. Dedicated zero-dimensional constructors shall provide the corresponding native canonical objects. Copying and assignment shall preserve native value and dimension; deletion shall release owned storage. Native dimension and size failures shall be translated by the C failure protocol.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
9. C rational congruence queries PPL-SPEC-001531 Queries shall report the native Congruence dimension, variable coefficients, inhomogeneous term and modulus. Validity queries shall return a boolean outcome. Coefficient, inhomogeneous-term and modulus outputs shall assign existing writable coefficient objects. Native argument failures shall be translated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
10. C grid generator values PPL-SPEC-001532 Creation shall copy inputs into an independent owned Grid_Generator representing the requested line, parameter or point with the native direction and divisor semantics. Dedicated zero-dimensional constructors shall provide the corresponding native canonical objects. Copying and assignment shall preserve native value and dimension; deletion shall release owned storage. Invalid kinds, undefined divisors and dimension/size violations designated by the native operation shall be reported through the C failure protocol.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.
-
11. C grid generator queries PPL-SPEC-001533 Queries shall report the native Grid_Generator kind, dimension and variable coefficients. Divisor queries shall report the native divisor for a point or parameter and shall report PPL_ERROR_INVALID_ARGUMENT for a line. Validity queries shall return a boolean outcome. Coefficient and divisor outputs shall assign existing writable coefficient objects. Native argument failures shall be translated.
The valid-use and result-category conditions in 🔗 1. C handles, arguments and successful outcomes shall apply.