Parma Polyhedra Library requirements
Low-Level Requirements: C Interface
PPL-LLR-000201
1. Explicit C library lifecycle UID: PPL-LLR-000201 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT:

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.

RATIONALE:

C clients need an explicit lifecycle for resources managed by the native library.

COMMENT:

Verification covers C library lifecycle entry points and their state-dependent outcomes. Sequence tests and inspection verify initialization ownership and duplicate-request reporting. Use of other operations outside their documented initialization preconditions is not required to be detected by this requirement. Thread-entry obligations are allocated separately by 🔗 6. Thread entry and shared-facility use.

VERIFICATION_CRITERIA:

A valid initialization and finalization sequence succeeds; a duplicate request in each state reports the documented invalid-argument outcome; reinitialization after finalization succeeds.

SOURCE:

interfaces/C/ppl_c_header.h, Library Initialization and Finalization; interfaces/C/ppl_c_implementation_common.cc, library lifecycle operations.

  • PPL-SPEC-001515
    1. C library and thread lifecycle UID: PPL-SPEC-001515 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Binding-owned timers must not survive the library state on which their callbacks depend.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_initialize(void);
    int ppl_finalize(void);
    int ppl_thread_initialize(void);
    int ppl_thread_finalize(void);
    
    VERIFICATION_CRITERIA:

    Check initialize/finalize/reinitialize sequences, duplicate calls, thread entry where configured, formatter restoration and finalization with armed C interruption facilities.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/cerrorsspec1.cc.

  • PPL-SPEC-001517
    3. C version, dimensions and published constants UID: PPL-SPEC-001517 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C clients require values matching the library they actually link.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_version_major(void);
    int ppl_version_minor(void);
    int ppl_version_revision(void);
    int ppl_version_beta(void);
    int ppl_version(const char **p);
    int ppl_banner(const char **p);
    int ppl_max_space_dimension(ppl_dimension_type *m);
    int ppl_not_a_dimension(ppl_dimension_type *m);
    
    VERIFICATION_CRITERIA:

    Compare version components and strings, extent/sentinel values, and initialized symbolic values with independently observed operation outcomes.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

PPL-LLR-000202
2. C object ownership and borrowed access UID: PPL-LLR-000202 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT:

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.

RATIONALE:

Handle values alone do not express ownership, and copying a handle must not be mistaken for copying its object.

COMMENT:

Verification covers owned creation, copying, deletion, borrowed access and invalidation contracts. Ownership tests and inspection verify separate owned lifetimes and valid borrowing. Automatic detection of stale handles, double deletion or violations of borrowed-access preconditions is not required. Failure cleanup is governed by 🔗 3. Failure and resource safety.

VERIFICATION_CRITERIA:

Creation, copying and deletion tests establish independent lifetimes for owned copies; accessor tests establish that borrowed results describe the owner's contents; documentation states the owner-lifetime and invalidation preconditions for borrowed results.

SOURCE:

interfaces/C/ppl_c_header.h, Handle Ownership and Lifetimes; interfaces/C/ppl_interface_generator_c_h_code.m4, borrowed-system and owned-system accessors.

  • PPL-SPEC-001554
    1. C generated domain values and conversions UID: PPL-SPEC-001554 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_delete_Polyhedron(ppl_const_Polyhedron_t ph);
    int ppl_new_C_Polyhedron_from_space_dimension(ppl_Polyhedron_t *pph,
                                                  ppl_dimension_type d, int empty);
    int ppl_new_NNC_Polyhedron_from_space_dimension(ppl_Polyhedron_t *pph,
                                                    ppl_dimension_type d,
                                                    int empty);
    int ppl_new_C_Polyhedron_from_C_Polyhedron(ppl_Polyhedron_t *pph,
                                               ppl_const_Polyhedron_t ph);
    int ppl_new_NNC_Polyhedron_from_C_Polyhedron(ppl_Polyhedron_t *pph,
                                                 ppl_const_Polyhedron_t ph);
    int ppl_new_C_Polyhedron_from_NNC_Polyhedron(ppl_Polyhedron_t *pph,
                                                 ppl_const_Polyhedron_t ph);
    int ppl_new_NNC_Polyhedron_from_NNC_Polyhedron(ppl_Polyhedron_t *pph,
                                                   ppl_const_Polyhedron_t ph);
    int ppl_new_C_Polyhedron_from_Grid(ppl_Polyhedron_t *pph, ppl_const_Grid_t ph);
    int ppl_new_NNC_Polyhedron_from_Grid(ppl_Polyhedron_t *pph,
                                         ppl_const_Grid_t ph);
    int ppl_new_C_Polyhedron_from_Rational_Box(ppl_Polyhedron_t *pph,
                                               ppl_const_Rational_Box_t ph);
    int ppl_new_NNC_Polyhedron_from_Rational_Box(ppl_Polyhedron_t *pph,
                                                 ppl_const_Rational_Box_t ph);
    int ppl_new_C_Polyhedron_from_BD_Shape_mpz_class(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_NNC_Polyhedron_from_BD_Shape_mpz_class(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_C_Polyhedron_from_BD_Shape_mpq_class(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_NNC_Polyhedron_from_BD_Shape_mpq_class(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_C_Polyhedron_from_Octagonal_Shape_mpz_class(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_mpz_class(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_C_Polyhedron_from_Octagonal_Shape_mpq_class(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_mpq_class(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_C_Polyhedron_from_Double_Box(ppl_Polyhedron_t *pph,
                                             ppl_const_Double_Box_t ph);
    int ppl_new_NNC_Polyhedron_from_Double_Box(ppl_Polyhedron_t *pph,
                                               ppl_const_Double_Box_t ph);
    int ppl_new_C_Polyhedron_from_BD_Shape_double(ppl_Polyhedron_t *pph,
                                                  ppl_const_BD_Shape_double_t ph);
    int ppl_new_NNC_Polyhedron_from_BD_Shape_double(ppl_Polyhedron_t *pph,
                                                    ppl_const_BD_Shape_double_t ph);
    int ppl_new_C_Polyhedron_from_Octagonal_Shape_double(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_double(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_C_Polyhedron_from_C_Polyhedron_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_NNC_Polyhedron_from_C_Polyhedron_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_C_Polyhedron_from_NNC_Polyhedron_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_NNC_Polyhedron_from_NNC_Polyhedron_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_C_Polyhedron_from_Grid_with_complexity(ppl_Polyhedron_t *pph,
                                                       ppl_const_Grid_t ph,
                                                       int complexity);
    int ppl_new_NNC_Polyhedron_from_Grid_with_complexity(ppl_Polyhedron_t *pph,
                                                         ppl_const_Grid_t ph,
                                                         int complexity);
    int ppl_new_C_Polyhedron_from_Rational_Box_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_NNC_Polyhedron_from_Rational_Box_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_C_Polyhedron_from_BD_Shape_mpz_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity);
    int ppl_new_NNC_Polyhedron_from_BD_Shape_mpz_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity);
    int ppl_new_C_Polyhedron_from_BD_Shape_mpq_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity);
    int ppl_new_NNC_Polyhedron_from_BD_Shape_mpq_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity);
    int ppl_new_C_Polyhedron_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_C_Polyhedron_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_C_Polyhedron_from_Double_Box_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Double_Box_t ph, int complexity);
    int ppl_new_NNC_Polyhedron_from_Double_Box_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Double_Box_t ph, int complexity);
    int ppl_new_C_Polyhedron_from_BD_Shape_double_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_double_t ph, int complexity);
    int ppl_new_NNC_Polyhedron_from_BD_Shape_double_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_double_t ph, int complexity);
    int ppl_new_C_Polyhedron_from_Octagonal_Shape_double_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_double_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_C_Polyhedron_from_Constraint_System(
        ppl_Polyhedron_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_NNC_Polyhedron_from_Constraint_System(
        ppl_Polyhedron_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_C_Polyhedron_from_Congruence_System(
        ppl_Polyhedron_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_NNC_Polyhedron_from_Congruence_System(
        ppl_Polyhedron_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_C_Polyhedron_from_Generator_System(ppl_Polyhedron_t *pph,
                                                   ppl_const_Generator_System_t cs);
    int ppl_new_NNC_Polyhedron_from_Generator_System(
        ppl_Polyhedron_t *pph, ppl_const_Generator_System_t cs);
    int ppl_new_C_Polyhedron_recycle_Constraint_System(ppl_Polyhedron_t *pph,
                                                       ppl_Constraint_System_t cs);
    int ppl_new_NNC_Polyhedron_recycle_Constraint_System(
        ppl_Polyhedron_t *pph, ppl_Constraint_System_t cs);
    int ppl_new_C_Polyhedron_recycle_Congruence_System(ppl_Polyhedron_t *pph,
                                                       ppl_Congruence_System_t cs);
    int ppl_new_NNC_Polyhedron_recycle_Congruence_System(
        ppl_Polyhedron_t *pph, ppl_Congruence_System_t cs);
    int ppl_new_C_Polyhedron_recycle_Generator_System(ppl_Polyhedron_t *pph,
                                                      ppl_Generator_System_t cs);
    int ppl_new_NNC_Polyhedron_recycle_Generator_System(ppl_Polyhedron_t *pph,
                                                        ppl_Generator_System_t cs);
    int ppl_assign_C_Polyhedron_from_C_Polyhedron(ppl_Polyhedron_t dst,
                                                  ppl_const_Polyhedron_t src);
    int ppl_assign_NNC_Polyhedron_from_NNC_Polyhedron(ppl_Polyhedron_t dst,
                                                      ppl_const_Polyhedron_t src);
    int ppl_delete_Grid(ppl_const_Grid_t ph);
    int ppl_new_Grid_from_space_dimension(ppl_Grid_t *pph, ppl_dimension_type d,
                                          int empty);
    int ppl_new_Grid_from_C_Polyhedron(ppl_Grid_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Grid_from_NNC_Polyhedron(ppl_Grid_t *pph,
                                         ppl_const_Polyhedron_t ph);
    int ppl_new_Grid_from_Grid(ppl_Grid_t *pph, ppl_const_Grid_t ph);
    int ppl_new_Grid_from_Rational_Box(ppl_Grid_t *pph,
                                       ppl_const_Rational_Box_t ph);
    int ppl_new_Grid_from_BD_Shape_mpz_class(ppl_Grid_t *pph,
                                             ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Grid_from_BD_Shape_mpq_class(ppl_Grid_t *pph,
                                             ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Grid_from_Octagonal_Shape_mpz_class(
        ppl_Grid_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Grid_from_Octagonal_Shape_mpq_class(
        ppl_Grid_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Grid_from_Double_Box(ppl_Grid_t *pph, ppl_const_Double_Box_t ph);
    int ppl_new_Grid_from_BD_Shape_double(ppl_Grid_t *pph,
                                          ppl_const_BD_Shape_double_t ph);
    int ppl_new_Grid_from_Octagonal_Shape_double(
        ppl_Grid_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Grid_from_C_Polyhedron_with_complexity(ppl_Grid_t *pph,
                                                       ppl_const_Polyhedron_t ph,
                                                       int complexity);
    int ppl_new_Grid_from_NNC_Polyhedron_with_complexity(ppl_Grid_t *pph,
                                                         ppl_const_Polyhedron_t ph,
                                                         int complexity);
    int ppl_new_Grid_from_Grid_with_complexity(ppl_Grid_t *pph, ppl_const_Grid_t ph,
                                               int complexity);
    int ppl_new_Grid_from_Rational_Box_with_complexity(ppl_Grid_t *pph,
                                                       ppl_const_Rational_Box_t ph,
                                                       int complexity);
    int ppl_new_Grid_from_BD_Shape_mpz_class_with_complexity(
        ppl_Grid_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Grid_from_BD_Shape_mpq_class_with_complexity(
        ppl_Grid_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Grid_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Grid_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Grid_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Grid_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Grid_from_Double_Box_with_complexity(ppl_Grid_t *pph,
                                                     ppl_const_Double_Box_t ph,
                                                     int complexity);
    int ppl_new_Grid_from_BD_Shape_double_with_complexity(
        ppl_Grid_t *pph, ppl_const_BD_Shape_double_t ph, int complexity);
    int ppl_new_Grid_from_Octagonal_Shape_double_with_complexity(
        ppl_Grid_t *pph, ppl_const_Octagonal_Shape_double_t ph, int complexity);
    int ppl_new_Grid_from_Constraint_System(ppl_Grid_t *pph,
                                            ppl_const_Constraint_System_t cs);
    int ppl_new_Grid_from_Congruence_System(ppl_Grid_t *pph,
                                            ppl_const_Congruence_System_t cs);
    int ppl_new_Grid_recycle_Constraint_System(ppl_Grid_t *pph,
                                               ppl_Constraint_System_t cs);
    int ppl_new_Grid_recycle_Congruence_System(ppl_Grid_t *pph,
                                               ppl_Congruence_System_t cs);
    int ppl_assign_Grid_from_Grid(ppl_Grid_t dst, ppl_const_Grid_t src);
    int ppl_delete_Rational_Box(ppl_const_Rational_Box_t ph);
    int ppl_new_Rational_Box_from_space_dimension(ppl_Rational_Box_t *pph,
                                                  ppl_dimension_type d, int empty);
    int ppl_new_Rational_Box_from_C_Polyhedron(ppl_Rational_Box_t *pph,
                                               ppl_const_Polyhedron_t ph);
    int ppl_new_Rational_Box_from_NNC_Polyhedron(ppl_Rational_Box_t *pph,
                                                 ppl_const_Polyhedron_t ph);
    int ppl_new_Rational_Box_from_Grid(ppl_Rational_Box_t *pph,
                                       ppl_const_Grid_t ph);
    int ppl_new_Rational_Box_from_Rational_Box(ppl_Rational_Box_t *pph,
                                               ppl_const_Rational_Box_t ph);
    int ppl_new_Rational_Box_from_BD_Shape_mpz_class(
        ppl_Rational_Box_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Rational_Box_from_BD_Shape_mpq_class(
        ppl_Rational_Box_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Rational_Box_from_Octagonal_Shape_mpz_class(
        ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Rational_Box_from_Octagonal_Shape_mpq_class(
        ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Rational_Box_from_Double_Box(ppl_Rational_Box_t *pph,
                                             ppl_const_Double_Box_t ph);
    int ppl_new_Rational_Box_from_BD_Shape_double(ppl_Rational_Box_t *pph,
                                                  ppl_const_BD_Shape_double_t ph);
    int ppl_new_Rational_Box_from_Octagonal_Shape_double(
        ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Rational_Box_from_C_Polyhedron_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_Rational_Box_from_NNC_Polyhedron_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_Rational_Box_from_Grid_with_complexity(ppl_Rational_Box_t *pph,
                                                       ppl_const_Grid_t ph,
                                                       int complexity);
    int ppl_new_Rational_Box_from_Rational_Box_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_Rational_Box_from_BD_Shape_mpz_class_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Rational_Box_from_BD_Shape_mpq_class_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Rational_Box_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_Rational_Box_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_Rational_Box_from_Double_Box_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_Double_Box_t ph, int complexity);
    int ppl_new_Rational_Box_from_BD_Shape_double_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_BD_Shape_double_t ph, int complexity);
    int ppl_new_Rational_Box_from_Octagonal_Shape_double_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_Rational_Box_from_Constraint_System(
        ppl_Rational_Box_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_Rational_Box_from_Congruence_System(
        ppl_Rational_Box_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_Rational_Box_from_Generator_System(ppl_Rational_Box_t *pph,
                                                   ppl_const_Generator_System_t cs);
    int ppl_new_Rational_Box_recycle_Constraint_System(ppl_Rational_Box_t *pph,
                                                       ppl_Constraint_System_t cs);
    int ppl_new_Rational_Box_recycle_Congruence_System(ppl_Rational_Box_t *pph,
                                                       ppl_Congruence_System_t cs);
    int ppl_new_Rational_Box_recycle_Generator_System(ppl_Rational_Box_t *pph,
                                                      ppl_Generator_System_t cs);
    int ppl_assign_Rational_Box_from_Rational_Box(ppl_Rational_Box_t dst,
                                                  ppl_const_Rational_Box_t src);
    int ppl_delete_BD_Shape_mpz_class(ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_BD_Shape_mpz_class_from_space_dimension(
        ppl_BD_Shape_mpz_class_t *pph, ppl_dimension_type d, int empty);
    int ppl_new_BD_Shape_mpz_class_from_C_Polyhedron(ppl_BD_Shape_mpz_class_t *pph,
                                                     ppl_const_Polyhedron_t ph);
    int ppl_new_BD_Shape_mpz_class_from_NNC_Polyhedron(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_BD_Shape_mpz_class_from_Grid(ppl_BD_Shape_mpz_class_t *pph,
                                             ppl_const_Grid_t ph);
    int ppl_new_BD_Shape_mpz_class_from_Rational_Box(ppl_BD_Shape_mpz_class_t *pph,
                                                     ppl_const_Rational_Box_t ph);
    int ppl_new_BD_Shape_mpz_class_from_BD_Shape_mpz_class(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_BD_Shape_mpz_class_from_BD_Shape_mpq_class(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_mpz_class(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_mpq_class(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_BD_Shape_mpz_class_from_Double_Box(ppl_BD_Shape_mpz_class_t *pph,
                                                   ppl_const_Double_Box_t ph);
    int ppl_new_BD_Shape_mpz_class_from_BD_Shape_double(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_double_t ph);
    int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_double(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_BD_Shape_mpz_class_from_C_Polyhedron_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_BD_Shape_mpz_class_from_NNC_Polyhedron_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_BD_Shape_mpz_class_from_Grid_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Grid_t ph, int complexity);
    int ppl_new_BD_Shape_mpz_class_from_Rational_Box_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_BD_Shape_mpz_class_from_BD_Shape_mpz_class_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpz_class_from_BD_Shape_mpq_class_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpz_class_from_Double_Box_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Double_Box_t ph, int complexity);
    int ppl_new_BD_Shape_mpz_class_from_BD_Shape_double_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_double_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_double_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpz_class_from_Constraint_System(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_BD_Shape_mpz_class_from_Congruence_System(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_BD_Shape_mpz_class_from_Generator_System(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Generator_System_t cs);
    int ppl_new_BD_Shape_mpz_class_recycle_Constraint_System(
        ppl_BD_Shape_mpz_class_t *pph, ppl_Constraint_System_t cs);
    int ppl_new_BD_Shape_mpz_class_recycle_Congruence_System(
        ppl_BD_Shape_mpz_class_t *pph, ppl_Congruence_System_t cs);
    int ppl_new_BD_Shape_mpz_class_recycle_Generator_System(
        ppl_BD_Shape_mpz_class_t *pph, ppl_Generator_System_t cs);
    int ppl_assign_BD_Shape_mpz_class_from_BD_Shape_mpz_class(
        ppl_BD_Shape_mpz_class_t dst, ppl_const_BD_Shape_mpz_class_t src);
    int ppl_delete_BD_Shape_mpq_class(ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_BD_Shape_mpq_class_from_space_dimension(
        ppl_BD_Shape_mpq_class_t *pph, ppl_dimension_type d, int empty);
    int ppl_new_BD_Shape_mpq_class_from_C_Polyhedron(ppl_BD_Shape_mpq_class_t *pph,
                                                     ppl_const_Polyhedron_t ph);
    int ppl_new_BD_Shape_mpq_class_from_NNC_Polyhedron(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_BD_Shape_mpq_class_from_Grid(ppl_BD_Shape_mpq_class_t *pph,
                                             ppl_const_Grid_t ph);
    int ppl_new_BD_Shape_mpq_class_from_Rational_Box(ppl_BD_Shape_mpq_class_t *pph,
                                                     ppl_const_Rational_Box_t ph);
    int ppl_new_BD_Shape_mpq_class_from_BD_Shape_mpz_class(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_BD_Shape_mpq_class_from_BD_Shape_mpq_class(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_mpz_class(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_mpq_class(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_BD_Shape_mpq_class_from_Double_Box(ppl_BD_Shape_mpq_class_t *pph,
                                                   ppl_const_Double_Box_t ph);
    int ppl_new_BD_Shape_mpq_class_from_BD_Shape_double(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_double_t ph);
    int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_double(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_BD_Shape_mpq_class_from_C_Polyhedron_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_BD_Shape_mpq_class_from_NNC_Polyhedron_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_BD_Shape_mpq_class_from_Grid_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Grid_t ph, int complexity);
    int ppl_new_BD_Shape_mpq_class_from_Rational_Box_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_BD_Shape_mpq_class_from_BD_Shape_mpz_class_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpq_class_from_BD_Shape_mpq_class_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpq_class_from_Double_Box_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Double_Box_t ph, int complexity);
    int ppl_new_BD_Shape_mpq_class_from_BD_Shape_double_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_double_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_double_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpq_class_from_Constraint_System(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_BD_Shape_mpq_class_from_Congruence_System(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_BD_Shape_mpq_class_from_Generator_System(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Generator_System_t cs);
    int ppl_new_BD_Shape_mpq_class_recycle_Constraint_System(
        ppl_BD_Shape_mpq_class_t *pph, ppl_Constraint_System_t cs);
    int ppl_new_BD_Shape_mpq_class_recycle_Congruence_System(
        ppl_BD_Shape_mpq_class_t *pph, ppl_Congruence_System_t cs);
    int ppl_new_BD_Shape_mpq_class_recycle_Generator_System(
        ppl_BD_Shape_mpq_class_t *pph, ppl_Generator_System_t cs);
    int ppl_assign_BD_Shape_mpq_class_from_BD_Shape_mpq_class(
        ppl_BD_Shape_mpq_class_t dst, ppl_const_BD_Shape_mpq_class_t src);
    int ppl_delete_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_space_dimension(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_dimension_type d, int empty);
    int ppl_new_Octagonal_Shape_mpz_class_from_C_Polyhedron(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_NNC_Polyhedron(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_Grid(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Grid_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_Rational_Box(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Rational_Box_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_mpz_class(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_mpq_class(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_mpz_class(
        ppl_Octagonal_Shape_mpz_class_t *pph,
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_mpq_class(
        ppl_Octagonal_Shape_mpz_class_t *pph,
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_Double_Box(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Double_Box_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_double(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_double_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_double(
        ppl_Octagonal_Shape_mpz_class_t *pph,
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_C_Polyhedron_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_NNC_Polyhedron_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_Grid_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Grid_t ph, int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_Rational_Box_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Rational_Box_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_mpz_class_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_mpq_class_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph,
        ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph,
        ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_Double_Box_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Double_Box_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_double_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_double_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_double_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_Constraint_System(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_Octagonal_Shape_mpz_class_from_Congruence_System(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_Octagonal_Shape_mpz_class_from_Generator_System(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Generator_System_t cs);
    int ppl_new_Octagonal_Shape_mpz_class_recycle_Constraint_System(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_Constraint_System_t cs);
    int ppl_new_Octagonal_Shape_mpz_class_recycle_Congruence_System(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_Congruence_System_t cs);
    int ppl_new_Octagonal_Shape_mpz_class_recycle_Generator_System(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_Generator_System_t cs);
    int ppl_assign_Octagonal_Shape_mpz_class_from_Octagonal_Shape_mpz_class(
        ppl_Octagonal_Shape_mpz_class_t dst,
        ppl_const_Octagonal_Shape_mpz_class_t src);
    int ppl_delete_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_space_dimension(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_dimension_type d, int empty);
    int ppl_new_Octagonal_Shape_mpq_class_from_C_Polyhedron(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_NNC_Polyhedron(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_Grid(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Grid_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_Rational_Box(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Rational_Box_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_mpz_class(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_mpq_class(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_mpz_class(
        ppl_Octagonal_Shape_mpq_class_t *pph,
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_mpq_class(
        ppl_Octagonal_Shape_mpq_class_t *pph,
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_Double_Box(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Double_Box_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_double(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_double_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_double(
        ppl_Octagonal_Shape_mpq_class_t *pph,
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_C_Polyhedron_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_NNC_Polyhedron_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_Grid_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Grid_t ph, int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_Rational_Box_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Rational_Box_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_mpz_class_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_mpq_class_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph,
        ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph,
        ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_Double_Box_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Double_Box_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_double_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_double_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_double_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_Constraint_System(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_Octagonal_Shape_mpq_class_from_Congruence_System(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_Octagonal_Shape_mpq_class_from_Generator_System(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Generator_System_t cs);
    int ppl_new_Octagonal_Shape_mpq_class_recycle_Constraint_System(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_Constraint_System_t cs);
    int ppl_new_Octagonal_Shape_mpq_class_recycle_Congruence_System(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_Congruence_System_t cs);
    int ppl_new_Octagonal_Shape_mpq_class_recycle_Generator_System(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_Generator_System_t cs);
    int ppl_assign_Octagonal_Shape_mpq_class_from_Octagonal_Shape_mpq_class(
        ppl_Octagonal_Shape_mpq_class_t dst,
        ppl_const_Octagonal_Shape_mpq_class_t src);
    int ppl_delete_Constraints_Product_C_Polyhedron_Grid(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_space_dimension(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_dimension_type d,
        int empty);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_C_Polyhedron(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Polyhedron_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_NNC_Polyhedron(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Polyhedron_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Grid(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Grid_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Rational_Box(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Rational_Box_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_mpz_class(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_mpq_class(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_mpz_class(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_mpq_class(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Double_Box(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Double_Box_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_double(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_BD_Shape_double_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_double(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Constraints_Product_C_Polyhedron_Grid(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_C_Polyhedron_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_NNC_Polyhedron_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Grid_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Grid_t ph,
        int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Rational_Box_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_mpz_class_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_BD_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_mpq_class_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_BD_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Double_Box_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Double_Box_t ph,
        int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_double_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_BD_Shape_double_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_double_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Octagonal_Shape_double_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Constraints_Product_C_Polyhedron_Grid_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Constraint_System(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Constraint_System_t cs);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Congruence_System(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Congruence_System_t cs);
    int ppl_delete_Pointset_Powerset_C_Polyhedron(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_new_Pointset_Powerset_C_Polyhedron_from_space_dimension(
        ppl_Pointset_Powerset_C_Polyhedron_t *pph, ppl_dimension_type d, int empty);
    int ppl_new_Pointset_Powerset_C_Polyhedron_from_Pointset_Powerset_C_Polyhedron(
        ppl_Pointset_Powerset_C_Polyhedron_t *pph,
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_new_Pointset_Powerset_C_Polyhedron_from_C_Polyhedron(
        ppl_Pointset_Powerset_C_Polyhedron_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Pointset_Powerset_C_Polyhedron_from_Pointset_Powerset_C_Polyhedron_with_complexity(
        ppl_Pointset_Powerset_C_Polyhedron_t *pph,
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph, int complexity);
    int ppl_new_Pointset_Powerset_C_Polyhedron_from_C_Polyhedron_with_complexity(
        ppl_Pointset_Powerset_C_Polyhedron_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Pointset_Powerset_C_Polyhedron_from_Constraint_System(
        ppl_Pointset_Powerset_C_Polyhedron_t *pph,
        ppl_const_Constraint_System_t cs);
    int ppl_new_Pointset_Powerset_C_Polyhedron_from_Congruence_System(
        ppl_Pointset_Powerset_C_Polyhedron_t *pph,
        ppl_const_Congruence_System_t cs);
    int ppl_delete_Pointset_Powerset_NNC_Polyhedron(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_space_dimension(
        ppl_Pointset_Powerset_NNC_Polyhedron_t *pph, ppl_dimension_type d,
        int empty);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_Pointset_Powerset_NNC_Polyhedron(
        ppl_Pointset_Powerset_NNC_Polyhedron_t *pph,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_NNC_Polyhedron(
        ppl_Pointset_Powerset_NNC_Polyhedron_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_Pointset_Powerset_NNC_Polyhedron_with_complexity(
        ppl_Pointset_Powerset_NNC_Polyhedron_t *pph,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, int complexity);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_NNC_Polyhedron_with_complexity(
        ppl_Pointset_Powerset_NNC_Polyhedron_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_Constraint_System(
        ppl_Pointset_Powerset_NNC_Polyhedron_t *pph,
        ppl_const_Constraint_System_t cs);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_Congruence_System(
        ppl_Pointset_Powerset_NNC_Polyhedron_t *pph,
        ppl_const_Congruence_System_t cs);
    int ppl_delete_Double_Box(ppl_const_Double_Box_t ph);
    int ppl_new_Double_Box_from_space_dimension(ppl_Double_Box_t *pph,
                                                ppl_dimension_type d, int empty);
    int ppl_new_Double_Box_from_C_Polyhedron(ppl_Double_Box_t *pph,
                                             ppl_const_Polyhedron_t ph);
    int ppl_new_Double_Box_from_NNC_Polyhedron(ppl_Double_Box_t *pph,
                                               ppl_const_Polyhedron_t ph);
    int ppl_new_Double_Box_from_Grid(ppl_Double_Box_t *pph, ppl_const_Grid_t ph);
    int ppl_new_Double_Box_from_Rational_Box(ppl_Double_Box_t *pph,
                                             ppl_const_Rational_Box_t ph);
    int ppl_new_Double_Box_from_BD_Shape_mpz_class(
        ppl_Double_Box_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Double_Box_from_BD_Shape_mpq_class(
        ppl_Double_Box_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Double_Box_from_Octagonal_Shape_mpz_class(
        ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Double_Box_from_Octagonal_Shape_mpq_class(
        ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Double_Box_from_Double_Box(ppl_Double_Box_t *pph,
                                           ppl_const_Double_Box_t ph);
    int ppl_new_Double_Box_from_BD_Shape_double(ppl_Double_Box_t *pph,
                                                ppl_const_BD_Shape_double_t ph);
    int ppl_new_Double_Box_from_Octagonal_Shape_double(
        ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Double_Box_from_C_Polyhedron_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_Double_Box_from_NNC_Polyhedron_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_Double_Box_from_Grid_with_complexity(ppl_Double_Box_t *pph,
                                                     ppl_const_Grid_t ph,
                                                     int complexity);
    int ppl_new_Double_Box_from_Rational_Box_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_Double_Box_from_BD_Shape_mpz_class_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Double_Box_from_BD_Shape_mpq_class_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Double_Box_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_Double_Box_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_Double_Box_from_Double_Box_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_Double_Box_t ph, int complexity);
    int ppl_new_Double_Box_from_BD_Shape_double_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_BD_Shape_double_t ph, int complexity);
    int ppl_new_Double_Box_from_Octagonal_Shape_double_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_Double_Box_from_Constraint_System(ppl_Double_Box_t *pph,
                                                  ppl_const_Constraint_System_t cs);
    int ppl_new_Double_Box_from_Congruence_System(ppl_Double_Box_t *pph,
                                                  ppl_const_Congruence_System_t cs);
    int ppl_new_Double_Box_from_Generator_System(ppl_Double_Box_t *pph,
                                                 ppl_const_Generator_System_t cs);
    int ppl_new_Double_Box_recycle_Constraint_System(ppl_Double_Box_t *pph,
                                                     ppl_Constraint_System_t cs);
    int ppl_new_Double_Box_recycle_Congruence_System(ppl_Double_Box_t *pph,
                                                     ppl_Congruence_System_t cs);
    int ppl_new_Double_Box_recycle_Generator_System(ppl_Double_Box_t *pph,
                                                    ppl_Generator_System_t cs);
    int ppl_assign_Double_Box_from_Double_Box(ppl_Double_Box_t dst,
                                              ppl_const_Double_Box_t src);
    int ppl_delete_BD_Shape_double(ppl_const_BD_Shape_double_t ph);
    int ppl_new_BD_Shape_double_from_space_dimension(ppl_BD_Shape_double_t *pph,
                                                     ppl_dimension_type d,
                                                     int empty);
    int ppl_new_BD_Shape_double_from_C_Polyhedron(ppl_BD_Shape_double_t *pph,
                                                  ppl_const_Polyhedron_t ph);
    int ppl_new_BD_Shape_double_from_NNC_Polyhedron(ppl_BD_Shape_double_t *pph,
                                                    ppl_const_Polyhedron_t ph);
    int ppl_new_BD_Shape_double_from_Grid(ppl_BD_Shape_double_t *pph,
                                          ppl_const_Grid_t ph);
    int ppl_new_BD_Shape_double_from_Rational_Box(ppl_BD_Shape_double_t *pph,
                                                  ppl_const_Rational_Box_t ph);
    int ppl_new_BD_Shape_double_from_BD_Shape_mpz_class(
        ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_BD_Shape_double_from_BD_Shape_mpq_class(
        ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_BD_Shape_double_from_Octagonal_Shape_mpz_class(
        ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_BD_Shape_double_from_Octagonal_Shape_mpq_class(
        ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_BD_Shape_double_from_Double_Box(ppl_BD_Shape_double_t *pph,
                                                ppl_const_Double_Box_t ph);
    int ppl_new_BD_Shape_double_from_BD_Shape_double(
        ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_double_t ph);
    int ppl_new_BD_Shape_double_from_Octagonal_Shape_double(
        ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_BD_Shape_double_from_C_Polyhedron_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_BD_Shape_double_from_NNC_Polyhedron_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_BD_Shape_double_from_Grid_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Grid_t ph, int complexity);
    int ppl_new_BD_Shape_double_from_Rational_Box_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_BD_Shape_double_from_BD_Shape_mpz_class_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_double_from_BD_Shape_mpq_class_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_double_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_double_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_double_from_Double_Box_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Double_Box_t ph, int complexity);
    int ppl_new_BD_Shape_double_from_BD_Shape_double_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_double_t ph, int complexity);
    int ppl_new_BD_Shape_double_from_Octagonal_Shape_double_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_BD_Shape_double_from_Constraint_System(
        ppl_BD_Shape_double_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_BD_Shape_double_from_Congruence_System(
        ppl_BD_Shape_double_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_BD_Shape_double_from_Generator_System(
        ppl_BD_Shape_double_t *pph, ppl_const_Generator_System_t cs);
    int ppl_new_BD_Shape_double_recycle_Constraint_System(
        ppl_BD_Shape_double_t *pph, ppl_Constraint_System_t cs);
    int ppl_new_BD_Shape_double_recycle_Congruence_System(
        ppl_BD_Shape_double_t *pph, ppl_Congruence_System_t cs);
    int ppl_new_BD_Shape_double_recycle_Generator_System(ppl_BD_Shape_double_t *pph,
                                                         ppl_Generator_System_t cs);
    int ppl_assign_BD_Shape_double_from_BD_Shape_double(
        ppl_BD_Shape_double_t dst, ppl_const_BD_Shape_double_t src);
    int ppl_delete_Octagonal_Shape_double(ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Octagonal_Shape_double_from_space_dimension(
        ppl_Octagonal_Shape_double_t *pph, ppl_dimension_type d, int empty);
    int ppl_new_Octagonal_Shape_double_from_C_Polyhedron(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Octagonal_Shape_double_from_NNC_Polyhedron(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Octagonal_Shape_double_from_Grid(ppl_Octagonal_Shape_double_t *pph,
                                                 ppl_const_Grid_t ph);
    int ppl_new_Octagonal_Shape_double_from_Rational_Box(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Rational_Box_t ph);
    int ppl_new_Octagonal_Shape_double_from_BD_Shape_mpz_class(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Octagonal_Shape_double_from_BD_Shape_mpq_class(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_mpz_class(
        ppl_Octagonal_Shape_double_t *pph,
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_mpq_class(
        ppl_Octagonal_Shape_double_t *pph,
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Octagonal_Shape_double_from_Double_Box(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Double_Box_t ph);
    int ppl_new_Octagonal_Shape_double_from_BD_Shape_double(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_double_t ph);
    int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_double(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Octagonal_Shape_double_from_C_Polyhedron_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_NNC_Polyhedron_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_Grid_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Grid_t ph, int complexity);
    int ppl_new_Octagonal_Shape_double_from_Rational_Box_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Rational_Box_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_BD_Shape_mpz_class_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_BD_Shape_mpq_class_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_Double_Box_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Double_Box_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_BD_Shape_double_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_double_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_double_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_Constraint_System(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_Octagonal_Shape_double_from_Congruence_System(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_Octagonal_Shape_double_from_Generator_System(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Generator_System_t cs);
    int ppl_new_Octagonal_Shape_double_recycle_Constraint_System(
        ppl_Octagonal_Shape_double_t *pph, ppl_Constraint_System_t cs);
    int ppl_new_Octagonal_Shape_double_recycle_Congruence_System(
        ppl_Octagonal_Shape_double_t *pph, ppl_Congruence_System_t cs);
    int ppl_new_Octagonal_Shape_double_recycle_Generator_System(
        ppl_Octagonal_Shape_double_t *pph, ppl_Generator_System_t cs);
    int ppl_assign_Octagonal_Shape_double_from_Octagonal_Shape_double(
        ppl_Octagonal_Shape_double_t dst, ppl_const_Octagonal_Shape_double_t src);
    
    int ppl_new_Grid_from_Grid_Generator_System(
        ppl_Grid_t *pph, ppl_const_Grid_Generator_System_t cs);
    int ppl_new_Grid_recycle_Grid_Generator_System(ppl_Grid_t *pph,
                                                   ppl_Grid_Generator_System_t cs);
    
    VERIFICATION_CRITERIA:

    Check all selected domain constructors, conversion direction, copy/exchange independence, consuming/recycling inputs and allocation failures.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/domains.c; interfaces/C/tests/polyhedra.c.

  • PPL-SPEC-001555
    2. C generated domain observations UID: PPL-SPEC-001555 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_contains_integer_point_in_dimensions(
        ppl_const_Polyhedron_t ph, const ppl_dimension_type ds[], size_t n);
    int ppl_Polyhedron_space_dimension(ppl_const_Polyhedron_t ph,
                                       ppl_dimension_type *m);
    int ppl_Polyhedron_affine_dimension(ppl_const_Polyhedron_t ph,
                                        ppl_dimension_type *m);
    int ppl_Polyhedron_relation_with_Constraint(ppl_const_Polyhedron_t ph,
                                                ppl_const_Constraint_t c);
    int ppl_Polyhedron_relation_with_Generator(ppl_const_Polyhedron_t ph,
                                               ppl_const_Generator_t c);
    int ppl_Polyhedron_relation_with_Congruence(ppl_const_Polyhedron_t ph,
                                                ppl_const_Congruence_t c);
    int ppl_Polyhedron_is_empty(ppl_const_Polyhedron_t ph);
    int ppl_Polyhedron_is_universe(ppl_const_Polyhedron_t ph);
    int ppl_Polyhedron_is_bounded(ppl_const_Polyhedron_t ph);
    int ppl_Polyhedron_contains_integer_point(ppl_const_Polyhedron_t ph);
    int ppl_Polyhedron_is_topologically_closed(ppl_const_Polyhedron_t ph);
    int ppl_Polyhedron_is_discrete(ppl_const_Polyhedron_t ph);
    int ppl_Polyhedron_bounds_from_above(ppl_const_Polyhedron_t ph,
                                         ppl_const_Linear_Expression_t le);
    int ppl_Polyhedron_bounds_from_below(ppl_const_Polyhedron_t ph,
                                         ppl_const_Linear_Expression_t le);
    int ppl_Polyhedron_maximize(ppl_const_Polyhedron_t ph,
                                ppl_const_Linear_Expression_t le,
                                ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                                int *poptimum);
    int ppl_Polyhedron_minimize(ppl_const_Polyhedron_t ph,
                                ppl_const_Linear_Expression_t le,
                                ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                                int *poptimum);
    int ppl_Polyhedron_maximize_with_point(ppl_const_Polyhedron_t ph,
                                           ppl_const_Linear_Expression_t le,
                                           ppl_Coefficient_t ext_n,
                                           ppl_Coefficient_t ext_d, int *poptimum,
                                           ppl_Generator_t point);
    int ppl_Polyhedron_minimize_with_point(ppl_const_Polyhedron_t ph,
                                           ppl_const_Linear_Expression_t le,
                                           ppl_Coefficient_t ext_n,
                                           ppl_Coefficient_t ext_d, int *poptimum,
                                           ppl_Generator_t point);
    int ppl_Polyhedron_frequency(ppl_const_Polyhedron_t ph,
                                 ppl_const_Linear_Expression_t le,
                                 ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd,
                                 ppl_Coefficient_t ext_vn,
                                 ppl_Coefficient_t ext_vd);
    int ppl_Polyhedron_contains_Polyhedron(ppl_const_Polyhedron_t x,
                                           ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_strictly_contains_Polyhedron(ppl_const_Polyhedron_t x,
                                                    ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_is_disjoint_from_Polyhedron(ppl_const_Polyhedron_t x,
                                                   ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_OK(ppl_const_Polyhedron_t ph);
    int ppl_Polyhedron_constrains(ppl_Polyhedron_t ph, ppl_dimension_type var);
    int ppl_Polyhedron_external_memory_in_bytes(ppl_const_Polyhedron_t ps,
                                                size_t *sz);
    int ppl_Polyhedron_total_memory_in_bytes(ppl_const_Polyhedron_t ps, size_t *sz);
    int ppl_Grid_space_dimension(ppl_const_Grid_t ph, ppl_dimension_type *m);
    int ppl_Grid_affine_dimension(ppl_const_Grid_t ph, ppl_dimension_type *m);
    int ppl_Grid_relation_with_Constraint(ppl_const_Grid_t ph,
                                          ppl_const_Constraint_t c);
    int ppl_Grid_relation_with_Generator(ppl_const_Grid_t ph,
                                         ppl_const_Generator_t c);
    int ppl_Grid_relation_with_Congruence(ppl_const_Grid_t ph,
                                          ppl_const_Congruence_t c);
    int ppl_Grid_is_empty(ppl_const_Grid_t ph);
    int ppl_Grid_is_universe(ppl_const_Grid_t ph);
    int ppl_Grid_is_bounded(ppl_const_Grid_t ph);
    int ppl_Grid_contains_integer_point(ppl_const_Grid_t ph);
    int ppl_Grid_is_topologically_closed(ppl_const_Grid_t ph);
    int ppl_Grid_is_discrete(ppl_const_Grid_t ph);
    int ppl_Grid_bounds_from_above(ppl_const_Grid_t ph,
                                   ppl_const_Linear_Expression_t le);
    int ppl_Grid_bounds_from_below(ppl_const_Grid_t ph,
                                   ppl_const_Linear_Expression_t le);
    int ppl_Grid_maximize(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le,
                          ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                          int *poptimum);
    int ppl_Grid_minimize(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le,
                          ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                          int *poptimum);
    int ppl_Grid_maximize_with_point(ppl_const_Grid_t ph,
                                     ppl_const_Linear_Expression_t le,
                                     ppl_Coefficient_t ext_n,
                                     ppl_Coefficient_t ext_d, int *poptimum,
                                     ppl_Generator_t point);
    int ppl_Grid_minimize_with_point(ppl_const_Grid_t ph,
                                     ppl_const_Linear_Expression_t le,
                                     ppl_Coefficient_t ext_n,
                                     ppl_Coefficient_t ext_d, int *poptimum,
                                     ppl_Generator_t point);
    int ppl_Grid_frequency(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le,
                           ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd,
                           ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd);
    int ppl_Grid_contains_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_strictly_contains_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_is_disjoint_from_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_OK(ppl_const_Grid_t ph);
    int ppl_Grid_constrains(ppl_Grid_t ph, ppl_dimension_type var);
    int ppl_Grid_external_memory_in_bytes(ppl_const_Grid_t ps, size_t *sz);
    int ppl_Grid_total_memory_in_bytes(ppl_const_Grid_t ps, size_t *sz);
    int ppl_Rational_Box_space_dimension(ppl_const_Rational_Box_t ph,
                                         ppl_dimension_type *m);
    int ppl_Rational_Box_affine_dimension(ppl_const_Rational_Box_t ph,
                                          ppl_dimension_type *m);
    int ppl_Rational_Box_relation_with_Constraint(ppl_const_Rational_Box_t ph,
                                                  ppl_const_Constraint_t c);
    int ppl_Rational_Box_relation_with_Generator(ppl_const_Rational_Box_t ph,
                                                 ppl_const_Generator_t c);
    int ppl_Rational_Box_relation_with_Congruence(ppl_const_Rational_Box_t ph,
                                                  ppl_const_Congruence_t c);
    int ppl_Rational_Box_is_empty(ppl_const_Rational_Box_t ph);
    int ppl_Rational_Box_is_universe(ppl_const_Rational_Box_t ph);
    int ppl_Rational_Box_is_bounded(ppl_const_Rational_Box_t ph);
    int ppl_Rational_Box_contains_integer_point(ppl_const_Rational_Box_t ph);
    int ppl_Rational_Box_is_topologically_closed(ppl_const_Rational_Box_t ph);
    int ppl_Rational_Box_is_discrete(ppl_const_Rational_Box_t ph);
    int ppl_Rational_Box_bounds_from_above(ppl_const_Rational_Box_t ph,
                                           ppl_const_Linear_Expression_t le);
    int ppl_Rational_Box_bounds_from_below(ppl_const_Rational_Box_t ph,
                                           ppl_const_Linear_Expression_t le);
    int ppl_Rational_Box_maximize(ppl_const_Rational_Box_t ph,
                                  ppl_const_Linear_Expression_t le,
                                  ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                                  int *poptimum);
    int ppl_Rational_Box_minimize(ppl_const_Rational_Box_t ph,
                                  ppl_const_Linear_Expression_t le,
                                  ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                                  int *poptimum);
    int ppl_Rational_Box_maximize_with_point(ppl_const_Rational_Box_t ph,
                                             ppl_const_Linear_Expression_t le,
                                             ppl_Coefficient_t ext_n,
                                             ppl_Coefficient_t ext_d, int *poptimum,
                                             ppl_Generator_t point);
    int ppl_Rational_Box_minimize_with_point(ppl_const_Rational_Box_t ph,
                                             ppl_const_Linear_Expression_t le,
                                             ppl_Coefficient_t ext_n,
                                             ppl_Coefficient_t ext_d, int *poptimum,
                                             ppl_Generator_t point);
    int ppl_Rational_Box_frequency(ppl_const_Rational_Box_t ph,
                                   ppl_const_Linear_Expression_t le,
                                   ppl_Coefficient_t ext_fn,
                                   ppl_Coefficient_t ext_fd,
                                   ppl_Coefficient_t ext_vn,
                                   ppl_Coefficient_t ext_vd);
    int ppl_Rational_Box_contains_Rational_Box(ppl_const_Rational_Box_t x,
                                               ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_strictly_contains_Rational_Box(ppl_const_Rational_Box_t x,
                                                        ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_is_disjoint_from_Rational_Box(ppl_const_Rational_Box_t x,
                                                       ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_OK(ppl_const_Rational_Box_t ph);
    int ppl_Rational_Box_constrains(ppl_Rational_Box_t ph, ppl_dimension_type var);
    int ppl_Rational_Box_external_memory_in_bytes(ppl_const_Rational_Box_t ps,
                                                  size_t *sz);
    int ppl_Rational_Box_total_memory_in_bytes(ppl_const_Rational_Box_t ps,
                                               size_t *sz);
    int ppl_BD_Shape_mpz_class_space_dimension(ppl_const_BD_Shape_mpz_class_t ph,
                                               ppl_dimension_type *m);
    int ppl_BD_Shape_mpz_class_affine_dimension(ppl_const_BD_Shape_mpz_class_t ph,
                                                ppl_dimension_type *m);
    int ppl_BD_Shape_mpz_class_relation_with_Constraint(
        ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Constraint_t c);
    int ppl_BD_Shape_mpz_class_relation_with_Generator(
        ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Generator_t c);
    int ppl_BD_Shape_mpz_class_relation_with_Congruence(
        ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Congruence_t c);
    int ppl_BD_Shape_mpz_class_is_empty(ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_is_universe(ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_is_bounded(ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_contains_integer_point(
        ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_is_topologically_closed(
        ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_is_discrete(ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_bounds_from_above(ppl_const_BD_Shape_mpz_class_t ph,
                                                 ppl_const_Linear_Expression_t le);
    int ppl_BD_Shape_mpz_class_bounds_from_below(ppl_const_BD_Shape_mpz_class_t ph,
                                                 ppl_const_Linear_Expression_t le);
    int ppl_BD_Shape_mpz_class_maximize(ppl_const_BD_Shape_mpz_class_t ph,
                                        ppl_const_Linear_Expression_t le,
                                        ppl_Coefficient_t ext_n,
                                        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_BD_Shape_mpz_class_minimize(ppl_const_BD_Shape_mpz_class_t ph,
                                        ppl_const_Linear_Expression_t le,
                                        ppl_Coefficient_t ext_n,
                                        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_BD_Shape_mpz_class_maximize_with_point(
        ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_BD_Shape_mpz_class_minimize_with_point(
        ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_BD_Shape_mpz_class_frequency(ppl_const_BD_Shape_mpz_class_t ph,
                                         ppl_const_Linear_Expression_t le,
                                         ppl_Coefficient_t ext_fn,
                                         ppl_Coefficient_t ext_fd,
                                         ppl_Coefficient_t ext_vn,
                                         ppl_Coefficient_t ext_vd);
    int ppl_BD_Shape_mpz_class_contains_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_strictly_contains_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_is_disjoint_from_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_OK(ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_constrains(ppl_BD_Shape_mpz_class_t ph,
                                          ppl_dimension_type var);
    int ppl_BD_Shape_mpz_class_external_memory_in_bytes(
        ppl_const_BD_Shape_mpz_class_t ps, size_t *sz);
    int ppl_BD_Shape_mpz_class_total_memory_in_bytes(
        ppl_const_BD_Shape_mpz_class_t ps, size_t *sz);
    int ppl_BD_Shape_mpq_class_space_dimension(ppl_const_BD_Shape_mpq_class_t ph,
                                               ppl_dimension_type *m);
    int ppl_BD_Shape_mpq_class_affine_dimension(ppl_const_BD_Shape_mpq_class_t ph,
                                                ppl_dimension_type *m);
    int ppl_BD_Shape_mpq_class_relation_with_Constraint(
        ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Constraint_t c);
    int ppl_BD_Shape_mpq_class_relation_with_Generator(
        ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Generator_t c);
    int ppl_BD_Shape_mpq_class_relation_with_Congruence(
        ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Congruence_t c);
    int ppl_BD_Shape_mpq_class_is_empty(ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_is_universe(ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_is_bounded(ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_contains_integer_point(
        ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_is_topologically_closed(
        ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_is_discrete(ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_bounds_from_above(ppl_const_BD_Shape_mpq_class_t ph,
                                                 ppl_const_Linear_Expression_t le);
    int ppl_BD_Shape_mpq_class_bounds_from_below(ppl_const_BD_Shape_mpq_class_t ph,
                                                 ppl_const_Linear_Expression_t le);
    int ppl_BD_Shape_mpq_class_maximize(ppl_const_BD_Shape_mpq_class_t ph,
                                        ppl_const_Linear_Expression_t le,
                                        ppl_Coefficient_t ext_n,
                                        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_BD_Shape_mpq_class_minimize(ppl_const_BD_Shape_mpq_class_t ph,
                                        ppl_const_Linear_Expression_t le,
                                        ppl_Coefficient_t ext_n,
                                        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_BD_Shape_mpq_class_maximize_with_point(
        ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_BD_Shape_mpq_class_minimize_with_point(
        ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_BD_Shape_mpq_class_frequency(ppl_const_BD_Shape_mpq_class_t ph,
                                         ppl_const_Linear_Expression_t le,
                                         ppl_Coefficient_t ext_fn,
                                         ppl_Coefficient_t ext_fd,
                                         ppl_Coefficient_t ext_vn,
                                         ppl_Coefficient_t ext_vd);
    int ppl_BD_Shape_mpq_class_contains_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_strictly_contains_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_is_disjoint_from_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_OK(ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_constrains(ppl_BD_Shape_mpq_class_t ph,
                                          ppl_dimension_type var);
    int ppl_BD_Shape_mpq_class_external_memory_in_bytes(
        ppl_const_BD_Shape_mpq_class_t ps, size_t *sz);
    int ppl_BD_Shape_mpq_class_total_memory_in_bytes(
        ppl_const_BD_Shape_mpq_class_t ps, size_t *sz);
    int ppl_Octagonal_Shape_mpz_class_space_dimension(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type *m);
    int ppl_Octagonal_Shape_mpz_class_affine_dimension(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type *m);
    int ppl_Octagonal_Shape_mpz_class_relation_with_Constraint(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_mpz_class_relation_with_Generator(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Generator_t c);
    int ppl_Octagonal_Shape_mpz_class_relation_with_Congruence(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_mpz_class_is_empty(
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_is_universe(
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_is_bounded(
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_contains_integer_point(
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_is_topologically_closed(
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_is_discrete(
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_bounds_from_above(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le);
    int ppl_Octagonal_Shape_mpz_class_bounds_from_below(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le);
    int ppl_Octagonal_Shape_mpz_class_maximize(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Octagonal_Shape_mpz_class_minimize(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Octagonal_Shape_mpz_class_maximize_with_point(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_Octagonal_Shape_mpz_class_minimize_with_point(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_Octagonal_Shape_mpz_class_frequency(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd,
        ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd);
    int ppl_Octagonal_Shape_mpz_class_contains_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t x,
        ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_strictly_contains_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t x,
        ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_is_disjoint_from_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t x,
        ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_OK(ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_constrains(ppl_Octagonal_Shape_mpz_class_t ph,
                                                 ppl_dimension_type var);
    int ppl_Octagonal_Shape_mpz_class_external_memory_in_bytes(
        ppl_const_Octagonal_Shape_mpz_class_t ps, size_t *sz);
    int ppl_Octagonal_Shape_mpz_class_total_memory_in_bytes(
        ppl_const_Octagonal_Shape_mpz_class_t ps, size_t *sz);
    int ppl_Octagonal_Shape_mpq_class_space_dimension(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type *m);
    int ppl_Octagonal_Shape_mpq_class_affine_dimension(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type *m);
    int ppl_Octagonal_Shape_mpq_class_relation_with_Constraint(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_mpq_class_relation_with_Generator(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Generator_t c);
    int ppl_Octagonal_Shape_mpq_class_relation_with_Congruence(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_mpq_class_is_empty(
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_is_universe(
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_is_bounded(
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_contains_integer_point(
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_is_topologically_closed(
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_is_discrete(
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_bounds_from_above(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le);
    int ppl_Octagonal_Shape_mpq_class_bounds_from_below(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le);
    int ppl_Octagonal_Shape_mpq_class_maximize(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Octagonal_Shape_mpq_class_minimize(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Octagonal_Shape_mpq_class_maximize_with_point(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_Octagonal_Shape_mpq_class_minimize_with_point(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_Octagonal_Shape_mpq_class_frequency(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd,
        ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd);
    int ppl_Octagonal_Shape_mpq_class_contains_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t x,
        ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_strictly_contains_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t x,
        ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_is_disjoint_from_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t x,
        ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_OK(ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_constrains(ppl_Octagonal_Shape_mpq_class_t ph,
                                                 ppl_dimension_type var);
    int ppl_Octagonal_Shape_mpq_class_external_memory_in_bytes(
        ppl_const_Octagonal_Shape_mpq_class_t ps, size_t *sz);
    int ppl_Octagonal_Shape_mpq_class_total_memory_in_bytes(
        ppl_const_Octagonal_Shape_mpq_class_t ps, size_t *sz);
    int ppl_Constraints_Product_C_Polyhedron_Grid_space_dimension(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_dimension_type *m);
    int ppl_Constraints_Product_C_Polyhedron_Grid_affine_dimension(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_dimension_type *m);
    int ppl_Constraints_Product_C_Polyhedron_Grid_relation_with_Constraint(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Constraint_t c);
    int ppl_Constraints_Product_C_Polyhedron_Grid_relation_with_Generator(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Generator_t c);
    int ppl_Constraints_Product_C_Polyhedron_Grid_relation_with_Congruence(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Congruence_t c);
    int ppl_Constraints_Product_C_Polyhedron_Grid_is_empty(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_Constraints_Product_C_Polyhedron_Grid_is_universe(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_Constraints_Product_C_Polyhedron_Grid_is_bounded(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_Constraints_Product_C_Polyhedron_Grid_is_topologically_closed(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_Constraints_Product_C_Polyhedron_Grid_is_discrete(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_Constraints_Product_C_Polyhedron_Grid_bounds_from_above(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t le);
    int ppl_Constraints_Product_C_Polyhedron_Grid_bounds_from_below(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t le);
    int ppl_Constraints_Product_C_Polyhedron_Grid_maximize(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Constraints_Product_C_Polyhedron_Grid_minimize(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Constraints_Product_C_Polyhedron_Grid_maximize_with_point(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point);
    int ppl_Constraints_Product_C_Polyhedron_Grid_minimize_with_point(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point);
    int ppl_Constraints_Product_C_Polyhedron_Grid_contains_Constraints_Product_C_Polyhedron_Grid(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_strictly_contains_Constraints_Product_C_Polyhedron_Grid(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_is_disjoint_from_Constraints_Product_C_Polyhedron_Grid(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_OK(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_Constraints_Product_C_Polyhedron_Grid_constrains(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var);
    int ppl_Constraints_Product_C_Polyhedron_Grid_external_memory_in_bytes(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ps, size_t *sz);
    int ppl_Constraints_Product_C_Polyhedron_Grid_total_memory_in_bytes(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ps, size_t *sz);
    int ppl_Pointset_Powerset_C_Polyhedron_space_dimension(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type *m);
    int ppl_Pointset_Powerset_C_Polyhedron_affine_dimension(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type *m);
    int ppl_Pointset_Powerset_C_Polyhedron_relation_with_Constraint(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Constraint_t c);
    int ppl_Pointset_Powerset_C_Polyhedron_relation_with_Generator(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Generator_t c);
    int ppl_Pointset_Powerset_C_Polyhedron_relation_with_Congruence(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Congruence_t c);
    int ppl_Pointset_Powerset_C_Polyhedron_is_empty(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_is_universe(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_is_bounded(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_contains_integer_point(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_is_topologically_closed(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_is_discrete(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_bounds_from_above(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le);
    int ppl_Pointset_Powerset_C_Polyhedron_bounds_from_below(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le);
    int ppl_Pointset_Powerset_C_Polyhedron_maximize(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Pointset_Powerset_C_Polyhedron_minimize(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Pointset_Powerset_C_Polyhedron_maximize_with_point(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point);
    int ppl_Pointset_Powerset_C_Polyhedron_minimize_with_point(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point);
    int ppl_Pointset_Powerset_C_Polyhedron_contains_Pointset_Powerset_C_Polyhedron(
        ppl_const_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_strictly_contains_Pointset_Powerset_C_Polyhedron(
        ppl_const_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_is_disjoint_from_Pointset_Powerset_C_Polyhedron(
        ppl_const_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_OK(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_constrains(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var);
    int ppl_Pointset_Powerset_C_Polyhedron_external_memory_in_bytes(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ps, size_t *sz);
    int ppl_Pointset_Powerset_C_Polyhedron_total_memory_in_bytes(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ps, size_t *sz);
    int ppl_Pointset_Powerset_NNC_Polyhedron_space_dimension(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type *m);
    int ppl_Pointset_Powerset_NNC_Polyhedron_affine_dimension(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type *m);
    int ppl_Pointset_Powerset_NNC_Polyhedron_relation_with_Constraint(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Constraint_t c);
    int ppl_Pointset_Powerset_NNC_Polyhedron_relation_with_Generator(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Generator_t c);
    int ppl_Pointset_Powerset_NNC_Polyhedron_relation_with_Congruence(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Congruence_t c);
    int ppl_Pointset_Powerset_NNC_Polyhedron_is_empty(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_is_universe(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_is_bounded(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_contains_integer_point(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_is_topologically_closed(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_is_discrete(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_bounds_from_above(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le);
    int ppl_Pointset_Powerset_NNC_Polyhedron_bounds_from_below(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le);
    int ppl_Pointset_Powerset_NNC_Polyhedron_maximize(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Pointset_Powerset_NNC_Polyhedron_minimize(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Pointset_Powerset_NNC_Polyhedron_maximize_with_point(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point);
    int ppl_Pointset_Powerset_NNC_Polyhedron_minimize_with_point(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point);
    int ppl_Pointset_Powerset_NNC_Polyhedron_contains_Pointset_Powerset_NNC_Polyhedron(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_strictly_contains_Pointset_Powerset_NNC_Polyhedron(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_is_disjoint_from_Pointset_Powerset_NNC_Polyhedron(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_OK(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_constrains(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var);
    int ppl_Pointset_Powerset_NNC_Polyhedron_external_memory_in_bytes(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps, size_t *sz);
    int ppl_Pointset_Powerset_NNC_Polyhedron_total_memory_in_bytes(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps, size_t *sz);
    int ppl_Double_Box_space_dimension(ppl_const_Double_Box_t ph,
                                       ppl_dimension_type *m);
    int ppl_Double_Box_affine_dimension(ppl_const_Double_Box_t ph,
                                        ppl_dimension_type *m);
    int ppl_Double_Box_relation_with_Constraint(ppl_const_Double_Box_t ph,
                                                ppl_const_Constraint_t c);
    int ppl_Double_Box_relation_with_Generator(ppl_const_Double_Box_t ph,
                                               ppl_const_Generator_t c);
    int ppl_Double_Box_relation_with_Congruence(ppl_const_Double_Box_t ph,
                                                ppl_const_Congruence_t c);
    int ppl_Double_Box_is_empty(ppl_const_Double_Box_t ph);
    int ppl_Double_Box_is_universe(ppl_const_Double_Box_t ph);
    int ppl_Double_Box_is_bounded(ppl_const_Double_Box_t ph);
    int ppl_Double_Box_contains_integer_point(ppl_const_Double_Box_t ph);
    int ppl_Double_Box_is_topologically_closed(ppl_const_Double_Box_t ph);
    int ppl_Double_Box_is_discrete(ppl_const_Double_Box_t ph);
    int ppl_Double_Box_bounds_from_above(ppl_const_Double_Box_t ph,
                                         ppl_const_Linear_Expression_t le);
    int ppl_Double_Box_bounds_from_below(ppl_const_Double_Box_t ph,
                                         ppl_const_Linear_Expression_t le);
    int ppl_Double_Box_maximize(ppl_const_Double_Box_t ph,
                                ppl_const_Linear_Expression_t le,
                                ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                                int *poptimum);
    int ppl_Double_Box_minimize(ppl_const_Double_Box_t ph,
                                ppl_const_Linear_Expression_t le,
                                ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                                int *poptimum);
    int ppl_Double_Box_maximize_with_point(ppl_const_Double_Box_t ph,
                                           ppl_const_Linear_Expression_t le,
                                           ppl_Coefficient_t ext_n,
                                           ppl_Coefficient_t ext_d, int *poptimum,
                                           ppl_Generator_t point);
    int ppl_Double_Box_minimize_with_point(ppl_const_Double_Box_t ph,
                                           ppl_const_Linear_Expression_t le,
                                           ppl_Coefficient_t ext_n,
                                           ppl_Coefficient_t ext_d, int *poptimum,
                                           ppl_Generator_t point);
    int ppl_Double_Box_frequency(ppl_const_Double_Box_t ph,
                                 ppl_const_Linear_Expression_t le,
                                 ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd,
                                 ppl_Coefficient_t ext_vn,
                                 ppl_Coefficient_t ext_vd);
    int ppl_Double_Box_contains_Double_Box(ppl_const_Double_Box_t x,
                                           ppl_const_Double_Box_t y);
    int ppl_Double_Box_strictly_contains_Double_Box(ppl_const_Double_Box_t x,
                                                    ppl_const_Double_Box_t y);
    int ppl_Double_Box_is_disjoint_from_Double_Box(ppl_const_Double_Box_t x,
                                                   ppl_const_Double_Box_t y);
    int ppl_Double_Box_OK(ppl_const_Double_Box_t ph);
    int ppl_Double_Box_constrains(ppl_Double_Box_t ph, ppl_dimension_type var);
    int ppl_Double_Box_external_memory_in_bytes(ppl_const_Double_Box_t ps,
                                                size_t *sz);
    int ppl_Double_Box_total_memory_in_bytes(ppl_const_Double_Box_t ps, size_t *sz);
    int ppl_BD_Shape_double_space_dimension(ppl_const_BD_Shape_double_t ph,
                                            ppl_dimension_type *m);
    int ppl_BD_Shape_double_affine_dimension(ppl_const_BD_Shape_double_t ph,
                                             ppl_dimension_type *m);
    int ppl_BD_Shape_double_relation_with_Constraint(ppl_const_BD_Shape_double_t ph,
                                                     ppl_const_Constraint_t c);
    int ppl_BD_Shape_double_relation_with_Generator(ppl_const_BD_Shape_double_t ph,
                                                    ppl_const_Generator_t c);
    int ppl_BD_Shape_double_relation_with_Congruence(ppl_const_BD_Shape_double_t ph,
                                                     ppl_const_Congruence_t c);
    int ppl_BD_Shape_double_is_empty(ppl_const_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_is_universe(ppl_const_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_is_bounded(ppl_const_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_contains_integer_point(ppl_const_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_is_topologically_closed(ppl_const_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_is_discrete(ppl_const_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_bounds_from_above(ppl_const_BD_Shape_double_t ph,
                                              ppl_const_Linear_Expression_t le);
    int ppl_BD_Shape_double_bounds_from_below(ppl_const_BD_Shape_double_t ph,
                                              ppl_const_Linear_Expression_t le);
    int ppl_BD_Shape_double_maximize(ppl_const_BD_Shape_double_t ph,
                                     ppl_const_Linear_Expression_t le,
                                     ppl_Coefficient_t ext_n,
                                     ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_BD_Shape_double_minimize(ppl_const_BD_Shape_double_t ph,
                                     ppl_const_Linear_Expression_t le,
                                     ppl_Coefficient_t ext_n,
                                     ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_BD_Shape_double_maximize_with_point(ppl_const_BD_Shape_double_t ph,
                                                ppl_const_Linear_Expression_t le,
                                                ppl_Coefficient_t ext_n,
                                                ppl_Coefficient_t ext_d,
                                                int *poptimum,
                                                ppl_Generator_t point);
    int ppl_BD_Shape_double_minimize_with_point(ppl_const_BD_Shape_double_t ph,
                                                ppl_const_Linear_Expression_t le,
                                                ppl_Coefficient_t ext_n,
                                                ppl_Coefficient_t ext_d,
                                                int *poptimum,
                                                ppl_Generator_t point);
    int ppl_BD_Shape_double_frequency(ppl_const_BD_Shape_double_t ph,
                                      ppl_const_Linear_Expression_t le,
                                      ppl_Coefficient_t ext_fn,
                                      ppl_Coefficient_t ext_fd,
                                      ppl_Coefficient_t ext_vn,
                                      ppl_Coefficient_t ext_vd);
    int ppl_BD_Shape_double_contains_BD_Shape_double(ppl_const_BD_Shape_double_t x,
                                                     ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_strictly_contains_BD_Shape_double(
        ppl_const_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_is_disjoint_from_BD_Shape_double(
        ppl_const_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_OK(ppl_const_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_constrains(ppl_BD_Shape_double_t ph,
                                       ppl_dimension_type var);
    int ppl_BD_Shape_double_external_memory_in_bytes(ppl_const_BD_Shape_double_t ps,
                                                     size_t *sz);
    int ppl_BD_Shape_double_total_memory_in_bytes(ppl_const_BD_Shape_double_t ps,
                                                  size_t *sz);
    int ppl_Octagonal_Shape_double_space_dimension(
        ppl_const_Octagonal_Shape_double_t ph, ppl_dimension_type *m);
    int ppl_Octagonal_Shape_double_affine_dimension(
        ppl_const_Octagonal_Shape_double_t ph, ppl_dimension_type *m);
    int ppl_Octagonal_Shape_double_relation_with_Constraint(
        ppl_const_Octagonal_Shape_double_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_double_relation_with_Generator(
        ppl_const_Octagonal_Shape_double_t ph, ppl_const_Generator_t c);
    int ppl_Octagonal_Shape_double_relation_with_Congruence(
        ppl_const_Octagonal_Shape_double_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_double_is_empty(ppl_const_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_is_universe(
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_is_bounded(
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_contains_integer_point(
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_is_topologically_closed(
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_is_discrete(
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_bounds_from_above(
        ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le);
    int ppl_Octagonal_Shape_double_bounds_from_below(
        ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le);
    int ppl_Octagonal_Shape_double_maximize(ppl_const_Octagonal_Shape_double_t ph,
                                            ppl_const_Linear_Expression_t le,
                                            ppl_Coefficient_t ext_n,
                                            ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Octagonal_Shape_double_minimize(ppl_const_Octagonal_Shape_double_t ph,
                                            ppl_const_Linear_Expression_t le,
                                            ppl_Coefficient_t ext_n,
                                            ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Octagonal_Shape_double_maximize_with_point(
        ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_Octagonal_Shape_double_minimize_with_point(
        ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_Octagonal_Shape_double_frequency(ppl_const_Octagonal_Shape_double_t ph,
                                             ppl_const_Linear_Expression_t le,
                                             ppl_Coefficient_t ext_fn,
                                             ppl_Coefficient_t ext_fd,
                                             ppl_Coefficient_t ext_vn,
                                             ppl_Coefficient_t ext_vd);
    int ppl_Octagonal_Shape_double_contains_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_strictly_contains_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_is_disjoint_from_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_OK(ppl_const_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_constrains(ppl_Octagonal_Shape_double_t ph,
                                              ppl_dimension_type var);
    int ppl_Octagonal_Shape_double_external_memory_in_bytes(
        ppl_const_Octagonal_Shape_double_t ps, size_t *sz);
    int ppl_Octagonal_Shape_double_total_memory_in_bytes(
        ppl_const_Octagonal_Shape_double_t ps, size_t *sz);
    int ppl_Polyhedron_equals_Polyhedron(ppl_const_Polyhedron_t x,
                                         ppl_const_Polyhedron_t y);
    int ppl_Grid_equals_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y);
    int ppl_Rational_Box_has_upper_bound(ppl_Rational_Box_t ps,
                                         ppl_dimension_type var,
                                         ppl_Coefficient_t ext_n,
                                         ppl_Coefficient_t ext_d, int *pclosed);
    int ppl_Rational_Box_has_lower_bound(ppl_Rational_Box_t ps,
                                         ppl_dimension_type var,
                                         ppl_Coefficient_t ext_n,
                                         ppl_Coefficient_t ext_d, int *pclosed);
    int ppl_Rational_Box_equals_Rational_Box(ppl_const_Rational_Box_t x,
                                             ppl_const_Rational_Box_t y);
    int ppl_BD_Shape_mpz_class_equals_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpq_class_equals_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpz_class_equals_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t x,
        ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpq_class_equals_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t x,
        ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_equals_Constraints_Product_C_Polyhedron_Grid(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_geometrically_equals_Pointset_Powerset_C_Polyhedron(
        ppl_const_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_equals_Pointset_Powerset_C_Polyhedron(
        ppl_const_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_geometrically_equals_Pointset_Powerset_NNC_Polyhedron(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_equals_Pointset_Powerset_NNC_Polyhedron(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Double_Box_has_upper_bound(ppl_Double_Box_t ps, ppl_dimension_type var,
                                       ppl_Coefficient_t ext_n,
                                       ppl_Coefficient_t ext_d, int *pclosed);
    int ppl_Double_Box_has_lower_bound(ppl_Double_Box_t ps, ppl_dimension_type var,
                                       ppl_Coefficient_t ext_n,
                                       ppl_Coefficient_t ext_d, int *pclosed);
    int ppl_Double_Box_equals_Double_Box(ppl_const_Double_Box_t x,
                                         ppl_const_Double_Box_t y);
    int ppl_BD_Shape_double_equals_BD_Shape_double(ppl_const_BD_Shape_double_t x,
                                                   ppl_const_BD_Shape_double_t y);
    int ppl_Octagonal_Shape_double_equals_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    
    int ppl_Pointset_Powerset_C_Polyhedron_geometrically_covers_Pointset_Powerset_C_Polyhedron(
        ppl_const_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_size(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ps, size_t *sz);
    int ppl_Pointset_Powerset_NNC_Polyhedron_geometrically_covers_Pointset_Powerset_NNC_Polyhedron(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_size(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps, size_t *sz);
    int ppl_Grid_relation_with_Grid_Generator(ppl_const_Grid_t ph,
                                              ppl_const_Grid_Generator_t c);
    
    VERIFICATION_CRITERIA:

    Compare literal empty/universe, containment, relation flags and bounded/unbounded optimization/frequency results for configured arithmetic types.

    SOURCE:

    interfaces/C/tests/newoperations.c; interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/domains.c; interfaces/C/tests/polyhedra.c.

  • PPL-SPEC-001556
    3. C generated system extraction ownership UID: PPL-SPEC-001556 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_get_constraints(ppl_const_Polyhedron_t ph,
                                       ppl_const_Constraint_System_t *pcs);
    int ppl_Polyhedron_get_generators(ppl_const_Polyhedron_t ph,
                                      ppl_const_Generator_System_t *pcs);
    int ppl_Polyhedron_get_minimized_constraints(
        ppl_const_Polyhedron_t ph, ppl_const_Constraint_System_t *pcs);
    int ppl_Polyhedron_get_minimized_generators(ppl_const_Polyhedron_t ph,
                                                ppl_const_Generator_System_t *pcs);
    int ppl_Grid_get_congruences(ppl_const_Grid_t ph,
                                 ppl_const_Congruence_System_t *pcs);
    int ppl_Grid_get_grid_generators(ppl_const_Grid_t ph,
                                     ppl_const_Grid_Generator_System_t *pcs);
    int ppl_Grid_get_minimized_congruences(ppl_const_Grid_t ph,
                                           ppl_const_Congruence_System_t *pcs);
    int ppl_Grid_get_minimized_grid_generators(
        ppl_const_Grid_t ph, ppl_const_Grid_Generator_System_t *pcs);
    int ppl_new_Congruence_System_from_Polyhedron(ppl_Congruence_System_t *pcs,
                                                  ppl_const_Polyhedron_t ph);
    int ppl_new_Congruence_System_from_Polyhedron_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_Polyhedron_t ph);
    int ppl_new_Constraint_System_from_Grid(ppl_Constraint_System_t *pcs,
                                            ppl_const_Grid_t ph);
    int ppl_new_Constraint_System_from_Grid_minimized(ppl_Constraint_System_t *pcs,
                                                      ppl_const_Grid_t ph);
    int ppl_new_Constraint_System_from_Rational_Box(ppl_Constraint_System_t *pcs,
                                                    ppl_const_Rational_Box_t ph);
    int ppl_new_Congruence_System_from_Rational_Box(ppl_Congruence_System_t *pcs,
                                                    ppl_const_Rational_Box_t ph);
    int ppl_new_Constraint_System_from_Rational_Box_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_Rational_Box_t ph);
    int ppl_new_Congruence_System_from_Rational_Box_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_Rational_Box_t ph);
    int ppl_new_Constraint_System_from_BD_Shape_mpz_class(
        ppl_Constraint_System_t *pcs, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Congruence_System_from_BD_Shape_mpz_class(
        ppl_Congruence_System_t *pcs, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Constraint_System_from_BD_Shape_mpz_class_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Congruence_System_from_BD_Shape_mpz_class_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Constraint_System_from_BD_Shape_mpq_class(
        ppl_Constraint_System_t *pcs, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Congruence_System_from_BD_Shape_mpq_class(
        ppl_Congruence_System_t *pcs, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Constraint_System_from_BD_Shape_mpq_class_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Congruence_System_from_BD_Shape_mpq_class_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Constraint_System_from_Octagonal_Shape_mpz_class(
        ppl_Constraint_System_t *pcs, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Congruence_System_from_Octagonal_Shape_mpz_class(
        ppl_Congruence_System_t *pcs, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Constraint_System_from_Octagonal_Shape_mpz_class_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Congruence_System_from_Octagonal_Shape_mpz_class_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Constraint_System_from_Octagonal_Shape_mpq_class(
        ppl_Constraint_System_t *pcs, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Congruence_System_from_Octagonal_Shape_mpq_class(
        ppl_Congruence_System_t *pcs, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Constraint_System_from_Octagonal_Shape_mpq_class_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Congruence_System_from_Octagonal_Shape_mpq_class_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Constraint_System_from_Double_Box(ppl_Constraint_System_t *pcs,
                                                  ppl_const_Double_Box_t ph);
    int ppl_new_Congruence_System_from_Double_Box(ppl_Congruence_System_t *pcs,
                                                  ppl_const_Double_Box_t ph);
    int ppl_new_Constraint_System_from_Double_Box_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_Double_Box_t ph);
    int ppl_new_Congruence_System_from_Double_Box_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_Double_Box_t ph);
    int ppl_new_Constraint_System_from_BD_Shape_double(
        ppl_Constraint_System_t *pcs, ppl_const_BD_Shape_double_t ph);
    int ppl_new_Congruence_System_from_BD_Shape_double(
        ppl_Congruence_System_t *pcs, ppl_const_BD_Shape_double_t ph);
    int ppl_new_Constraint_System_from_BD_Shape_double_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_BD_Shape_double_t ph);
    int ppl_new_Congruence_System_from_BD_Shape_double_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_BD_Shape_double_t ph);
    int ppl_new_Constraint_System_from_Octagonal_Shape_double(
        ppl_Constraint_System_t *pcs, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Congruence_System_from_Octagonal_Shape_double(
        ppl_Congruence_System_t *pcs, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Constraint_System_from_Octagonal_Shape_double_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Congruence_System_from_Octagonal_Shape_double_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_Octagonal_Shape_double_t ph);
    
    VERIFICATION_CRITERIA:

    Check borrowed identity and zero-copy behavior, independently owned extractions, native representation meaning and owner lifetime histories.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/domains.c.

  • PPL-SPEC-001557
    4. C generated domain transformations UID: PPL-SPEC-001557 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_minkowski_sum_assign(ppl_Polyhedron_t lhs,
                                            ppl_const_Polyhedron_t rhs);
    int ppl_Polyhedron_time_elapse_assign_with_generators(
        ppl_Polyhedron_t ph, ppl_const_Generator_System_t rates);
    int ppl_C_Polyhedron_HH95_extrapolation_assign(ppl_Polyhedron_t lhs,
                                                  ppl_const_Polyhedron_t rhs);
    int ppl_C_Polyhedron_HPW01_extrapolation_assign(ppl_Polyhedron_t lhs,
                                                   ppl_const_Polyhedron_t rhs);
    int ppl_C_Polyhedron_refine_with_chvatal_cuts(ppl_Polyhedron_t ph,
                                                 ppl_dimension_type budget);
    int ppl_Polyhedron_topological_closure_assign(ppl_Polyhedron_t ph);
    int ppl_Polyhedron_add_constraint(ppl_Polyhedron_t ph,
                                      ppl_const_Constraint_t c);
    int ppl_Polyhedron_add_congruence(ppl_Polyhedron_t ph,
                                      ppl_const_Congruence_t c);
    int ppl_Polyhedron_add_generator(ppl_Polyhedron_t ph, ppl_const_Generator_t c);
    int ppl_Polyhedron_add_constraints(ppl_Polyhedron_t ph,
                                       ppl_const_Constraint_System_t cs);
    int ppl_Polyhedron_add_congruences(ppl_Polyhedron_t ph,
                                       ppl_const_Congruence_System_t cs);
    int ppl_Polyhedron_add_generators(ppl_Polyhedron_t ph,
                                      ppl_const_Generator_System_t cs);
    int ppl_Polyhedron_refine_with_constraint(ppl_Polyhedron_t ph,
                                              ppl_const_Constraint_t c);
    int ppl_Polyhedron_refine_with_congruence(ppl_Polyhedron_t ph,
                                              ppl_const_Congruence_t c);
    int ppl_Polyhedron_refine_with_constraints(ppl_Polyhedron_t ph,
                                               ppl_const_Constraint_System_t cs);
    int ppl_Polyhedron_refine_with_congruences(ppl_Polyhedron_t ph,
                                               ppl_const_Congruence_System_t cs);
    int ppl_Polyhedron_intersection_assign(ppl_Polyhedron_t x,
                                           ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_upper_bound_assign(ppl_Polyhedron_t x,
                                          ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_difference_assign(ppl_Polyhedron_t x,
                                         ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_concatenate_assign(ppl_Polyhedron_t x,
                                          ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_time_elapse_assign(ppl_Polyhedron_t x,
                                          ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_poly_hull_assign(ppl_Polyhedron_t x,
                                        ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_poly_difference_assign(ppl_Polyhedron_t x,
                                              ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_upper_bound_assign_if_exact(ppl_Polyhedron_t x,
                                                   ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_poly_hull_assign_if_exact(ppl_Polyhedron_t x,
                                                 ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_positive_time_elapse_assign(ppl_Polyhedron_t x,
                                                   ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_simplify_using_context_assign(ppl_Polyhedron_t x,
                                                     ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_drop_some_non_integer_points(ppl_Polyhedron_t ph,
                                                    int complexity);
    int ppl_Polyhedron_drop_some_non_integer_points_2(ppl_Polyhedron_t ph,
                                                      ppl_dimension_type ds[],
                                                      size_t n, int complexity);
    int ppl_Polyhedron_add_recycled_constraints(ppl_Polyhedron_t ph,
                                                ppl_Constraint_System_t cs);
    int ppl_Polyhedron_add_recycled_congruences(ppl_Polyhedron_t ph,
                                                ppl_Congruence_System_t cs);
    int ppl_Polyhedron_add_recycled_generators(ppl_Polyhedron_t ph,
                                               ppl_Generator_System_t cs);
    int ppl_Grid_topological_closure_assign(ppl_Grid_t ph);
    int ppl_Grid_add_constraint(ppl_Grid_t ph, ppl_const_Constraint_t c);
    int ppl_Grid_add_congruence(ppl_Grid_t ph, ppl_const_Congruence_t c);
    int ppl_Grid_add_grid_generator(ppl_Grid_t ph, ppl_const_Grid_Generator_t c);
    int ppl_Grid_add_constraints(ppl_Grid_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Grid_add_congruences(ppl_Grid_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Grid_add_grid_generators(ppl_Grid_t ph,
                                     ppl_const_Grid_Generator_System_t cs);
    int ppl_Grid_refine_with_constraint(ppl_Grid_t ph, ppl_const_Constraint_t c);
    int ppl_Grid_refine_with_congruence(ppl_Grid_t ph, ppl_const_Congruence_t c);
    int ppl_Grid_refine_with_constraints(ppl_Grid_t ph,
                                         ppl_const_Constraint_System_t cs);
    int ppl_Grid_refine_with_congruences(ppl_Grid_t ph,
                                         ppl_const_Congruence_System_t cs);
    int ppl_Grid_intersection_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_upper_bound_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_difference_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_concatenate_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_time_elapse_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_upper_bound_assign_if_exact(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_simplify_using_context_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_drop_some_non_integer_points(ppl_Grid_t ph, int complexity);
    int ppl_Grid_drop_some_non_integer_points_2(ppl_Grid_t ph,
                                                ppl_dimension_type ds[], size_t n,
                                                int complexity);
    int ppl_Grid_add_recycled_constraints(ppl_Grid_t ph,
                                          ppl_Constraint_System_t cs);
    int ppl_Grid_add_recycled_congruences(ppl_Grid_t ph,
                                          ppl_Congruence_System_t cs);
    int ppl_Grid_add_recycled_grid_generators(ppl_Grid_t ph,
                                              ppl_Grid_Generator_System_t cs);
    int ppl_Rational_Box_topological_closure_assign(ppl_Rational_Box_t ph);
    int ppl_Rational_Box_add_constraint(ppl_Rational_Box_t ph,
                                        ppl_const_Constraint_t c);
    int ppl_Rational_Box_add_congruence(ppl_Rational_Box_t ph,
                                        ppl_const_Congruence_t c);
    int ppl_Rational_Box_add_constraints(ppl_Rational_Box_t ph,
                                         ppl_const_Constraint_System_t cs);
    int ppl_Rational_Box_add_congruences(ppl_Rational_Box_t ph,
                                         ppl_const_Congruence_System_t cs);
    int ppl_Rational_Box_refine_with_constraint(ppl_Rational_Box_t ph,
                                                ppl_const_Constraint_t c);
    int ppl_Rational_Box_refine_with_congruence(ppl_Rational_Box_t ph,
                                                ppl_const_Congruence_t c);
    int ppl_Rational_Box_refine_with_constraints(ppl_Rational_Box_t ph,
                                                 ppl_const_Constraint_System_t cs);
    int ppl_Rational_Box_refine_with_congruences(ppl_Rational_Box_t ph,
                                                 ppl_const_Congruence_System_t cs);
    int ppl_Rational_Box_intersection_assign(ppl_Rational_Box_t x,
                                             ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_upper_bound_assign(ppl_Rational_Box_t x,
                                            ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_difference_assign(ppl_Rational_Box_t x,
                                           ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_concatenate_assign(ppl_Rational_Box_t x,
                                            ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_time_elapse_assign(ppl_Rational_Box_t x,
                                            ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_upper_bound_assign_if_exact(ppl_Rational_Box_t x,
                                                     ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_simplify_using_context_assign(ppl_Rational_Box_t x,
                                                       ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_drop_some_non_integer_points(ppl_Rational_Box_t ph,
                                                      int complexity);
    int ppl_Rational_Box_drop_some_non_integer_points_2(ppl_Rational_Box_t ph,
                                                        ppl_dimension_type ds[],
                                                        size_t n, int complexity);
    int ppl_Rational_Box_add_recycled_constraints(ppl_Rational_Box_t ph,
                                                  ppl_Constraint_System_t cs);
    int ppl_Rational_Box_add_recycled_congruences(ppl_Rational_Box_t ph,
                                                  ppl_Congruence_System_t cs);
    int ppl_BD_Shape_mpz_class_topological_closure_assign(
        ppl_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_add_constraint(ppl_BD_Shape_mpz_class_t ph,
                                              ppl_const_Constraint_t c);
    int ppl_BD_Shape_mpz_class_add_congruence(ppl_BD_Shape_mpz_class_t ph,
                                              ppl_const_Congruence_t c);
    int ppl_BD_Shape_mpz_class_add_constraints(ppl_BD_Shape_mpz_class_t ph,
                                               ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpz_class_add_congruences(ppl_BD_Shape_mpz_class_t ph,
                                               ppl_const_Congruence_System_t cs);
    int ppl_BD_Shape_mpz_class_refine_with_constraint(ppl_BD_Shape_mpz_class_t ph,
                                                      ppl_const_Constraint_t c);
    int ppl_BD_Shape_mpz_class_refine_with_congruence(ppl_BD_Shape_mpz_class_t ph,
                                                      ppl_const_Congruence_t c);
    int ppl_BD_Shape_mpz_class_refine_with_constraints(
        ppl_BD_Shape_mpz_class_t ph, ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpz_class_refine_with_congruences(
        ppl_BD_Shape_mpz_class_t ph, ppl_const_Congruence_System_t cs);
    int ppl_BD_Shape_mpz_class_intersection_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_upper_bound_assign(ppl_BD_Shape_mpz_class_t x,
                                                  ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_difference_assign(ppl_BD_Shape_mpz_class_t x,
                                                 ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_concatenate_assign(ppl_BD_Shape_mpz_class_t x,
                                                  ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_time_elapse_assign(ppl_BD_Shape_mpz_class_t x,
                                                  ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_upper_bound_assign_if_exact(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_simplify_using_context_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_drop_some_non_integer_points(
        ppl_BD_Shape_mpz_class_t ph, int complexity);
    int ppl_BD_Shape_mpz_class_drop_some_non_integer_points_2(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n,
        int complexity);
    int ppl_BD_Shape_mpz_class_add_recycled_constraints(ppl_BD_Shape_mpz_class_t ph,
                                                        ppl_Constraint_System_t cs);
    int ppl_BD_Shape_mpz_class_add_recycled_congruences(ppl_BD_Shape_mpz_class_t ph,
                                                        ppl_Congruence_System_t cs);
    int ppl_BD_Shape_mpq_class_topological_closure_assign(
        ppl_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_add_constraint(ppl_BD_Shape_mpq_class_t ph,
                                              ppl_const_Constraint_t c);
    int ppl_BD_Shape_mpq_class_add_congruence(ppl_BD_Shape_mpq_class_t ph,
                                              ppl_const_Congruence_t c);
    int ppl_BD_Shape_mpq_class_add_constraints(ppl_BD_Shape_mpq_class_t ph,
                                               ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpq_class_add_congruences(ppl_BD_Shape_mpq_class_t ph,
                                               ppl_const_Congruence_System_t cs);
    int ppl_BD_Shape_mpq_class_refine_with_constraint(ppl_BD_Shape_mpq_class_t ph,
                                                      ppl_const_Constraint_t c);
    int ppl_BD_Shape_mpq_class_refine_with_congruence(ppl_BD_Shape_mpq_class_t ph,
                                                      ppl_const_Congruence_t c);
    int ppl_BD_Shape_mpq_class_refine_with_constraints(
        ppl_BD_Shape_mpq_class_t ph, ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpq_class_refine_with_congruences(
        ppl_BD_Shape_mpq_class_t ph, ppl_const_Congruence_System_t cs);
    int ppl_BD_Shape_mpq_class_intersection_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_upper_bound_assign(ppl_BD_Shape_mpq_class_t x,
                                                  ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_difference_assign(ppl_BD_Shape_mpq_class_t x,
                                                 ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_concatenate_assign(ppl_BD_Shape_mpq_class_t x,
                                                  ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_time_elapse_assign(ppl_BD_Shape_mpq_class_t x,
                                                  ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_upper_bound_assign_if_exact(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_simplify_using_context_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_drop_some_non_integer_points(
        ppl_BD_Shape_mpq_class_t ph, int complexity);
    int ppl_BD_Shape_mpq_class_drop_some_non_integer_points_2(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n,
        int complexity);
    int ppl_BD_Shape_mpq_class_add_recycled_constraints(ppl_BD_Shape_mpq_class_t ph,
                                                        ppl_Constraint_System_t cs);
    int ppl_BD_Shape_mpq_class_add_recycled_congruences(ppl_BD_Shape_mpq_class_t ph,
                                                        ppl_Congruence_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_topological_closure_assign(
        ppl_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_add_constraint(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_mpz_class_add_congruence(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_mpz_class_add_constraints(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_add_congruences(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_refine_with_constraint(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_mpz_class_refine_with_congruence(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_mpz_class_refine_with_constraints(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_refine_with_congruences(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_intersection_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_upper_bound_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_difference_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_concatenate_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_time_elapse_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_upper_bound_assign_if_exact(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_simplify_using_context_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_drop_some_non_integer_points(
        ppl_Octagonal_Shape_mpz_class_t ph, int complexity);
    int ppl_Octagonal_Shape_mpz_class_drop_some_non_integer_points_2(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n,
        int complexity);
    int ppl_Octagonal_Shape_mpz_class_add_recycled_constraints(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_add_recycled_congruences(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_Congruence_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_topological_closure_assign(
        ppl_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_add_constraint(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_mpq_class_add_congruence(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_mpq_class_add_constraints(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_add_congruences(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_refine_with_constraint(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_mpq_class_refine_with_congruence(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_mpq_class_refine_with_constraints(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_refine_with_congruences(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_intersection_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_upper_bound_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_difference_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_concatenate_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_time_elapse_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_upper_bound_assign_if_exact(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_simplify_using_context_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_drop_some_non_integer_points(
        ppl_Octagonal_Shape_mpq_class_t ph, int complexity);
    int ppl_Octagonal_Shape_mpq_class_drop_some_non_integer_points_2(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n,
        int complexity);
    int ppl_Octagonal_Shape_mpq_class_add_recycled_constraints(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_add_recycled_congruences(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_Congruence_System_t cs);
    int ppl_Constraints_Product_C_Polyhedron_Grid_topological_closure_assign(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_Constraints_Product_C_Polyhedron_Grid_add_constraint(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Constraint_t c);
    int ppl_Constraints_Product_C_Polyhedron_Grid_add_congruence(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Congruence_t c);
    int ppl_Constraints_Product_C_Polyhedron_Grid_add_constraints(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Constraint_System_t cs);
    int ppl_Constraints_Product_C_Polyhedron_Grid_add_congruences(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Congruence_System_t cs);
    int ppl_Constraints_Product_C_Polyhedron_Grid_refine_with_constraint(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Constraint_t c);
    int ppl_Constraints_Product_C_Polyhedron_Grid_refine_with_congruence(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Congruence_t c);
    int ppl_Constraints_Product_C_Polyhedron_Grid_refine_with_constraints(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Constraint_System_t cs);
    int ppl_Constraints_Product_C_Polyhedron_Grid_refine_with_congruences(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Congruence_System_t cs);
    int ppl_Constraints_Product_C_Polyhedron_Grid_intersection_assign(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_upper_bound_assign(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_difference_assign(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_concatenate_assign(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_time_elapse_assign(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_upper_bound_assign_if_exact(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_drop_some_non_integer_points(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, int complexity);
    int ppl_Constraints_Product_C_Polyhedron_Grid_drop_some_non_integer_points_2(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[],
        size_t n, int complexity);
    int ppl_Pointset_Powerset_C_Polyhedron_topological_closure_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_pairwise_reduce(
        ppl_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_omega_reduce(
        ppl_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_add_constraint(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Constraint_t c);
    int ppl_Pointset_Powerset_C_Polyhedron_add_congruence(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Congruence_t c);
    int ppl_Pointset_Powerset_C_Polyhedron_add_constraints(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Pointset_Powerset_C_Polyhedron_add_congruences(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Pointset_Powerset_C_Polyhedron_refine_with_constraint(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Constraint_t c);
    int ppl_Pointset_Powerset_C_Polyhedron_refine_with_congruence(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Congruence_t c);
    int ppl_Pointset_Powerset_C_Polyhedron_refine_with_constraints(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Pointset_Powerset_C_Polyhedron_refine_with_congruences(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Pointset_Powerset_C_Polyhedron_intersection_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_upper_bound_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_difference_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_concatenate_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_time_elapse_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_upper_bound_assign_if_exact(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_simplify_using_context_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_drop_some_non_integer_points(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, int complexity);
    int ppl_Pointset_Powerset_C_Polyhedron_drop_some_non_integer_points_2(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n,
        int complexity);
    int ppl_Pointset_Powerset_NNC_Polyhedron_topological_closure_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_pairwise_reduce(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_omega_reduce(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_constraint(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Constraint_t c);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_congruence(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Congruence_t c);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_constraints(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Constraint_System_t cs);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_congruences(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Congruence_System_t cs);
    int ppl_Pointset_Powerset_NNC_Polyhedron_refine_with_constraint(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Constraint_t c);
    int ppl_Pointset_Powerset_NNC_Polyhedron_refine_with_congruence(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Congruence_t c);
    int ppl_Pointset_Powerset_NNC_Polyhedron_refine_with_constraints(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Constraint_System_t cs);
    int ppl_Pointset_Powerset_NNC_Polyhedron_refine_with_congruences(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Congruence_System_t cs);
    int ppl_Pointset_Powerset_NNC_Polyhedron_intersection_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_upper_bound_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_difference_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_concatenate_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_time_elapse_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_upper_bound_assign_if_exact(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_simplify_using_context_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_drop_some_non_integer_points(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, int complexity);
    int ppl_Pointset_Powerset_NNC_Polyhedron_drop_some_non_integer_points_2(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[],
        size_t n, int complexity);
    int ppl_Double_Box_topological_closure_assign(ppl_Double_Box_t ph);
    int ppl_Double_Box_add_constraint(ppl_Double_Box_t ph,
                                      ppl_const_Constraint_t c);
    int ppl_Double_Box_add_congruence(ppl_Double_Box_t ph,
                                      ppl_const_Congruence_t c);
    int ppl_Double_Box_add_constraints(ppl_Double_Box_t ph,
                                       ppl_const_Constraint_System_t cs);
    int ppl_Double_Box_add_congruences(ppl_Double_Box_t ph,
                                       ppl_const_Congruence_System_t cs);
    int ppl_Double_Box_refine_with_constraint(ppl_Double_Box_t ph,
                                              ppl_const_Constraint_t c);
    int ppl_Double_Box_refine_with_congruence(ppl_Double_Box_t ph,
                                              ppl_const_Congruence_t c);
    int ppl_Double_Box_refine_with_constraints(ppl_Double_Box_t ph,
                                               ppl_const_Constraint_System_t cs);
    int ppl_Double_Box_refine_with_congruences(ppl_Double_Box_t ph,
                                               ppl_const_Congruence_System_t cs);
    int ppl_Double_Box_intersection_assign(ppl_Double_Box_t x,
                                           ppl_const_Double_Box_t y);
    int ppl_Double_Box_upper_bound_assign(ppl_Double_Box_t x,
                                          ppl_const_Double_Box_t y);
    int ppl_Double_Box_difference_assign(ppl_Double_Box_t x,
                                         ppl_const_Double_Box_t y);
    int ppl_Double_Box_concatenate_assign(ppl_Double_Box_t x,
                                          ppl_const_Double_Box_t y);
    int ppl_Double_Box_time_elapse_assign(ppl_Double_Box_t x,
                                          ppl_const_Double_Box_t y);
    int ppl_Double_Box_upper_bound_assign_if_exact(ppl_Double_Box_t x,
                                                   ppl_const_Double_Box_t y);
    int ppl_Double_Box_simplify_using_context_assign(ppl_Double_Box_t x,
                                                     ppl_const_Double_Box_t y);
    int ppl_Double_Box_drop_some_non_integer_points(ppl_Double_Box_t ph,
                                                    int complexity);
    int ppl_Double_Box_drop_some_non_integer_points_2(ppl_Double_Box_t ph,
                                                      ppl_dimension_type ds[],
                                                      size_t n, int complexity);
    int ppl_Double_Box_add_recycled_constraints(ppl_Double_Box_t ph,
                                                ppl_Constraint_System_t cs);
    int ppl_Double_Box_add_recycled_congruences(ppl_Double_Box_t ph,
                                                ppl_Congruence_System_t cs);
    int ppl_BD_Shape_double_topological_closure_assign(ppl_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_add_constraint(ppl_BD_Shape_double_t ph,
                                           ppl_const_Constraint_t c);
    int ppl_BD_Shape_double_add_congruence(ppl_BD_Shape_double_t ph,
                                           ppl_const_Congruence_t c);
    int ppl_BD_Shape_double_add_constraints(ppl_BD_Shape_double_t ph,
                                            ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_double_add_congruences(ppl_BD_Shape_double_t ph,
                                            ppl_const_Congruence_System_t cs);
    int ppl_BD_Shape_double_refine_with_constraint(ppl_BD_Shape_double_t ph,
                                                   ppl_const_Constraint_t c);
    int ppl_BD_Shape_double_refine_with_congruence(ppl_BD_Shape_double_t ph,
                                                   ppl_const_Congruence_t c);
    int ppl_BD_Shape_double_refine_with_constraints(
        ppl_BD_Shape_double_t ph, ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_double_refine_with_congruences(
        ppl_BD_Shape_double_t ph, ppl_const_Congruence_System_t cs);
    int ppl_BD_Shape_double_intersection_assign(ppl_BD_Shape_double_t x,
                                                ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_upper_bound_assign(ppl_BD_Shape_double_t x,
                                               ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_difference_assign(ppl_BD_Shape_double_t x,
                                              ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_concatenate_assign(ppl_BD_Shape_double_t x,
                                               ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_time_elapse_assign(ppl_BD_Shape_double_t x,
                                               ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_upper_bound_assign_if_exact(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_simplify_using_context_assign(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_drop_some_non_integer_points(ppl_BD_Shape_double_t ph,
                                                         int complexity);
    int ppl_BD_Shape_double_drop_some_non_integer_points_2(ppl_BD_Shape_double_t ph,
                                                           ppl_dimension_type ds[],
                                                           size_t n,
                                                           int complexity);
    int ppl_BD_Shape_double_add_recycled_constraints(ppl_BD_Shape_double_t ph,
                                                     ppl_Constraint_System_t cs);
    int ppl_BD_Shape_double_add_recycled_congruences(ppl_BD_Shape_double_t ph,
                                                     ppl_Congruence_System_t cs);
    int ppl_Octagonal_Shape_double_topological_closure_assign(
        ppl_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_add_constraint(ppl_Octagonal_Shape_double_t ph,
                                                  ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_double_add_congruence(ppl_Octagonal_Shape_double_t ph,
                                                  ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_double_add_constraints(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_double_add_congruences(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Octagonal_Shape_double_refine_with_constraint(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_double_refine_with_congruence(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_double_refine_with_constraints(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_double_refine_with_congruences(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Octagonal_Shape_double_intersection_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_upper_bound_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_difference_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_concatenate_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_time_elapse_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_upper_bound_assign_if_exact(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_simplify_using_context_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_drop_some_non_integer_points(
        ppl_Octagonal_Shape_double_t ph, int complexity);
    int ppl_Octagonal_Shape_double_drop_some_non_integer_points_2(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n,
        int complexity);
    int ppl_Octagonal_Shape_double_add_recycled_constraints(
        ppl_Octagonal_Shape_double_t ph, ppl_Constraint_System_t cs);
    int ppl_Octagonal_Shape_double_add_recycled_congruences(
        ppl_Octagonal_Shape_double_t ph, ppl_Congruence_System_t cs);
    
    int ppl_Polyhedron_unconstrain_space_dimension(ppl_Polyhedron_t ph,
                                                   ppl_dimension_type var);
    int ppl_Polyhedron_unconstrain_space_dimensions(ppl_Polyhedron_t ph,
                                                    ppl_dimension_type ds[],
                                                    size_t n);
    int ppl_Grid_unconstrain_space_dimension(ppl_Grid_t ph, ppl_dimension_type var);
    int ppl_Grid_unconstrain_space_dimensions(ppl_Grid_t ph,
                                              ppl_dimension_type ds[], size_t n);
    int ppl_Rational_Box_unconstrain_space_dimension(ppl_Rational_Box_t ph,
                                                     ppl_dimension_type var);
    int ppl_Rational_Box_unconstrain_space_dimensions(ppl_Rational_Box_t ph,
                                                      ppl_dimension_type ds[],
                                                      size_t n);
    int ppl_BD_Shape_mpz_class_unconstrain_space_dimension(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var);
    int ppl_BD_Shape_mpz_class_unconstrain_space_dimensions(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_BD_Shape_mpq_class_unconstrain_space_dimension(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var);
    int ppl_BD_Shape_mpq_class_unconstrain_space_dimensions(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Octagonal_Shape_mpz_class_unconstrain_space_dimension(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var);
    int ppl_Octagonal_Shape_mpz_class_unconstrain_space_dimensions(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Octagonal_Shape_mpq_class_unconstrain_space_dimension(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var);
    int ppl_Octagonal_Shape_mpq_class_unconstrain_space_dimensions(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Constraints_Product_C_Polyhedron_Grid_unconstrain_space_dimension(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var);
    int ppl_Constraints_Product_C_Polyhedron_Grid_unconstrain_space_dimensions(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[],
        size_t n);
    int ppl_Pointset_Powerset_C_Polyhedron_unconstrain_space_dimension(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var);
    int ppl_Pointset_Powerset_C_Polyhedron_unconstrain_space_dimensions(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Pointset_Powerset_NNC_Polyhedron_unconstrain_space_dimension(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var);
    int ppl_Pointset_Powerset_NNC_Polyhedron_unconstrain_space_dimensions(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[],
        size_t n);
    int ppl_Double_Box_unconstrain_space_dimension(ppl_Double_Box_t ph,
                                                   ppl_dimension_type var);
    int ppl_Double_Box_unconstrain_space_dimensions(ppl_Double_Box_t ph,
                                                    ppl_dimension_type ds[],
                                                    size_t n);
    int ppl_BD_Shape_double_unconstrain_space_dimension(ppl_BD_Shape_double_t ph,
                                                        ppl_dimension_type var);
    int ppl_BD_Shape_double_unconstrain_space_dimensions(ppl_BD_Shape_double_t ph,
                                                         ppl_dimension_type ds[],
                                                         size_t n);
    int ppl_Octagonal_Shape_double_unconstrain_space_dimension(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var);
    int ppl_Octagonal_Shape_double_unconstrain_space_dimensions(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n);
    
    VERIFICATION_CRITERIA:

    Compare independent mathematical oracles and fresh native models, exactness booleans, empty operands, aliases and rejected dimensions.

    SOURCE:

    interfaces/interfaced_polyhedra.hh; interfaces/C/tests/newoperations.c; interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/domains.c; interfaces/C/tests/polyhedra.c; interfaces/C/tests/powersets.c.

  • PPL-SPEC-001558
    5. C generated affine transformations UID: PPL-SPEC-001558 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_affine_image(ppl_Polyhedron_t ph, ppl_dimension_type var,
                                    ppl_const_Linear_Expression_t le,
                                    ppl_const_Coefficient_t d);
    int ppl_Polyhedron_affine_preimage(ppl_Polyhedron_t ph, ppl_dimension_type var,
                                       ppl_const_Linear_Expression_t le,
                                       ppl_const_Coefficient_t d);
    int ppl_Polyhedron_bounded_affine_image(ppl_Polyhedron_t ph,
                                            ppl_dimension_type var,
                                            ppl_const_Linear_Expression_t lb,
                                            ppl_const_Linear_Expression_t ub,
                                            ppl_const_Coefficient_t d);
    int ppl_Polyhedron_bounded_affine_preimage(ppl_Polyhedron_t ph,
                                               ppl_dimension_type var,
                                               ppl_const_Linear_Expression_t lb,
                                               ppl_const_Linear_Expression_t ub,
                                               ppl_const_Coefficient_t d);
    int ppl_Polyhedron_generalized_affine_image(
        ppl_Polyhedron_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Polyhedron_generalized_affine_preimage(
        ppl_Polyhedron_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Polyhedron_generalized_affine_image_lhs_rhs(
        ppl_Polyhedron_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Polyhedron_generalized_affine_preimage_lhs_rhs(
        ppl_Polyhedron_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Grid_affine_image(ppl_Grid_t ph, ppl_dimension_type var,
                              ppl_const_Linear_Expression_t le,
                              ppl_const_Coefficient_t d);
    int ppl_Grid_affine_preimage(ppl_Grid_t ph, ppl_dimension_type var,
                                 ppl_const_Linear_Expression_t le,
                                 ppl_const_Coefficient_t d);
    int ppl_Grid_bounded_affine_image(ppl_Grid_t ph, ppl_dimension_type var,
                                      ppl_const_Linear_Expression_t lb,
                                      ppl_const_Linear_Expression_t ub,
                                      ppl_const_Coefficient_t d);
    int ppl_Grid_bounded_affine_preimage(ppl_Grid_t ph, ppl_dimension_type var,
                                         ppl_const_Linear_Expression_t lb,
                                         ppl_const_Linear_Expression_t ub,
                                         ppl_const_Coefficient_t d);
    int ppl_Grid_generalized_affine_image(ppl_Grid_t ph, ppl_dimension_type var,
                                          enum ppl_enum_Constraint_Type relsym,
                                          ppl_const_Linear_Expression_t le,
                                          ppl_const_Coefficient_t d);
    int ppl_Grid_generalized_affine_preimage(ppl_Grid_t ph, ppl_dimension_type var,
                                             enum ppl_enum_Constraint_Type relsym,
                                             ppl_const_Linear_Expression_t le,
                                             ppl_const_Coefficient_t d);
    int ppl_Grid_generalized_affine_image_lhs_rhs(
        ppl_Grid_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Grid_generalized_affine_preimage_lhs_rhs(
        ppl_Grid_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Grid_generalized_affine_image_with_congruence(
        ppl_Grid_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d,
        ppl_const_Coefficient_t m);
    int ppl_Grid_generalized_affine_preimage_with_congruence(
        ppl_Grid_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d,
        ppl_const_Coefficient_t m);
    int ppl_Grid_generalized_affine_image_lhs_rhs_with_congruence(
        ppl_Grid_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs,
        ppl_const_Coefficient_t m);
    int ppl_Grid_generalized_affine_preimage_lhs_rhs_with_congruence(
        ppl_Grid_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs,
        ppl_const_Coefficient_t m);
    int ppl_Rational_Box_affine_image(ppl_Rational_Box_t ph, ppl_dimension_type var,
                                      ppl_const_Linear_Expression_t le,
                                      ppl_const_Coefficient_t d);
    int ppl_Rational_Box_affine_preimage(ppl_Rational_Box_t ph,
                                         ppl_dimension_type var,
                                         ppl_const_Linear_Expression_t le,
                                         ppl_const_Coefficient_t d);
    int ppl_Rational_Box_bounded_affine_image(ppl_Rational_Box_t ph,
                                              ppl_dimension_type var,
                                              ppl_const_Linear_Expression_t lb,
                                              ppl_const_Linear_Expression_t ub,
                                              ppl_const_Coefficient_t d);
    int ppl_Rational_Box_bounded_affine_preimage(ppl_Rational_Box_t ph,
                                                 ppl_dimension_type var,
                                                 ppl_const_Linear_Expression_t lb,
                                                 ppl_const_Linear_Expression_t ub,
                                                 ppl_const_Coefficient_t d);
    int ppl_Rational_Box_generalized_affine_image(
        ppl_Rational_Box_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Rational_Box_generalized_affine_preimage(
        ppl_Rational_Box_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Rational_Box_generalized_affine_image_lhs_rhs(
        ppl_Rational_Box_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Rational_Box_generalized_affine_preimage_lhs_rhs(
        ppl_Rational_Box_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_BD_Shape_mpz_class_affine_image(ppl_BD_Shape_mpz_class_t ph,
                                            ppl_dimension_type var,
                                            ppl_const_Linear_Expression_t le,
                                            ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpz_class_affine_preimage(ppl_BD_Shape_mpz_class_t ph,
                                               ppl_dimension_type var,
                                               ppl_const_Linear_Expression_t le,
                                               ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpz_class_bounded_affine_image(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpz_class_bounded_affine_preimage(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpz_class_generalized_affine_image(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpz_class_generalized_affine_preimage(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpz_class_generalized_affine_image_lhs_rhs(
        ppl_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_BD_Shape_mpz_class_generalized_affine_preimage_lhs_rhs(
        ppl_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_BD_Shape_mpq_class_affine_image(ppl_BD_Shape_mpq_class_t ph,
                                            ppl_dimension_type var,
                                            ppl_const_Linear_Expression_t le,
                                            ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpq_class_affine_preimage(ppl_BD_Shape_mpq_class_t ph,
                                               ppl_dimension_type var,
                                               ppl_const_Linear_Expression_t le,
                                               ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpq_class_bounded_affine_image(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpq_class_bounded_affine_preimage(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpq_class_generalized_affine_image(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpq_class_generalized_affine_preimage(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpq_class_generalized_affine_image_lhs_rhs(
        ppl_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_BD_Shape_mpq_class_generalized_affine_preimage_lhs_rhs(
        ppl_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Octagonal_Shape_mpz_class_affine_image(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpz_class_affine_preimage(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpz_class_bounded_affine_image(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpz_class_bounded_affine_preimage(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpz_class_generalized_affine_image(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpz_class_generalized_affine_preimage(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpz_class_generalized_affine_image_lhs_rhs(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Octagonal_Shape_mpz_class_generalized_affine_preimage_lhs_rhs(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Octagonal_Shape_mpq_class_affine_image(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpq_class_affine_preimage(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpq_class_bounded_affine_image(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpq_class_bounded_affine_preimage(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpq_class_generalized_affine_image(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpq_class_generalized_affine_preimage(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpq_class_generalized_affine_image_lhs_rhs(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Octagonal_Shape_mpq_class_generalized_affine_preimage_lhs_rhs(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Constraints_Product_C_Polyhedron_Grid_affine_image(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_affine_preimage(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_bounded_affine_image(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_bounded_affine_preimage(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_generalized_affine_image(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_generalized_affine_preimage(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_generalized_affine_image_lhs_rhs(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym,
        ppl_const_Linear_Expression_t rhs);
    int ppl_Constraints_Product_C_Polyhedron_Grid_generalized_affine_preimage_lhs_rhs(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym,
        ppl_const_Linear_Expression_t rhs);
    int ppl_Pointset_Powerset_C_Polyhedron_affine_image(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_C_Polyhedron_affine_preimage(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_C_Polyhedron_bounded_affine_image(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_C_Polyhedron_bounded_affine_preimage(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_C_Polyhedron_generalized_affine_image(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_C_Polyhedron_generalized_affine_preimage(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_C_Polyhedron_generalized_affine_image_lhs_rhs(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Pointset_Powerset_C_Polyhedron_generalized_affine_preimage_lhs_rhs(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Pointset_Powerset_NNC_Polyhedron_affine_image(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_affine_preimage(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_bounded_affine_image(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_bounded_affine_preimage(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_generalized_affine_image(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_generalized_affine_preimage(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_generalized_affine_image_lhs_rhs(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym,
        ppl_const_Linear_Expression_t rhs);
    int ppl_Pointset_Powerset_NNC_Polyhedron_generalized_affine_preimage_lhs_rhs(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym,
        ppl_const_Linear_Expression_t rhs);
    int ppl_Double_Box_affine_image(ppl_Double_Box_t ph, ppl_dimension_type var,
                                    ppl_const_Linear_Expression_t le,
                                    ppl_const_Coefficient_t d);
    int ppl_Double_Box_affine_preimage(ppl_Double_Box_t ph, ppl_dimension_type var,
                                       ppl_const_Linear_Expression_t le,
                                       ppl_const_Coefficient_t d);
    int ppl_Double_Box_bounded_affine_image(ppl_Double_Box_t ph,
                                            ppl_dimension_type var,
                                            ppl_const_Linear_Expression_t lb,
                                            ppl_const_Linear_Expression_t ub,
                                            ppl_const_Coefficient_t d);
    int ppl_Double_Box_bounded_affine_preimage(ppl_Double_Box_t ph,
                                               ppl_dimension_type var,
                                               ppl_const_Linear_Expression_t lb,
                                               ppl_const_Linear_Expression_t ub,
                                               ppl_const_Coefficient_t d);
    int ppl_Double_Box_generalized_affine_image(
        ppl_Double_Box_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Double_Box_generalized_affine_preimage(
        ppl_Double_Box_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Double_Box_generalized_affine_image_lhs_rhs(
        ppl_Double_Box_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Double_Box_generalized_affine_preimage_lhs_rhs(
        ppl_Double_Box_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_BD_Shape_double_affine_image(ppl_BD_Shape_double_t ph,
                                         ppl_dimension_type var,
                                         ppl_const_Linear_Expression_t le,
                                         ppl_const_Coefficient_t d);
    int ppl_BD_Shape_double_affine_preimage(ppl_BD_Shape_double_t ph,
                                            ppl_dimension_type var,
                                            ppl_const_Linear_Expression_t le,
                                            ppl_const_Coefficient_t d);
    int ppl_BD_Shape_double_bounded_affine_image(ppl_BD_Shape_double_t ph,
                                                 ppl_dimension_type var,
                                                 ppl_const_Linear_Expression_t lb,
                                                 ppl_const_Linear_Expression_t ub,
                                                 ppl_const_Coefficient_t d);
    int ppl_BD_Shape_double_bounded_affine_preimage(
        ppl_BD_Shape_double_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_double_generalized_affine_image(
        ppl_BD_Shape_double_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_double_generalized_affine_preimage(
        ppl_BD_Shape_double_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_double_generalized_affine_image_lhs_rhs(
        ppl_BD_Shape_double_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_BD_Shape_double_generalized_affine_preimage_lhs_rhs(
        ppl_BD_Shape_double_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Octagonal_Shape_double_affine_image(ppl_Octagonal_Shape_double_t ph,
                                                ppl_dimension_type var,
                                                ppl_const_Linear_Expression_t le,
                                                ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_double_affine_preimage(ppl_Octagonal_Shape_double_t ph,
                                                   ppl_dimension_type var,
                                                   ppl_const_Linear_Expression_t le,
                                                   ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_double_bounded_affine_image(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_double_bounded_affine_preimage(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_double_generalized_affine_image(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_double_generalized_affine_preimage(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_double_generalized_affine_image_lhs_rhs(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Octagonal_Shape_double_generalized_affine_preimage_lhs_rhs(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    
    VERIFICATION_CRITERIA:

    Check borrowed scalars/expressions, zero and negative denominators where admitted, dimension guards and literal image/preimage sets.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/polyhedra.c.

  • PPL-SPEC-001559
    6. C generated dimension arrays and maps UID: PPL-SPEC-001559 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_add_space_dimensions_and_embed(ppl_Polyhedron_t ph,
                                                      ppl_dimension_type d);
    int ppl_Polyhedron_add_space_dimensions_and_project(ppl_Polyhedron_t ph,
                                                        ppl_dimension_type d);
    int ppl_Polyhedron_remove_space_dimensions(ppl_Polyhedron_t ph,
                                               ppl_dimension_type ds[], size_t n);
    int ppl_Polyhedron_remove_higher_space_dimensions(ppl_Polyhedron_t ph,
                                                      ppl_dimension_type d);
    int ppl_Polyhedron_expand_space_dimension(ppl_Polyhedron_t ph,
                                              ppl_dimension_type d,
                                              ppl_dimension_type m);
    int ppl_Polyhedron_fold_space_dimensions(ppl_Polyhedron_t ph,
                                             ppl_dimension_type ds[], size_t n,
                                             ppl_dimension_type d);
    int ppl_Polyhedron_map_space_dimensions(ppl_Polyhedron_t ph,
                                            ppl_dimension_type maps[], size_t n);
    int ppl_Grid_add_space_dimensions_and_embed(ppl_Grid_t ph,
                                                ppl_dimension_type d);
    int ppl_Grid_add_space_dimensions_and_project(ppl_Grid_t ph,
                                                  ppl_dimension_type d);
    int ppl_Grid_remove_space_dimensions(ppl_Grid_t ph, ppl_dimension_type ds[],
                                         size_t n);
    int ppl_Grid_remove_higher_space_dimensions(ppl_Grid_t ph,
                                                ppl_dimension_type d);
    int ppl_Grid_expand_space_dimension(ppl_Grid_t ph, ppl_dimension_type d,
                                        ppl_dimension_type m);
    int ppl_Grid_fold_space_dimensions(ppl_Grid_t ph, ppl_dimension_type ds[],
                                       size_t n, ppl_dimension_type d);
    int ppl_Grid_map_space_dimensions(ppl_Grid_t ph, ppl_dimension_type maps[],
                                      size_t n);
    int ppl_Rational_Box_add_space_dimensions_and_embed(ppl_Rational_Box_t ph,
                                                        ppl_dimension_type d);
    int ppl_Rational_Box_add_space_dimensions_and_project(ppl_Rational_Box_t ph,
                                                          ppl_dimension_type d);
    int ppl_Rational_Box_remove_space_dimensions(ppl_Rational_Box_t ph,
                                                 ppl_dimension_type ds[], size_t n);
    int ppl_Rational_Box_remove_higher_space_dimensions(ppl_Rational_Box_t ph,
                                                        ppl_dimension_type d);
    int ppl_Rational_Box_expand_space_dimension(ppl_Rational_Box_t ph,
                                                ppl_dimension_type d,
                                                ppl_dimension_type m);
    int ppl_Rational_Box_fold_space_dimensions(ppl_Rational_Box_t ph,
                                               ppl_dimension_type ds[], size_t n,
                                               ppl_dimension_type d);
    int ppl_Rational_Box_map_space_dimensions(ppl_Rational_Box_t ph,
                                              ppl_dimension_type maps[], size_t n);
    int ppl_BD_Shape_mpz_class_add_space_dimensions_and_embed(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpz_class_add_space_dimensions_and_project(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpz_class_remove_space_dimensions(ppl_BD_Shape_mpz_class_t ph,
                                                       ppl_dimension_type ds[],
                                                       size_t n);
    int ppl_BD_Shape_mpz_class_remove_higher_space_dimensions(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpz_class_expand_space_dimension(ppl_BD_Shape_mpz_class_t ph,
                                                      ppl_dimension_type d,
                                                      ppl_dimension_type m);
    int ppl_BD_Shape_mpz_class_fold_space_dimensions(ppl_BD_Shape_mpz_class_t ph,
                                                     ppl_dimension_type ds[],
                                                     size_t n,
                                                     ppl_dimension_type d);
    int ppl_BD_Shape_mpz_class_map_space_dimensions(ppl_BD_Shape_mpz_class_t ph,
                                                    ppl_dimension_type maps[],
                                                    size_t n);
    int ppl_BD_Shape_mpq_class_add_space_dimensions_and_embed(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpq_class_add_space_dimensions_and_project(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpq_class_remove_space_dimensions(ppl_BD_Shape_mpq_class_t ph,
                                                       ppl_dimension_type ds[],
                                                       size_t n);
    int ppl_BD_Shape_mpq_class_remove_higher_space_dimensions(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpq_class_expand_space_dimension(ppl_BD_Shape_mpq_class_t ph,
                                                      ppl_dimension_type d,
                                                      ppl_dimension_type m);
    int ppl_BD_Shape_mpq_class_fold_space_dimensions(ppl_BD_Shape_mpq_class_t ph,
                                                     ppl_dimension_type ds[],
                                                     size_t n,
                                                     ppl_dimension_type d);
    int ppl_BD_Shape_mpq_class_map_space_dimensions(ppl_BD_Shape_mpq_class_t ph,
                                                    ppl_dimension_type maps[],
                                                    size_t n);
    int ppl_Octagonal_Shape_mpz_class_add_space_dimensions_and_embed(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpz_class_add_space_dimensions_and_project(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpz_class_remove_space_dimensions(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Octagonal_Shape_mpz_class_remove_higher_space_dimensions(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpz_class_expand_space_dimension(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Octagonal_Shape_mpz_class_fold_space_dimensions(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n,
        ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpz_class_map_space_dimensions(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type maps[], size_t n);
    int ppl_Octagonal_Shape_mpq_class_add_space_dimensions_and_embed(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpq_class_add_space_dimensions_and_project(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpq_class_remove_space_dimensions(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Octagonal_Shape_mpq_class_remove_higher_space_dimensions(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpq_class_expand_space_dimension(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Octagonal_Shape_mpq_class_fold_space_dimensions(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n,
        ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpq_class_map_space_dimensions(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type maps[], size_t n);
    int ppl_Constraints_Product_C_Polyhedron_Grid_add_space_dimensions_and_embed(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_add_space_dimensions_and_project(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_remove_space_dimensions(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[],
        size_t n);
    int ppl_Constraints_Product_C_Polyhedron_Grid_remove_higher_space_dimensions(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_expand_space_dimension(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Constraints_Product_C_Polyhedron_Grid_fold_space_dimensions(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[],
        size_t n, ppl_dimension_type d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_map_space_dimensions(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type maps[],
        size_t n);
    int ppl_Pointset_Powerset_C_Polyhedron_add_space_dimensions_and_embed(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_C_Polyhedron_add_space_dimensions_and_project(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_C_Polyhedron_remove_space_dimensions(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Pointset_Powerset_C_Polyhedron_remove_higher_space_dimensions(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_C_Polyhedron_expand_space_dimension(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Pointset_Powerset_C_Polyhedron_fold_space_dimensions(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n,
        ppl_dimension_type d);
    int ppl_Pointset_Powerset_C_Polyhedron_map_space_dimensions(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type maps[],
        size_t n);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_space_dimensions_and_embed(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_space_dimensions_and_project(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_remove_space_dimensions(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[],
        size_t n);
    int ppl_Pointset_Powerset_NNC_Polyhedron_remove_higher_space_dimensions(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_expand_space_dimension(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Pointset_Powerset_NNC_Polyhedron_fold_space_dimensions(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[],
        size_t n, ppl_dimension_type d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_map_space_dimensions(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type maps[],
        size_t n);
    int ppl_Double_Box_add_space_dimensions_and_embed(ppl_Double_Box_t ph,
                                                      ppl_dimension_type d);
    int ppl_Double_Box_add_space_dimensions_and_project(ppl_Double_Box_t ph,
                                                        ppl_dimension_type d);
    int ppl_Double_Box_remove_space_dimensions(ppl_Double_Box_t ph,
                                               ppl_dimension_type ds[], size_t n);
    int ppl_Double_Box_remove_higher_space_dimensions(ppl_Double_Box_t ph,
                                                      ppl_dimension_type d);
    int ppl_Double_Box_expand_space_dimension(ppl_Double_Box_t ph,
                                              ppl_dimension_type d,
                                              ppl_dimension_type m);
    int ppl_Double_Box_fold_space_dimensions(ppl_Double_Box_t ph,
                                             ppl_dimension_type ds[], size_t n,
                                             ppl_dimension_type d);
    int ppl_Double_Box_map_space_dimensions(ppl_Double_Box_t ph,
                                            ppl_dimension_type maps[], size_t n);
    int ppl_BD_Shape_double_add_space_dimensions_and_embed(ppl_BD_Shape_double_t ph,
                                                           ppl_dimension_type d);
    int ppl_BD_Shape_double_add_space_dimensions_and_project(
        ppl_BD_Shape_double_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_double_remove_space_dimensions(ppl_BD_Shape_double_t ph,
                                                    ppl_dimension_type ds[],
                                                    size_t n);
    int ppl_BD_Shape_double_remove_higher_space_dimensions(ppl_BD_Shape_double_t ph,
                                                           ppl_dimension_type d);
    int ppl_BD_Shape_double_expand_space_dimension(ppl_BD_Shape_double_t ph,
                                                   ppl_dimension_type d,
                                                   ppl_dimension_type m);
    int ppl_BD_Shape_double_fold_space_dimensions(ppl_BD_Shape_double_t ph,
                                                  ppl_dimension_type ds[], size_t n,
                                                  ppl_dimension_type d);
    int ppl_BD_Shape_double_map_space_dimensions(ppl_BD_Shape_double_t ph,
                                                 ppl_dimension_type maps[],
                                                 size_t n);
    int ppl_Octagonal_Shape_double_add_space_dimensions_and_embed(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_double_add_space_dimensions_and_project(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_double_remove_space_dimensions(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Octagonal_Shape_double_remove_higher_space_dimensions(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_double_expand_space_dimension(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Octagonal_Shape_double_fold_space_dimensions(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n,
        ppl_dimension_type d);
    int ppl_Octagonal_Shape_double_map_space_dimensions(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type maps[], size_t n);
    
    VERIFICATION_CRITERIA:

    Check empty and sparse maps, reserved entries, reordered coordinates, duplicate dimension selections, valid codomain maxima and native growth limits.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/polyhedra.c.

  • PPL-SPEC-001560
    7. C generated convergence operations UID: PPL-SPEC-001560 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_BHRZ03_widening_assign_with_tokens(ppl_Polyhedron_t x,
                                                          ppl_const_Polyhedron_t y,
                                                          unsigned *tp);
    int ppl_Polyhedron_H79_widening_assign_with_tokens(ppl_Polyhedron_t x,
                                                       ppl_const_Polyhedron_t y,
                                                       unsigned *tp);
    int ppl_Polyhedron_BHRZ03_widening_assign(ppl_Polyhedron_t x,
                                              ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_H79_widening_assign(ppl_Polyhedron_t x,
                                           ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_widening_assign_with_tokens(ppl_Polyhedron_t x,
                                                   ppl_const_Polyhedron_t y,
                                                   unsigned *tp);
    int ppl_Polyhedron_widening_assign(ppl_Polyhedron_t x,
                                       ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_limited_BHRZ03_extrapolation_assign_with_tokens(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Polyhedron_bounded_BHRZ03_extrapolation_assign_with_tokens(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Polyhedron_limited_H79_extrapolation_assign_with_tokens(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Polyhedron_bounded_H79_extrapolation_assign_with_tokens(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Polyhedron_limited_BHRZ03_extrapolation_assign(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Polyhedron_bounded_BHRZ03_extrapolation_assign(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Polyhedron_limited_H79_extrapolation_assign(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Polyhedron_bounded_H79_extrapolation_assign(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Grid_congruence_widening_assign_with_tokens(ppl_Grid_t x,
                                                        ppl_const_Grid_t y,
                                                        unsigned *tp);
    int ppl_Grid_generator_widening_assign_with_tokens(ppl_Grid_t x,
                                                       ppl_const_Grid_t y,
                                                       unsigned *tp);
    int ppl_Grid_congruence_widening_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_generator_widening_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_widening_assign_with_tokens(ppl_Grid_t x, ppl_const_Grid_t y,
                                             unsigned *tp);
    int ppl_Grid_widening_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_limited_congruence_extrapolation_assign_with_tokens(
        ppl_Grid_t x, ppl_const_Grid_t y, ppl_const_Congruence_System_t cs,
        unsigned *tp);
    int ppl_Grid_limited_generator_extrapolation_assign_with_tokens(
        ppl_Grid_t x, ppl_const_Grid_t y, ppl_const_Congruence_System_t cs,
        unsigned *tp);
    int ppl_Grid_limited_congruence_extrapolation_assign(
        ppl_Grid_t x, ppl_const_Grid_t y, ppl_const_Congruence_System_t cs);
    int ppl_Grid_limited_generator_extrapolation_assign(
        ppl_Grid_t x, ppl_const_Grid_t y, ppl_const_Congruence_System_t cs);
    int ppl_Rational_Box_CC76_widening_assign_with_tokens(
        ppl_Rational_Box_t x, ppl_const_Rational_Box_t y, unsigned *tp);
    int ppl_Rational_Box_CC76_widening_assign(ppl_Rational_Box_t x,
                                              ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_widening_assign_with_tokens(ppl_Rational_Box_t x,
                                                     ppl_const_Rational_Box_t y,
                                                     unsigned *tp);
    int ppl_Rational_Box_widening_assign(ppl_Rational_Box_t x,
                                         ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_limited_CC76_extrapolation_assign_with_tokens(
        ppl_Rational_Box_t x, ppl_const_Rational_Box_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Rational_Box_limited_CC76_extrapolation_assign(
        ppl_Rational_Box_t x, ppl_const_Rational_Box_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Rational_Box_CC76_narrowing_assign(ppl_Rational_Box_t x,
                                               ppl_const_Rational_Box_t y);
    int ppl_BD_Shape_mpz_class_BHMZ05_widening_assign_with_tokens(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpz_class_H79_widening_assign_with_tokens(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpz_class_BHMZ05_widening_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_H79_widening_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_widening_assign_with_tokens(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpz_class_widening_assign(ppl_BD_Shape_mpz_class_t x,
                                               ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_limited_BHMZ05_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_mpz_class_limited_H79_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_mpz_class_limited_CC76_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_mpz_class_limited_BHMZ05_extrapolation_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpz_class_limited_H79_extrapolation_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpz_class_limited_CC76_extrapolation_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpz_class_CC76_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpz_class_CC76_extrapolation_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_CC76_narrowing_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpq_class_BHMZ05_widening_assign_with_tokens(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpq_class_H79_widening_assign_with_tokens(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpq_class_BHMZ05_widening_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_H79_widening_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_widening_assign_with_tokens(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpq_class_widening_assign(ppl_BD_Shape_mpq_class_t x,
                                               ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_limited_BHMZ05_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_mpq_class_limited_H79_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_mpq_class_limited_CC76_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_mpq_class_limited_BHMZ05_extrapolation_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpq_class_limited_H79_extrapolation_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpq_class_limited_CC76_extrapolation_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpq_class_CC76_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpq_class_CC76_extrapolation_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_CC76_narrowing_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpz_class_BHMZ05_widening_assign_with_tokens(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_mpz_class_BHMZ05_widening_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_widening_assign_with_tokens(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_mpz_class_widening_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_limited_BHMZ05_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Octagonal_Shape_mpz_class_limited_CC76_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Octagonal_Shape_mpz_class_limited_BHMZ05_extrapolation_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_limited_CC76_extrapolation_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_CC76_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_mpz_class_CC76_extrapolation_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_CC76_narrowing_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpq_class_BHMZ05_widening_assign_with_tokens(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_mpq_class_BHMZ05_widening_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_widening_assign_with_tokens(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_mpq_class_widening_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_limited_BHMZ05_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Octagonal_Shape_mpq_class_limited_CC76_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Octagonal_Shape_mpq_class_limited_BHMZ05_extrapolation_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_limited_CC76_extrapolation_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_CC76_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_mpq_class_CC76_extrapolation_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_CC76_narrowing_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_widening_assign_with_tokens(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y, unsigned *tp);
    int ppl_Constraints_Product_C_Polyhedron_Grid_widening_assign(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Pointset_Powerset_Rational_Box_BHZ03_CC76_CC76_widening_assign(
        ppl_Pointset_Powerset_Rational_Box_t x,
        ppl_const_Pointset_Powerset_Rational_Box_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_BHZ03_BHRZ03_BHRZ03_widening_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_BHZ03_H79_H79_widening_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_BGP99_BHRZ03_extrapolation_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y, unsigned disjuncts);
    int ppl_Pointset_Powerset_C_Polyhedron_BGP99_H79_extrapolation_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y, unsigned disjuncts);
    int ppl_Pointset_Powerset_NNC_Polyhedron_BHZ03_BHRZ03_BHRZ03_widening_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_BHZ03_H79_H79_widening_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_BGP99_BHRZ03_extrapolation_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y, unsigned disjuncts);
    int ppl_Pointset_Powerset_NNC_Polyhedron_BGP99_H79_extrapolation_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y, unsigned disjuncts);
    int ppl_Double_Box_CC76_widening_assign_with_tokens(ppl_Double_Box_t x,
                                                        ppl_const_Double_Box_t y,
                                                        unsigned *tp);
    int ppl_Double_Box_CC76_widening_assign(ppl_Double_Box_t x,
                                            ppl_const_Double_Box_t y);
    int ppl_Double_Box_widening_assign_with_tokens(ppl_Double_Box_t x,
                                                   ppl_const_Double_Box_t y,
                                                   unsigned *tp);
    int ppl_Double_Box_widening_assign(ppl_Double_Box_t x,
                                       ppl_const_Double_Box_t y);
    int ppl_Double_Box_limited_CC76_extrapolation_assign_with_tokens(
        ppl_Double_Box_t x, ppl_const_Double_Box_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Double_Box_limited_CC76_extrapolation_assign(
        ppl_Double_Box_t x, ppl_const_Double_Box_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Double_Box_CC76_narrowing_assign(ppl_Double_Box_t x,
                                             ppl_const_Double_Box_t y);
    int ppl_BD_Shape_double_BHMZ05_widening_assign_with_tokens(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y, unsigned *tp);
    int ppl_BD_Shape_double_H79_widening_assign_with_tokens(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y, unsigned *tp);
    int ppl_BD_Shape_double_BHMZ05_widening_assign(ppl_BD_Shape_double_t x,
                                                   ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_H79_widening_assign(ppl_BD_Shape_double_t x,
                                                ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_widening_assign_with_tokens(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y, unsigned *tp);
    int ppl_BD_Shape_double_widening_assign(ppl_BD_Shape_double_t x,
                                            ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_limited_BHMZ05_extrapolation_assign_with_tokens(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_double_limited_H79_extrapolation_assign_with_tokens(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_double_limited_CC76_extrapolation_assign_with_tokens(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_double_limited_BHMZ05_extrapolation_assign(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_double_limited_H79_extrapolation_assign(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_double_limited_CC76_extrapolation_assign(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_double_CC76_extrapolation_assign_with_tokens(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y, unsigned *tp);
    int ppl_BD_Shape_double_CC76_extrapolation_assign(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_CC76_narrowing_assign(ppl_BD_Shape_double_t x,
                                                  ppl_const_BD_Shape_double_t y);
    int ppl_Octagonal_Shape_double_BHMZ05_widening_assign_with_tokens(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_double_BHMZ05_widening_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_widening_assign_with_tokens(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_double_widening_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_limited_BHMZ05_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Octagonal_Shape_double_limited_CC76_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Octagonal_Shape_double_limited_BHMZ05_extrapolation_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_double_limited_CC76_extrapolation_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_double_CC76_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_double_CC76_extrapolation_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_CC76_narrowing_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    
    VERIFICATION_CRITERIA:

    Exercise ascending powerset-box histories, finite stabilization, geometric coverage and source preservation, including an isolated powerset selection.

    Compare native and C histories, token effects, stable limits, empty/universe arguments and required inclusion/dimension conditions.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001561
    8. C finite-disjunction ownership and traversal UID: PPL-SPEC-001561 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_new_Pointset_Powerset_C_Polyhedron_iterator(
        ppl_Pointset_Powerset_C_Polyhedron_iterator_t *pit);
    int ppl_new_Pointset_Powerset_C_Polyhedron_const_iterator(
        ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t *pit);
    int ppl_new_Pointset_Powerset_C_Polyhedron_iterator_from_iterator(
        ppl_Pointset_Powerset_C_Polyhedron_iterator_t *px,
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t y);
    int ppl_new_Pointset_Powerset_C_Polyhedron_const_iterator_from_const_iterator(
        ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t *px,
        ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_iterator_begin(
        ppl_Pointset_Powerset_C_Polyhedron_t ps,
        ppl_Pointset_Powerset_C_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_const_iterator_begin(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ps,
        ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_iterator_end(
        ppl_Pointset_Powerset_C_Polyhedron_t ps,
        ppl_Pointset_Powerset_C_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_const_iterator_end(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ps,
        ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_iterator_equal_test(
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_const_iterator_equal_test(
        ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_iterator_increment(
        ppl_Pointset_Powerset_C_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_const_iterator_increment(
        ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_iterator_decrement(
        ppl_Pointset_Powerset_C_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_const_iterator_decrement(
        ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_iterator_dereference(
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t ps,
        ppl_const_Polyhedron_t *d);
    int ppl_Pointset_Powerset_C_Polyhedron_const_iterator_dereference(
        ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t ps,
        ppl_const_Polyhedron_t *d);
    int ppl_delete_Pointset_Powerset_C_Polyhedron_iterator(
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t psit);
    int ppl_delete_Pointset_Powerset_C_Polyhedron_const_iterator(
        ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_add_disjunct(
        ppl_Pointset_Powerset_C_Polyhedron_t ps, ppl_const_Polyhedron_t d);
    int ppl_Pointset_Powerset_C_Polyhedron_drop_disjunct(
        ppl_Pointset_Powerset_C_Polyhedron_t ps,
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t cit,
        ppl_Pointset_Powerset_C_Polyhedron_iterator_t it);
    int ppl_Pointset_Powerset_C_Polyhedron_drop_disjuncts(
        ppl_Pointset_Powerset_C_Polyhedron_t ps,
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t first,
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t last);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_iterator(
        ppl_Pointset_Powerset_NNC_Polyhedron_iterator_t *pit);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_const_iterator(
        ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_t *pit);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_iterator_from_iterator(
        ppl_Pointset_Powerset_NNC_Polyhedron_iterator_t *px,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t y);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_const_iterator_from_const_iterator(
        ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_t *px,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_const_iterator_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_iterator_begin(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ps,
        ppl_Pointset_Powerset_NNC_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_begin(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps,
        ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_iterator_end(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ps,
        ppl_Pointset_Powerset_NNC_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_end(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps,
        ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_iterator_equal_test(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_equal_test(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_const_iterator_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_const_iterator_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_iterator_increment(
        ppl_Pointset_Powerset_NNC_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_increment(
        ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_iterator_decrement(
        ppl_Pointset_Powerset_NNC_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_decrement(
        ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_iterator_dereference(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t ps,
        ppl_const_Polyhedron_t *d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_dereference(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_const_iterator_t ps,
        ppl_const_Polyhedron_t *d);
    int ppl_delete_Pointset_Powerset_NNC_Polyhedron_iterator(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t psit);
    int ppl_delete_Pointset_Powerset_NNC_Polyhedron_const_iterator(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_disjunct(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ps, ppl_const_Polyhedron_t d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_drop_disjunct(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ps,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t cit,
        ppl_Pointset_Powerset_NNC_Polyhedron_iterator_t it);
    int ppl_Pointset_Powerset_NNC_Polyhedron_drop_disjuncts(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ps,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t first,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t last);
    
    VERIFICATION_CRITERIA:

    Check independent added values, borrowed traversal, empty/nonempty begin/end, copy/assignment and removal/invalidation histories.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/powersets.c.

  • PPL-SPEC-001562
    9. C partition result ownership UID: PPL-SPEC-001562 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_linear_partition(
        ppl_const_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_Polyhedron_t *p_inters, ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_Rational_Box_linear_partition(
        ppl_const_Rational_Box_t x, ppl_const_Rational_Box_t y,
        ppl_Rational_Box_t *p_inters,
        ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_BD_Shape_mpz_class_linear_partition(
        ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y,
        ppl_BD_Shape_mpz_class_t *p_inters,
        ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_BD_Shape_mpq_class_linear_partition(
        ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y,
        ppl_BD_Shape_mpq_class_t *p_inters,
        ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_Octagonal_Shape_mpz_class_linear_partition(
        ppl_const_Octagonal_Shape_mpz_class_t x,
        ppl_const_Octagonal_Shape_mpz_class_t y,
        ppl_Octagonal_Shape_mpz_class_t *p_inters,
        ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_Octagonal_Shape_mpq_class_linear_partition(
        ppl_const_Octagonal_Shape_mpq_class_t x,
        ppl_const_Octagonal_Shape_mpq_class_t y,
        ppl_Octagonal_Shape_mpq_class_t *p_inters,
        ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_Double_Box_linear_partition(
        ppl_const_Double_Box_t x, ppl_const_Double_Box_t y,
        ppl_Double_Box_t *p_inters, ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_BD_Shape_double_linear_partition(
        ppl_const_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y,
        ppl_BD_Shape_double_t *p_inters,
        ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_Octagonal_Shape_double_linear_partition(
        ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        ppl_Octagonal_Shape_double_t *p_inters,
        ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    
    VERIFICATION_CRITERIA:

    Check literal partitions and their union/disjointness guarantees, indicator meaning, independent destruction and failure at each acquisition frontier.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/partitions.c.

  • PPL-SPEC-001563
    10. C affine-ranking outcomes and coefficient spaces UID: PPL-SPEC-001563 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_termination_test_MS_C_Polyhedron(ppl_const_Polyhedron_t pset);
    int ppl_termination_test_PR_C_Polyhedron(ppl_const_Polyhedron_t pset);
    int ppl_termination_test_MS_NNC_Polyhedron(ppl_const_Polyhedron_t pset);
    int ppl_termination_test_PR_NNC_Polyhedron(ppl_const_Polyhedron_t pset);
    int ppl_one_affine_ranking_function_MS_C_Polyhedron(ppl_const_Polyhedron_t pset,
                                                        ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_C_Polyhedron(ppl_const_Polyhedron_t pset,
                                                        ppl_Generator_t point);
    int ppl_one_affine_ranking_function_MS_NNC_Polyhedron(
        ppl_const_Polyhedron_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_NNC_Polyhedron(
        ppl_const_Polyhedron_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_C_Polyhedron(
        ppl_const_Polyhedron_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_C_Polyhedron(
        ppl_const_Polyhedron_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_MS_NNC_Polyhedron(
        ppl_const_Polyhedron_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_NNC_Polyhedron(
        ppl_const_Polyhedron_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_C_Polyhedron_2(ppl_const_Polyhedron_t pset_before,
                                               ppl_const_Polyhedron_t pset_after);
    int ppl_termination_test_PR_C_Polyhedron_2(ppl_const_Polyhedron_t pset_before,
                                               ppl_const_Polyhedron_t pset_after);
    int ppl_termination_test_MS_NNC_Polyhedron_2(ppl_const_Polyhedron_t pset_before,
                                                 ppl_const_Polyhedron_t pset_after);
    int ppl_termination_test_PR_NNC_Polyhedron_2(ppl_const_Polyhedron_t pset_before,
                                                 ppl_const_Polyhedron_t pset_after);
    int ppl_one_affine_ranking_function_MS_C_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_C_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Generator_t point);
    int ppl_one_affine_ranking_function_MS_NNC_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_NNC_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_C_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_C_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_MS_NNC_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_NNC_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Grid(ppl_const_Grid_t pset);
    int ppl_termination_test_PR_Grid(ppl_const_Grid_t pset);
    int ppl_one_affine_ranking_function_MS_Grid(ppl_const_Grid_t pset,
                                                ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Grid(ppl_const_Grid_t pset,
                                                ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Grid(ppl_const_Grid_t pset,
                                                 ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Grid(ppl_const_Grid_t pset,
                                                 ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Grid_2(ppl_const_Grid_t pset_before,
                                       ppl_const_Grid_t pset_after);
    int ppl_termination_test_PR_Grid_2(ppl_const_Grid_t pset_before,
                                       ppl_const_Grid_t pset_after);
    int ppl_one_affine_ranking_function_MS_Grid_2(ppl_const_Grid_t pset_before,
                                                  ppl_const_Grid_t pset_after,
                                                  ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Grid_2(ppl_const_Grid_t pset_before,
                                                  ppl_const_Grid_t pset_after,
                                                  ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Grid_2(ppl_const_Grid_t pset_before,
                                                   ppl_const_Grid_t pset_after,
                                                   ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Grid_2(ppl_const_Grid_t pset_before,
                                                   ppl_const_Grid_t pset_after,
                                                   ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Rational_Box(ppl_const_Rational_Box_t pset);
    int ppl_termination_test_PR_Rational_Box(ppl_const_Rational_Box_t pset);
    int ppl_one_affine_ranking_function_MS_Rational_Box(
        ppl_const_Rational_Box_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Rational_Box(
        ppl_const_Rational_Box_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Rational_Box(
        ppl_const_Rational_Box_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Rational_Box(
        ppl_const_Rational_Box_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Rational_Box_2(ppl_const_Rational_Box_t pset_before,
                                               ppl_const_Rational_Box_t pset_after);
    int ppl_termination_test_PR_Rational_Box_2(ppl_const_Rational_Box_t pset_before,
                                               ppl_const_Rational_Box_t pset_after);
    int ppl_one_affine_ranking_function_MS_Rational_Box_2(
        ppl_const_Rational_Box_t pset_before, ppl_const_Rational_Box_t pset_after,
        ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Rational_Box_2(
        ppl_const_Rational_Box_t pset_before, ppl_const_Rational_Box_t pset_after,
        ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Rational_Box_2(
        ppl_const_Rational_Box_t pset_before, ppl_const_Rational_Box_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Rational_Box_2(
        ppl_const_Rational_Box_t pset_before, ppl_const_Rational_Box_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t pset);
    int ppl_termination_test_PR_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t pset);
    int ppl_one_affine_ranking_function_MS_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_BD_Shape_mpz_class_2(
        ppl_const_BD_Shape_mpz_class_t pset_before,
        ppl_const_BD_Shape_mpz_class_t pset_after);
    int ppl_termination_test_PR_BD_Shape_mpz_class_2(
        ppl_const_BD_Shape_mpz_class_t pset_before,
        ppl_const_BD_Shape_mpz_class_t pset_after);
    int ppl_one_affine_ranking_function_MS_BD_Shape_mpz_class_2(
        ppl_const_BD_Shape_mpz_class_t pset_before,
        ppl_const_BD_Shape_mpz_class_t pset_after, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_BD_Shape_mpz_class_2(
        ppl_const_BD_Shape_mpz_class_t pset_before,
        ppl_const_BD_Shape_mpz_class_t pset_after, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_BD_Shape_mpz_class_2(
        ppl_const_BD_Shape_mpz_class_t pset_before,
        ppl_const_BD_Shape_mpz_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_BD_Shape_mpz_class_2(
        ppl_const_BD_Shape_mpz_class_t pset_before,
        ppl_const_BD_Shape_mpz_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t pset);
    int ppl_termination_test_PR_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t pset);
    int ppl_one_affine_ranking_function_MS_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_BD_Shape_mpq_class_2(
        ppl_const_BD_Shape_mpq_class_t pset_before,
        ppl_const_BD_Shape_mpq_class_t pset_after);
    int ppl_termination_test_PR_BD_Shape_mpq_class_2(
        ppl_const_BD_Shape_mpq_class_t pset_before,
        ppl_const_BD_Shape_mpq_class_t pset_after);
    int ppl_one_affine_ranking_function_MS_BD_Shape_mpq_class_2(
        ppl_const_BD_Shape_mpq_class_t pset_before,
        ppl_const_BD_Shape_mpq_class_t pset_after, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_BD_Shape_mpq_class_2(
        ppl_const_BD_Shape_mpq_class_t pset_before,
        ppl_const_BD_Shape_mpq_class_t pset_after, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_BD_Shape_mpq_class_2(
        ppl_const_BD_Shape_mpq_class_t pset_before,
        ppl_const_BD_Shape_mpq_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_BD_Shape_mpq_class_2(
        ppl_const_BD_Shape_mpq_class_t pset_before,
        ppl_const_BD_Shape_mpq_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t pset);
    int ppl_termination_test_PR_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t pset);
    int ppl_one_affine_ranking_function_MS_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Octagonal_Shape_mpz_class_2(
        ppl_const_Octagonal_Shape_mpz_class_t pset_before,
        ppl_const_Octagonal_Shape_mpz_class_t pset_after);
    int ppl_termination_test_PR_Octagonal_Shape_mpz_class_2(
        ppl_const_Octagonal_Shape_mpz_class_t pset_before,
        ppl_const_Octagonal_Shape_mpz_class_t pset_after);
    int ppl_one_affine_ranking_function_MS_Octagonal_Shape_mpz_class_2(
        ppl_const_Octagonal_Shape_mpz_class_t pset_before,
        ppl_const_Octagonal_Shape_mpz_class_t pset_after, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Octagonal_Shape_mpz_class_2(
        ppl_const_Octagonal_Shape_mpz_class_t pset_before,
        ppl_const_Octagonal_Shape_mpz_class_t pset_after, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Octagonal_Shape_mpz_class_2(
        ppl_const_Octagonal_Shape_mpz_class_t pset_before,
        ppl_const_Octagonal_Shape_mpz_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Octagonal_Shape_mpz_class_2(
        ppl_const_Octagonal_Shape_mpz_class_t pset_before,
        ppl_const_Octagonal_Shape_mpz_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t pset);
    int ppl_termination_test_PR_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t pset);
    int ppl_one_affine_ranking_function_MS_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Octagonal_Shape_mpq_class_2(
        ppl_const_Octagonal_Shape_mpq_class_t pset_before,
        ppl_const_Octagonal_Shape_mpq_class_t pset_after);
    int ppl_termination_test_PR_Octagonal_Shape_mpq_class_2(
        ppl_const_Octagonal_Shape_mpq_class_t pset_before,
        ppl_const_Octagonal_Shape_mpq_class_t pset_after);
    int ppl_one_affine_ranking_function_MS_Octagonal_Shape_mpq_class_2(
        ppl_const_Octagonal_Shape_mpq_class_t pset_before,
        ppl_const_Octagonal_Shape_mpq_class_t pset_after, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Octagonal_Shape_mpq_class_2(
        ppl_const_Octagonal_Shape_mpq_class_t pset_before,
        ppl_const_Octagonal_Shape_mpq_class_t pset_after, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Octagonal_Shape_mpq_class_2(
        ppl_const_Octagonal_Shape_mpq_class_t pset_before,
        ppl_const_Octagonal_Shape_mpq_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Octagonal_Shape_mpq_class_2(
        ppl_const_Octagonal_Shape_mpq_class_t pset_before,
        ppl_const_Octagonal_Shape_mpq_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Double_Box(ppl_const_Double_Box_t pset);
    int ppl_termination_test_PR_Double_Box(ppl_const_Double_Box_t pset);
    int ppl_one_affine_ranking_function_MS_Double_Box(ppl_const_Double_Box_t pset,
                                                      ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Double_Box(ppl_const_Double_Box_t pset,
                                                      ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Double_Box(ppl_const_Double_Box_t pset,
                                                       ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Double_Box(ppl_const_Double_Box_t pset,
                                                       ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Double_Box_2(ppl_const_Double_Box_t pset_before,
                                             ppl_const_Double_Box_t pset_after);
    int ppl_termination_test_PR_Double_Box_2(ppl_const_Double_Box_t pset_before,
                                             ppl_const_Double_Box_t pset_after);
    int ppl_one_affine_ranking_function_MS_Double_Box_2(
        ppl_const_Double_Box_t pset_before, ppl_const_Double_Box_t pset_after,
        ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Double_Box_2(
        ppl_const_Double_Box_t pset_before, ppl_const_Double_Box_t pset_after,
        ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Double_Box_2(
        ppl_const_Double_Box_t pset_before, ppl_const_Double_Box_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Double_Box_2(
        ppl_const_Double_Box_t pset_before, ppl_const_Double_Box_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_BD_Shape_double(ppl_const_BD_Shape_double_t pset);
    int ppl_termination_test_PR_BD_Shape_double(ppl_const_BD_Shape_double_t pset);
    int ppl_one_affine_ranking_function_MS_BD_Shape_double(
        ppl_const_BD_Shape_double_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_BD_Shape_double(
        ppl_const_BD_Shape_double_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_BD_Shape_double(
        ppl_const_BD_Shape_double_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_BD_Shape_double(
        ppl_const_BD_Shape_double_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_BD_Shape_double_2(
        ppl_const_BD_Shape_double_t pset_before,
        ppl_const_BD_Shape_double_t pset_after);
    int ppl_termination_test_PR_BD_Shape_double_2(
        ppl_const_BD_Shape_double_t pset_before,
        ppl_const_BD_Shape_double_t pset_after);
    int ppl_one_affine_ranking_function_MS_BD_Shape_double_2(
        ppl_const_BD_Shape_double_t pset_before,
        ppl_const_BD_Shape_double_t pset_after, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_BD_Shape_double_2(
        ppl_const_BD_Shape_double_t pset_before,
        ppl_const_BD_Shape_double_t pset_after, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_BD_Shape_double_2(
        ppl_const_BD_Shape_double_t pset_before,
        ppl_const_BD_Shape_double_t pset_after, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_BD_Shape_double_2(
        ppl_const_BD_Shape_double_t pset_before,
        ppl_const_BD_Shape_double_t pset_after, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t pset);
    int ppl_termination_test_PR_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t pset);
    int ppl_one_affine_ranking_function_MS_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Octagonal_Shape_double_2(
        ppl_const_Octagonal_Shape_double_t pset_before,
        ppl_const_Octagonal_Shape_double_t pset_after);
    int ppl_termination_test_PR_Octagonal_Shape_double_2(
        ppl_const_Octagonal_Shape_double_t pset_before,
        ppl_const_Octagonal_Shape_double_t pset_after);
    int ppl_one_affine_ranking_function_MS_Octagonal_Shape_double_2(
        ppl_const_Octagonal_Shape_double_t pset_before,
        ppl_const_Octagonal_Shape_double_t pset_after, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Octagonal_Shape_double_2(
        ppl_const_Octagonal_Shape_double_t pset_before,
        ppl_const_Octagonal_Shape_double_t pset_after, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Octagonal_Shape_double_2(
        ppl_const_Octagonal_Shape_double_t pset_before,
        ppl_const_Octagonal_Shape_double_t pset_after, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Octagonal_Shape_double_2(
        ppl_const_Octagonal_Shape_double_t pset_before,
        ppl_const_Octagonal_Shape_double_t pset_after, ppl_Polyhedron_t ph);
    
    VERIFICATION_CRITERIA:

    Compare full ranking spaces and independently checked witnesses, vacuous paired inputs, strict boundaries, unsupported dimensions and selected-domain generation.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001564
    11. C bounded integer wrapping UID: PPL-SPEC-001564 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_wrap_assign(
        ppl_Polyhedron_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_Grid_wrap_assign(ppl_Grid_t ph, ppl_dimension_type ds[], size_t n,
                             enum ppl_enum_Bounded_Integer_Type_Width w,
                             enum ppl_enum_Bounded_Integer_Type_Representation r,
                             enum ppl_enum_Bounded_Integer_Type_Overflow o,
                             const ppl_const_Constraint_System_t *pcs,
                             unsigned complexity_threshold, int wrap_individually);
    int ppl_Rational_Box_wrap_assign(
        ppl_Rational_Box_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_BD_Shape_mpz_class_wrap_assign(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_BD_Shape_mpq_class_wrap_assign(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_Octagonal_Shape_mpz_class_wrap_assign(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_Octagonal_Shape_mpq_class_wrap_assign(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_Double_Box_wrap_assign(
        ppl_Double_Box_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_BD_Shape_double_wrap_assign(
        ppl_BD_Shape_double_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_Octagonal_Shape_double_wrap_assign(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    
    VERIFICATION_CRITERIA:

    Check width/sign/overflow combinations, exact modular witnesses, absent/present guards, supported integer-coordinate selections and native soundness conditions.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001539
    1. C mixed integer problem values UID: PPL-SPEC-001539 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C solver objects require independent native lifetimes.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_MIP_Problem_from_space_dimension(ppl_MIP_Problem_t *pmip,
                                                 ppl_dimension_type d);
    int ppl_new_MIP_Problem(ppl_MIP_Problem_t *pmip, ppl_dimension_type d,
                            ppl_const_Constraint_System_t cs,
                            ppl_const_Linear_Expression_t le, int m);
    int ppl_new_MIP_Problem_from_MIP_Problem(ppl_MIP_Problem_t *pmip,
                                             ppl_const_MIP_Problem_t mip);
    int ppl_assign_MIP_Problem_from_MIP_Problem(ppl_MIP_Problem_t dst,
                                                ppl_const_MIP_Problem_t src);
    int ppl_delete_MIP_Problem(ppl_const_MIP_Problem_t mip);
    
    VERIFICATION_CRITERIA:

    Check each constructor, real/integer feasibility distinctions, source mutation, owned copy histories and construction failure cleanup.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001540
    2. C mixed integer descriptors and borrowing UID: PPL-SPEC-001540 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Canonical admitted descriptors must remain distinct from the transformed simplex representation. Integer-supported strict rows use the closed storage described by 🔗 1. Integer-supported strict MIP admission.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_MIP_Problem_space_dimension(ppl_const_MIP_Problem_t mip,
                                        ppl_dimension_type *m);
    int ppl_MIP_Problem_number_of_integer_space_dimensions(
        ppl_const_MIP_Problem_t mip, ppl_dimension_type *m);
    int ppl_MIP_Problem_integer_space_dimensions(ppl_const_MIP_Problem_t mip,
                                                 ppl_dimension_type ds[]);
    int ppl_MIP_Problem_number_of_constraints(ppl_const_MIP_Problem_t mip,
                                              ppl_dimension_type *m);
    int ppl_MIP_Problem_constraint_at_index(ppl_const_MIP_Problem_t mip,
                                            ppl_dimension_type i,
                                            ppl_const_Constraint_t *pc);
    int ppl_MIP_Problem_objective_function(ppl_const_MIP_Problem_t mip,
                                           ppl_const_Linear_Expression_t *ple);
    int ppl_MIP_Problem_optimization_mode(ppl_const_MIP_Problem_t mip);
    
    VERIFICATION_CRITERIA:

    Compare exact descriptors and index lists after additions, copy and solving; exercise first/last/rejected indices and valid borrowed inspection.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001541
    3. C mixed integer incremental updates UID: PPL-SPEC-001541 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Incremental C solving must agree with rebuilding the same native model.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_MIP_Problem_clear(ppl_MIP_Problem_t mip);
    int ppl_MIP_Problem_add_space_dimensions_and_embed(ppl_MIP_Problem_t mip,
                                                       ppl_dimension_type d);
    int ppl_MIP_Problem_add_to_integer_space_dimensions(ppl_MIP_Problem_t mip,
                                                        ppl_dimension_type ds[],
                                                        size_t n);
    int ppl_MIP_Problem_add_constraint(ppl_MIP_Problem_t mip,
                                       ppl_const_Constraint_t c);
    int ppl_MIP_Problem_add_constraints(ppl_MIP_Problem_t mip,
                                        ppl_const_Constraint_System_t cs);
    int ppl_MIP_Problem_set_objective_function(ppl_MIP_Problem_t mip,
                                               ppl_const_Linear_Expression_t le);
    int ppl_MIP_Problem_set_optimization_mode(ppl_MIP_Problem_t mip, int mode);
    
    VERIFICATION_CRITERIA:

    Compare independent fresh models after each update, including new integer coordinates, free dimensions, contradictory cuts and objective reversal.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001542
    4. C mixed integer solution outcomes and witnesses UID: PPL-SPEC-001542 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A borrowed witness and a status have distinct ownership and mathematical roles.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_is_mixed_integer_satisfiable(ppl_dimension_type dimension,
                                         ppl_const_Constraint_System_t cs,
                                         const ppl_dimension_type integers[],
                                         size_t n);
    int ppl_MIP_Problem_is_satisfiable(ppl_const_MIP_Problem_t mip);
    int ppl_MIP_Problem_solve(ppl_const_MIP_Problem_t mip);
    int ppl_MIP_Problem_evaluate_objective_function(ppl_const_MIP_Problem_t mip,
                                                    ppl_const_Generator_t g,
                                                    ppl_Coefficient_t num,
                                                    ppl_Coefficient_t den);
    int ppl_MIP_Problem_feasible_point(ppl_const_MIP_Problem_t mip,
                                       ppl_const_Generator_t *pg);
    int ppl_MIP_Problem_optimizing_point(ppl_const_MIP_Problem_t mip,
                                         ppl_const_Generator_t *pg);
    int ppl_MIP_Problem_optimal_value(ppl_const_MIP_Problem_t mip,
                                      ppl_Coefficient_t num, ppl_Coefficient_t den);
    
    VERIFICATION_CRITERIA:

    Check all three solve outcomes, exact rational objectives, mixed integrality, witness satisfaction, failure outputs and repeated/incremental solving.

    SOURCE:

    interfaces/interfaced_polyhedra.hh; interfaces/C/tests/newoperations.c; interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001543
    5. C mixed integer controls, validity and memory UID: PPL-SPEC-001543 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Heuristic controls and storage estimates must not weaken numerical guarantees.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_MIP_Problem_OK(ppl_const_MIP_Problem_t mip);
    int ppl_MIP_Problem_get_control_parameter(ppl_const_MIP_Problem_t mip,
                                              int name);
    int ppl_MIP_Problem_set_control_parameter(ppl_MIP_Problem_t mip, int value);
    int ppl_MIP_Problem_total_memory_in_bytes(ppl_const_MIP_Problem_t mip,
                                              size_t *sz);
    int ppl_MIP_Problem_external_memory_in_bytes(ppl_const_MIP_Problem_t mip,
                                                 size_t *sz);
    
    VERIFICATION_CRITERIA:

    Exercise supported pricing values against independently known optima and inspect validity and memory across copy, pending and solved states.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001520
    2. C textual output and allocated buffers UID: PPL-SPEC-001520 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A C client needs explicit buffer ownership and observable write failures.

    INTERFACE:

    Public header: <ppl_c.h>.

    /* T ranges over exposed C object types. */
    int ppl_io_print_T(ppl_const_T_t x);
    int ppl_io_fprint_T(FILE *file, ppl_const_T_t x);
    int ppl_io_asprint_T(char **result, ppl_const_T_t x);
    
    VERIFICATION_CRITERIA:

    Compare buffered and file output, exercise callback and writable-stream failures, inject allocation failure and release every successful buffer.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common_defs.hh; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/cerrorsspec1.cc.

  • PPL-SPEC-001521
    3. C line wrapping and pointer failure result UID: PPL-SPEC-001521 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    The pointer-returning utility must still contain failures at the C boundary.

    INTERFACE:

    Public header: <ppl_c.h>.

    char *ppl_io_wrap_string(const char *src, unsigned indent_depth,
                             unsigned preferred_first_line_length,
                             unsigned preferred_line_length);
    
    VERIFICATION_CRITERIA:

    Compare exact text for empty input, commas, newlines, indentation and long words; inject string construction and final-buffer allocation failures.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/cerrorsspec1.cc.

  • PPL-SPEC-001522
    4. C reloadable FILE representations UID: PPL-SPEC-001522 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C serialization must expose the native parser outcome without changing ownership.

    INTERFACE:

    Public header: <ppl_c.h>.

    /* T ranges over types exposing the native operations. */
    int ppl_T_ascii_dump(ppl_const_T_t x, FILE *file);
    int ppl_T_ascii_load(ppl_T_t x, FILE *file);
    
    VERIFICATION_CRITERIA:

    Round-trip descriptor, system, optimizer and generated-domain values through files, test malformed and truncated input and populated destinations, and verify destruction after rejected loads.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common_defs.hh; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/cerrorsspec1.cc.

  • PPL-SPEC-001544
    1. C parametric problem values and ownership UID: PPL-SPEC-001544 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A copied parametric problem owns another tree rather than borrowing the source tree.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_PIP_Problem_from_space_dimension(ppl_PIP_Problem_t *ppip,
                                                 ppl_dimension_type d);
    int ppl_new_PIP_Problem_from_PIP_Problem(ppl_PIP_Problem_t *ppip,
                                             ppl_const_PIP_Problem_t pip);
    int ppl_assign_PIP_Problem_from_PIP_Problem(ppl_PIP_Problem_t dst,
                                                ppl_const_PIP_Problem_t src);
    int ppl_new_PIP_Problem_from_constraints(
        ppl_PIP_Problem_t *ppip, ppl_dimension_type d,
        ppl_Constraint_System_const_iterator_t first,
        ppl_Constraint_System_const_iterator_t last, size_t n,
        ppl_dimension_type ds[]);
    int ppl_delete_PIP_Problem(ppl_const_PIP_Problem_t pip);
    
    VERIFICATION_CRITERIA:

    Check zero/nonzero dimensions, parameter selection, copied solved/pending problems, independent destruction and rejected construction.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001545
    2. C parametric descriptors and parameter lists UID: PPL-SPEC-001545 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Clients require original parameter identities and constraints independent of solver transformations.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_PIP_Problem_space_dimension(ppl_const_PIP_Problem_t pip,
                                        ppl_dimension_type *m);
    int ppl_PIP_Problem_number_of_parameter_space_dimensions(
        ppl_const_PIP_Problem_t pip, ppl_dimension_type *m);
    int ppl_PIP_Problem_parameter_space_dimensions(ppl_const_PIP_Problem_t pip,
                                                   ppl_dimension_type ds[]);
    int ppl_PIP_Problem_number_of_constraints(ppl_const_PIP_Problem_t pip,
                                              ppl_dimension_type *m);
    int ppl_PIP_Problem_constraint_at_index(ppl_const_PIP_Problem_t pip,
                                            ppl_dimension_type i,
                                            ppl_const_Constraint_t *pc);
    
    VERIFICATION_CRITERIA:

    Compare parameter arrays, original constraint order and borrowed values before and after solving and dimension changes.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001546
    3. C parametric incremental updates UID: PPL-SPEC-001546 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Parameter identity and dimension admission govern subsequent piecewise solutions.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_PIP_Problem_clear(ppl_PIP_Problem_t pip);
    int ppl_PIP_Problem_add_space_dimensions_and_embed(
        ppl_PIP_Problem_t pip, ppl_dimension_type pip_vars,
        ppl_dimension_type pip_params);
    int ppl_PIP_Problem_add_to_parameter_space_dimensions(ppl_PIP_Problem_t pip,
                                                          ppl_dimension_type ds[],
                                                          size_t n);
    int ppl_PIP_Problem_add_constraint(ppl_PIP_Problem_t pip,
                                       ppl_const_Constraint_t c);
    int ppl_PIP_Problem_add_constraints(ppl_PIP_Problem_t pip,
                                        ppl_const_Constraint_System_t cs);
    
    VERIFICATION_CRITERIA:

    Compare fresh and incremental models, floor-term renumbering, duplicate selections, dimension overflow and incompatible empty systems.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001547
    4. C parametric outcomes and borrowed solution trees UID: PPL-SPEC-001547 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A null solution root represents a mathematical outcome and is distinct from a negative failure status.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_PIP_Problem_is_satisfiable(ppl_const_PIP_Problem_t pip);
    int ppl_PIP_Problem_solve(ppl_const_PIP_Problem_t pip);
    int ppl_PIP_Problem_solution(ppl_const_PIP_Problem_t pip,
                                 ppl_const_PIP_Tree_Node_t *pip_tree);
    int ppl_PIP_Problem_optimizing_solution(ppl_const_PIP_Problem_t pip,
                                            ppl_const_PIP_Tree_Node_t *pip_tree);
    
    VERIFICATION_CRITERIA:

    Evaluate returned trees independently over bounded parameter contexts, including infeasible regions, floor terms, copies and incremental changes.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001548
    5. C parametric controls, big parameter and memory UID: PPL-SPEC-001548 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C controls must preserve context and asymptotic meaning.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_PIP_Problem_get_big_parameter_dimension(ppl_const_PIP_Problem_t pip,
                                                    ppl_dimension_type *pd);
    int ppl_PIP_Problem_total_memory_in_bytes(ppl_const_PIP_Problem_t pip,
                                              size_t *sz);
    int ppl_PIP_Problem_external_memory_in_bytes(ppl_const_PIP_Problem_t pip,
                                                 size_t *sz);
    int ppl_PIP_Problem_OK(ppl_const_PIP_Problem_t pip);
    int ppl_PIP_Problem_set_big_parameter_dimension(ppl_PIP_Problem_t pip,
                                                    ppl_dimension_type d);
    int ppl_PIP_Problem_get_control_parameter(ppl_const_PIP_Problem_t pip,
                                              int name);
    int ppl_PIP_Problem_set_control_parameter(ppl_PIP_Problem_t pip, int value);
    
    VERIFICATION_CRITERIA:

    Check all supported control choices against literal piecewise solutions, big-parameter histories, invalid native requests and memory/validity queries.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001549
    6. C solution-tree kind, guards, children and values UID: PPL-SPEC-001549 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Safe traversal depends on distinguishing successful absent nodes from errors.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_PIP_Tree_Node_as_solution(ppl_const_PIP_Tree_Node_t spip_tree,
                                      ppl_const_PIP_Solution_Node_t *dpip_tree);
    int ppl_PIP_Tree_Node_as_decision(ppl_const_PIP_Tree_Node_t spip_tree,
                                      ppl_const_PIP_Decision_Node_t *dpip_tree);
    int ppl_PIP_Tree_Node_get_constraints(ppl_const_PIP_Tree_Node_t pip_tree,
                                          ppl_const_Constraint_System_t *pcs);
    int ppl_PIP_Tree_Node_OK(ppl_const_PIP_Tree_Node_t pip);
    int ppl_PIP_Solution_Node_OK(ppl_const_PIP_Solution_Node_t pip_sol);
    int ppl_PIP_Solution_Node_get_parametric_values(
        ppl_const_PIP_Solution_Node_t pip_sol, ppl_dimension_type var,
        ppl_const_Linear_Expression_t *le);
    int ppl_PIP_Decision_Node_OK(ppl_const_PIP_Decision_Node_t pip_dec);
    int ppl_PIP_Decision_Node_get_child_node(ppl_const_PIP_Decision_Node_t pip_dec,
                                             int b,
                                             ppl_const_PIP_Tree_Node_t *pip_tree);
    
    VERIFICATION_CRITERIA:

    Traverse both branch kinds and absent branches, evaluate guards and leaf expressions over admitted contexts, and check invalid coordinate queries and unchanged failure outputs.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001550
    7. C artificial-parameter expression and coefficient queries UID: PPL-SPEC-001550 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    The denominator is separate from an inherited affine numerator.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_Artificial_Parameter_get_Linear_Expression(
        ppl_const_Artificial_Parameter_t ap, ppl_Linear_Expression_t le);
    int ppl_Artificial_Parameter_coefficient(ppl_const_Artificial_Parameter_t ap,
                                             ppl_dimension_type var,
                                             ppl_Coefficient_t n);
    int ppl_Artificial_Parameter_inhomogeneous_term(
        ppl_const_Artificial_Parameter_t ap, ppl_Coefficient_t n);
    int ppl_Artificial_Parameter_denominator(ppl_const_Artificial_Parameter_t ap,
                                             ppl_Coefficient_t n);
    
    VERIFICATION_CRITERIA:

    Check copied numerator dimensions and exact coefficients, independence after tree destruction, source preservation, positive denominators and independent floor evaluation for generated parameters.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001551
    8. C artificial-parameter sequence traversal UID: PPL-SPEC-001551 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Local artificial parameters have an order and a lifetime inherited from the solution tree.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_PIP_Tree_Node_number_of_artificials(ppl_const_PIP_Tree_Node_t pip_tree,
                                                ppl_dimension_type *m);
    int ppl_PIP_Tree_Node_begin(
        ppl_const_PIP_Tree_Node_t pip_tree,
        ppl_Artificial_Parameter_Sequence_const_iterator_t pit);
    int ppl_PIP_Tree_Node_end(
        ppl_const_PIP_Tree_Node_t pip_tree,
        ppl_Artificial_Parameter_Sequence_const_iterator_t pit);
    int ppl_new_Artificial_Parameter_Sequence_const_iterator(
        ppl_Artificial_Parameter_Sequence_const_iterator_t *papit);
    int ppl_new_Artificial_Parameter_Sequence_const_iterator_from_Artificial_Parameter_Sequence_const_iterator(
        ppl_Artificial_Parameter_Sequence_const_iterator_t *papit,
        ppl_const_Artificial_Parameter_Sequence_const_iterator_t apit);
    int ppl_assign_Artificial_Parameter_Sequence_const_iterator_from_Artificial_Parameter_Sequence_const_iterator(
        ppl_Artificial_Parameter_Sequence_const_iterator_t dst,
        ppl_const_Artificial_Parameter_Sequence_const_iterator_t src);
    int ppl_delete_Artificial_Parameter_Sequence_const_iterator(
        ppl_const_Artificial_Parameter_Sequence_const_iterator_t apit);
    int ppl_Artificial_Parameter_Sequence_const_iterator_dereference(
        ppl_const_Artificial_Parameter_Sequence_const_iterator_t apit,
        ppl_const_Artificial_Parameter_t *pap);
    int ppl_Artificial_Parameter_Sequence_const_iterator_increment(
        ppl_Artificial_Parameter_Sequence_const_iterator_t apit);
    int ppl_Artificial_Parameter_Sequence_const_iterator_equal_test(
        ppl_const_Artificial_Parameter_Sequence_const_iterator_t x,
        ppl_const_Artificial_Parameter_Sequence_const_iterator_t y);
    
    VERIFICATION_CRITERIA:

    Traverse empty/nonempty local sequences, compare/copy/assign iterator positions and inspect borrowed parameters without invalidating the tree.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001534
    1. C constraint systems UID: PPL-SPEC-001534 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Systems own elements, while traversal only borrows them.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Constraint_System(ppl_Constraint_System_t *pcs);
    int ppl_new_Constraint_System_zero_dim_empty(ppl_Constraint_System_t *pcs);
    int ppl_new_Constraint_System_from_Constraint(ppl_Constraint_System_t *pcs,
                                                  ppl_const_Constraint_t c);
    int ppl_new_Constraint_System_from_Constraint_System(
        ppl_Constraint_System_t *pcs, ppl_const_Constraint_System_t cs);
    int ppl_assign_Constraint_System_from_Constraint_System(
        ppl_Constraint_System_t dst, ppl_const_Constraint_System_t src);
    int ppl_delete_Constraint_System(ppl_const_Constraint_System_t cs);
    int ppl_Constraint_System_space_dimension(ppl_const_Constraint_System_t cs,
                                              ppl_dimension_type *m);
    int ppl_Constraint_System_empty(ppl_const_Constraint_System_t cs);
    int ppl_Constraint_System_has_strict_inequalities(
        ppl_const_Constraint_System_t cs);
    int ppl_Constraint_System_begin(ppl_const_Constraint_System_t cs,
                                    ppl_Constraint_System_const_iterator_t cit);
    int ppl_Constraint_System_end(ppl_const_Constraint_System_t cs,
                                  ppl_Constraint_System_const_iterator_t cit);
    int ppl_Constraint_System_OK(ppl_const_Constraint_System_t cs);
    int ppl_Constraint_System_clear(ppl_Constraint_System_t cs);
    int ppl_Constraint_System_insert_Constraint(ppl_Constraint_System_t cs,
                                                ppl_const_Constraint_t c);
    
    VERIFICATION_CRITERIA:

    Check insertion and copy independence, empty and canonical systems, declared dimensions, native iterator filtering and destruction/invalidation histories.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001535
    2. C generator systems UID: PPL-SPEC-001535 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Systems own elements, while traversal only borrows them.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Generator_System(ppl_Generator_System_t *pgs);
    int ppl_new_Generator_System_zero_dim_univ(ppl_Generator_System_t *pgs);
    int ppl_new_Generator_System_from_Generator(ppl_Generator_System_t *pgs,
                                                ppl_const_Generator_t g);
    int ppl_new_Generator_System_from_Generator_System(
        ppl_Generator_System_t *pgs, ppl_const_Generator_System_t gs);
    int ppl_assign_Generator_System_from_Generator_System(
        ppl_Generator_System_t dst, ppl_const_Generator_System_t src);
    int ppl_delete_Generator_System(ppl_const_Generator_System_t gs);
    int ppl_Generator_System_space_dimension(ppl_const_Generator_System_t gs,
                                             ppl_dimension_type *m);
    int ppl_Generator_System_empty(ppl_const_Generator_System_t gs);
    int ppl_Generator_System_begin(ppl_const_Generator_System_t gs,
                                   ppl_Generator_System_const_iterator_t git);
    int ppl_Generator_System_end(ppl_const_Generator_System_t gs,
                                 ppl_Generator_System_const_iterator_t git);
    int ppl_Generator_System_OK(ppl_const_Generator_System_t gs);
    int ppl_Generator_System_clear(ppl_Generator_System_t gs);
    int ppl_Generator_System_insert_Generator(ppl_Generator_System_t gs,
                                              ppl_const_Generator_t g);
    
    VERIFICATION_CRITERIA:

    Check insertion and copy independence, empty and canonical systems, declared dimensions, native iterator filtering and destruction/invalidation histories.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001536
    3. C congruence systems UID: PPL-SPEC-001536 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Systems own elements, while traversal only borrows them.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Congruence_System(ppl_Congruence_System_t *pcs);
    int ppl_new_Congruence_System_zero_dim_empty(ppl_Congruence_System_t *pcs);
    int ppl_new_Congruence_System_from_Congruence(ppl_Congruence_System_t *pcs,
                                                  ppl_const_Congruence_t c);
    int ppl_new_Congruence_System_from_Congruence_System(
        ppl_Congruence_System_t *pcs, ppl_const_Congruence_System_t cs);
    int ppl_assign_Congruence_System_from_Congruence_System(
        ppl_Congruence_System_t dst, ppl_const_Congruence_System_t src);
    int ppl_delete_Congruence_System(ppl_const_Congruence_System_t cs);
    int ppl_Congruence_System_space_dimension(ppl_const_Congruence_System_t cs,
                                              ppl_dimension_type *m);
    int ppl_Congruence_System_empty(ppl_const_Congruence_System_t cs);
    int ppl_Congruence_System_begin(ppl_const_Congruence_System_t cs,
                                    ppl_Congruence_System_const_iterator_t cit);
    int ppl_Congruence_System_end(ppl_const_Congruence_System_t cs,
                                  ppl_Congruence_System_const_iterator_t cit);
    int ppl_Congruence_System_OK(ppl_const_Congruence_System_t cs);
    int ppl_Congruence_System_clear(ppl_Congruence_System_t cs);
    int ppl_Congruence_System_insert_Congruence(ppl_Congruence_System_t cs,
                                                ppl_const_Congruence_t c);
    
    VERIFICATION_CRITERIA:

    Check insertion and copy independence, empty and canonical systems, declared dimensions, native iterator filtering and destruction/invalidation histories.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001537
    4. C grid generator systems UID: PPL-SPEC-001537 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Systems own elements, while traversal only borrows them.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Grid_Generator_System(ppl_Grid_Generator_System_t *pgs);
    int ppl_new_Grid_Generator_System_zero_dim_univ(
        ppl_Grid_Generator_System_t *pgs);
    int ppl_new_Grid_Generator_System_from_Grid_Generator(
        ppl_Grid_Generator_System_t *pgs, ppl_const_Grid_Generator_t g);
    int ppl_new_Grid_Generator_System_from_Grid_Generator_System(
        ppl_Grid_Generator_System_t *pgs, ppl_const_Grid_Generator_System_t gs);
    int ppl_assign_Grid_Generator_System_from_Grid_Generator_System(
        ppl_Grid_Generator_System_t dst, ppl_const_Grid_Generator_System_t src);
    int ppl_delete_Grid_Generator_System(ppl_const_Grid_Generator_System_t gs);
    int ppl_Grid_Generator_System_space_dimension(
        ppl_const_Grid_Generator_System_t gs, ppl_dimension_type *m);
    int ppl_Grid_Generator_System_empty(ppl_const_Grid_Generator_System_t gs);
    int ppl_Grid_Generator_System_begin(
        ppl_const_Grid_Generator_System_t gs,
        ppl_Grid_Generator_System_const_iterator_t git);
    int ppl_Grid_Generator_System_end(
        ppl_const_Grid_Generator_System_t gs,
        ppl_Grid_Generator_System_const_iterator_t git);
    int ppl_Grid_Generator_System_OK(ppl_const_Grid_Generator_System_t gs);
    int ppl_Grid_Generator_System_clear(ppl_Grid_Generator_System_t gs);
    int ppl_Grid_Generator_System_insert_Grid_Generator(
        ppl_Grid_Generator_System_t gs, ppl_const_Grid_Generator_t g);
    
    VERIFICATION_CRITERIA:

    Check insertion and copy independence, empty and canonical systems, declared dimensions, native iterator filtering and destruction/invalidation histories.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001538
    5. C descriptor-system iterator lifetimes UID: PPL-SPEC-001538 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    An allocated iterator does not acquire ownership of its range.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Constraint_System_const_iterator(
        ppl_Constraint_System_const_iterator_t *pcit);
    int ppl_new_Constraint_System_const_iterator_from_Constraint_System_const_iterator(
        ppl_Constraint_System_const_iterator_t *pcit,
        ppl_const_Constraint_System_const_iterator_t cit);
    int ppl_assign_Constraint_System_const_iterator_from_Constraint_System_const_iterator(
        ppl_Constraint_System_const_iterator_t dst,
        ppl_const_Constraint_System_const_iterator_t src);
    int ppl_delete_Constraint_System_const_iterator(
        ppl_const_Constraint_System_const_iterator_t cit);
    int ppl_Constraint_System_const_iterator_dereference(
        ppl_const_Constraint_System_const_iterator_t cit,
        ppl_const_Constraint_t *pc);
    int ppl_Constraint_System_const_iterator_increment(
        ppl_Constraint_System_const_iterator_t cit);
    int ppl_Constraint_System_const_iterator_equal_test(
        ppl_const_Constraint_System_const_iterator_t x,
        ppl_const_Constraint_System_const_iterator_t y);
    int ppl_new_Generator_System_const_iterator(
        ppl_Generator_System_const_iterator_t *pgit);
    int ppl_new_Generator_System_const_iterator_from_Generator_System_const_iterator(
        ppl_Generator_System_const_iterator_t *pgit,
        ppl_const_Generator_System_const_iterator_t git);
    int ppl_assign_Generator_System_const_iterator_from_Generator_System_const_iterator(
        ppl_Generator_System_const_iterator_t dst,
        ppl_const_Generator_System_const_iterator_t src);
    int ppl_delete_Generator_System_const_iterator(
        ppl_const_Generator_System_const_iterator_t git);
    int ppl_Generator_System_const_iterator_dereference(
        ppl_const_Generator_System_const_iterator_t git, ppl_const_Generator_t *pg);
    int ppl_Generator_System_const_iterator_increment(
        ppl_Generator_System_const_iterator_t git);
    int ppl_Generator_System_const_iterator_equal_test(
        ppl_const_Generator_System_const_iterator_t x,
        ppl_const_Generator_System_const_iterator_t y);
    int ppl_new_Congruence_System_const_iterator(
        ppl_Congruence_System_const_iterator_t *pcit);
    int ppl_new_Congruence_System_const_iterator_from_Congruence_System_const_iterator(
        ppl_Congruence_System_const_iterator_t *pcit,
        ppl_const_Congruence_System_const_iterator_t cit);
    int ppl_assign_Congruence_System_const_iterator_from_Congruence_System_const_iterator(
        ppl_Congruence_System_const_iterator_t dst,
        ppl_const_Congruence_System_const_iterator_t src);
    int ppl_delete_Congruence_System_const_iterator(
        ppl_const_Congruence_System_const_iterator_t cit);
    int ppl_Congruence_System_const_iterator_dereference(
        ppl_const_Congruence_System_const_iterator_t cit,
        ppl_const_Congruence_t *pc);
    int ppl_Congruence_System_const_iterator_increment(
        ppl_Congruence_System_const_iterator_t cit);
    int ppl_Congruence_System_const_iterator_equal_test(
        ppl_const_Congruence_System_const_iterator_t x,
        ppl_const_Congruence_System_const_iterator_t y);
    int ppl_new_Grid_Generator_System_const_iterator(
        ppl_Grid_Generator_System_const_iterator_t *pgit);
    int ppl_new_Grid_Generator_System_const_iterator_from_Grid_Generator_System_const_iterator(
        ppl_Grid_Generator_System_const_iterator_t *pgit,
        ppl_const_Grid_Generator_System_const_iterator_t git);
    int ppl_assign_Grid_Generator_System_const_iterator_from_Grid_Generator_System_const_iterator(
        ppl_Grid_Generator_System_const_iterator_t dst,
        ppl_const_Grid_Generator_System_const_iterator_t src);
    int ppl_delete_Grid_Generator_System_const_iterator(
        ppl_const_Grid_Generator_System_const_iterator_t git);
    int ppl_Grid_Generator_System_const_iterator_dereference(
        ppl_const_Grid_Generator_System_const_iterator_t git,
        ppl_const_Grid_Generator_t *pg);
    int ppl_Grid_Generator_System_const_iterator_increment(
        ppl_Grid_Generator_System_const_iterator_t git);
    int ppl_Grid_Generator_System_const_iterator_equal_test(
        ppl_const_Grid_Generator_System_const_iterator_t x,
        ppl_const_Grid_Generator_System_const_iterator_t y);
    
    VERIFICATION_CRITERIA:

    Traverse empty/nonempty systems, copy/assign positions and compare begin/end, then release iterators independently of borrowed elements.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001514
    1. C handles, arguments and successful outcomes UID: PPL-SPEC-001514 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C pointers do not encode ownership, initialization or mathematical result categories.

    INTERFACE:

    Public header: <ppl_c.h>.

    #include <ppl_c.h>
    /* Opaque handles: ppl_T_t and ppl_const_T_t. */
    
    VERIFICATION_CRITERIA:

    Compile C18 and C++ clients; check status/boolean/enumeration distinctions, live borrowed views, zero-length arrays and native-result comparisons.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001523
    1. C coefficient ownership, conversion and bounds UID: PPL-SPEC-001523 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Host GMP values and library coefficients require exact conversion with explicit ownership.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Coefficient(ppl_Coefficient_t *pc);
    int ppl_new_Coefficient_from_mpz_t(ppl_Coefficient_t *pc, mpz_t z);
    int ppl_new_Coefficient_from_Coefficient(ppl_Coefficient_t *pc,
                                             ppl_const_Coefficient_t c);
    int ppl_assign_Coefficient_from_mpz_t(ppl_Coefficient_t dst, mpz_t z);
    int ppl_assign_Coefficient_from_Coefficient(ppl_Coefficient_t dst,
                                                ppl_const_Coefficient_t src);
    int ppl_delete_Coefficient(ppl_const_Coefficient_t c);
    int ppl_Coefficient_to_mpz_t(ppl_const_Coefficient_t c, mpz_t z);
    int ppl_Coefficient_OK(ppl_const_Coefficient_t c);
    int ppl_Coefficient_is_bounded(void);
    int ppl_Coefficient_min(mpz_t min);
    int ppl_Coefficient_max(mpz_t max);
    int ppl_multiply_Linear_Expression_by_Coefficient(ppl_Linear_Expression_t le,
                                                      ppl_const_Coefficient_t n);
    
    VERIFICATION_CRITERIA:

    Check signed and large integers, copy/assignment independence, configured bounds, round trips and bounded overflow where configured.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001524
    2. C affine expression values and updates UID: PPL-SPEC-001524 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C expression operations must preserve affine algebra and dimensions.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Linear_Expression(ppl_Linear_Expression_t *ple);
    int ppl_new_Linear_Expression_with_dimension(ppl_Linear_Expression_t *ple,
                                                 ppl_dimension_type d);
    int ppl_new_Linear_Expression_from_Linear_Expression(
        ppl_Linear_Expression_t *ple, ppl_const_Linear_Expression_t le);
    int ppl_new_Linear_Expression_from_Constraint(ppl_Linear_Expression_t *ple,
                                                  ppl_const_Constraint_t c);
    int ppl_new_Linear_Expression_from_Generator(ppl_Linear_Expression_t *ple,
                                                 ppl_const_Generator_t g);
    int ppl_new_Linear_Expression_from_Congruence(ppl_Linear_Expression_t *ple,
                                                  ppl_const_Congruence_t c);
    int ppl_new_Linear_Expression_from_Grid_Generator(ppl_Linear_Expression_t *ple,
                                                      ppl_const_Grid_Generator_t g);
    int ppl_assign_Linear_Expression_from_Linear_Expression(
        ppl_Linear_Expression_t dst, ppl_const_Linear_Expression_t src);
    int ppl_delete_Linear_Expression(ppl_const_Linear_Expression_t le);
    int ppl_Linear_Expression_all_homogeneous_terms_are_zero(
        ppl_const_Linear_Expression_t le);
    int ppl_Linear_Expression_add_to_coefficient(ppl_Linear_Expression_t le,
                                                 ppl_dimension_type var,
                                                 ppl_const_Coefficient_t n);
    int ppl_Linear_Expression_add_to_inhomogeneous(ppl_Linear_Expression_t le,
                                                   ppl_const_Coefficient_t n);
    int ppl_add_Linear_Expression_to_Linear_Expression(
        ppl_Linear_Expression_t dst, ppl_const_Linear_Expression_t src);
    int ppl_subtract_Linear_Expression_from_Linear_Expression(
        ppl_Linear_Expression_t dst, ppl_const_Linear_Expression_t src);
    
    VERIFICATION_CRITERIA:

    Compare literal coefficient vectors and constants after each constructor and arithmetic update, including cancellation, zero scaling, borrowed input conversion and rejected dimensions.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001525
    3. C affine expression queries UID: PPL-SPEC-001525 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Queries distinguish assigning an existing coefficient from creating another owned object.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_Linear_Expression_space_dimension(ppl_const_Linear_Expression_t le,
                                              ppl_dimension_type *m);
    int ppl_Linear_Expression_coefficient(ppl_const_Linear_Expression_t le,
                                          ppl_dimension_type var,
                                          ppl_Coefficient_t n);
    int ppl_Linear_Expression_inhomogeneous_term(ppl_const_Linear_Expression_t le,
                                                 ppl_Coefficient_t n);
    int ppl_Linear_Expression_OK(ppl_const_Linear_Expression_t le);
    int ppl_Linear_Expression_is_zero(ppl_const_Linear_Expression_t le);
    
    VERIFICATION_CRITERIA:

    Check exact coefficients/constants, zero expressions, padded dimensions, range admission and query-output reuse.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001526
    4. C linear constraint values UID: PPL-SPEC-001526 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Descriptor conversion must preserve its geometric or arithmetic meaning.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Constraint(ppl_Constraint_t *pc, ppl_const_Linear_Expression_t le,
                           enum ppl_enum_Constraint_Type rel);
    int ppl_new_Constraint_zero_dim_false(ppl_Constraint_t *pc);
    int ppl_new_Constraint_zero_dim_positivity(ppl_Constraint_t *pc);
    int ppl_new_Constraint_from_Constraint(ppl_Constraint_t *pc,
                                           ppl_const_Constraint_t c);
    int ppl_assign_Constraint_from_Constraint(ppl_Constraint_t dst,
                                              ppl_const_Constraint_t src);
    int ppl_delete_Constraint(ppl_const_Constraint_t c);
    
    VERIFICATION_CRITERIA:

    Check each supported kind, exact coefficients and normalization, empty/universe canonical descriptors, source independence and native admission failures.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001527
    5. C linear constraint queries UID: PPL-SPEC-001527 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C query results need the same interpretation as their native descriptor.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_Constraint_space_dimension(ppl_const_Constraint_t c,
                                       ppl_dimension_type *m);
    int ppl_Constraint_type(ppl_const_Constraint_t c);
    int ppl_Constraint_coefficient(ppl_const_Constraint_t c, ppl_dimension_type var,
                                   ppl_Coefficient_t n);
    int ppl_Constraint_inhomogeneous_term(ppl_const_Constraint_t c,
                                          ppl_Coefficient_t n);
    int ppl_Constraint_OK(ppl_const_Constraint_t c);
    
    VERIFICATION_CRITERIA:

    Check each kind against literal descriptors, normalized ratios or congruences, output reuse and rejected inappropriate queries.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001528
    6. C polyhedral generator values UID: PPL-SPEC-001528 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Descriptor conversion must preserve its geometric or arithmetic meaning.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Generator(ppl_Generator_t *pg, ppl_const_Linear_Expression_t le,
                          enum ppl_enum_Generator_Type t,
                          ppl_const_Coefficient_t d);
    int ppl_new_Generator_zero_dim_point(ppl_Generator_t *pg);
    int ppl_new_Generator_zero_dim_closure_point(ppl_Generator_t *pg);
    int ppl_new_Generator_from_Generator(ppl_Generator_t *pg,
                                         ppl_const_Generator_t g);
    int ppl_assign_Generator_from_Generator(ppl_Generator_t dst,
                                            ppl_const_Generator_t src);
    int ppl_delete_Generator(ppl_const_Generator_t g);
    
    VERIFICATION_CRITERIA:

    Check each supported kind, exact coefficients and normalization, empty/universe canonical descriptors, source independence and native admission failures.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001529
    7. C polyhedral generator queries UID: PPL-SPEC-001529 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C query results need the same interpretation as their native descriptor.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_Generator_space_dimension(ppl_const_Generator_t g,
                                      ppl_dimension_type *m);
    int ppl_Generator_type(ppl_const_Generator_t g);
    int ppl_Generator_coefficient(ppl_const_Generator_t g, ppl_dimension_type var,
                                  ppl_Coefficient_t n);
    int ppl_Generator_divisor(ppl_const_Generator_t g, ppl_Coefficient_t n);
    int ppl_Generator_OK(ppl_const_Generator_t g);
    
    VERIFICATION_CRITERIA:

    Check each kind against literal descriptors, normalized ratios or congruences, output reuse and rejected inappropriate queries.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001530
    8. C rational congruence values UID: PPL-SPEC-001530 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Descriptor conversion must preserve its geometric or arithmetic meaning.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Congruence(ppl_Congruence_t *pc, ppl_const_Linear_Expression_t le,
                           ppl_const_Coefficient_t m);
    int ppl_new_Congruence_zero_dim_false(ppl_Congruence_t *pc);
    int ppl_new_Congruence_zero_dim_integrality(ppl_Congruence_t *pc);
    int ppl_new_Congruence_from_Congruence(ppl_Congruence_t *pc,
                                           ppl_const_Congruence_t c);
    int ppl_assign_Congruence_from_Congruence(ppl_Congruence_t dst,
                                              ppl_const_Congruence_t src);
    int ppl_delete_Congruence(ppl_const_Congruence_t c);
    
    VERIFICATION_CRITERIA:

    Check each supported kind, exact coefficients and normalization, empty/universe canonical descriptors, source independence and native admission failures.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001531
    9. C rational congruence queries UID: PPL-SPEC-001531 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C query results need the same interpretation as their native descriptor.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_Congruence_space_dimension(ppl_const_Congruence_t c,
                                       ppl_dimension_type *m);
    int ppl_Congruence_coefficient(ppl_const_Congruence_t c, ppl_dimension_type var,
                                   ppl_Coefficient_t n);
    int ppl_Congruence_inhomogeneous_term(ppl_const_Congruence_t c,
                                          ppl_Coefficient_t n);
    int ppl_Congruence_modulus(ppl_const_Congruence_t c, ppl_Coefficient_t m);
    int ppl_Congruence_OK(ppl_const_Congruence_t c);
    
    VERIFICATION_CRITERIA:

    Check each kind against literal descriptors, normalized ratios or congruences, output reuse and rejected inappropriate queries.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001532
    10. C grid generator values UID: PPL-SPEC-001532 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Descriptor conversion must preserve its geometric or arithmetic meaning.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Grid_Generator(ppl_Grid_Generator_t *pg,
                               ppl_const_Linear_Expression_t le,
                               enum ppl_enum_Grid_Generator_Type t,
                               ppl_const_Coefficient_t d);
    int ppl_new_Grid_Generator_zero_dim_point(ppl_Grid_Generator_t *pg);
    int ppl_new_Grid_Generator_from_Grid_Generator(ppl_Grid_Generator_t *pg,
                                                   ppl_const_Grid_Generator_t g);
    int ppl_assign_Grid_Generator_from_Grid_Generator(
        ppl_Grid_Generator_t dst, ppl_const_Grid_Generator_t src);
    int ppl_delete_Grid_Generator(ppl_const_Grid_Generator_t g);
    
    VERIFICATION_CRITERIA:

    Check each supported kind, exact coefficients and normalization, empty/universe canonical descriptors, source independence and native admission failures.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001533
    11. C grid generator queries UID: PPL-SPEC-001533 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C query results need the same interpretation as their native descriptor.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_Grid_Generator_space_dimension(ppl_const_Grid_Generator_t g,
                                           ppl_dimension_type *m);
    int ppl_Grid_Generator_type(ppl_const_Grid_Generator_t g);
    int ppl_Grid_Generator_coefficient(ppl_const_Grid_Generator_t g,
                                       ppl_dimension_type var, ppl_Coefficient_t n);
    int ppl_Grid_Generator_divisor(ppl_const_Grid_Generator_t g,
                                   ppl_Coefficient_t n);
    int ppl_Grid_Generator_OK(ppl_const_Grid_Generator_t g);
    
    VERIFICATION_CRITERIA:

    Check each kind against literal descriptors, normalized ratios or congruences, output reuse and rejected inappropriate queries.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

PPL-LLR-000203
3. C boundary error reporting UID: PPL-LLR-000203 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Review RELATIONS (Parent): RELATIONS (Child): STATEMENT:

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.

RATIONALE:

C clients require observable error reporting without reliance on C++ exception handling.

COMMENT:

Verification covers C status categories, handler invocation, output validity and native exception containment. Category-specific tests and inspection of the boundary translation paths provide evidence. Arithmetic-overflow cases apply when checked bounded coefficients are selected. The handler's description need only remain valid during its invocation. Resource cleanup is governed by 🔗 3. Failure and resource safety.

VERIFICATION_CRITERIA:

Exercise the supported failure categories, including invalid arguments, domain and size errors, allocation failure, checked-coefficient overflow, and supported interruptions. Check status categories and handler notifications independently of their descriptions, distinguish successful mathematical results from failures, and inspect exception containment and output-validity rules at the boundary.

SOURCE:

interfaces/C/ppl_c_header.h, Error Handling; interfaces/C/ppl_c_implementation_common_defs.hh, exception-to-error translation; interfaces/C/ppl_c_implementation_common.cc, error-handler management.

  • PPL-SPEC-001554
    1. C generated domain values and conversions UID: PPL-SPEC-001554 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_delete_Polyhedron(ppl_const_Polyhedron_t ph);
    int ppl_new_C_Polyhedron_from_space_dimension(ppl_Polyhedron_t *pph,
                                                  ppl_dimension_type d, int empty);
    int ppl_new_NNC_Polyhedron_from_space_dimension(ppl_Polyhedron_t *pph,
                                                    ppl_dimension_type d,
                                                    int empty);
    int ppl_new_C_Polyhedron_from_C_Polyhedron(ppl_Polyhedron_t *pph,
                                               ppl_const_Polyhedron_t ph);
    int ppl_new_NNC_Polyhedron_from_C_Polyhedron(ppl_Polyhedron_t *pph,
                                                 ppl_const_Polyhedron_t ph);
    int ppl_new_C_Polyhedron_from_NNC_Polyhedron(ppl_Polyhedron_t *pph,
                                                 ppl_const_Polyhedron_t ph);
    int ppl_new_NNC_Polyhedron_from_NNC_Polyhedron(ppl_Polyhedron_t *pph,
                                                   ppl_const_Polyhedron_t ph);
    int ppl_new_C_Polyhedron_from_Grid(ppl_Polyhedron_t *pph, ppl_const_Grid_t ph);
    int ppl_new_NNC_Polyhedron_from_Grid(ppl_Polyhedron_t *pph,
                                         ppl_const_Grid_t ph);
    int ppl_new_C_Polyhedron_from_Rational_Box(ppl_Polyhedron_t *pph,
                                               ppl_const_Rational_Box_t ph);
    int ppl_new_NNC_Polyhedron_from_Rational_Box(ppl_Polyhedron_t *pph,
                                                 ppl_const_Rational_Box_t ph);
    int ppl_new_C_Polyhedron_from_BD_Shape_mpz_class(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_NNC_Polyhedron_from_BD_Shape_mpz_class(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_C_Polyhedron_from_BD_Shape_mpq_class(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_NNC_Polyhedron_from_BD_Shape_mpq_class(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_C_Polyhedron_from_Octagonal_Shape_mpz_class(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_mpz_class(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_C_Polyhedron_from_Octagonal_Shape_mpq_class(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_mpq_class(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_C_Polyhedron_from_Double_Box(ppl_Polyhedron_t *pph,
                                             ppl_const_Double_Box_t ph);
    int ppl_new_NNC_Polyhedron_from_Double_Box(ppl_Polyhedron_t *pph,
                                               ppl_const_Double_Box_t ph);
    int ppl_new_C_Polyhedron_from_BD_Shape_double(ppl_Polyhedron_t *pph,
                                                  ppl_const_BD_Shape_double_t ph);
    int ppl_new_NNC_Polyhedron_from_BD_Shape_double(ppl_Polyhedron_t *pph,
                                                    ppl_const_BD_Shape_double_t ph);
    int ppl_new_C_Polyhedron_from_Octagonal_Shape_double(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_double(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_C_Polyhedron_from_C_Polyhedron_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_NNC_Polyhedron_from_C_Polyhedron_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_C_Polyhedron_from_NNC_Polyhedron_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_NNC_Polyhedron_from_NNC_Polyhedron_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_C_Polyhedron_from_Grid_with_complexity(ppl_Polyhedron_t *pph,
                                                       ppl_const_Grid_t ph,
                                                       int complexity);
    int ppl_new_NNC_Polyhedron_from_Grid_with_complexity(ppl_Polyhedron_t *pph,
                                                         ppl_const_Grid_t ph,
                                                         int complexity);
    int ppl_new_C_Polyhedron_from_Rational_Box_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_NNC_Polyhedron_from_Rational_Box_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_C_Polyhedron_from_BD_Shape_mpz_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity);
    int ppl_new_NNC_Polyhedron_from_BD_Shape_mpz_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity);
    int ppl_new_C_Polyhedron_from_BD_Shape_mpq_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity);
    int ppl_new_NNC_Polyhedron_from_BD_Shape_mpq_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity);
    int ppl_new_C_Polyhedron_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_C_Polyhedron_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_C_Polyhedron_from_Double_Box_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Double_Box_t ph, int complexity);
    int ppl_new_NNC_Polyhedron_from_Double_Box_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Double_Box_t ph, int complexity);
    int ppl_new_C_Polyhedron_from_BD_Shape_double_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_double_t ph, int complexity);
    int ppl_new_NNC_Polyhedron_from_BD_Shape_double_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_BD_Shape_double_t ph, int complexity);
    int ppl_new_C_Polyhedron_from_Octagonal_Shape_double_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_NNC_Polyhedron_from_Octagonal_Shape_double_with_complexity(
        ppl_Polyhedron_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_C_Polyhedron_from_Constraint_System(
        ppl_Polyhedron_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_NNC_Polyhedron_from_Constraint_System(
        ppl_Polyhedron_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_C_Polyhedron_from_Congruence_System(
        ppl_Polyhedron_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_NNC_Polyhedron_from_Congruence_System(
        ppl_Polyhedron_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_C_Polyhedron_from_Generator_System(ppl_Polyhedron_t *pph,
                                                   ppl_const_Generator_System_t cs);
    int ppl_new_NNC_Polyhedron_from_Generator_System(
        ppl_Polyhedron_t *pph, ppl_const_Generator_System_t cs);
    int ppl_new_C_Polyhedron_recycle_Constraint_System(ppl_Polyhedron_t *pph,
                                                       ppl_Constraint_System_t cs);
    int ppl_new_NNC_Polyhedron_recycle_Constraint_System(
        ppl_Polyhedron_t *pph, ppl_Constraint_System_t cs);
    int ppl_new_C_Polyhedron_recycle_Congruence_System(ppl_Polyhedron_t *pph,
                                                       ppl_Congruence_System_t cs);
    int ppl_new_NNC_Polyhedron_recycle_Congruence_System(
        ppl_Polyhedron_t *pph, ppl_Congruence_System_t cs);
    int ppl_new_C_Polyhedron_recycle_Generator_System(ppl_Polyhedron_t *pph,
                                                      ppl_Generator_System_t cs);
    int ppl_new_NNC_Polyhedron_recycle_Generator_System(ppl_Polyhedron_t *pph,
                                                        ppl_Generator_System_t cs);
    int ppl_assign_C_Polyhedron_from_C_Polyhedron(ppl_Polyhedron_t dst,
                                                  ppl_const_Polyhedron_t src);
    int ppl_assign_NNC_Polyhedron_from_NNC_Polyhedron(ppl_Polyhedron_t dst,
                                                      ppl_const_Polyhedron_t src);
    int ppl_delete_Grid(ppl_const_Grid_t ph);
    int ppl_new_Grid_from_space_dimension(ppl_Grid_t *pph, ppl_dimension_type d,
                                          int empty);
    int ppl_new_Grid_from_C_Polyhedron(ppl_Grid_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Grid_from_NNC_Polyhedron(ppl_Grid_t *pph,
                                         ppl_const_Polyhedron_t ph);
    int ppl_new_Grid_from_Grid(ppl_Grid_t *pph, ppl_const_Grid_t ph);
    int ppl_new_Grid_from_Rational_Box(ppl_Grid_t *pph,
                                       ppl_const_Rational_Box_t ph);
    int ppl_new_Grid_from_BD_Shape_mpz_class(ppl_Grid_t *pph,
                                             ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Grid_from_BD_Shape_mpq_class(ppl_Grid_t *pph,
                                             ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Grid_from_Octagonal_Shape_mpz_class(
        ppl_Grid_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Grid_from_Octagonal_Shape_mpq_class(
        ppl_Grid_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Grid_from_Double_Box(ppl_Grid_t *pph, ppl_const_Double_Box_t ph);
    int ppl_new_Grid_from_BD_Shape_double(ppl_Grid_t *pph,
                                          ppl_const_BD_Shape_double_t ph);
    int ppl_new_Grid_from_Octagonal_Shape_double(
        ppl_Grid_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Grid_from_C_Polyhedron_with_complexity(ppl_Grid_t *pph,
                                                       ppl_const_Polyhedron_t ph,
                                                       int complexity);
    int ppl_new_Grid_from_NNC_Polyhedron_with_complexity(ppl_Grid_t *pph,
                                                         ppl_const_Polyhedron_t ph,
                                                         int complexity);
    int ppl_new_Grid_from_Grid_with_complexity(ppl_Grid_t *pph, ppl_const_Grid_t ph,
                                               int complexity);
    int ppl_new_Grid_from_Rational_Box_with_complexity(ppl_Grid_t *pph,
                                                       ppl_const_Rational_Box_t ph,
                                                       int complexity);
    int ppl_new_Grid_from_BD_Shape_mpz_class_with_complexity(
        ppl_Grid_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Grid_from_BD_Shape_mpq_class_with_complexity(
        ppl_Grid_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Grid_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Grid_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Grid_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Grid_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Grid_from_Double_Box_with_complexity(ppl_Grid_t *pph,
                                                     ppl_const_Double_Box_t ph,
                                                     int complexity);
    int ppl_new_Grid_from_BD_Shape_double_with_complexity(
        ppl_Grid_t *pph, ppl_const_BD_Shape_double_t ph, int complexity);
    int ppl_new_Grid_from_Octagonal_Shape_double_with_complexity(
        ppl_Grid_t *pph, ppl_const_Octagonal_Shape_double_t ph, int complexity);
    int ppl_new_Grid_from_Constraint_System(ppl_Grid_t *pph,
                                            ppl_const_Constraint_System_t cs);
    int ppl_new_Grid_from_Congruence_System(ppl_Grid_t *pph,
                                            ppl_const_Congruence_System_t cs);
    int ppl_new_Grid_recycle_Constraint_System(ppl_Grid_t *pph,
                                               ppl_Constraint_System_t cs);
    int ppl_new_Grid_recycle_Congruence_System(ppl_Grid_t *pph,
                                               ppl_Congruence_System_t cs);
    int ppl_assign_Grid_from_Grid(ppl_Grid_t dst, ppl_const_Grid_t src);
    int ppl_delete_Rational_Box(ppl_const_Rational_Box_t ph);
    int ppl_new_Rational_Box_from_space_dimension(ppl_Rational_Box_t *pph,
                                                  ppl_dimension_type d, int empty);
    int ppl_new_Rational_Box_from_C_Polyhedron(ppl_Rational_Box_t *pph,
                                               ppl_const_Polyhedron_t ph);
    int ppl_new_Rational_Box_from_NNC_Polyhedron(ppl_Rational_Box_t *pph,
                                                 ppl_const_Polyhedron_t ph);
    int ppl_new_Rational_Box_from_Grid(ppl_Rational_Box_t *pph,
                                       ppl_const_Grid_t ph);
    int ppl_new_Rational_Box_from_Rational_Box(ppl_Rational_Box_t *pph,
                                               ppl_const_Rational_Box_t ph);
    int ppl_new_Rational_Box_from_BD_Shape_mpz_class(
        ppl_Rational_Box_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Rational_Box_from_BD_Shape_mpq_class(
        ppl_Rational_Box_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Rational_Box_from_Octagonal_Shape_mpz_class(
        ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Rational_Box_from_Octagonal_Shape_mpq_class(
        ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Rational_Box_from_Double_Box(ppl_Rational_Box_t *pph,
                                             ppl_const_Double_Box_t ph);
    int ppl_new_Rational_Box_from_BD_Shape_double(ppl_Rational_Box_t *pph,
                                                  ppl_const_BD_Shape_double_t ph);
    int ppl_new_Rational_Box_from_Octagonal_Shape_double(
        ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Rational_Box_from_C_Polyhedron_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_Rational_Box_from_NNC_Polyhedron_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_Rational_Box_from_Grid_with_complexity(ppl_Rational_Box_t *pph,
                                                       ppl_const_Grid_t ph,
                                                       int complexity);
    int ppl_new_Rational_Box_from_Rational_Box_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_Rational_Box_from_BD_Shape_mpz_class_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Rational_Box_from_BD_Shape_mpq_class_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Rational_Box_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_Rational_Box_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_Rational_Box_from_Double_Box_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_Double_Box_t ph, int complexity);
    int ppl_new_Rational_Box_from_BD_Shape_double_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_BD_Shape_double_t ph, int complexity);
    int ppl_new_Rational_Box_from_Octagonal_Shape_double_with_complexity(
        ppl_Rational_Box_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_Rational_Box_from_Constraint_System(
        ppl_Rational_Box_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_Rational_Box_from_Congruence_System(
        ppl_Rational_Box_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_Rational_Box_from_Generator_System(ppl_Rational_Box_t *pph,
                                                   ppl_const_Generator_System_t cs);
    int ppl_new_Rational_Box_recycle_Constraint_System(ppl_Rational_Box_t *pph,
                                                       ppl_Constraint_System_t cs);
    int ppl_new_Rational_Box_recycle_Congruence_System(ppl_Rational_Box_t *pph,
                                                       ppl_Congruence_System_t cs);
    int ppl_new_Rational_Box_recycle_Generator_System(ppl_Rational_Box_t *pph,
                                                      ppl_Generator_System_t cs);
    int ppl_assign_Rational_Box_from_Rational_Box(ppl_Rational_Box_t dst,
                                                  ppl_const_Rational_Box_t src);
    int ppl_delete_BD_Shape_mpz_class(ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_BD_Shape_mpz_class_from_space_dimension(
        ppl_BD_Shape_mpz_class_t *pph, ppl_dimension_type d, int empty);
    int ppl_new_BD_Shape_mpz_class_from_C_Polyhedron(ppl_BD_Shape_mpz_class_t *pph,
                                                     ppl_const_Polyhedron_t ph);
    int ppl_new_BD_Shape_mpz_class_from_NNC_Polyhedron(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_BD_Shape_mpz_class_from_Grid(ppl_BD_Shape_mpz_class_t *pph,
                                             ppl_const_Grid_t ph);
    int ppl_new_BD_Shape_mpz_class_from_Rational_Box(ppl_BD_Shape_mpz_class_t *pph,
                                                     ppl_const_Rational_Box_t ph);
    int ppl_new_BD_Shape_mpz_class_from_BD_Shape_mpz_class(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_BD_Shape_mpz_class_from_BD_Shape_mpq_class(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_mpz_class(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_mpq_class(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_BD_Shape_mpz_class_from_Double_Box(ppl_BD_Shape_mpz_class_t *pph,
                                                   ppl_const_Double_Box_t ph);
    int ppl_new_BD_Shape_mpz_class_from_BD_Shape_double(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_double_t ph);
    int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_double(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_BD_Shape_mpz_class_from_C_Polyhedron_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_BD_Shape_mpz_class_from_NNC_Polyhedron_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_BD_Shape_mpz_class_from_Grid_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Grid_t ph, int complexity);
    int ppl_new_BD_Shape_mpz_class_from_Rational_Box_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_BD_Shape_mpz_class_from_BD_Shape_mpz_class_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpz_class_from_BD_Shape_mpq_class_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpz_class_from_Double_Box_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Double_Box_t ph, int complexity);
    int ppl_new_BD_Shape_mpz_class_from_BD_Shape_double_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_BD_Shape_double_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpz_class_from_Octagonal_Shape_double_with_complexity(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpz_class_from_Constraint_System(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_BD_Shape_mpz_class_from_Congruence_System(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_BD_Shape_mpz_class_from_Generator_System(
        ppl_BD_Shape_mpz_class_t *pph, ppl_const_Generator_System_t cs);
    int ppl_new_BD_Shape_mpz_class_recycle_Constraint_System(
        ppl_BD_Shape_mpz_class_t *pph, ppl_Constraint_System_t cs);
    int ppl_new_BD_Shape_mpz_class_recycle_Congruence_System(
        ppl_BD_Shape_mpz_class_t *pph, ppl_Congruence_System_t cs);
    int ppl_new_BD_Shape_mpz_class_recycle_Generator_System(
        ppl_BD_Shape_mpz_class_t *pph, ppl_Generator_System_t cs);
    int ppl_assign_BD_Shape_mpz_class_from_BD_Shape_mpz_class(
        ppl_BD_Shape_mpz_class_t dst, ppl_const_BD_Shape_mpz_class_t src);
    int ppl_delete_BD_Shape_mpq_class(ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_BD_Shape_mpq_class_from_space_dimension(
        ppl_BD_Shape_mpq_class_t *pph, ppl_dimension_type d, int empty);
    int ppl_new_BD_Shape_mpq_class_from_C_Polyhedron(ppl_BD_Shape_mpq_class_t *pph,
                                                     ppl_const_Polyhedron_t ph);
    int ppl_new_BD_Shape_mpq_class_from_NNC_Polyhedron(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_BD_Shape_mpq_class_from_Grid(ppl_BD_Shape_mpq_class_t *pph,
                                             ppl_const_Grid_t ph);
    int ppl_new_BD_Shape_mpq_class_from_Rational_Box(ppl_BD_Shape_mpq_class_t *pph,
                                                     ppl_const_Rational_Box_t ph);
    int ppl_new_BD_Shape_mpq_class_from_BD_Shape_mpz_class(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_BD_Shape_mpq_class_from_BD_Shape_mpq_class(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_mpz_class(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_mpq_class(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_BD_Shape_mpq_class_from_Double_Box(ppl_BD_Shape_mpq_class_t *pph,
                                                   ppl_const_Double_Box_t ph);
    int ppl_new_BD_Shape_mpq_class_from_BD_Shape_double(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_double_t ph);
    int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_double(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_BD_Shape_mpq_class_from_C_Polyhedron_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_BD_Shape_mpq_class_from_NNC_Polyhedron_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_BD_Shape_mpq_class_from_Grid_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Grid_t ph, int complexity);
    int ppl_new_BD_Shape_mpq_class_from_Rational_Box_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_BD_Shape_mpq_class_from_BD_Shape_mpz_class_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpq_class_from_BD_Shape_mpq_class_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpq_class_from_Double_Box_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Double_Box_t ph, int complexity);
    int ppl_new_BD_Shape_mpq_class_from_BD_Shape_double_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_BD_Shape_double_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpq_class_from_Octagonal_Shape_double_with_complexity(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_BD_Shape_mpq_class_from_Constraint_System(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_BD_Shape_mpq_class_from_Congruence_System(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_BD_Shape_mpq_class_from_Generator_System(
        ppl_BD_Shape_mpq_class_t *pph, ppl_const_Generator_System_t cs);
    int ppl_new_BD_Shape_mpq_class_recycle_Constraint_System(
        ppl_BD_Shape_mpq_class_t *pph, ppl_Constraint_System_t cs);
    int ppl_new_BD_Shape_mpq_class_recycle_Congruence_System(
        ppl_BD_Shape_mpq_class_t *pph, ppl_Congruence_System_t cs);
    int ppl_new_BD_Shape_mpq_class_recycle_Generator_System(
        ppl_BD_Shape_mpq_class_t *pph, ppl_Generator_System_t cs);
    int ppl_assign_BD_Shape_mpq_class_from_BD_Shape_mpq_class(
        ppl_BD_Shape_mpq_class_t dst, ppl_const_BD_Shape_mpq_class_t src);
    int ppl_delete_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_space_dimension(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_dimension_type d, int empty);
    int ppl_new_Octagonal_Shape_mpz_class_from_C_Polyhedron(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_NNC_Polyhedron(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_Grid(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Grid_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_Rational_Box(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Rational_Box_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_mpz_class(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_mpq_class(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_mpz_class(
        ppl_Octagonal_Shape_mpz_class_t *pph,
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_mpq_class(
        ppl_Octagonal_Shape_mpz_class_t *pph,
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_Double_Box(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Double_Box_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_double(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_double_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_double(
        ppl_Octagonal_Shape_mpz_class_t *pph,
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Octagonal_Shape_mpz_class_from_C_Polyhedron_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_NNC_Polyhedron_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_Grid_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Grid_t ph, int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_Rational_Box_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Rational_Box_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_mpz_class_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_mpq_class_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph,
        ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph,
        ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_Double_Box_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Double_Box_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_BD_Shape_double_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_BD_Shape_double_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_Octagonal_Shape_double_with_complexity(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpz_class_from_Constraint_System(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_Octagonal_Shape_mpz_class_from_Congruence_System(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_Octagonal_Shape_mpz_class_from_Generator_System(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_const_Generator_System_t cs);
    int ppl_new_Octagonal_Shape_mpz_class_recycle_Constraint_System(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_Constraint_System_t cs);
    int ppl_new_Octagonal_Shape_mpz_class_recycle_Congruence_System(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_Congruence_System_t cs);
    int ppl_new_Octagonal_Shape_mpz_class_recycle_Generator_System(
        ppl_Octagonal_Shape_mpz_class_t *pph, ppl_Generator_System_t cs);
    int ppl_assign_Octagonal_Shape_mpz_class_from_Octagonal_Shape_mpz_class(
        ppl_Octagonal_Shape_mpz_class_t dst,
        ppl_const_Octagonal_Shape_mpz_class_t src);
    int ppl_delete_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_space_dimension(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_dimension_type d, int empty);
    int ppl_new_Octagonal_Shape_mpq_class_from_C_Polyhedron(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_NNC_Polyhedron(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_Grid(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Grid_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_Rational_Box(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Rational_Box_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_mpz_class(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_mpq_class(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_mpz_class(
        ppl_Octagonal_Shape_mpq_class_t *pph,
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_mpq_class(
        ppl_Octagonal_Shape_mpq_class_t *pph,
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_Double_Box(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Double_Box_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_double(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_double_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_double(
        ppl_Octagonal_Shape_mpq_class_t *pph,
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Octagonal_Shape_mpq_class_from_C_Polyhedron_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_NNC_Polyhedron_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_Grid_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Grid_t ph, int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_Rational_Box_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Rational_Box_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_mpz_class_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_mpq_class_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph,
        ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph,
        ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_Double_Box_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Double_Box_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_BD_Shape_double_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_BD_Shape_double_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_Octagonal_Shape_double_with_complexity(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_mpq_class_from_Constraint_System(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_Octagonal_Shape_mpq_class_from_Congruence_System(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_Octagonal_Shape_mpq_class_from_Generator_System(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_const_Generator_System_t cs);
    int ppl_new_Octagonal_Shape_mpq_class_recycle_Constraint_System(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_Constraint_System_t cs);
    int ppl_new_Octagonal_Shape_mpq_class_recycle_Congruence_System(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_Congruence_System_t cs);
    int ppl_new_Octagonal_Shape_mpq_class_recycle_Generator_System(
        ppl_Octagonal_Shape_mpq_class_t *pph, ppl_Generator_System_t cs);
    int ppl_assign_Octagonal_Shape_mpq_class_from_Octagonal_Shape_mpq_class(
        ppl_Octagonal_Shape_mpq_class_t dst,
        ppl_const_Octagonal_Shape_mpq_class_t src);
    int ppl_delete_Constraints_Product_C_Polyhedron_Grid(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_space_dimension(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_dimension_type d,
        int empty);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_C_Polyhedron(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Polyhedron_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_NNC_Polyhedron(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Polyhedron_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Grid(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Grid_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Rational_Box(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Rational_Box_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_mpz_class(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_mpq_class(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_mpz_class(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_mpq_class(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Double_Box(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Double_Box_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_double(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_BD_Shape_double_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_double(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Constraints_Product_C_Polyhedron_Grid(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_C_Polyhedron_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_NNC_Polyhedron_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Grid_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Grid_t ph,
        int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Rational_Box_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_mpz_class_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_BD_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_mpq_class_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_BD_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Octagonal_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Octagonal_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Double_Box_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph, ppl_const_Double_Box_t ph,
        int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_BD_Shape_double_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_BD_Shape_double_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Octagonal_Shape_double_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Octagonal_Shape_double_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Constraints_Product_C_Polyhedron_Grid_with_complexity(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph, int complexity);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Constraint_System(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Constraint_System_t cs);
    int ppl_new_Constraints_Product_C_Polyhedron_Grid_from_Congruence_System(
        ppl_Constraints_Product_C_Polyhedron_Grid_t *pph,
        ppl_const_Congruence_System_t cs);
    int ppl_delete_Pointset_Powerset_C_Polyhedron(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_new_Pointset_Powerset_C_Polyhedron_from_space_dimension(
        ppl_Pointset_Powerset_C_Polyhedron_t *pph, ppl_dimension_type d, int empty);
    int ppl_new_Pointset_Powerset_C_Polyhedron_from_Pointset_Powerset_C_Polyhedron(
        ppl_Pointset_Powerset_C_Polyhedron_t *pph,
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_new_Pointset_Powerset_C_Polyhedron_from_C_Polyhedron(
        ppl_Pointset_Powerset_C_Polyhedron_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Pointset_Powerset_C_Polyhedron_from_Pointset_Powerset_C_Polyhedron_with_complexity(
        ppl_Pointset_Powerset_C_Polyhedron_t *pph,
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph, int complexity);
    int ppl_new_Pointset_Powerset_C_Polyhedron_from_C_Polyhedron_with_complexity(
        ppl_Pointset_Powerset_C_Polyhedron_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Pointset_Powerset_C_Polyhedron_from_Constraint_System(
        ppl_Pointset_Powerset_C_Polyhedron_t *pph,
        ppl_const_Constraint_System_t cs);
    int ppl_new_Pointset_Powerset_C_Polyhedron_from_Congruence_System(
        ppl_Pointset_Powerset_C_Polyhedron_t *pph,
        ppl_const_Congruence_System_t cs);
    int ppl_delete_Pointset_Powerset_NNC_Polyhedron(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_space_dimension(
        ppl_Pointset_Powerset_NNC_Polyhedron_t *pph, ppl_dimension_type d,
        int empty);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_Pointset_Powerset_NNC_Polyhedron(
        ppl_Pointset_Powerset_NNC_Polyhedron_t *pph,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_NNC_Polyhedron(
        ppl_Pointset_Powerset_NNC_Polyhedron_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_Pointset_Powerset_NNC_Polyhedron_with_complexity(
        ppl_Pointset_Powerset_NNC_Polyhedron_t *pph,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, int complexity);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_NNC_Polyhedron_with_complexity(
        ppl_Pointset_Powerset_NNC_Polyhedron_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_Constraint_System(
        ppl_Pointset_Powerset_NNC_Polyhedron_t *pph,
        ppl_const_Constraint_System_t cs);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_from_Congruence_System(
        ppl_Pointset_Powerset_NNC_Polyhedron_t *pph,
        ppl_const_Congruence_System_t cs);
    int ppl_delete_Double_Box(ppl_const_Double_Box_t ph);
    int ppl_new_Double_Box_from_space_dimension(ppl_Double_Box_t *pph,
                                                ppl_dimension_type d, int empty);
    int ppl_new_Double_Box_from_C_Polyhedron(ppl_Double_Box_t *pph,
                                             ppl_const_Polyhedron_t ph);
    int ppl_new_Double_Box_from_NNC_Polyhedron(ppl_Double_Box_t *pph,
                                               ppl_const_Polyhedron_t ph);
    int ppl_new_Double_Box_from_Grid(ppl_Double_Box_t *pph, ppl_const_Grid_t ph);
    int ppl_new_Double_Box_from_Rational_Box(ppl_Double_Box_t *pph,
                                             ppl_const_Rational_Box_t ph);
    int ppl_new_Double_Box_from_BD_Shape_mpz_class(
        ppl_Double_Box_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Double_Box_from_BD_Shape_mpq_class(
        ppl_Double_Box_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Double_Box_from_Octagonal_Shape_mpz_class(
        ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Double_Box_from_Octagonal_Shape_mpq_class(
        ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Double_Box_from_Double_Box(ppl_Double_Box_t *pph,
                                           ppl_const_Double_Box_t ph);
    int ppl_new_Double_Box_from_BD_Shape_double(ppl_Double_Box_t *pph,
                                                ppl_const_BD_Shape_double_t ph);
    int ppl_new_Double_Box_from_Octagonal_Shape_double(
        ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Double_Box_from_C_Polyhedron_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_Double_Box_from_NNC_Polyhedron_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_Double_Box_from_Grid_with_complexity(ppl_Double_Box_t *pph,
                                                     ppl_const_Grid_t ph,
                                                     int complexity);
    int ppl_new_Double_Box_from_Rational_Box_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_Double_Box_from_BD_Shape_mpz_class_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_BD_Shape_mpz_class_t ph, int complexity);
    int ppl_new_Double_Box_from_BD_Shape_mpq_class_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_BD_Shape_mpq_class_t ph, int complexity);
    int ppl_new_Double_Box_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_Double_Box_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_Double_Box_from_Double_Box_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_Double_Box_t ph, int complexity);
    int ppl_new_Double_Box_from_BD_Shape_double_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_BD_Shape_double_t ph, int complexity);
    int ppl_new_Double_Box_from_Octagonal_Shape_double_with_complexity(
        ppl_Double_Box_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_Double_Box_from_Constraint_System(ppl_Double_Box_t *pph,
                                                  ppl_const_Constraint_System_t cs);
    int ppl_new_Double_Box_from_Congruence_System(ppl_Double_Box_t *pph,
                                                  ppl_const_Congruence_System_t cs);
    int ppl_new_Double_Box_from_Generator_System(ppl_Double_Box_t *pph,
                                                 ppl_const_Generator_System_t cs);
    int ppl_new_Double_Box_recycle_Constraint_System(ppl_Double_Box_t *pph,
                                                     ppl_Constraint_System_t cs);
    int ppl_new_Double_Box_recycle_Congruence_System(ppl_Double_Box_t *pph,
                                                     ppl_Congruence_System_t cs);
    int ppl_new_Double_Box_recycle_Generator_System(ppl_Double_Box_t *pph,
                                                    ppl_Generator_System_t cs);
    int ppl_assign_Double_Box_from_Double_Box(ppl_Double_Box_t dst,
                                              ppl_const_Double_Box_t src);
    int ppl_delete_BD_Shape_double(ppl_const_BD_Shape_double_t ph);
    int ppl_new_BD_Shape_double_from_space_dimension(ppl_BD_Shape_double_t *pph,
                                                     ppl_dimension_type d,
                                                     int empty);
    int ppl_new_BD_Shape_double_from_C_Polyhedron(ppl_BD_Shape_double_t *pph,
                                                  ppl_const_Polyhedron_t ph);
    int ppl_new_BD_Shape_double_from_NNC_Polyhedron(ppl_BD_Shape_double_t *pph,
                                                    ppl_const_Polyhedron_t ph);
    int ppl_new_BD_Shape_double_from_Grid(ppl_BD_Shape_double_t *pph,
                                          ppl_const_Grid_t ph);
    int ppl_new_BD_Shape_double_from_Rational_Box(ppl_BD_Shape_double_t *pph,
                                                  ppl_const_Rational_Box_t ph);
    int ppl_new_BD_Shape_double_from_BD_Shape_mpz_class(
        ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_BD_Shape_double_from_BD_Shape_mpq_class(
        ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_BD_Shape_double_from_Octagonal_Shape_mpz_class(
        ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_BD_Shape_double_from_Octagonal_Shape_mpq_class(
        ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_BD_Shape_double_from_Double_Box(ppl_BD_Shape_double_t *pph,
                                                ppl_const_Double_Box_t ph);
    int ppl_new_BD_Shape_double_from_BD_Shape_double(
        ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_double_t ph);
    int ppl_new_BD_Shape_double_from_Octagonal_Shape_double(
        ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_BD_Shape_double_from_C_Polyhedron_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_BD_Shape_double_from_NNC_Polyhedron_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Polyhedron_t ph, int complexity);
    int ppl_new_BD_Shape_double_from_Grid_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Grid_t ph, int complexity);
    int ppl_new_BD_Shape_double_from_Rational_Box_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Rational_Box_t ph, int complexity);
    int ppl_new_BD_Shape_double_from_BD_Shape_mpz_class_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_double_from_BD_Shape_mpq_class_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_double_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_double_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_BD_Shape_double_from_Double_Box_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Double_Box_t ph, int complexity);
    int ppl_new_BD_Shape_double_from_BD_Shape_double_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_BD_Shape_double_t ph, int complexity);
    int ppl_new_BD_Shape_double_from_Octagonal_Shape_double_with_complexity(
        ppl_BD_Shape_double_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_BD_Shape_double_from_Constraint_System(
        ppl_BD_Shape_double_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_BD_Shape_double_from_Congruence_System(
        ppl_BD_Shape_double_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_BD_Shape_double_from_Generator_System(
        ppl_BD_Shape_double_t *pph, ppl_const_Generator_System_t cs);
    int ppl_new_BD_Shape_double_recycle_Constraint_System(
        ppl_BD_Shape_double_t *pph, ppl_Constraint_System_t cs);
    int ppl_new_BD_Shape_double_recycle_Congruence_System(
        ppl_BD_Shape_double_t *pph, ppl_Congruence_System_t cs);
    int ppl_new_BD_Shape_double_recycle_Generator_System(ppl_BD_Shape_double_t *pph,
                                                         ppl_Generator_System_t cs);
    int ppl_assign_BD_Shape_double_from_BD_Shape_double(
        ppl_BD_Shape_double_t dst, ppl_const_BD_Shape_double_t src);
    int ppl_delete_Octagonal_Shape_double(ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Octagonal_Shape_double_from_space_dimension(
        ppl_Octagonal_Shape_double_t *pph, ppl_dimension_type d, int empty);
    int ppl_new_Octagonal_Shape_double_from_C_Polyhedron(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Octagonal_Shape_double_from_NNC_Polyhedron(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Polyhedron_t ph);
    int ppl_new_Octagonal_Shape_double_from_Grid(ppl_Octagonal_Shape_double_t *pph,
                                                 ppl_const_Grid_t ph);
    int ppl_new_Octagonal_Shape_double_from_Rational_Box(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Rational_Box_t ph);
    int ppl_new_Octagonal_Shape_double_from_BD_Shape_mpz_class(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Octagonal_Shape_double_from_BD_Shape_mpq_class(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_mpz_class(
        ppl_Octagonal_Shape_double_t *pph,
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_mpq_class(
        ppl_Octagonal_Shape_double_t *pph,
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Octagonal_Shape_double_from_Double_Box(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Double_Box_t ph);
    int ppl_new_Octagonal_Shape_double_from_BD_Shape_double(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_double_t ph);
    int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_double(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Octagonal_Shape_double_from_C_Polyhedron_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_NNC_Polyhedron_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Polyhedron_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_Grid_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Grid_t ph, int complexity);
    int ppl_new_Octagonal_Shape_double_from_Rational_Box_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Rational_Box_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_BD_Shape_mpz_class_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_BD_Shape_mpq_class_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_mpz_class_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpz_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_mpq_class_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Octagonal_Shape_mpq_class_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_Double_Box_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Double_Box_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_BD_Shape_double_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_BD_Shape_double_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_Octagonal_Shape_double_with_complexity(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Octagonal_Shape_double_t ph,
        int complexity);
    int ppl_new_Octagonal_Shape_double_from_Constraint_System(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Constraint_System_t cs);
    int ppl_new_Octagonal_Shape_double_from_Congruence_System(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Congruence_System_t cs);
    int ppl_new_Octagonal_Shape_double_from_Generator_System(
        ppl_Octagonal_Shape_double_t *pph, ppl_const_Generator_System_t cs);
    int ppl_new_Octagonal_Shape_double_recycle_Constraint_System(
        ppl_Octagonal_Shape_double_t *pph, ppl_Constraint_System_t cs);
    int ppl_new_Octagonal_Shape_double_recycle_Congruence_System(
        ppl_Octagonal_Shape_double_t *pph, ppl_Congruence_System_t cs);
    int ppl_new_Octagonal_Shape_double_recycle_Generator_System(
        ppl_Octagonal_Shape_double_t *pph, ppl_Generator_System_t cs);
    int ppl_assign_Octagonal_Shape_double_from_Octagonal_Shape_double(
        ppl_Octagonal_Shape_double_t dst, ppl_const_Octagonal_Shape_double_t src);
    
    int ppl_new_Grid_from_Grid_Generator_System(
        ppl_Grid_t *pph, ppl_const_Grid_Generator_System_t cs);
    int ppl_new_Grid_recycle_Grid_Generator_System(ppl_Grid_t *pph,
                                                   ppl_Grid_Generator_System_t cs);
    
    VERIFICATION_CRITERIA:

    Check all selected domain constructors, conversion direction, copy/exchange independence, consuming/recycling inputs and allocation failures.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/domains.c; interfaces/C/tests/polyhedra.c.

  • PPL-SPEC-001555
    2. C generated domain observations UID: PPL-SPEC-001555 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_contains_integer_point_in_dimensions(
        ppl_const_Polyhedron_t ph, const ppl_dimension_type ds[], size_t n);
    int ppl_Polyhedron_space_dimension(ppl_const_Polyhedron_t ph,
                                       ppl_dimension_type *m);
    int ppl_Polyhedron_affine_dimension(ppl_const_Polyhedron_t ph,
                                        ppl_dimension_type *m);
    int ppl_Polyhedron_relation_with_Constraint(ppl_const_Polyhedron_t ph,
                                                ppl_const_Constraint_t c);
    int ppl_Polyhedron_relation_with_Generator(ppl_const_Polyhedron_t ph,
                                               ppl_const_Generator_t c);
    int ppl_Polyhedron_relation_with_Congruence(ppl_const_Polyhedron_t ph,
                                                ppl_const_Congruence_t c);
    int ppl_Polyhedron_is_empty(ppl_const_Polyhedron_t ph);
    int ppl_Polyhedron_is_universe(ppl_const_Polyhedron_t ph);
    int ppl_Polyhedron_is_bounded(ppl_const_Polyhedron_t ph);
    int ppl_Polyhedron_contains_integer_point(ppl_const_Polyhedron_t ph);
    int ppl_Polyhedron_is_topologically_closed(ppl_const_Polyhedron_t ph);
    int ppl_Polyhedron_is_discrete(ppl_const_Polyhedron_t ph);
    int ppl_Polyhedron_bounds_from_above(ppl_const_Polyhedron_t ph,
                                         ppl_const_Linear_Expression_t le);
    int ppl_Polyhedron_bounds_from_below(ppl_const_Polyhedron_t ph,
                                         ppl_const_Linear_Expression_t le);
    int ppl_Polyhedron_maximize(ppl_const_Polyhedron_t ph,
                                ppl_const_Linear_Expression_t le,
                                ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                                int *poptimum);
    int ppl_Polyhedron_minimize(ppl_const_Polyhedron_t ph,
                                ppl_const_Linear_Expression_t le,
                                ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                                int *poptimum);
    int ppl_Polyhedron_maximize_with_point(ppl_const_Polyhedron_t ph,
                                           ppl_const_Linear_Expression_t le,
                                           ppl_Coefficient_t ext_n,
                                           ppl_Coefficient_t ext_d, int *poptimum,
                                           ppl_Generator_t point);
    int ppl_Polyhedron_minimize_with_point(ppl_const_Polyhedron_t ph,
                                           ppl_const_Linear_Expression_t le,
                                           ppl_Coefficient_t ext_n,
                                           ppl_Coefficient_t ext_d, int *poptimum,
                                           ppl_Generator_t point);
    int ppl_Polyhedron_frequency(ppl_const_Polyhedron_t ph,
                                 ppl_const_Linear_Expression_t le,
                                 ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd,
                                 ppl_Coefficient_t ext_vn,
                                 ppl_Coefficient_t ext_vd);
    int ppl_Polyhedron_contains_Polyhedron(ppl_const_Polyhedron_t x,
                                           ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_strictly_contains_Polyhedron(ppl_const_Polyhedron_t x,
                                                    ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_is_disjoint_from_Polyhedron(ppl_const_Polyhedron_t x,
                                                   ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_OK(ppl_const_Polyhedron_t ph);
    int ppl_Polyhedron_constrains(ppl_Polyhedron_t ph, ppl_dimension_type var);
    int ppl_Polyhedron_external_memory_in_bytes(ppl_const_Polyhedron_t ps,
                                                size_t *sz);
    int ppl_Polyhedron_total_memory_in_bytes(ppl_const_Polyhedron_t ps, size_t *sz);
    int ppl_Grid_space_dimension(ppl_const_Grid_t ph, ppl_dimension_type *m);
    int ppl_Grid_affine_dimension(ppl_const_Grid_t ph, ppl_dimension_type *m);
    int ppl_Grid_relation_with_Constraint(ppl_const_Grid_t ph,
                                          ppl_const_Constraint_t c);
    int ppl_Grid_relation_with_Generator(ppl_const_Grid_t ph,
                                         ppl_const_Generator_t c);
    int ppl_Grid_relation_with_Congruence(ppl_const_Grid_t ph,
                                          ppl_const_Congruence_t c);
    int ppl_Grid_is_empty(ppl_const_Grid_t ph);
    int ppl_Grid_is_universe(ppl_const_Grid_t ph);
    int ppl_Grid_is_bounded(ppl_const_Grid_t ph);
    int ppl_Grid_contains_integer_point(ppl_const_Grid_t ph);
    int ppl_Grid_is_topologically_closed(ppl_const_Grid_t ph);
    int ppl_Grid_is_discrete(ppl_const_Grid_t ph);
    int ppl_Grid_bounds_from_above(ppl_const_Grid_t ph,
                                   ppl_const_Linear_Expression_t le);
    int ppl_Grid_bounds_from_below(ppl_const_Grid_t ph,
                                   ppl_const_Linear_Expression_t le);
    int ppl_Grid_maximize(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le,
                          ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                          int *poptimum);
    int ppl_Grid_minimize(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le,
                          ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                          int *poptimum);
    int ppl_Grid_maximize_with_point(ppl_const_Grid_t ph,
                                     ppl_const_Linear_Expression_t le,
                                     ppl_Coefficient_t ext_n,
                                     ppl_Coefficient_t ext_d, int *poptimum,
                                     ppl_Generator_t point);
    int ppl_Grid_minimize_with_point(ppl_const_Grid_t ph,
                                     ppl_const_Linear_Expression_t le,
                                     ppl_Coefficient_t ext_n,
                                     ppl_Coefficient_t ext_d, int *poptimum,
                                     ppl_Generator_t point);
    int ppl_Grid_frequency(ppl_const_Grid_t ph, ppl_const_Linear_Expression_t le,
                           ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd,
                           ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd);
    int ppl_Grid_contains_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_strictly_contains_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_is_disjoint_from_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_OK(ppl_const_Grid_t ph);
    int ppl_Grid_constrains(ppl_Grid_t ph, ppl_dimension_type var);
    int ppl_Grid_external_memory_in_bytes(ppl_const_Grid_t ps, size_t *sz);
    int ppl_Grid_total_memory_in_bytes(ppl_const_Grid_t ps, size_t *sz);
    int ppl_Rational_Box_space_dimension(ppl_const_Rational_Box_t ph,
                                         ppl_dimension_type *m);
    int ppl_Rational_Box_affine_dimension(ppl_const_Rational_Box_t ph,
                                          ppl_dimension_type *m);
    int ppl_Rational_Box_relation_with_Constraint(ppl_const_Rational_Box_t ph,
                                                  ppl_const_Constraint_t c);
    int ppl_Rational_Box_relation_with_Generator(ppl_const_Rational_Box_t ph,
                                                 ppl_const_Generator_t c);
    int ppl_Rational_Box_relation_with_Congruence(ppl_const_Rational_Box_t ph,
                                                  ppl_const_Congruence_t c);
    int ppl_Rational_Box_is_empty(ppl_const_Rational_Box_t ph);
    int ppl_Rational_Box_is_universe(ppl_const_Rational_Box_t ph);
    int ppl_Rational_Box_is_bounded(ppl_const_Rational_Box_t ph);
    int ppl_Rational_Box_contains_integer_point(ppl_const_Rational_Box_t ph);
    int ppl_Rational_Box_is_topologically_closed(ppl_const_Rational_Box_t ph);
    int ppl_Rational_Box_is_discrete(ppl_const_Rational_Box_t ph);
    int ppl_Rational_Box_bounds_from_above(ppl_const_Rational_Box_t ph,
                                           ppl_const_Linear_Expression_t le);
    int ppl_Rational_Box_bounds_from_below(ppl_const_Rational_Box_t ph,
                                           ppl_const_Linear_Expression_t le);
    int ppl_Rational_Box_maximize(ppl_const_Rational_Box_t ph,
                                  ppl_const_Linear_Expression_t le,
                                  ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                                  int *poptimum);
    int ppl_Rational_Box_minimize(ppl_const_Rational_Box_t ph,
                                  ppl_const_Linear_Expression_t le,
                                  ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                                  int *poptimum);
    int ppl_Rational_Box_maximize_with_point(ppl_const_Rational_Box_t ph,
                                             ppl_const_Linear_Expression_t le,
                                             ppl_Coefficient_t ext_n,
                                             ppl_Coefficient_t ext_d, int *poptimum,
                                             ppl_Generator_t point);
    int ppl_Rational_Box_minimize_with_point(ppl_const_Rational_Box_t ph,
                                             ppl_const_Linear_Expression_t le,
                                             ppl_Coefficient_t ext_n,
                                             ppl_Coefficient_t ext_d, int *poptimum,
                                             ppl_Generator_t point);
    int ppl_Rational_Box_frequency(ppl_const_Rational_Box_t ph,
                                   ppl_const_Linear_Expression_t le,
                                   ppl_Coefficient_t ext_fn,
                                   ppl_Coefficient_t ext_fd,
                                   ppl_Coefficient_t ext_vn,
                                   ppl_Coefficient_t ext_vd);
    int ppl_Rational_Box_contains_Rational_Box(ppl_const_Rational_Box_t x,
                                               ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_strictly_contains_Rational_Box(ppl_const_Rational_Box_t x,
                                                        ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_is_disjoint_from_Rational_Box(ppl_const_Rational_Box_t x,
                                                       ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_OK(ppl_const_Rational_Box_t ph);
    int ppl_Rational_Box_constrains(ppl_Rational_Box_t ph, ppl_dimension_type var);
    int ppl_Rational_Box_external_memory_in_bytes(ppl_const_Rational_Box_t ps,
                                                  size_t *sz);
    int ppl_Rational_Box_total_memory_in_bytes(ppl_const_Rational_Box_t ps,
                                               size_t *sz);
    int ppl_BD_Shape_mpz_class_space_dimension(ppl_const_BD_Shape_mpz_class_t ph,
                                               ppl_dimension_type *m);
    int ppl_BD_Shape_mpz_class_affine_dimension(ppl_const_BD_Shape_mpz_class_t ph,
                                                ppl_dimension_type *m);
    int ppl_BD_Shape_mpz_class_relation_with_Constraint(
        ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Constraint_t c);
    int ppl_BD_Shape_mpz_class_relation_with_Generator(
        ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Generator_t c);
    int ppl_BD_Shape_mpz_class_relation_with_Congruence(
        ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Congruence_t c);
    int ppl_BD_Shape_mpz_class_is_empty(ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_is_universe(ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_is_bounded(ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_contains_integer_point(
        ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_is_topologically_closed(
        ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_is_discrete(ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_bounds_from_above(ppl_const_BD_Shape_mpz_class_t ph,
                                                 ppl_const_Linear_Expression_t le);
    int ppl_BD_Shape_mpz_class_bounds_from_below(ppl_const_BD_Shape_mpz_class_t ph,
                                                 ppl_const_Linear_Expression_t le);
    int ppl_BD_Shape_mpz_class_maximize(ppl_const_BD_Shape_mpz_class_t ph,
                                        ppl_const_Linear_Expression_t le,
                                        ppl_Coefficient_t ext_n,
                                        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_BD_Shape_mpz_class_minimize(ppl_const_BD_Shape_mpz_class_t ph,
                                        ppl_const_Linear_Expression_t le,
                                        ppl_Coefficient_t ext_n,
                                        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_BD_Shape_mpz_class_maximize_with_point(
        ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_BD_Shape_mpz_class_minimize_with_point(
        ppl_const_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_BD_Shape_mpz_class_frequency(ppl_const_BD_Shape_mpz_class_t ph,
                                         ppl_const_Linear_Expression_t le,
                                         ppl_Coefficient_t ext_fn,
                                         ppl_Coefficient_t ext_fd,
                                         ppl_Coefficient_t ext_vn,
                                         ppl_Coefficient_t ext_vd);
    int ppl_BD_Shape_mpz_class_contains_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_strictly_contains_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_is_disjoint_from_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_OK(ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_constrains(ppl_BD_Shape_mpz_class_t ph,
                                          ppl_dimension_type var);
    int ppl_BD_Shape_mpz_class_external_memory_in_bytes(
        ppl_const_BD_Shape_mpz_class_t ps, size_t *sz);
    int ppl_BD_Shape_mpz_class_total_memory_in_bytes(
        ppl_const_BD_Shape_mpz_class_t ps, size_t *sz);
    int ppl_BD_Shape_mpq_class_space_dimension(ppl_const_BD_Shape_mpq_class_t ph,
                                               ppl_dimension_type *m);
    int ppl_BD_Shape_mpq_class_affine_dimension(ppl_const_BD_Shape_mpq_class_t ph,
                                                ppl_dimension_type *m);
    int ppl_BD_Shape_mpq_class_relation_with_Constraint(
        ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Constraint_t c);
    int ppl_BD_Shape_mpq_class_relation_with_Generator(
        ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Generator_t c);
    int ppl_BD_Shape_mpq_class_relation_with_Congruence(
        ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Congruence_t c);
    int ppl_BD_Shape_mpq_class_is_empty(ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_is_universe(ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_is_bounded(ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_contains_integer_point(
        ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_is_topologically_closed(
        ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_is_discrete(ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_bounds_from_above(ppl_const_BD_Shape_mpq_class_t ph,
                                                 ppl_const_Linear_Expression_t le);
    int ppl_BD_Shape_mpq_class_bounds_from_below(ppl_const_BD_Shape_mpq_class_t ph,
                                                 ppl_const_Linear_Expression_t le);
    int ppl_BD_Shape_mpq_class_maximize(ppl_const_BD_Shape_mpq_class_t ph,
                                        ppl_const_Linear_Expression_t le,
                                        ppl_Coefficient_t ext_n,
                                        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_BD_Shape_mpq_class_minimize(ppl_const_BD_Shape_mpq_class_t ph,
                                        ppl_const_Linear_Expression_t le,
                                        ppl_Coefficient_t ext_n,
                                        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_BD_Shape_mpq_class_maximize_with_point(
        ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_BD_Shape_mpq_class_minimize_with_point(
        ppl_const_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_BD_Shape_mpq_class_frequency(ppl_const_BD_Shape_mpq_class_t ph,
                                         ppl_const_Linear_Expression_t le,
                                         ppl_Coefficient_t ext_fn,
                                         ppl_Coefficient_t ext_fd,
                                         ppl_Coefficient_t ext_vn,
                                         ppl_Coefficient_t ext_vd);
    int ppl_BD_Shape_mpq_class_contains_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_strictly_contains_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_is_disjoint_from_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_OK(ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_constrains(ppl_BD_Shape_mpq_class_t ph,
                                          ppl_dimension_type var);
    int ppl_BD_Shape_mpq_class_external_memory_in_bytes(
        ppl_const_BD_Shape_mpq_class_t ps, size_t *sz);
    int ppl_BD_Shape_mpq_class_total_memory_in_bytes(
        ppl_const_BD_Shape_mpq_class_t ps, size_t *sz);
    int ppl_Octagonal_Shape_mpz_class_space_dimension(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type *m);
    int ppl_Octagonal_Shape_mpz_class_affine_dimension(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type *m);
    int ppl_Octagonal_Shape_mpz_class_relation_with_Constraint(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_mpz_class_relation_with_Generator(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Generator_t c);
    int ppl_Octagonal_Shape_mpz_class_relation_with_Congruence(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_mpz_class_is_empty(
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_is_universe(
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_is_bounded(
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_contains_integer_point(
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_is_topologically_closed(
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_is_discrete(
        ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_bounds_from_above(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le);
    int ppl_Octagonal_Shape_mpz_class_bounds_from_below(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le);
    int ppl_Octagonal_Shape_mpz_class_maximize(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Octagonal_Shape_mpz_class_minimize(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Octagonal_Shape_mpz_class_maximize_with_point(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_Octagonal_Shape_mpz_class_minimize_with_point(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_Octagonal_Shape_mpz_class_frequency(
        ppl_const_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd,
        ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd);
    int ppl_Octagonal_Shape_mpz_class_contains_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t x,
        ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_strictly_contains_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t x,
        ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_is_disjoint_from_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t x,
        ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_OK(ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_constrains(ppl_Octagonal_Shape_mpz_class_t ph,
                                                 ppl_dimension_type var);
    int ppl_Octagonal_Shape_mpz_class_external_memory_in_bytes(
        ppl_const_Octagonal_Shape_mpz_class_t ps, size_t *sz);
    int ppl_Octagonal_Shape_mpz_class_total_memory_in_bytes(
        ppl_const_Octagonal_Shape_mpz_class_t ps, size_t *sz);
    int ppl_Octagonal_Shape_mpq_class_space_dimension(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type *m);
    int ppl_Octagonal_Shape_mpq_class_affine_dimension(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type *m);
    int ppl_Octagonal_Shape_mpq_class_relation_with_Constraint(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_mpq_class_relation_with_Generator(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Generator_t c);
    int ppl_Octagonal_Shape_mpq_class_relation_with_Congruence(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_mpq_class_is_empty(
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_is_universe(
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_is_bounded(
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_contains_integer_point(
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_is_topologically_closed(
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_is_discrete(
        ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_bounds_from_above(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le);
    int ppl_Octagonal_Shape_mpq_class_bounds_from_below(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le);
    int ppl_Octagonal_Shape_mpq_class_maximize(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Octagonal_Shape_mpq_class_minimize(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Octagonal_Shape_mpq_class_maximize_with_point(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_Octagonal_Shape_mpq_class_minimize_with_point(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_Octagonal_Shape_mpq_class_frequency(
        ppl_const_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd,
        ppl_Coefficient_t ext_vn, ppl_Coefficient_t ext_vd);
    int ppl_Octagonal_Shape_mpq_class_contains_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t x,
        ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_strictly_contains_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t x,
        ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_is_disjoint_from_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t x,
        ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_OK(ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_constrains(ppl_Octagonal_Shape_mpq_class_t ph,
                                                 ppl_dimension_type var);
    int ppl_Octagonal_Shape_mpq_class_external_memory_in_bytes(
        ppl_const_Octagonal_Shape_mpq_class_t ps, size_t *sz);
    int ppl_Octagonal_Shape_mpq_class_total_memory_in_bytes(
        ppl_const_Octagonal_Shape_mpq_class_t ps, size_t *sz);
    int ppl_Constraints_Product_C_Polyhedron_Grid_space_dimension(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_dimension_type *m);
    int ppl_Constraints_Product_C_Polyhedron_Grid_affine_dimension(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_dimension_type *m);
    int ppl_Constraints_Product_C_Polyhedron_Grid_relation_with_Constraint(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Constraint_t c);
    int ppl_Constraints_Product_C_Polyhedron_Grid_relation_with_Generator(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Generator_t c);
    int ppl_Constraints_Product_C_Polyhedron_Grid_relation_with_Congruence(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Congruence_t c);
    int ppl_Constraints_Product_C_Polyhedron_Grid_is_empty(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_Constraints_Product_C_Polyhedron_Grid_is_universe(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_Constraints_Product_C_Polyhedron_Grid_is_bounded(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_Constraints_Product_C_Polyhedron_Grid_is_topologically_closed(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_Constraints_Product_C_Polyhedron_Grid_is_discrete(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_Constraints_Product_C_Polyhedron_Grid_bounds_from_above(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t le);
    int ppl_Constraints_Product_C_Polyhedron_Grid_bounds_from_below(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t le);
    int ppl_Constraints_Product_C_Polyhedron_Grid_maximize(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Constraints_Product_C_Polyhedron_Grid_minimize(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Constraints_Product_C_Polyhedron_Grid_maximize_with_point(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point);
    int ppl_Constraints_Product_C_Polyhedron_Grid_minimize_with_point(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point);
    int ppl_Constraints_Product_C_Polyhedron_Grid_contains_Constraints_Product_C_Polyhedron_Grid(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_strictly_contains_Constraints_Product_C_Polyhedron_Grid(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_is_disjoint_from_Constraints_Product_C_Polyhedron_Grid(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_OK(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_Constraints_Product_C_Polyhedron_Grid_constrains(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var);
    int ppl_Constraints_Product_C_Polyhedron_Grid_external_memory_in_bytes(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ps, size_t *sz);
    int ppl_Constraints_Product_C_Polyhedron_Grid_total_memory_in_bytes(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t ps, size_t *sz);
    int ppl_Pointset_Powerset_C_Polyhedron_space_dimension(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type *m);
    int ppl_Pointset_Powerset_C_Polyhedron_affine_dimension(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type *m);
    int ppl_Pointset_Powerset_C_Polyhedron_relation_with_Constraint(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Constraint_t c);
    int ppl_Pointset_Powerset_C_Polyhedron_relation_with_Generator(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Generator_t c);
    int ppl_Pointset_Powerset_C_Polyhedron_relation_with_Congruence(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Congruence_t c);
    int ppl_Pointset_Powerset_C_Polyhedron_is_empty(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_is_universe(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_is_bounded(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_contains_integer_point(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_is_topologically_closed(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_is_discrete(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_bounds_from_above(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le);
    int ppl_Pointset_Powerset_C_Polyhedron_bounds_from_below(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le);
    int ppl_Pointset_Powerset_C_Polyhedron_maximize(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Pointset_Powerset_C_Polyhedron_minimize(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Pointset_Powerset_C_Polyhedron_maximize_with_point(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point);
    int ppl_Pointset_Powerset_C_Polyhedron_minimize_with_point(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point);
    int ppl_Pointset_Powerset_C_Polyhedron_contains_Pointset_Powerset_C_Polyhedron(
        ppl_const_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_strictly_contains_Pointset_Powerset_C_Polyhedron(
        ppl_const_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_is_disjoint_from_Pointset_Powerset_C_Polyhedron(
        ppl_const_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_OK(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_constrains(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var);
    int ppl_Pointset_Powerset_C_Polyhedron_external_memory_in_bytes(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ps, size_t *sz);
    int ppl_Pointset_Powerset_C_Polyhedron_total_memory_in_bytes(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ps, size_t *sz);
    int ppl_Pointset_Powerset_NNC_Polyhedron_space_dimension(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type *m);
    int ppl_Pointset_Powerset_NNC_Polyhedron_affine_dimension(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type *m);
    int ppl_Pointset_Powerset_NNC_Polyhedron_relation_with_Constraint(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Constraint_t c);
    int ppl_Pointset_Powerset_NNC_Polyhedron_relation_with_Generator(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Generator_t c);
    int ppl_Pointset_Powerset_NNC_Polyhedron_relation_with_Congruence(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Congruence_t c);
    int ppl_Pointset_Powerset_NNC_Polyhedron_is_empty(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_is_universe(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_is_bounded(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_contains_integer_point(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_is_topologically_closed(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_is_discrete(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_bounds_from_above(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le);
    int ppl_Pointset_Powerset_NNC_Polyhedron_bounds_from_below(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le);
    int ppl_Pointset_Powerset_NNC_Polyhedron_maximize(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Pointset_Powerset_NNC_Polyhedron_minimize(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Pointset_Powerset_NNC_Polyhedron_maximize_with_point(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point);
    int ppl_Pointset_Powerset_NNC_Polyhedron_minimize_with_point(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t le, ppl_Coefficient_t ext_n,
        ppl_Coefficient_t ext_d, int *poptimum, ppl_Generator_t point);
    int ppl_Pointset_Powerset_NNC_Polyhedron_contains_Pointset_Powerset_NNC_Polyhedron(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_strictly_contains_Pointset_Powerset_NNC_Polyhedron(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_is_disjoint_from_Pointset_Powerset_NNC_Polyhedron(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_OK(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_constrains(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var);
    int ppl_Pointset_Powerset_NNC_Polyhedron_external_memory_in_bytes(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps, size_t *sz);
    int ppl_Pointset_Powerset_NNC_Polyhedron_total_memory_in_bytes(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps, size_t *sz);
    int ppl_Double_Box_space_dimension(ppl_const_Double_Box_t ph,
                                       ppl_dimension_type *m);
    int ppl_Double_Box_affine_dimension(ppl_const_Double_Box_t ph,
                                        ppl_dimension_type *m);
    int ppl_Double_Box_relation_with_Constraint(ppl_const_Double_Box_t ph,
                                                ppl_const_Constraint_t c);
    int ppl_Double_Box_relation_with_Generator(ppl_const_Double_Box_t ph,
                                               ppl_const_Generator_t c);
    int ppl_Double_Box_relation_with_Congruence(ppl_const_Double_Box_t ph,
                                                ppl_const_Congruence_t c);
    int ppl_Double_Box_is_empty(ppl_const_Double_Box_t ph);
    int ppl_Double_Box_is_universe(ppl_const_Double_Box_t ph);
    int ppl_Double_Box_is_bounded(ppl_const_Double_Box_t ph);
    int ppl_Double_Box_contains_integer_point(ppl_const_Double_Box_t ph);
    int ppl_Double_Box_is_topologically_closed(ppl_const_Double_Box_t ph);
    int ppl_Double_Box_is_discrete(ppl_const_Double_Box_t ph);
    int ppl_Double_Box_bounds_from_above(ppl_const_Double_Box_t ph,
                                         ppl_const_Linear_Expression_t le);
    int ppl_Double_Box_bounds_from_below(ppl_const_Double_Box_t ph,
                                         ppl_const_Linear_Expression_t le);
    int ppl_Double_Box_maximize(ppl_const_Double_Box_t ph,
                                ppl_const_Linear_Expression_t le,
                                ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                                int *poptimum);
    int ppl_Double_Box_minimize(ppl_const_Double_Box_t ph,
                                ppl_const_Linear_Expression_t le,
                                ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d,
                                int *poptimum);
    int ppl_Double_Box_maximize_with_point(ppl_const_Double_Box_t ph,
                                           ppl_const_Linear_Expression_t le,
                                           ppl_Coefficient_t ext_n,
                                           ppl_Coefficient_t ext_d, int *poptimum,
                                           ppl_Generator_t point);
    int ppl_Double_Box_minimize_with_point(ppl_const_Double_Box_t ph,
                                           ppl_const_Linear_Expression_t le,
                                           ppl_Coefficient_t ext_n,
                                           ppl_Coefficient_t ext_d, int *poptimum,
                                           ppl_Generator_t point);
    int ppl_Double_Box_frequency(ppl_const_Double_Box_t ph,
                                 ppl_const_Linear_Expression_t le,
                                 ppl_Coefficient_t ext_fn, ppl_Coefficient_t ext_fd,
                                 ppl_Coefficient_t ext_vn,
                                 ppl_Coefficient_t ext_vd);
    int ppl_Double_Box_contains_Double_Box(ppl_const_Double_Box_t x,
                                           ppl_const_Double_Box_t y);
    int ppl_Double_Box_strictly_contains_Double_Box(ppl_const_Double_Box_t x,
                                                    ppl_const_Double_Box_t y);
    int ppl_Double_Box_is_disjoint_from_Double_Box(ppl_const_Double_Box_t x,
                                                   ppl_const_Double_Box_t y);
    int ppl_Double_Box_OK(ppl_const_Double_Box_t ph);
    int ppl_Double_Box_constrains(ppl_Double_Box_t ph, ppl_dimension_type var);
    int ppl_Double_Box_external_memory_in_bytes(ppl_const_Double_Box_t ps,
                                                size_t *sz);
    int ppl_Double_Box_total_memory_in_bytes(ppl_const_Double_Box_t ps, size_t *sz);
    int ppl_BD_Shape_double_space_dimension(ppl_const_BD_Shape_double_t ph,
                                            ppl_dimension_type *m);
    int ppl_BD_Shape_double_affine_dimension(ppl_const_BD_Shape_double_t ph,
                                             ppl_dimension_type *m);
    int ppl_BD_Shape_double_relation_with_Constraint(ppl_const_BD_Shape_double_t ph,
                                                     ppl_const_Constraint_t c);
    int ppl_BD_Shape_double_relation_with_Generator(ppl_const_BD_Shape_double_t ph,
                                                    ppl_const_Generator_t c);
    int ppl_BD_Shape_double_relation_with_Congruence(ppl_const_BD_Shape_double_t ph,
                                                     ppl_const_Congruence_t c);
    int ppl_BD_Shape_double_is_empty(ppl_const_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_is_universe(ppl_const_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_is_bounded(ppl_const_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_contains_integer_point(ppl_const_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_is_topologically_closed(ppl_const_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_is_discrete(ppl_const_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_bounds_from_above(ppl_const_BD_Shape_double_t ph,
                                              ppl_const_Linear_Expression_t le);
    int ppl_BD_Shape_double_bounds_from_below(ppl_const_BD_Shape_double_t ph,
                                              ppl_const_Linear_Expression_t le);
    int ppl_BD_Shape_double_maximize(ppl_const_BD_Shape_double_t ph,
                                     ppl_const_Linear_Expression_t le,
                                     ppl_Coefficient_t ext_n,
                                     ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_BD_Shape_double_minimize(ppl_const_BD_Shape_double_t ph,
                                     ppl_const_Linear_Expression_t le,
                                     ppl_Coefficient_t ext_n,
                                     ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_BD_Shape_double_maximize_with_point(ppl_const_BD_Shape_double_t ph,
                                                ppl_const_Linear_Expression_t le,
                                                ppl_Coefficient_t ext_n,
                                                ppl_Coefficient_t ext_d,
                                                int *poptimum,
                                                ppl_Generator_t point);
    int ppl_BD_Shape_double_minimize_with_point(ppl_const_BD_Shape_double_t ph,
                                                ppl_const_Linear_Expression_t le,
                                                ppl_Coefficient_t ext_n,
                                                ppl_Coefficient_t ext_d,
                                                int *poptimum,
                                                ppl_Generator_t point);
    int ppl_BD_Shape_double_frequency(ppl_const_BD_Shape_double_t ph,
                                      ppl_const_Linear_Expression_t le,
                                      ppl_Coefficient_t ext_fn,
                                      ppl_Coefficient_t ext_fd,
                                      ppl_Coefficient_t ext_vn,
                                      ppl_Coefficient_t ext_vd);
    int ppl_BD_Shape_double_contains_BD_Shape_double(ppl_const_BD_Shape_double_t x,
                                                     ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_strictly_contains_BD_Shape_double(
        ppl_const_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_is_disjoint_from_BD_Shape_double(
        ppl_const_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_OK(ppl_const_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_constrains(ppl_BD_Shape_double_t ph,
                                       ppl_dimension_type var);
    int ppl_BD_Shape_double_external_memory_in_bytes(ppl_const_BD_Shape_double_t ps,
                                                     size_t *sz);
    int ppl_BD_Shape_double_total_memory_in_bytes(ppl_const_BD_Shape_double_t ps,
                                                  size_t *sz);
    int ppl_Octagonal_Shape_double_space_dimension(
        ppl_const_Octagonal_Shape_double_t ph, ppl_dimension_type *m);
    int ppl_Octagonal_Shape_double_affine_dimension(
        ppl_const_Octagonal_Shape_double_t ph, ppl_dimension_type *m);
    int ppl_Octagonal_Shape_double_relation_with_Constraint(
        ppl_const_Octagonal_Shape_double_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_double_relation_with_Generator(
        ppl_const_Octagonal_Shape_double_t ph, ppl_const_Generator_t c);
    int ppl_Octagonal_Shape_double_relation_with_Congruence(
        ppl_const_Octagonal_Shape_double_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_double_is_empty(ppl_const_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_is_universe(
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_is_bounded(
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_contains_integer_point(
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_is_topologically_closed(
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_is_discrete(
        ppl_const_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_bounds_from_above(
        ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le);
    int ppl_Octagonal_Shape_double_bounds_from_below(
        ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le);
    int ppl_Octagonal_Shape_double_maximize(ppl_const_Octagonal_Shape_double_t ph,
                                            ppl_const_Linear_Expression_t le,
                                            ppl_Coefficient_t ext_n,
                                            ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Octagonal_Shape_double_minimize(ppl_const_Octagonal_Shape_double_t ph,
                                            ppl_const_Linear_Expression_t le,
                                            ppl_Coefficient_t ext_n,
                                            ppl_Coefficient_t ext_d, int *poptimum);
    int ppl_Octagonal_Shape_double_maximize_with_point(
        ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_Octagonal_Shape_double_minimize_with_point(
        ppl_const_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t le,
        ppl_Coefficient_t ext_n, ppl_Coefficient_t ext_d, int *poptimum,
        ppl_Generator_t point);
    int ppl_Octagonal_Shape_double_frequency(ppl_const_Octagonal_Shape_double_t ph,
                                             ppl_const_Linear_Expression_t le,
                                             ppl_Coefficient_t ext_fn,
                                             ppl_Coefficient_t ext_fd,
                                             ppl_Coefficient_t ext_vn,
                                             ppl_Coefficient_t ext_vd);
    int ppl_Octagonal_Shape_double_contains_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_strictly_contains_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_is_disjoint_from_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_OK(ppl_const_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_constrains(ppl_Octagonal_Shape_double_t ph,
                                              ppl_dimension_type var);
    int ppl_Octagonal_Shape_double_external_memory_in_bytes(
        ppl_const_Octagonal_Shape_double_t ps, size_t *sz);
    int ppl_Octagonal_Shape_double_total_memory_in_bytes(
        ppl_const_Octagonal_Shape_double_t ps, size_t *sz);
    int ppl_Polyhedron_equals_Polyhedron(ppl_const_Polyhedron_t x,
                                         ppl_const_Polyhedron_t y);
    int ppl_Grid_equals_Grid(ppl_const_Grid_t x, ppl_const_Grid_t y);
    int ppl_Rational_Box_has_upper_bound(ppl_Rational_Box_t ps,
                                         ppl_dimension_type var,
                                         ppl_Coefficient_t ext_n,
                                         ppl_Coefficient_t ext_d, int *pclosed);
    int ppl_Rational_Box_has_lower_bound(ppl_Rational_Box_t ps,
                                         ppl_dimension_type var,
                                         ppl_Coefficient_t ext_n,
                                         ppl_Coefficient_t ext_d, int *pclosed);
    int ppl_Rational_Box_equals_Rational_Box(ppl_const_Rational_Box_t x,
                                             ppl_const_Rational_Box_t y);
    int ppl_BD_Shape_mpz_class_equals_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpq_class_equals_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpz_class_equals_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t x,
        ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpq_class_equals_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t x,
        ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_equals_Constraints_Product_C_Polyhedron_Grid(
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_geometrically_equals_Pointset_Powerset_C_Polyhedron(
        ppl_const_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_equals_Pointset_Powerset_C_Polyhedron(
        ppl_const_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_geometrically_equals_Pointset_Powerset_NNC_Polyhedron(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_equals_Pointset_Powerset_NNC_Polyhedron(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Double_Box_has_upper_bound(ppl_Double_Box_t ps, ppl_dimension_type var,
                                       ppl_Coefficient_t ext_n,
                                       ppl_Coefficient_t ext_d, int *pclosed);
    int ppl_Double_Box_has_lower_bound(ppl_Double_Box_t ps, ppl_dimension_type var,
                                       ppl_Coefficient_t ext_n,
                                       ppl_Coefficient_t ext_d, int *pclosed);
    int ppl_Double_Box_equals_Double_Box(ppl_const_Double_Box_t x,
                                         ppl_const_Double_Box_t y);
    int ppl_BD_Shape_double_equals_BD_Shape_double(ppl_const_BD_Shape_double_t x,
                                                   ppl_const_BD_Shape_double_t y);
    int ppl_Octagonal_Shape_double_equals_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    
    int ppl_Pointset_Powerset_C_Polyhedron_geometrically_covers_Pointset_Powerset_C_Polyhedron(
        ppl_const_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_size(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ps, size_t *sz);
    int ppl_Pointset_Powerset_NNC_Polyhedron_geometrically_covers_Pointset_Powerset_NNC_Polyhedron(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_size(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps, size_t *sz);
    int ppl_Grid_relation_with_Grid_Generator(ppl_const_Grid_t ph,
                                              ppl_const_Grid_Generator_t c);
    
    VERIFICATION_CRITERIA:

    Compare literal empty/universe, containment, relation flags and bounded/unbounded optimization/frequency results for configured arithmetic types.

    SOURCE:

    interfaces/C/tests/newoperations.c; interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/domains.c; interfaces/C/tests/polyhedra.c.

  • PPL-SPEC-001556
    3. C generated system extraction ownership UID: PPL-SPEC-001556 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_get_constraints(ppl_const_Polyhedron_t ph,
                                       ppl_const_Constraint_System_t *pcs);
    int ppl_Polyhedron_get_generators(ppl_const_Polyhedron_t ph,
                                      ppl_const_Generator_System_t *pcs);
    int ppl_Polyhedron_get_minimized_constraints(
        ppl_const_Polyhedron_t ph, ppl_const_Constraint_System_t *pcs);
    int ppl_Polyhedron_get_minimized_generators(ppl_const_Polyhedron_t ph,
                                                ppl_const_Generator_System_t *pcs);
    int ppl_Grid_get_congruences(ppl_const_Grid_t ph,
                                 ppl_const_Congruence_System_t *pcs);
    int ppl_Grid_get_grid_generators(ppl_const_Grid_t ph,
                                     ppl_const_Grid_Generator_System_t *pcs);
    int ppl_Grid_get_minimized_congruences(ppl_const_Grid_t ph,
                                           ppl_const_Congruence_System_t *pcs);
    int ppl_Grid_get_minimized_grid_generators(
        ppl_const_Grid_t ph, ppl_const_Grid_Generator_System_t *pcs);
    int ppl_new_Congruence_System_from_Polyhedron(ppl_Congruence_System_t *pcs,
                                                  ppl_const_Polyhedron_t ph);
    int ppl_new_Congruence_System_from_Polyhedron_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_Polyhedron_t ph);
    int ppl_new_Constraint_System_from_Grid(ppl_Constraint_System_t *pcs,
                                            ppl_const_Grid_t ph);
    int ppl_new_Constraint_System_from_Grid_minimized(ppl_Constraint_System_t *pcs,
                                                      ppl_const_Grid_t ph);
    int ppl_new_Constraint_System_from_Rational_Box(ppl_Constraint_System_t *pcs,
                                                    ppl_const_Rational_Box_t ph);
    int ppl_new_Congruence_System_from_Rational_Box(ppl_Congruence_System_t *pcs,
                                                    ppl_const_Rational_Box_t ph);
    int ppl_new_Constraint_System_from_Rational_Box_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_Rational_Box_t ph);
    int ppl_new_Congruence_System_from_Rational_Box_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_Rational_Box_t ph);
    int ppl_new_Constraint_System_from_BD_Shape_mpz_class(
        ppl_Constraint_System_t *pcs, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Congruence_System_from_BD_Shape_mpz_class(
        ppl_Congruence_System_t *pcs, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Constraint_System_from_BD_Shape_mpz_class_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Congruence_System_from_BD_Shape_mpz_class_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_BD_Shape_mpz_class_t ph);
    int ppl_new_Constraint_System_from_BD_Shape_mpq_class(
        ppl_Constraint_System_t *pcs, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Congruence_System_from_BD_Shape_mpq_class(
        ppl_Congruence_System_t *pcs, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Constraint_System_from_BD_Shape_mpq_class_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Congruence_System_from_BD_Shape_mpq_class_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_BD_Shape_mpq_class_t ph);
    int ppl_new_Constraint_System_from_Octagonal_Shape_mpz_class(
        ppl_Constraint_System_t *pcs, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Congruence_System_from_Octagonal_Shape_mpz_class(
        ppl_Congruence_System_t *pcs, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Constraint_System_from_Octagonal_Shape_mpz_class_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Congruence_System_from_Octagonal_Shape_mpz_class_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_Octagonal_Shape_mpz_class_t ph);
    int ppl_new_Constraint_System_from_Octagonal_Shape_mpq_class(
        ppl_Constraint_System_t *pcs, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Congruence_System_from_Octagonal_Shape_mpq_class(
        ppl_Congruence_System_t *pcs, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Constraint_System_from_Octagonal_Shape_mpq_class_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Congruence_System_from_Octagonal_Shape_mpq_class_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_Octagonal_Shape_mpq_class_t ph);
    int ppl_new_Constraint_System_from_Double_Box(ppl_Constraint_System_t *pcs,
                                                  ppl_const_Double_Box_t ph);
    int ppl_new_Congruence_System_from_Double_Box(ppl_Congruence_System_t *pcs,
                                                  ppl_const_Double_Box_t ph);
    int ppl_new_Constraint_System_from_Double_Box_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_Double_Box_t ph);
    int ppl_new_Congruence_System_from_Double_Box_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_Double_Box_t ph);
    int ppl_new_Constraint_System_from_BD_Shape_double(
        ppl_Constraint_System_t *pcs, ppl_const_BD_Shape_double_t ph);
    int ppl_new_Congruence_System_from_BD_Shape_double(
        ppl_Congruence_System_t *pcs, ppl_const_BD_Shape_double_t ph);
    int ppl_new_Constraint_System_from_BD_Shape_double_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_BD_Shape_double_t ph);
    int ppl_new_Congruence_System_from_BD_Shape_double_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_BD_Shape_double_t ph);
    int ppl_new_Constraint_System_from_Octagonal_Shape_double(
        ppl_Constraint_System_t *pcs, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Congruence_System_from_Octagonal_Shape_double(
        ppl_Congruence_System_t *pcs, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Constraint_System_from_Octagonal_Shape_double_minimized(
        ppl_Constraint_System_t *pcs, ppl_const_Octagonal_Shape_double_t ph);
    int ppl_new_Congruence_System_from_Octagonal_Shape_double_minimized(
        ppl_Congruence_System_t *pcs, ppl_const_Octagonal_Shape_double_t ph);
    
    VERIFICATION_CRITERIA:

    Check borrowed identity and zero-copy behavior, independently owned extractions, native representation meaning and owner lifetime histories.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/domains.c.

  • PPL-SPEC-001557
    4. C generated domain transformations UID: PPL-SPEC-001557 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_minkowski_sum_assign(ppl_Polyhedron_t lhs,
                                            ppl_const_Polyhedron_t rhs);
    int ppl_Polyhedron_time_elapse_assign_with_generators(
        ppl_Polyhedron_t ph, ppl_const_Generator_System_t rates);
    int ppl_C_Polyhedron_HH95_extrapolation_assign(ppl_Polyhedron_t lhs,
                                                  ppl_const_Polyhedron_t rhs);
    int ppl_C_Polyhedron_HPW01_extrapolation_assign(ppl_Polyhedron_t lhs,
                                                   ppl_const_Polyhedron_t rhs);
    int ppl_C_Polyhedron_refine_with_chvatal_cuts(ppl_Polyhedron_t ph,
                                                 ppl_dimension_type budget);
    int ppl_Polyhedron_topological_closure_assign(ppl_Polyhedron_t ph);
    int ppl_Polyhedron_add_constraint(ppl_Polyhedron_t ph,
                                      ppl_const_Constraint_t c);
    int ppl_Polyhedron_add_congruence(ppl_Polyhedron_t ph,
                                      ppl_const_Congruence_t c);
    int ppl_Polyhedron_add_generator(ppl_Polyhedron_t ph, ppl_const_Generator_t c);
    int ppl_Polyhedron_add_constraints(ppl_Polyhedron_t ph,
                                       ppl_const_Constraint_System_t cs);
    int ppl_Polyhedron_add_congruences(ppl_Polyhedron_t ph,
                                       ppl_const_Congruence_System_t cs);
    int ppl_Polyhedron_add_generators(ppl_Polyhedron_t ph,
                                      ppl_const_Generator_System_t cs);
    int ppl_Polyhedron_refine_with_constraint(ppl_Polyhedron_t ph,
                                              ppl_const_Constraint_t c);
    int ppl_Polyhedron_refine_with_congruence(ppl_Polyhedron_t ph,
                                              ppl_const_Congruence_t c);
    int ppl_Polyhedron_refine_with_constraints(ppl_Polyhedron_t ph,
                                               ppl_const_Constraint_System_t cs);
    int ppl_Polyhedron_refine_with_congruences(ppl_Polyhedron_t ph,
                                               ppl_const_Congruence_System_t cs);
    int ppl_Polyhedron_intersection_assign(ppl_Polyhedron_t x,
                                           ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_upper_bound_assign(ppl_Polyhedron_t x,
                                          ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_difference_assign(ppl_Polyhedron_t x,
                                         ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_concatenate_assign(ppl_Polyhedron_t x,
                                          ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_time_elapse_assign(ppl_Polyhedron_t x,
                                          ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_poly_hull_assign(ppl_Polyhedron_t x,
                                        ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_poly_difference_assign(ppl_Polyhedron_t x,
                                              ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_upper_bound_assign_if_exact(ppl_Polyhedron_t x,
                                                   ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_poly_hull_assign_if_exact(ppl_Polyhedron_t x,
                                                 ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_positive_time_elapse_assign(ppl_Polyhedron_t x,
                                                   ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_simplify_using_context_assign(ppl_Polyhedron_t x,
                                                     ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_drop_some_non_integer_points(ppl_Polyhedron_t ph,
                                                    int complexity);
    int ppl_Polyhedron_drop_some_non_integer_points_2(ppl_Polyhedron_t ph,
                                                      ppl_dimension_type ds[],
                                                      size_t n, int complexity);
    int ppl_Polyhedron_add_recycled_constraints(ppl_Polyhedron_t ph,
                                                ppl_Constraint_System_t cs);
    int ppl_Polyhedron_add_recycled_congruences(ppl_Polyhedron_t ph,
                                                ppl_Congruence_System_t cs);
    int ppl_Polyhedron_add_recycled_generators(ppl_Polyhedron_t ph,
                                               ppl_Generator_System_t cs);
    int ppl_Grid_topological_closure_assign(ppl_Grid_t ph);
    int ppl_Grid_add_constraint(ppl_Grid_t ph, ppl_const_Constraint_t c);
    int ppl_Grid_add_congruence(ppl_Grid_t ph, ppl_const_Congruence_t c);
    int ppl_Grid_add_grid_generator(ppl_Grid_t ph, ppl_const_Grid_Generator_t c);
    int ppl_Grid_add_constraints(ppl_Grid_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Grid_add_congruences(ppl_Grid_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Grid_add_grid_generators(ppl_Grid_t ph,
                                     ppl_const_Grid_Generator_System_t cs);
    int ppl_Grid_refine_with_constraint(ppl_Grid_t ph, ppl_const_Constraint_t c);
    int ppl_Grid_refine_with_congruence(ppl_Grid_t ph, ppl_const_Congruence_t c);
    int ppl_Grid_refine_with_constraints(ppl_Grid_t ph,
                                         ppl_const_Constraint_System_t cs);
    int ppl_Grid_refine_with_congruences(ppl_Grid_t ph,
                                         ppl_const_Congruence_System_t cs);
    int ppl_Grid_intersection_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_upper_bound_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_difference_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_concatenate_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_time_elapse_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_upper_bound_assign_if_exact(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_simplify_using_context_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_drop_some_non_integer_points(ppl_Grid_t ph, int complexity);
    int ppl_Grid_drop_some_non_integer_points_2(ppl_Grid_t ph,
                                                ppl_dimension_type ds[], size_t n,
                                                int complexity);
    int ppl_Grid_add_recycled_constraints(ppl_Grid_t ph,
                                          ppl_Constraint_System_t cs);
    int ppl_Grid_add_recycled_congruences(ppl_Grid_t ph,
                                          ppl_Congruence_System_t cs);
    int ppl_Grid_add_recycled_grid_generators(ppl_Grid_t ph,
                                              ppl_Grid_Generator_System_t cs);
    int ppl_Rational_Box_topological_closure_assign(ppl_Rational_Box_t ph);
    int ppl_Rational_Box_add_constraint(ppl_Rational_Box_t ph,
                                        ppl_const_Constraint_t c);
    int ppl_Rational_Box_add_congruence(ppl_Rational_Box_t ph,
                                        ppl_const_Congruence_t c);
    int ppl_Rational_Box_add_constraints(ppl_Rational_Box_t ph,
                                         ppl_const_Constraint_System_t cs);
    int ppl_Rational_Box_add_congruences(ppl_Rational_Box_t ph,
                                         ppl_const_Congruence_System_t cs);
    int ppl_Rational_Box_refine_with_constraint(ppl_Rational_Box_t ph,
                                                ppl_const_Constraint_t c);
    int ppl_Rational_Box_refine_with_congruence(ppl_Rational_Box_t ph,
                                                ppl_const_Congruence_t c);
    int ppl_Rational_Box_refine_with_constraints(ppl_Rational_Box_t ph,
                                                 ppl_const_Constraint_System_t cs);
    int ppl_Rational_Box_refine_with_congruences(ppl_Rational_Box_t ph,
                                                 ppl_const_Congruence_System_t cs);
    int ppl_Rational_Box_intersection_assign(ppl_Rational_Box_t x,
                                             ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_upper_bound_assign(ppl_Rational_Box_t x,
                                            ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_difference_assign(ppl_Rational_Box_t x,
                                           ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_concatenate_assign(ppl_Rational_Box_t x,
                                            ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_time_elapse_assign(ppl_Rational_Box_t x,
                                            ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_upper_bound_assign_if_exact(ppl_Rational_Box_t x,
                                                     ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_simplify_using_context_assign(ppl_Rational_Box_t x,
                                                       ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_drop_some_non_integer_points(ppl_Rational_Box_t ph,
                                                      int complexity);
    int ppl_Rational_Box_drop_some_non_integer_points_2(ppl_Rational_Box_t ph,
                                                        ppl_dimension_type ds[],
                                                        size_t n, int complexity);
    int ppl_Rational_Box_add_recycled_constraints(ppl_Rational_Box_t ph,
                                                  ppl_Constraint_System_t cs);
    int ppl_Rational_Box_add_recycled_congruences(ppl_Rational_Box_t ph,
                                                  ppl_Congruence_System_t cs);
    int ppl_BD_Shape_mpz_class_topological_closure_assign(
        ppl_BD_Shape_mpz_class_t ph);
    int ppl_BD_Shape_mpz_class_add_constraint(ppl_BD_Shape_mpz_class_t ph,
                                              ppl_const_Constraint_t c);
    int ppl_BD_Shape_mpz_class_add_congruence(ppl_BD_Shape_mpz_class_t ph,
                                              ppl_const_Congruence_t c);
    int ppl_BD_Shape_mpz_class_add_constraints(ppl_BD_Shape_mpz_class_t ph,
                                               ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpz_class_add_congruences(ppl_BD_Shape_mpz_class_t ph,
                                               ppl_const_Congruence_System_t cs);
    int ppl_BD_Shape_mpz_class_refine_with_constraint(ppl_BD_Shape_mpz_class_t ph,
                                                      ppl_const_Constraint_t c);
    int ppl_BD_Shape_mpz_class_refine_with_congruence(ppl_BD_Shape_mpz_class_t ph,
                                                      ppl_const_Congruence_t c);
    int ppl_BD_Shape_mpz_class_refine_with_constraints(
        ppl_BD_Shape_mpz_class_t ph, ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpz_class_refine_with_congruences(
        ppl_BD_Shape_mpz_class_t ph, ppl_const_Congruence_System_t cs);
    int ppl_BD_Shape_mpz_class_intersection_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_upper_bound_assign(ppl_BD_Shape_mpz_class_t x,
                                                  ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_difference_assign(ppl_BD_Shape_mpz_class_t x,
                                                 ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_concatenate_assign(ppl_BD_Shape_mpz_class_t x,
                                                  ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_time_elapse_assign(ppl_BD_Shape_mpz_class_t x,
                                                  ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_upper_bound_assign_if_exact(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_simplify_using_context_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_drop_some_non_integer_points(
        ppl_BD_Shape_mpz_class_t ph, int complexity);
    int ppl_BD_Shape_mpz_class_drop_some_non_integer_points_2(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n,
        int complexity);
    int ppl_BD_Shape_mpz_class_add_recycled_constraints(ppl_BD_Shape_mpz_class_t ph,
                                                        ppl_Constraint_System_t cs);
    int ppl_BD_Shape_mpz_class_add_recycled_congruences(ppl_BD_Shape_mpz_class_t ph,
                                                        ppl_Congruence_System_t cs);
    int ppl_BD_Shape_mpq_class_topological_closure_assign(
        ppl_BD_Shape_mpq_class_t ph);
    int ppl_BD_Shape_mpq_class_add_constraint(ppl_BD_Shape_mpq_class_t ph,
                                              ppl_const_Constraint_t c);
    int ppl_BD_Shape_mpq_class_add_congruence(ppl_BD_Shape_mpq_class_t ph,
                                              ppl_const_Congruence_t c);
    int ppl_BD_Shape_mpq_class_add_constraints(ppl_BD_Shape_mpq_class_t ph,
                                               ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpq_class_add_congruences(ppl_BD_Shape_mpq_class_t ph,
                                               ppl_const_Congruence_System_t cs);
    int ppl_BD_Shape_mpq_class_refine_with_constraint(ppl_BD_Shape_mpq_class_t ph,
                                                      ppl_const_Constraint_t c);
    int ppl_BD_Shape_mpq_class_refine_with_congruence(ppl_BD_Shape_mpq_class_t ph,
                                                      ppl_const_Congruence_t c);
    int ppl_BD_Shape_mpq_class_refine_with_constraints(
        ppl_BD_Shape_mpq_class_t ph, ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpq_class_refine_with_congruences(
        ppl_BD_Shape_mpq_class_t ph, ppl_const_Congruence_System_t cs);
    int ppl_BD_Shape_mpq_class_intersection_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_upper_bound_assign(ppl_BD_Shape_mpq_class_t x,
                                                  ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_difference_assign(ppl_BD_Shape_mpq_class_t x,
                                                 ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_concatenate_assign(ppl_BD_Shape_mpq_class_t x,
                                                  ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_time_elapse_assign(ppl_BD_Shape_mpq_class_t x,
                                                  ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_upper_bound_assign_if_exact(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_simplify_using_context_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_drop_some_non_integer_points(
        ppl_BD_Shape_mpq_class_t ph, int complexity);
    int ppl_BD_Shape_mpq_class_drop_some_non_integer_points_2(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n,
        int complexity);
    int ppl_BD_Shape_mpq_class_add_recycled_constraints(ppl_BD_Shape_mpq_class_t ph,
                                                        ppl_Constraint_System_t cs);
    int ppl_BD_Shape_mpq_class_add_recycled_congruences(ppl_BD_Shape_mpq_class_t ph,
                                                        ppl_Congruence_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_topological_closure_assign(
        ppl_Octagonal_Shape_mpz_class_t ph);
    int ppl_Octagonal_Shape_mpz_class_add_constraint(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_mpz_class_add_congruence(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_mpz_class_add_constraints(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_add_congruences(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_refine_with_constraint(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_mpz_class_refine_with_congruence(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_mpz_class_refine_with_constraints(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_refine_with_congruences(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_intersection_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_upper_bound_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_difference_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_concatenate_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_time_elapse_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_upper_bound_assign_if_exact(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_simplify_using_context_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_drop_some_non_integer_points(
        ppl_Octagonal_Shape_mpz_class_t ph, int complexity);
    int ppl_Octagonal_Shape_mpz_class_drop_some_non_integer_points_2(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n,
        int complexity);
    int ppl_Octagonal_Shape_mpz_class_add_recycled_constraints(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_add_recycled_congruences(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_Congruence_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_topological_closure_assign(
        ppl_Octagonal_Shape_mpq_class_t ph);
    int ppl_Octagonal_Shape_mpq_class_add_constraint(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_mpq_class_add_congruence(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_mpq_class_add_constraints(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_add_congruences(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_refine_with_constraint(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_mpq_class_refine_with_congruence(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_mpq_class_refine_with_constraints(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_refine_with_congruences(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_intersection_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_upper_bound_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_difference_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_concatenate_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_time_elapse_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_upper_bound_assign_if_exact(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_simplify_using_context_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_drop_some_non_integer_points(
        ppl_Octagonal_Shape_mpq_class_t ph, int complexity);
    int ppl_Octagonal_Shape_mpq_class_drop_some_non_integer_points_2(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n,
        int complexity);
    int ppl_Octagonal_Shape_mpq_class_add_recycled_constraints(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_add_recycled_congruences(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_Congruence_System_t cs);
    int ppl_Constraints_Product_C_Polyhedron_Grid_topological_closure_assign(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph);
    int ppl_Constraints_Product_C_Polyhedron_Grid_add_constraint(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Constraint_t c);
    int ppl_Constraints_Product_C_Polyhedron_Grid_add_congruence(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Congruence_t c);
    int ppl_Constraints_Product_C_Polyhedron_Grid_add_constraints(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Constraint_System_t cs);
    int ppl_Constraints_Product_C_Polyhedron_Grid_add_congruences(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Congruence_System_t cs);
    int ppl_Constraints_Product_C_Polyhedron_Grid_refine_with_constraint(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Constraint_t c);
    int ppl_Constraints_Product_C_Polyhedron_Grid_refine_with_congruence(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_const_Congruence_t c);
    int ppl_Constraints_Product_C_Polyhedron_Grid_refine_with_constraints(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Constraint_System_t cs);
    int ppl_Constraints_Product_C_Polyhedron_Grid_refine_with_congruences(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Congruence_System_t cs);
    int ppl_Constraints_Product_C_Polyhedron_Grid_intersection_assign(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_upper_bound_assign(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_difference_assign(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_concatenate_assign(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_time_elapse_assign(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_upper_bound_assign_if_exact(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_drop_some_non_integer_points(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, int complexity);
    int ppl_Constraints_Product_C_Polyhedron_Grid_drop_some_non_integer_points_2(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[],
        size_t n, int complexity);
    int ppl_Pointset_Powerset_C_Polyhedron_topological_closure_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_pairwise_reduce(
        ppl_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_omega_reduce(
        ppl_Pointset_Powerset_C_Polyhedron_t ph);
    int ppl_Pointset_Powerset_C_Polyhedron_add_constraint(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Constraint_t c);
    int ppl_Pointset_Powerset_C_Polyhedron_add_congruence(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Congruence_t c);
    int ppl_Pointset_Powerset_C_Polyhedron_add_constraints(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Pointset_Powerset_C_Polyhedron_add_congruences(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Pointset_Powerset_C_Polyhedron_refine_with_constraint(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Constraint_t c);
    int ppl_Pointset_Powerset_C_Polyhedron_refine_with_congruence(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Congruence_t c);
    int ppl_Pointset_Powerset_C_Polyhedron_refine_with_constraints(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Pointset_Powerset_C_Polyhedron_refine_with_congruences(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Pointset_Powerset_C_Polyhedron_intersection_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_upper_bound_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_difference_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_concatenate_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_time_elapse_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_upper_bound_assign_if_exact(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_simplify_using_context_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_drop_some_non_integer_points(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, int complexity);
    int ppl_Pointset_Powerset_C_Polyhedron_drop_some_non_integer_points_2(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n,
        int complexity);
    int ppl_Pointset_Powerset_NNC_Polyhedron_topological_closure_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_pairwise_reduce(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_omega_reduce(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_constraint(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Constraint_t c);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_congruence(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Congruence_t c);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_constraints(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Constraint_System_t cs);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_congruences(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Congruence_System_t cs);
    int ppl_Pointset_Powerset_NNC_Polyhedron_refine_with_constraint(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Constraint_t c);
    int ppl_Pointset_Powerset_NNC_Polyhedron_refine_with_congruence(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_const_Congruence_t c);
    int ppl_Pointset_Powerset_NNC_Polyhedron_refine_with_constraints(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Constraint_System_t cs);
    int ppl_Pointset_Powerset_NNC_Polyhedron_refine_with_congruences(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Congruence_System_t cs);
    int ppl_Pointset_Powerset_NNC_Polyhedron_intersection_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_upper_bound_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_difference_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_concatenate_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_time_elapse_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_upper_bound_assign_if_exact(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_simplify_using_context_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_drop_some_non_integer_points(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, int complexity);
    int ppl_Pointset_Powerset_NNC_Polyhedron_drop_some_non_integer_points_2(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[],
        size_t n, int complexity);
    int ppl_Double_Box_topological_closure_assign(ppl_Double_Box_t ph);
    int ppl_Double_Box_add_constraint(ppl_Double_Box_t ph,
                                      ppl_const_Constraint_t c);
    int ppl_Double_Box_add_congruence(ppl_Double_Box_t ph,
                                      ppl_const_Congruence_t c);
    int ppl_Double_Box_add_constraints(ppl_Double_Box_t ph,
                                       ppl_const_Constraint_System_t cs);
    int ppl_Double_Box_add_congruences(ppl_Double_Box_t ph,
                                       ppl_const_Congruence_System_t cs);
    int ppl_Double_Box_refine_with_constraint(ppl_Double_Box_t ph,
                                              ppl_const_Constraint_t c);
    int ppl_Double_Box_refine_with_congruence(ppl_Double_Box_t ph,
                                              ppl_const_Congruence_t c);
    int ppl_Double_Box_refine_with_constraints(ppl_Double_Box_t ph,
                                               ppl_const_Constraint_System_t cs);
    int ppl_Double_Box_refine_with_congruences(ppl_Double_Box_t ph,
                                               ppl_const_Congruence_System_t cs);
    int ppl_Double_Box_intersection_assign(ppl_Double_Box_t x,
                                           ppl_const_Double_Box_t y);
    int ppl_Double_Box_upper_bound_assign(ppl_Double_Box_t x,
                                          ppl_const_Double_Box_t y);
    int ppl_Double_Box_difference_assign(ppl_Double_Box_t x,
                                         ppl_const_Double_Box_t y);
    int ppl_Double_Box_concatenate_assign(ppl_Double_Box_t x,
                                          ppl_const_Double_Box_t y);
    int ppl_Double_Box_time_elapse_assign(ppl_Double_Box_t x,
                                          ppl_const_Double_Box_t y);
    int ppl_Double_Box_upper_bound_assign_if_exact(ppl_Double_Box_t x,
                                                   ppl_const_Double_Box_t y);
    int ppl_Double_Box_simplify_using_context_assign(ppl_Double_Box_t x,
                                                     ppl_const_Double_Box_t y);
    int ppl_Double_Box_drop_some_non_integer_points(ppl_Double_Box_t ph,
                                                    int complexity);
    int ppl_Double_Box_drop_some_non_integer_points_2(ppl_Double_Box_t ph,
                                                      ppl_dimension_type ds[],
                                                      size_t n, int complexity);
    int ppl_Double_Box_add_recycled_constraints(ppl_Double_Box_t ph,
                                                ppl_Constraint_System_t cs);
    int ppl_Double_Box_add_recycled_congruences(ppl_Double_Box_t ph,
                                                ppl_Congruence_System_t cs);
    int ppl_BD_Shape_double_topological_closure_assign(ppl_BD_Shape_double_t ph);
    int ppl_BD_Shape_double_add_constraint(ppl_BD_Shape_double_t ph,
                                           ppl_const_Constraint_t c);
    int ppl_BD_Shape_double_add_congruence(ppl_BD_Shape_double_t ph,
                                           ppl_const_Congruence_t c);
    int ppl_BD_Shape_double_add_constraints(ppl_BD_Shape_double_t ph,
                                            ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_double_add_congruences(ppl_BD_Shape_double_t ph,
                                            ppl_const_Congruence_System_t cs);
    int ppl_BD_Shape_double_refine_with_constraint(ppl_BD_Shape_double_t ph,
                                                   ppl_const_Constraint_t c);
    int ppl_BD_Shape_double_refine_with_congruence(ppl_BD_Shape_double_t ph,
                                                   ppl_const_Congruence_t c);
    int ppl_BD_Shape_double_refine_with_constraints(
        ppl_BD_Shape_double_t ph, ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_double_refine_with_congruences(
        ppl_BD_Shape_double_t ph, ppl_const_Congruence_System_t cs);
    int ppl_BD_Shape_double_intersection_assign(ppl_BD_Shape_double_t x,
                                                ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_upper_bound_assign(ppl_BD_Shape_double_t x,
                                               ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_difference_assign(ppl_BD_Shape_double_t x,
                                              ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_concatenate_assign(ppl_BD_Shape_double_t x,
                                               ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_time_elapse_assign(ppl_BD_Shape_double_t x,
                                               ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_upper_bound_assign_if_exact(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_simplify_using_context_assign(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_drop_some_non_integer_points(ppl_BD_Shape_double_t ph,
                                                         int complexity);
    int ppl_BD_Shape_double_drop_some_non_integer_points_2(ppl_BD_Shape_double_t ph,
                                                           ppl_dimension_type ds[],
                                                           size_t n,
                                                           int complexity);
    int ppl_BD_Shape_double_add_recycled_constraints(ppl_BD_Shape_double_t ph,
                                                     ppl_Constraint_System_t cs);
    int ppl_BD_Shape_double_add_recycled_congruences(ppl_BD_Shape_double_t ph,
                                                     ppl_Congruence_System_t cs);
    int ppl_Octagonal_Shape_double_topological_closure_assign(
        ppl_Octagonal_Shape_double_t ph);
    int ppl_Octagonal_Shape_double_add_constraint(ppl_Octagonal_Shape_double_t ph,
                                                  ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_double_add_congruence(ppl_Octagonal_Shape_double_t ph,
                                                  ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_double_add_constraints(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_double_add_congruences(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Octagonal_Shape_double_refine_with_constraint(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Constraint_t c);
    int ppl_Octagonal_Shape_double_refine_with_congruence(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Congruence_t c);
    int ppl_Octagonal_Shape_double_refine_with_constraints(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_double_refine_with_congruences(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Congruence_System_t cs);
    int ppl_Octagonal_Shape_double_intersection_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_upper_bound_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_difference_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_concatenate_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_time_elapse_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_upper_bound_assign_if_exact(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_simplify_using_context_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_drop_some_non_integer_points(
        ppl_Octagonal_Shape_double_t ph, int complexity);
    int ppl_Octagonal_Shape_double_drop_some_non_integer_points_2(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n,
        int complexity);
    int ppl_Octagonal_Shape_double_add_recycled_constraints(
        ppl_Octagonal_Shape_double_t ph, ppl_Constraint_System_t cs);
    int ppl_Octagonal_Shape_double_add_recycled_congruences(
        ppl_Octagonal_Shape_double_t ph, ppl_Congruence_System_t cs);
    
    int ppl_Polyhedron_unconstrain_space_dimension(ppl_Polyhedron_t ph,
                                                   ppl_dimension_type var);
    int ppl_Polyhedron_unconstrain_space_dimensions(ppl_Polyhedron_t ph,
                                                    ppl_dimension_type ds[],
                                                    size_t n);
    int ppl_Grid_unconstrain_space_dimension(ppl_Grid_t ph, ppl_dimension_type var);
    int ppl_Grid_unconstrain_space_dimensions(ppl_Grid_t ph,
                                              ppl_dimension_type ds[], size_t n);
    int ppl_Rational_Box_unconstrain_space_dimension(ppl_Rational_Box_t ph,
                                                     ppl_dimension_type var);
    int ppl_Rational_Box_unconstrain_space_dimensions(ppl_Rational_Box_t ph,
                                                      ppl_dimension_type ds[],
                                                      size_t n);
    int ppl_BD_Shape_mpz_class_unconstrain_space_dimension(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var);
    int ppl_BD_Shape_mpz_class_unconstrain_space_dimensions(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_BD_Shape_mpq_class_unconstrain_space_dimension(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var);
    int ppl_BD_Shape_mpq_class_unconstrain_space_dimensions(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Octagonal_Shape_mpz_class_unconstrain_space_dimension(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var);
    int ppl_Octagonal_Shape_mpz_class_unconstrain_space_dimensions(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Octagonal_Shape_mpq_class_unconstrain_space_dimension(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var);
    int ppl_Octagonal_Shape_mpq_class_unconstrain_space_dimensions(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Constraints_Product_C_Polyhedron_Grid_unconstrain_space_dimension(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var);
    int ppl_Constraints_Product_C_Polyhedron_Grid_unconstrain_space_dimensions(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[],
        size_t n);
    int ppl_Pointset_Powerset_C_Polyhedron_unconstrain_space_dimension(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var);
    int ppl_Pointset_Powerset_C_Polyhedron_unconstrain_space_dimensions(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Pointset_Powerset_NNC_Polyhedron_unconstrain_space_dimension(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var);
    int ppl_Pointset_Powerset_NNC_Polyhedron_unconstrain_space_dimensions(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[],
        size_t n);
    int ppl_Double_Box_unconstrain_space_dimension(ppl_Double_Box_t ph,
                                                   ppl_dimension_type var);
    int ppl_Double_Box_unconstrain_space_dimensions(ppl_Double_Box_t ph,
                                                    ppl_dimension_type ds[],
                                                    size_t n);
    int ppl_BD_Shape_double_unconstrain_space_dimension(ppl_BD_Shape_double_t ph,
                                                        ppl_dimension_type var);
    int ppl_BD_Shape_double_unconstrain_space_dimensions(ppl_BD_Shape_double_t ph,
                                                         ppl_dimension_type ds[],
                                                         size_t n);
    int ppl_Octagonal_Shape_double_unconstrain_space_dimension(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var);
    int ppl_Octagonal_Shape_double_unconstrain_space_dimensions(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n);
    
    VERIFICATION_CRITERIA:

    Compare independent mathematical oracles and fresh native models, exactness booleans, empty operands, aliases and rejected dimensions.

    SOURCE:

    interfaces/interfaced_polyhedra.hh; interfaces/C/tests/newoperations.c; interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/domains.c; interfaces/C/tests/polyhedra.c; interfaces/C/tests/powersets.c.

  • PPL-SPEC-001558
    5. C generated affine transformations UID: PPL-SPEC-001558 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_affine_image(ppl_Polyhedron_t ph, ppl_dimension_type var,
                                    ppl_const_Linear_Expression_t le,
                                    ppl_const_Coefficient_t d);
    int ppl_Polyhedron_affine_preimage(ppl_Polyhedron_t ph, ppl_dimension_type var,
                                       ppl_const_Linear_Expression_t le,
                                       ppl_const_Coefficient_t d);
    int ppl_Polyhedron_bounded_affine_image(ppl_Polyhedron_t ph,
                                            ppl_dimension_type var,
                                            ppl_const_Linear_Expression_t lb,
                                            ppl_const_Linear_Expression_t ub,
                                            ppl_const_Coefficient_t d);
    int ppl_Polyhedron_bounded_affine_preimage(ppl_Polyhedron_t ph,
                                               ppl_dimension_type var,
                                               ppl_const_Linear_Expression_t lb,
                                               ppl_const_Linear_Expression_t ub,
                                               ppl_const_Coefficient_t d);
    int ppl_Polyhedron_generalized_affine_image(
        ppl_Polyhedron_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Polyhedron_generalized_affine_preimage(
        ppl_Polyhedron_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Polyhedron_generalized_affine_image_lhs_rhs(
        ppl_Polyhedron_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Polyhedron_generalized_affine_preimage_lhs_rhs(
        ppl_Polyhedron_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Grid_affine_image(ppl_Grid_t ph, ppl_dimension_type var,
                              ppl_const_Linear_Expression_t le,
                              ppl_const_Coefficient_t d);
    int ppl_Grid_affine_preimage(ppl_Grid_t ph, ppl_dimension_type var,
                                 ppl_const_Linear_Expression_t le,
                                 ppl_const_Coefficient_t d);
    int ppl_Grid_bounded_affine_image(ppl_Grid_t ph, ppl_dimension_type var,
                                      ppl_const_Linear_Expression_t lb,
                                      ppl_const_Linear_Expression_t ub,
                                      ppl_const_Coefficient_t d);
    int ppl_Grid_bounded_affine_preimage(ppl_Grid_t ph, ppl_dimension_type var,
                                         ppl_const_Linear_Expression_t lb,
                                         ppl_const_Linear_Expression_t ub,
                                         ppl_const_Coefficient_t d);
    int ppl_Grid_generalized_affine_image(ppl_Grid_t ph, ppl_dimension_type var,
                                          enum ppl_enum_Constraint_Type relsym,
                                          ppl_const_Linear_Expression_t le,
                                          ppl_const_Coefficient_t d);
    int ppl_Grid_generalized_affine_preimage(ppl_Grid_t ph, ppl_dimension_type var,
                                             enum ppl_enum_Constraint_Type relsym,
                                             ppl_const_Linear_Expression_t le,
                                             ppl_const_Coefficient_t d);
    int ppl_Grid_generalized_affine_image_lhs_rhs(
        ppl_Grid_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Grid_generalized_affine_preimage_lhs_rhs(
        ppl_Grid_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Grid_generalized_affine_image_with_congruence(
        ppl_Grid_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d,
        ppl_const_Coefficient_t m);
    int ppl_Grid_generalized_affine_preimage_with_congruence(
        ppl_Grid_t ph, ppl_dimension_type var, enum ppl_enum_Constraint_Type relsym,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d,
        ppl_const_Coefficient_t m);
    int ppl_Grid_generalized_affine_image_lhs_rhs_with_congruence(
        ppl_Grid_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs,
        ppl_const_Coefficient_t m);
    int ppl_Grid_generalized_affine_preimage_lhs_rhs_with_congruence(
        ppl_Grid_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs,
        ppl_const_Coefficient_t m);
    int ppl_Rational_Box_affine_image(ppl_Rational_Box_t ph, ppl_dimension_type var,
                                      ppl_const_Linear_Expression_t le,
                                      ppl_const_Coefficient_t d);
    int ppl_Rational_Box_affine_preimage(ppl_Rational_Box_t ph,
                                         ppl_dimension_type var,
                                         ppl_const_Linear_Expression_t le,
                                         ppl_const_Coefficient_t d);
    int ppl_Rational_Box_bounded_affine_image(ppl_Rational_Box_t ph,
                                              ppl_dimension_type var,
                                              ppl_const_Linear_Expression_t lb,
                                              ppl_const_Linear_Expression_t ub,
                                              ppl_const_Coefficient_t d);
    int ppl_Rational_Box_bounded_affine_preimage(ppl_Rational_Box_t ph,
                                                 ppl_dimension_type var,
                                                 ppl_const_Linear_Expression_t lb,
                                                 ppl_const_Linear_Expression_t ub,
                                                 ppl_const_Coefficient_t d);
    int ppl_Rational_Box_generalized_affine_image(
        ppl_Rational_Box_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Rational_Box_generalized_affine_preimage(
        ppl_Rational_Box_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Rational_Box_generalized_affine_image_lhs_rhs(
        ppl_Rational_Box_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Rational_Box_generalized_affine_preimage_lhs_rhs(
        ppl_Rational_Box_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_BD_Shape_mpz_class_affine_image(ppl_BD_Shape_mpz_class_t ph,
                                            ppl_dimension_type var,
                                            ppl_const_Linear_Expression_t le,
                                            ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpz_class_affine_preimage(ppl_BD_Shape_mpz_class_t ph,
                                               ppl_dimension_type var,
                                               ppl_const_Linear_Expression_t le,
                                               ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpz_class_bounded_affine_image(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpz_class_bounded_affine_preimage(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpz_class_generalized_affine_image(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpz_class_generalized_affine_preimage(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpz_class_generalized_affine_image_lhs_rhs(
        ppl_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_BD_Shape_mpz_class_generalized_affine_preimage_lhs_rhs(
        ppl_BD_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_BD_Shape_mpq_class_affine_image(ppl_BD_Shape_mpq_class_t ph,
                                            ppl_dimension_type var,
                                            ppl_const_Linear_Expression_t le,
                                            ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpq_class_affine_preimage(ppl_BD_Shape_mpq_class_t ph,
                                               ppl_dimension_type var,
                                               ppl_const_Linear_Expression_t le,
                                               ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpq_class_bounded_affine_image(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpq_class_bounded_affine_preimage(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpq_class_generalized_affine_image(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpq_class_generalized_affine_preimage(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_mpq_class_generalized_affine_image_lhs_rhs(
        ppl_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_BD_Shape_mpq_class_generalized_affine_preimage_lhs_rhs(
        ppl_BD_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Octagonal_Shape_mpz_class_affine_image(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpz_class_affine_preimage(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpz_class_bounded_affine_image(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpz_class_bounded_affine_preimage(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpz_class_generalized_affine_image(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpz_class_generalized_affine_preimage(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpz_class_generalized_affine_image_lhs_rhs(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Octagonal_Shape_mpz_class_generalized_affine_preimage_lhs_rhs(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Octagonal_Shape_mpq_class_affine_image(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpq_class_affine_preimage(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpq_class_bounded_affine_image(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpq_class_bounded_affine_preimage(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpq_class_generalized_affine_image(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpq_class_generalized_affine_preimage(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_mpq_class_generalized_affine_image_lhs_rhs(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Octagonal_Shape_mpq_class_generalized_affine_preimage_lhs_rhs(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Constraints_Product_C_Polyhedron_Grid_affine_image(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_affine_preimage(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_bounded_affine_image(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_bounded_affine_preimage(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_generalized_affine_image(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_generalized_affine_preimage(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_generalized_affine_image_lhs_rhs(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym,
        ppl_const_Linear_Expression_t rhs);
    int ppl_Constraints_Product_C_Polyhedron_Grid_generalized_affine_preimage_lhs_rhs(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph,
        ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym,
        ppl_const_Linear_Expression_t rhs);
    int ppl_Pointset_Powerset_C_Polyhedron_affine_image(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_C_Polyhedron_affine_preimage(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_C_Polyhedron_bounded_affine_image(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_C_Polyhedron_bounded_affine_preimage(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_C_Polyhedron_generalized_affine_image(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_C_Polyhedron_generalized_affine_preimage(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_C_Polyhedron_generalized_affine_image_lhs_rhs(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Pointset_Powerset_C_Polyhedron_generalized_affine_preimage_lhs_rhs(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Pointset_Powerset_NNC_Polyhedron_affine_image(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_affine_preimage(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t le, ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_bounded_affine_image(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_bounded_affine_preimage(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_generalized_affine_image(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_generalized_affine_preimage(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_generalized_affine_image_lhs_rhs(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym,
        ppl_const_Linear_Expression_t rhs);
    int ppl_Pointset_Powerset_NNC_Polyhedron_generalized_affine_preimage_lhs_rhs(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph,
        ppl_const_Linear_Expression_t lhs, enum ppl_enum_Constraint_Type relsym,
        ppl_const_Linear_Expression_t rhs);
    int ppl_Double_Box_affine_image(ppl_Double_Box_t ph, ppl_dimension_type var,
                                    ppl_const_Linear_Expression_t le,
                                    ppl_const_Coefficient_t d);
    int ppl_Double_Box_affine_preimage(ppl_Double_Box_t ph, ppl_dimension_type var,
                                       ppl_const_Linear_Expression_t le,
                                       ppl_const_Coefficient_t d);
    int ppl_Double_Box_bounded_affine_image(ppl_Double_Box_t ph,
                                            ppl_dimension_type var,
                                            ppl_const_Linear_Expression_t lb,
                                            ppl_const_Linear_Expression_t ub,
                                            ppl_const_Coefficient_t d);
    int ppl_Double_Box_bounded_affine_preimage(ppl_Double_Box_t ph,
                                               ppl_dimension_type var,
                                               ppl_const_Linear_Expression_t lb,
                                               ppl_const_Linear_Expression_t ub,
                                               ppl_const_Coefficient_t d);
    int ppl_Double_Box_generalized_affine_image(
        ppl_Double_Box_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Double_Box_generalized_affine_preimage(
        ppl_Double_Box_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Double_Box_generalized_affine_image_lhs_rhs(
        ppl_Double_Box_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Double_Box_generalized_affine_preimage_lhs_rhs(
        ppl_Double_Box_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_BD_Shape_double_affine_image(ppl_BD_Shape_double_t ph,
                                         ppl_dimension_type var,
                                         ppl_const_Linear_Expression_t le,
                                         ppl_const_Coefficient_t d);
    int ppl_BD_Shape_double_affine_preimage(ppl_BD_Shape_double_t ph,
                                            ppl_dimension_type var,
                                            ppl_const_Linear_Expression_t le,
                                            ppl_const_Coefficient_t d);
    int ppl_BD_Shape_double_bounded_affine_image(ppl_BD_Shape_double_t ph,
                                                 ppl_dimension_type var,
                                                 ppl_const_Linear_Expression_t lb,
                                                 ppl_const_Linear_Expression_t ub,
                                                 ppl_const_Coefficient_t d);
    int ppl_BD_Shape_double_bounded_affine_preimage(
        ppl_BD_Shape_double_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_double_generalized_affine_image(
        ppl_BD_Shape_double_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_double_generalized_affine_preimage(
        ppl_BD_Shape_double_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_BD_Shape_double_generalized_affine_image_lhs_rhs(
        ppl_BD_Shape_double_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_BD_Shape_double_generalized_affine_preimage_lhs_rhs(
        ppl_BD_Shape_double_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Octagonal_Shape_double_affine_image(ppl_Octagonal_Shape_double_t ph,
                                                ppl_dimension_type var,
                                                ppl_const_Linear_Expression_t le,
                                                ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_double_affine_preimage(ppl_Octagonal_Shape_double_t ph,
                                                   ppl_dimension_type var,
                                                   ppl_const_Linear_Expression_t le,
                                                   ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_double_bounded_affine_image(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_double_bounded_affine_preimage(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var,
        ppl_const_Linear_Expression_t lb, ppl_const_Linear_Expression_t ub,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_double_generalized_affine_image(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_double_generalized_affine_preimage(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type var,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t le,
        ppl_const_Coefficient_t d);
    int ppl_Octagonal_Shape_double_generalized_affine_image_lhs_rhs(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    int ppl_Octagonal_Shape_double_generalized_affine_preimage_lhs_rhs(
        ppl_Octagonal_Shape_double_t ph, ppl_const_Linear_Expression_t lhs,
        enum ppl_enum_Constraint_Type relsym, ppl_const_Linear_Expression_t rhs);
    
    VERIFICATION_CRITERIA:

    Check borrowed scalars/expressions, zero and negative denominators where admitted, dimension guards and literal image/preimage sets.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/polyhedra.c.

  • PPL-SPEC-001559
    6. C generated dimension arrays and maps UID: PPL-SPEC-001559 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_add_space_dimensions_and_embed(ppl_Polyhedron_t ph,
                                                      ppl_dimension_type d);
    int ppl_Polyhedron_add_space_dimensions_and_project(ppl_Polyhedron_t ph,
                                                        ppl_dimension_type d);
    int ppl_Polyhedron_remove_space_dimensions(ppl_Polyhedron_t ph,
                                               ppl_dimension_type ds[], size_t n);
    int ppl_Polyhedron_remove_higher_space_dimensions(ppl_Polyhedron_t ph,
                                                      ppl_dimension_type d);
    int ppl_Polyhedron_expand_space_dimension(ppl_Polyhedron_t ph,
                                              ppl_dimension_type d,
                                              ppl_dimension_type m);
    int ppl_Polyhedron_fold_space_dimensions(ppl_Polyhedron_t ph,
                                             ppl_dimension_type ds[], size_t n,
                                             ppl_dimension_type d);
    int ppl_Polyhedron_map_space_dimensions(ppl_Polyhedron_t ph,
                                            ppl_dimension_type maps[], size_t n);
    int ppl_Grid_add_space_dimensions_and_embed(ppl_Grid_t ph,
                                                ppl_dimension_type d);
    int ppl_Grid_add_space_dimensions_and_project(ppl_Grid_t ph,
                                                  ppl_dimension_type d);
    int ppl_Grid_remove_space_dimensions(ppl_Grid_t ph, ppl_dimension_type ds[],
                                         size_t n);
    int ppl_Grid_remove_higher_space_dimensions(ppl_Grid_t ph,
                                                ppl_dimension_type d);
    int ppl_Grid_expand_space_dimension(ppl_Grid_t ph, ppl_dimension_type d,
                                        ppl_dimension_type m);
    int ppl_Grid_fold_space_dimensions(ppl_Grid_t ph, ppl_dimension_type ds[],
                                       size_t n, ppl_dimension_type d);
    int ppl_Grid_map_space_dimensions(ppl_Grid_t ph, ppl_dimension_type maps[],
                                      size_t n);
    int ppl_Rational_Box_add_space_dimensions_and_embed(ppl_Rational_Box_t ph,
                                                        ppl_dimension_type d);
    int ppl_Rational_Box_add_space_dimensions_and_project(ppl_Rational_Box_t ph,
                                                          ppl_dimension_type d);
    int ppl_Rational_Box_remove_space_dimensions(ppl_Rational_Box_t ph,
                                                 ppl_dimension_type ds[], size_t n);
    int ppl_Rational_Box_remove_higher_space_dimensions(ppl_Rational_Box_t ph,
                                                        ppl_dimension_type d);
    int ppl_Rational_Box_expand_space_dimension(ppl_Rational_Box_t ph,
                                                ppl_dimension_type d,
                                                ppl_dimension_type m);
    int ppl_Rational_Box_fold_space_dimensions(ppl_Rational_Box_t ph,
                                               ppl_dimension_type ds[], size_t n,
                                               ppl_dimension_type d);
    int ppl_Rational_Box_map_space_dimensions(ppl_Rational_Box_t ph,
                                              ppl_dimension_type maps[], size_t n);
    int ppl_BD_Shape_mpz_class_add_space_dimensions_and_embed(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpz_class_add_space_dimensions_and_project(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpz_class_remove_space_dimensions(ppl_BD_Shape_mpz_class_t ph,
                                                       ppl_dimension_type ds[],
                                                       size_t n);
    int ppl_BD_Shape_mpz_class_remove_higher_space_dimensions(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpz_class_expand_space_dimension(ppl_BD_Shape_mpz_class_t ph,
                                                      ppl_dimension_type d,
                                                      ppl_dimension_type m);
    int ppl_BD_Shape_mpz_class_fold_space_dimensions(ppl_BD_Shape_mpz_class_t ph,
                                                     ppl_dimension_type ds[],
                                                     size_t n,
                                                     ppl_dimension_type d);
    int ppl_BD_Shape_mpz_class_map_space_dimensions(ppl_BD_Shape_mpz_class_t ph,
                                                    ppl_dimension_type maps[],
                                                    size_t n);
    int ppl_BD_Shape_mpq_class_add_space_dimensions_and_embed(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpq_class_add_space_dimensions_and_project(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpq_class_remove_space_dimensions(ppl_BD_Shape_mpq_class_t ph,
                                                       ppl_dimension_type ds[],
                                                       size_t n);
    int ppl_BD_Shape_mpq_class_remove_higher_space_dimensions(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_mpq_class_expand_space_dimension(ppl_BD_Shape_mpq_class_t ph,
                                                      ppl_dimension_type d,
                                                      ppl_dimension_type m);
    int ppl_BD_Shape_mpq_class_fold_space_dimensions(ppl_BD_Shape_mpq_class_t ph,
                                                     ppl_dimension_type ds[],
                                                     size_t n,
                                                     ppl_dimension_type d);
    int ppl_BD_Shape_mpq_class_map_space_dimensions(ppl_BD_Shape_mpq_class_t ph,
                                                    ppl_dimension_type maps[],
                                                    size_t n);
    int ppl_Octagonal_Shape_mpz_class_add_space_dimensions_and_embed(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpz_class_add_space_dimensions_and_project(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpz_class_remove_space_dimensions(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Octagonal_Shape_mpz_class_remove_higher_space_dimensions(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpz_class_expand_space_dimension(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Octagonal_Shape_mpz_class_fold_space_dimensions(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n,
        ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpz_class_map_space_dimensions(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type maps[], size_t n);
    int ppl_Octagonal_Shape_mpq_class_add_space_dimensions_and_embed(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpq_class_add_space_dimensions_and_project(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpq_class_remove_space_dimensions(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Octagonal_Shape_mpq_class_remove_higher_space_dimensions(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpq_class_expand_space_dimension(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Octagonal_Shape_mpq_class_fold_space_dimensions(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n,
        ppl_dimension_type d);
    int ppl_Octagonal_Shape_mpq_class_map_space_dimensions(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type maps[], size_t n);
    int ppl_Constraints_Product_C_Polyhedron_Grid_add_space_dimensions_and_embed(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_add_space_dimensions_and_project(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_remove_space_dimensions(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[],
        size_t n);
    int ppl_Constraints_Product_C_Polyhedron_Grid_remove_higher_space_dimensions(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_expand_space_dimension(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Constraints_Product_C_Polyhedron_Grid_fold_space_dimensions(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type ds[],
        size_t n, ppl_dimension_type d);
    int ppl_Constraints_Product_C_Polyhedron_Grid_map_space_dimensions(
        ppl_Constraints_Product_C_Polyhedron_Grid_t ph, ppl_dimension_type maps[],
        size_t n);
    int ppl_Pointset_Powerset_C_Polyhedron_add_space_dimensions_and_embed(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_C_Polyhedron_add_space_dimensions_and_project(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_C_Polyhedron_remove_space_dimensions(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Pointset_Powerset_C_Polyhedron_remove_higher_space_dimensions(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_C_Polyhedron_expand_space_dimension(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Pointset_Powerset_C_Polyhedron_fold_space_dimensions(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type ds[], size_t n,
        ppl_dimension_type d);
    int ppl_Pointset_Powerset_C_Polyhedron_map_space_dimensions(
        ppl_Pointset_Powerset_C_Polyhedron_t ph, ppl_dimension_type maps[],
        size_t n);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_space_dimensions_and_embed(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_space_dimensions_and_project(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_remove_space_dimensions(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[],
        size_t n);
    int ppl_Pointset_Powerset_NNC_Polyhedron_remove_higher_space_dimensions(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_expand_space_dimension(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Pointset_Powerset_NNC_Polyhedron_fold_space_dimensions(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type ds[],
        size_t n, ppl_dimension_type d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_map_space_dimensions(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ph, ppl_dimension_type maps[],
        size_t n);
    int ppl_Double_Box_add_space_dimensions_and_embed(ppl_Double_Box_t ph,
                                                      ppl_dimension_type d);
    int ppl_Double_Box_add_space_dimensions_and_project(ppl_Double_Box_t ph,
                                                        ppl_dimension_type d);
    int ppl_Double_Box_remove_space_dimensions(ppl_Double_Box_t ph,
                                               ppl_dimension_type ds[], size_t n);
    int ppl_Double_Box_remove_higher_space_dimensions(ppl_Double_Box_t ph,
                                                      ppl_dimension_type d);
    int ppl_Double_Box_expand_space_dimension(ppl_Double_Box_t ph,
                                              ppl_dimension_type d,
                                              ppl_dimension_type m);
    int ppl_Double_Box_fold_space_dimensions(ppl_Double_Box_t ph,
                                             ppl_dimension_type ds[], size_t n,
                                             ppl_dimension_type d);
    int ppl_Double_Box_map_space_dimensions(ppl_Double_Box_t ph,
                                            ppl_dimension_type maps[], size_t n);
    int ppl_BD_Shape_double_add_space_dimensions_and_embed(ppl_BD_Shape_double_t ph,
                                                           ppl_dimension_type d);
    int ppl_BD_Shape_double_add_space_dimensions_and_project(
        ppl_BD_Shape_double_t ph, ppl_dimension_type d);
    int ppl_BD_Shape_double_remove_space_dimensions(ppl_BD_Shape_double_t ph,
                                                    ppl_dimension_type ds[],
                                                    size_t n);
    int ppl_BD_Shape_double_remove_higher_space_dimensions(ppl_BD_Shape_double_t ph,
                                                           ppl_dimension_type d);
    int ppl_BD_Shape_double_expand_space_dimension(ppl_BD_Shape_double_t ph,
                                                   ppl_dimension_type d,
                                                   ppl_dimension_type m);
    int ppl_BD_Shape_double_fold_space_dimensions(ppl_BD_Shape_double_t ph,
                                                  ppl_dimension_type ds[], size_t n,
                                                  ppl_dimension_type d);
    int ppl_BD_Shape_double_map_space_dimensions(ppl_BD_Shape_double_t ph,
                                                 ppl_dimension_type maps[],
                                                 size_t n);
    int ppl_Octagonal_Shape_double_add_space_dimensions_and_embed(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_double_add_space_dimensions_and_project(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_double_remove_space_dimensions(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n);
    int ppl_Octagonal_Shape_double_remove_higher_space_dimensions(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d);
    int ppl_Octagonal_Shape_double_expand_space_dimension(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type d,
        ppl_dimension_type m);
    int ppl_Octagonal_Shape_double_fold_space_dimensions(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n,
        ppl_dimension_type d);
    int ppl_Octagonal_Shape_double_map_space_dimensions(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type maps[], size_t n);
    
    VERIFICATION_CRITERIA:

    Check empty and sparse maps, reserved entries, reordered coordinates, duplicate dimension selections, valid codomain maxima and native growth limits.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/polyhedra.c.

  • PPL-SPEC-001560
    7. C generated convergence operations UID: PPL-SPEC-001560 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_BHRZ03_widening_assign_with_tokens(ppl_Polyhedron_t x,
                                                          ppl_const_Polyhedron_t y,
                                                          unsigned *tp);
    int ppl_Polyhedron_H79_widening_assign_with_tokens(ppl_Polyhedron_t x,
                                                       ppl_const_Polyhedron_t y,
                                                       unsigned *tp);
    int ppl_Polyhedron_BHRZ03_widening_assign(ppl_Polyhedron_t x,
                                              ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_H79_widening_assign(ppl_Polyhedron_t x,
                                           ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_widening_assign_with_tokens(ppl_Polyhedron_t x,
                                                   ppl_const_Polyhedron_t y,
                                                   unsigned *tp);
    int ppl_Polyhedron_widening_assign(ppl_Polyhedron_t x,
                                       ppl_const_Polyhedron_t y);
    int ppl_Polyhedron_limited_BHRZ03_extrapolation_assign_with_tokens(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Polyhedron_bounded_BHRZ03_extrapolation_assign_with_tokens(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Polyhedron_limited_H79_extrapolation_assign_with_tokens(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Polyhedron_bounded_H79_extrapolation_assign_with_tokens(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Polyhedron_limited_BHRZ03_extrapolation_assign(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Polyhedron_bounded_BHRZ03_extrapolation_assign(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Polyhedron_limited_H79_extrapolation_assign(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Polyhedron_bounded_H79_extrapolation_assign(
        ppl_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Grid_congruence_widening_assign_with_tokens(ppl_Grid_t x,
                                                        ppl_const_Grid_t y,
                                                        unsigned *tp);
    int ppl_Grid_generator_widening_assign_with_tokens(ppl_Grid_t x,
                                                       ppl_const_Grid_t y,
                                                       unsigned *tp);
    int ppl_Grid_congruence_widening_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_generator_widening_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_widening_assign_with_tokens(ppl_Grid_t x, ppl_const_Grid_t y,
                                             unsigned *tp);
    int ppl_Grid_widening_assign(ppl_Grid_t x, ppl_const_Grid_t y);
    int ppl_Grid_limited_congruence_extrapolation_assign_with_tokens(
        ppl_Grid_t x, ppl_const_Grid_t y, ppl_const_Congruence_System_t cs,
        unsigned *tp);
    int ppl_Grid_limited_generator_extrapolation_assign_with_tokens(
        ppl_Grid_t x, ppl_const_Grid_t y, ppl_const_Congruence_System_t cs,
        unsigned *tp);
    int ppl_Grid_limited_congruence_extrapolation_assign(
        ppl_Grid_t x, ppl_const_Grid_t y, ppl_const_Congruence_System_t cs);
    int ppl_Grid_limited_generator_extrapolation_assign(
        ppl_Grid_t x, ppl_const_Grid_t y, ppl_const_Congruence_System_t cs);
    int ppl_Rational_Box_CC76_widening_assign_with_tokens(
        ppl_Rational_Box_t x, ppl_const_Rational_Box_t y, unsigned *tp);
    int ppl_Rational_Box_CC76_widening_assign(ppl_Rational_Box_t x,
                                              ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_widening_assign_with_tokens(ppl_Rational_Box_t x,
                                                     ppl_const_Rational_Box_t y,
                                                     unsigned *tp);
    int ppl_Rational_Box_widening_assign(ppl_Rational_Box_t x,
                                         ppl_const_Rational_Box_t y);
    int ppl_Rational_Box_limited_CC76_extrapolation_assign_with_tokens(
        ppl_Rational_Box_t x, ppl_const_Rational_Box_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Rational_Box_limited_CC76_extrapolation_assign(
        ppl_Rational_Box_t x, ppl_const_Rational_Box_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Rational_Box_CC76_narrowing_assign(ppl_Rational_Box_t x,
                                               ppl_const_Rational_Box_t y);
    int ppl_BD_Shape_mpz_class_BHMZ05_widening_assign_with_tokens(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpz_class_H79_widening_assign_with_tokens(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpz_class_BHMZ05_widening_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_H79_widening_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_widening_assign_with_tokens(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpz_class_widening_assign(ppl_BD_Shape_mpz_class_t x,
                                               ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_limited_BHMZ05_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_mpz_class_limited_H79_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_mpz_class_limited_CC76_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_mpz_class_limited_BHMZ05_extrapolation_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpz_class_limited_H79_extrapolation_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpz_class_limited_CC76_extrapolation_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpz_class_CC76_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpz_class_CC76_extrapolation_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpz_class_CC76_narrowing_assign(
        ppl_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y);
    int ppl_BD_Shape_mpq_class_BHMZ05_widening_assign_with_tokens(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpq_class_H79_widening_assign_with_tokens(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpq_class_BHMZ05_widening_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_H79_widening_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_widening_assign_with_tokens(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpq_class_widening_assign(ppl_BD_Shape_mpq_class_t x,
                                               ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_limited_BHMZ05_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_mpq_class_limited_H79_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_mpq_class_limited_CC76_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_mpq_class_limited_BHMZ05_extrapolation_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpq_class_limited_H79_extrapolation_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpq_class_limited_CC76_extrapolation_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_mpq_class_CC76_extrapolation_assign_with_tokens(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y, unsigned *tp);
    int ppl_BD_Shape_mpq_class_CC76_extrapolation_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_BD_Shape_mpq_class_CC76_narrowing_assign(
        ppl_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpz_class_BHMZ05_widening_assign_with_tokens(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_mpz_class_BHMZ05_widening_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_widening_assign_with_tokens(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_mpz_class_widening_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_limited_BHMZ05_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Octagonal_Shape_mpz_class_limited_CC76_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Octagonal_Shape_mpz_class_limited_BHMZ05_extrapolation_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_limited_CC76_extrapolation_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpz_class_CC76_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_mpz_class_CC76_extrapolation_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpz_class_CC76_narrowing_assign(
        ppl_Octagonal_Shape_mpz_class_t x, ppl_const_Octagonal_Shape_mpz_class_t y);
    int ppl_Octagonal_Shape_mpq_class_BHMZ05_widening_assign_with_tokens(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_mpq_class_BHMZ05_widening_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_widening_assign_with_tokens(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_mpq_class_widening_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_limited_BHMZ05_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Octagonal_Shape_mpq_class_limited_CC76_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Octagonal_Shape_mpq_class_limited_BHMZ05_extrapolation_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_limited_CC76_extrapolation_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_mpq_class_CC76_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_mpq_class_CC76_extrapolation_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Octagonal_Shape_mpq_class_CC76_narrowing_assign(
        ppl_Octagonal_Shape_mpq_class_t x, ppl_const_Octagonal_Shape_mpq_class_t y);
    int ppl_Constraints_Product_C_Polyhedron_Grid_widening_assign_with_tokens(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y, unsigned *tp);
    int ppl_Constraints_Product_C_Polyhedron_Grid_widening_assign(
        ppl_Constraints_Product_C_Polyhedron_Grid_t x,
        ppl_const_Constraints_Product_C_Polyhedron_Grid_t y);
    int ppl_Pointset_Powerset_Rational_Box_BHZ03_CC76_CC76_widening_assign(
        ppl_Pointset_Powerset_Rational_Box_t x,
        ppl_const_Pointset_Powerset_Rational_Box_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_BHZ03_BHRZ03_BHRZ03_widening_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_BHZ03_H79_H79_widening_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_BGP99_BHRZ03_extrapolation_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y, unsigned disjuncts);
    int ppl_Pointset_Powerset_C_Polyhedron_BGP99_H79_extrapolation_assign(
        ppl_Pointset_Powerset_C_Polyhedron_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_t y, unsigned disjuncts);
    int ppl_Pointset_Powerset_NNC_Polyhedron_BHZ03_BHRZ03_BHRZ03_widening_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_BHZ03_H79_H79_widening_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_BGP99_BHRZ03_extrapolation_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y, unsigned disjuncts);
    int ppl_Pointset_Powerset_NNC_Polyhedron_BGP99_H79_extrapolation_assign(
        ppl_Pointset_Powerset_NNC_Polyhedron_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t y, unsigned disjuncts);
    int ppl_Double_Box_CC76_widening_assign_with_tokens(ppl_Double_Box_t x,
                                                        ppl_const_Double_Box_t y,
                                                        unsigned *tp);
    int ppl_Double_Box_CC76_widening_assign(ppl_Double_Box_t x,
                                            ppl_const_Double_Box_t y);
    int ppl_Double_Box_widening_assign_with_tokens(ppl_Double_Box_t x,
                                                   ppl_const_Double_Box_t y,
                                                   unsigned *tp);
    int ppl_Double_Box_widening_assign(ppl_Double_Box_t x,
                                       ppl_const_Double_Box_t y);
    int ppl_Double_Box_limited_CC76_extrapolation_assign_with_tokens(
        ppl_Double_Box_t x, ppl_const_Double_Box_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Double_Box_limited_CC76_extrapolation_assign(
        ppl_Double_Box_t x, ppl_const_Double_Box_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Double_Box_CC76_narrowing_assign(ppl_Double_Box_t x,
                                             ppl_const_Double_Box_t y);
    int ppl_BD_Shape_double_BHMZ05_widening_assign_with_tokens(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y, unsigned *tp);
    int ppl_BD_Shape_double_H79_widening_assign_with_tokens(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y, unsigned *tp);
    int ppl_BD_Shape_double_BHMZ05_widening_assign(ppl_BD_Shape_double_t x,
                                                   ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_H79_widening_assign(ppl_BD_Shape_double_t x,
                                                ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_widening_assign_with_tokens(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y, unsigned *tp);
    int ppl_BD_Shape_double_widening_assign(ppl_BD_Shape_double_t x,
                                            ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_limited_BHMZ05_extrapolation_assign_with_tokens(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_double_limited_H79_extrapolation_assign_with_tokens(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_double_limited_CC76_extrapolation_assign_with_tokens(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_BD_Shape_double_limited_BHMZ05_extrapolation_assign(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_double_limited_H79_extrapolation_assign(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_double_limited_CC76_extrapolation_assign(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_BD_Shape_double_CC76_extrapolation_assign_with_tokens(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y, unsigned *tp);
    int ppl_BD_Shape_double_CC76_extrapolation_assign(
        ppl_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y);
    int ppl_BD_Shape_double_CC76_narrowing_assign(ppl_BD_Shape_double_t x,
                                                  ppl_const_BD_Shape_double_t y);
    int ppl_Octagonal_Shape_double_BHMZ05_widening_assign_with_tokens(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_double_BHMZ05_widening_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_widening_assign_with_tokens(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_double_widening_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_limited_BHMZ05_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Octagonal_Shape_double_limited_CC76_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        ppl_const_Constraint_System_t cs, unsigned *tp);
    int ppl_Octagonal_Shape_double_limited_BHMZ05_extrapolation_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_double_limited_CC76_extrapolation_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        ppl_const_Constraint_System_t cs);
    int ppl_Octagonal_Shape_double_CC76_extrapolation_assign_with_tokens(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        unsigned *tp);
    int ppl_Octagonal_Shape_double_CC76_extrapolation_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    int ppl_Octagonal_Shape_double_CC76_narrowing_assign(
        ppl_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y);
    
    VERIFICATION_CRITERIA:

    Exercise ascending powerset-box histories, finite stabilization, geometric coverage and source preservation, including an isolated powerset selection.

    Compare native and C histories, token effects, stable limits, empty/universe arguments and required inclusion/dimension conditions.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001561
    8. C finite-disjunction ownership and traversal UID: PPL-SPEC-001561 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_new_Pointset_Powerset_C_Polyhedron_iterator(
        ppl_Pointset_Powerset_C_Polyhedron_iterator_t *pit);
    int ppl_new_Pointset_Powerset_C_Polyhedron_const_iterator(
        ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t *pit);
    int ppl_new_Pointset_Powerset_C_Polyhedron_iterator_from_iterator(
        ppl_Pointset_Powerset_C_Polyhedron_iterator_t *px,
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t y);
    int ppl_new_Pointset_Powerset_C_Polyhedron_const_iterator_from_const_iterator(
        ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t *px,
        ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_iterator_begin(
        ppl_Pointset_Powerset_C_Polyhedron_t ps,
        ppl_Pointset_Powerset_C_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_const_iterator_begin(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ps,
        ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_iterator_end(
        ppl_Pointset_Powerset_C_Polyhedron_t ps,
        ppl_Pointset_Powerset_C_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_const_iterator_end(
        ppl_const_Pointset_Powerset_C_Polyhedron_t ps,
        ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_iterator_equal_test(
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_const_iterator_equal_test(
        ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t x,
        ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t y);
    int ppl_Pointset_Powerset_C_Polyhedron_iterator_increment(
        ppl_Pointset_Powerset_C_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_const_iterator_increment(
        ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_iterator_decrement(
        ppl_Pointset_Powerset_C_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_const_iterator_decrement(
        ppl_Pointset_Powerset_C_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_iterator_dereference(
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t ps,
        ppl_const_Polyhedron_t *d);
    int ppl_Pointset_Powerset_C_Polyhedron_const_iterator_dereference(
        ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t ps,
        ppl_const_Polyhedron_t *d);
    int ppl_delete_Pointset_Powerset_C_Polyhedron_iterator(
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t psit);
    int ppl_delete_Pointset_Powerset_C_Polyhedron_const_iterator(
        ppl_const_Pointset_Powerset_C_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_C_Polyhedron_add_disjunct(
        ppl_Pointset_Powerset_C_Polyhedron_t ps, ppl_const_Polyhedron_t d);
    int ppl_Pointset_Powerset_C_Polyhedron_drop_disjunct(
        ppl_Pointset_Powerset_C_Polyhedron_t ps,
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t cit,
        ppl_Pointset_Powerset_C_Polyhedron_iterator_t it);
    int ppl_Pointset_Powerset_C_Polyhedron_drop_disjuncts(
        ppl_Pointset_Powerset_C_Polyhedron_t ps,
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t first,
        ppl_const_Pointset_Powerset_C_Polyhedron_iterator_t last);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_iterator(
        ppl_Pointset_Powerset_NNC_Polyhedron_iterator_t *pit);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_const_iterator(
        ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_t *pit);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_iterator_from_iterator(
        ppl_Pointset_Powerset_NNC_Polyhedron_iterator_t *px,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t y);
    int ppl_new_Pointset_Powerset_NNC_Polyhedron_const_iterator_from_const_iterator(
        ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_t *px,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_const_iterator_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_iterator_begin(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ps,
        ppl_Pointset_Powerset_NNC_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_begin(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps,
        ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_iterator_end(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ps,
        ppl_Pointset_Powerset_NNC_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_end(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_t ps,
        ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_iterator_equal_test(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_equal_test(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_const_iterator_t x,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_const_iterator_t y);
    int ppl_Pointset_Powerset_NNC_Polyhedron_iterator_increment(
        ppl_Pointset_Powerset_NNC_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_increment(
        ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_iterator_decrement(
        ppl_Pointset_Powerset_NNC_Polyhedron_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_decrement(
        ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_iterator_dereference(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t ps,
        ppl_const_Polyhedron_t *d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_const_iterator_dereference(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_const_iterator_t ps,
        ppl_const_Polyhedron_t *d);
    int ppl_delete_Pointset_Powerset_NNC_Polyhedron_iterator(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t psit);
    int ppl_delete_Pointset_Powerset_NNC_Polyhedron_const_iterator(
        ppl_const_Pointset_Powerset_NNC_Polyhedron_const_iterator_t psit);
    int ppl_Pointset_Powerset_NNC_Polyhedron_add_disjunct(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ps, ppl_const_Polyhedron_t d);
    int ppl_Pointset_Powerset_NNC_Polyhedron_drop_disjunct(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ps,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t cit,
        ppl_Pointset_Powerset_NNC_Polyhedron_iterator_t it);
    int ppl_Pointset_Powerset_NNC_Polyhedron_drop_disjuncts(
        ppl_Pointset_Powerset_NNC_Polyhedron_t ps,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t first,
        ppl_const_Pointset_Powerset_NNC_Polyhedron_iterator_t last);
    
    VERIFICATION_CRITERIA:

    Check independent added values, borrowed traversal, empty/nonempty begin/end, copy/assignment and removal/invalidation histories.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/powersets.c.

  • PPL-SPEC-001562
    9. C partition result ownership UID: PPL-SPEC-001562 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_linear_partition(
        ppl_const_Polyhedron_t x, ppl_const_Polyhedron_t y,
        ppl_Polyhedron_t *p_inters, ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_Rational_Box_linear_partition(
        ppl_const_Rational_Box_t x, ppl_const_Rational_Box_t y,
        ppl_Rational_Box_t *p_inters,
        ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_BD_Shape_mpz_class_linear_partition(
        ppl_const_BD_Shape_mpz_class_t x, ppl_const_BD_Shape_mpz_class_t y,
        ppl_BD_Shape_mpz_class_t *p_inters,
        ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_BD_Shape_mpq_class_linear_partition(
        ppl_const_BD_Shape_mpq_class_t x, ppl_const_BD_Shape_mpq_class_t y,
        ppl_BD_Shape_mpq_class_t *p_inters,
        ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_Octagonal_Shape_mpz_class_linear_partition(
        ppl_const_Octagonal_Shape_mpz_class_t x,
        ppl_const_Octagonal_Shape_mpz_class_t y,
        ppl_Octagonal_Shape_mpz_class_t *p_inters,
        ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_Octagonal_Shape_mpq_class_linear_partition(
        ppl_const_Octagonal_Shape_mpq_class_t x,
        ppl_const_Octagonal_Shape_mpq_class_t y,
        ppl_Octagonal_Shape_mpq_class_t *p_inters,
        ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_Double_Box_linear_partition(
        ppl_const_Double_Box_t x, ppl_const_Double_Box_t y,
        ppl_Double_Box_t *p_inters, ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_BD_Shape_double_linear_partition(
        ppl_const_BD_Shape_double_t x, ppl_const_BD_Shape_double_t y,
        ppl_BD_Shape_double_t *p_inters,
        ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    int ppl_Octagonal_Shape_double_linear_partition(
        ppl_const_Octagonal_Shape_double_t x, ppl_const_Octagonal_Shape_double_t y,
        ppl_Octagonal_Shape_double_t *p_inters,
        ppl_Pointset_Powerset_NNC_Polyhedron_t *p_rest);
    
    VERIFICATION_CRITERIA:

    Check literal partitions and their union/disjointness guarantees, indicator meaning, independent destruction and failure at each acquisition frontier.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/partitions.c.

  • PPL-SPEC-001563
    10. C affine-ranking outcomes and coefficient spaces UID: PPL-SPEC-001563 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_termination_test_MS_C_Polyhedron(ppl_const_Polyhedron_t pset);
    int ppl_termination_test_PR_C_Polyhedron(ppl_const_Polyhedron_t pset);
    int ppl_termination_test_MS_NNC_Polyhedron(ppl_const_Polyhedron_t pset);
    int ppl_termination_test_PR_NNC_Polyhedron(ppl_const_Polyhedron_t pset);
    int ppl_one_affine_ranking_function_MS_C_Polyhedron(ppl_const_Polyhedron_t pset,
                                                        ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_C_Polyhedron(ppl_const_Polyhedron_t pset,
                                                        ppl_Generator_t point);
    int ppl_one_affine_ranking_function_MS_NNC_Polyhedron(
        ppl_const_Polyhedron_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_NNC_Polyhedron(
        ppl_const_Polyhedron_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_C_Polyhedron(
        ppl_const_Polyhedron_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_C_Polyhedron(
        ppl_const_Polyhedron_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_MS_NNC_Polyhedron(
        ppl_const_Polyhedron_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_NNC_Polyhedron(
        ppl_const_Polyhedron_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_C_Polyhedron_2(ppl_const_Polyhedron_t pset_before,
                                               ppl_const_Polyhedron_t pset_after);
    int ppl_termination_test_PR_C_Polyhedron_2(ppl_const_Polyhedron_t pset_before,
                                               ppl_const_Polyhedron_t pset_after);
    int ppl_termination_test_MS_NNC_Polyhedron_2(ppl_const_Polyhedron_t pset_before,
                                                 ppl_const_Polyhedron_t pset_after);
    int ppl_termination_test_PR_NNC_Polyhedron_2(ppl_const_Polyhedron_t pset_before,
                                                 ppl_const_Polyhedron_t pset_after);
    int ppl_one_affine_ranking_function_MS_C_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_C_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Generator_t point);
    int ppl_one_affine_ranking_function_MS_NNC_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_NNC_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_C_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_C_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_MS_NNC_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_NNC_Polyhedron_2(
        ppl_const_Polyhedron_t pset_before, ppl_const_Polyhedron_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Grid(ppl_const_Grid_t pset);
    int ppl_termination_test_PR_Grid(ppl_const_Grid_t pset);
    int ppl_one_affine_ranking_function_MS_Grid(ppl_const_Grid_t pset,
                                                ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Grid(ppl_const_Grid_t pset,
                                                ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Grid(ppl_const_Grid_t pset,
                                                 ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Grid(ppl_const_Grid_t pset,
                                                 ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Grid_2(ppl_const_Grid_t pset_before,
                                       ppl_const_Grid_t pset_after);
    int ppl_termination_test_PR_Grid_2(ppl_const_Grid_t pset_before,
                                       ppl_const_Grid_t pset_after);
    int ppl_one_affine_ranking_function_MS_Grid_2(ppl_const_Grid_t pset_before,
                                                  ppl_const_Grid_t pset_after,
                                                  ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Grid_2(ppl_const_Grid_t pset_before,
                                                  ppl_const_Grid_t pset_after,
                                                  ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Grid_2(ppl_const_Grid_t pset_before,
                                                   ppl_const_Grid_t pset_after,
                                                   ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Grid_2(ppl_const_Grid_t pset_before,
                                                   ppl_const_Grid_t pset_after,
                                                   ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Rational_Box(ppl_const_Rational_Box_t pset);
    int ppl_termination_test_PR_Rational_Box(ppl_const_Rational_Box_t pset);
    int ppl_one_affine_ranking_function_MS_Rational_Box(
        ppl_const_Rational_Box_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Rational_Box(
        ppl_const_Rational_Box_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Rational_Box(
        ppl_const_Rational_Box_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Rational_Box(
        ppl_const_Rational_Box_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Rational_Box_2(ppl_const_Rational_Box_t pset_before,
                                               ppl_const_Rational_Box_t pset_after);
    int ppl_termination_test_PR_Rational_Box_2(ppl_const_Rational_Box_t pset_before,
                                               ppl_const_Rational_Box_t pset_after);
    int ppl_one_affine_ranking_function_MS_Rational_Box_2(
        ppl_const_Rational_Box_t pset_before, ppl_const_Rational_Box_t pset_after,
        ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Rational_Box_2(
        ppl_const_Rational_Box_t pset_before, ppl_const_Rational_Box_t pset_after,
        ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Rational_Box_2(
        ppl_const_Rational_Box_t pset_before, ppl_const_Rational_Box_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Rational_Box_2(
        ppl_const_Rational_Box_t pset_before, ppl_const_Rational_Box_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t pset);
    int ppl_termination_test_PR_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t pset);
    int ppl_one_affine_ranking_function_MS_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_BD_Shape_mpz_class(
        ppl_const_BD_Shape_mpz_class_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_BD_Shape_mpz_class_2(
        ppl_const_BD_Shape_mpz_class_t pset_before,
        ppl_const_BD_Shape_mpz_class_t pset_after);
    int ppl_termination_test_PR_BD_Shape_mpz_class_2(
        ppl_const_BD_Shape_mpz_class_t pset_before,
        ppl_const_BD_Shape_mpz_class_t pset_after);
    int ppl_one_affine_ranking_function_MS_BD_Shape_mpz_class_2(
        ppl_const_BD_Shape_mpz_class_t pset_before,
        ppl_const_BD_Shape_mpz_class_t pset_after, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_BD_Shape_mpz_class_2(
        ppl_const_BD_Shape_mpz_class_t pset_before,
        ppl_const_BD_Shape_mpz_class_t pset_after, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_BD_Shape_mpz_class_2(
        ppl_const_BD_Shape_mpz_class_t pset_before,
        ppl_const_BD_Shape_mpz_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_BD_Shape_mpz_class_2(
        ppl_const_BD_Shape_mpz_class_t pset_before,
        ppl_const_BD_Shape_mpz_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t pset);
    int ppl_termination_test_PR_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t pset);
    int ppl_one_affine_ranking_function_MS_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_BD_Shape_mpq_class(
        ppl_const_BD_Shape_mpq_class_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_BD_Shape_mpq_class_2(
        ppl_const_BD_Shape_mpq_class_t pset_before,
        ppl_const_BD_Shape_mpq_class_t pset_after);
    int ppl_termination_test_PR_BD_Shape_mpq_class_2(
        ppl_const_BD_Shape_mpq_class_t pset_before,
        ppl_const_BD_Shape_mpq_class_t pset_after);
    int ppl_one_affine_ranking_function_MS_BD_Shape_mpq_class_2(
        ppl_const_BD_Shape_mpq_class_t pset_before,
        ppl_const_BD_Shape_mpq_class_t pset_after, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_BD_Shape_mpq_class_2(
        ppl_const_BD_Shape_mpq_class_t pset_before,
        ppl_const_BD_Shape_mpq_class_t pset_after, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_BD_Shape_mpq_class_2(
        ppl_const_BD_Shape_mpq_class_t pset_before,
        ppl_const_BD_Shape_mpq_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_BD_Shape_mpq_class_2(
        ppl_const_BD_Shape_mpq_class_t pset_before,
        ppl_const_BD_Shape_mpq_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t pset);
    int ppl_termination_test_PR_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t pset);
    int ppl_one_affine_ranking_function_MS_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Octagonal_Shape_mpz_class(
        ppl_const_Octagonal_Shape_mpz_class_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Octagonal_Shape_mpz_class_2(
        ppl_const_Octagonal_Shape_mpz_class_t pset_before,
        ppl_const_Octagonal_Shape_mpz_class_t pset_after);
    int ppl_termination_test_PR_Octagonal_Shape_mpz_class_2(
        ppl_const_Octagonal_Shape_mpz_class_t pset_before,
        ppl_const_Octagonal_Shape_mpz_class_t pset_after);
    int ppl_one_affine_ranking_function_MS_Octagonal_Shape_mpz_class_2(
        ppl_const_Octagonal_Shape_mpz_class_t pset_before,
        ppl_const_Octagonal_Shape_mpz_class_t pset_after, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Octagonal_Shape_mpz_class_2(
        ppl_const_Octagonal_Shape_mpz_class_t pset_before,
        ppl_const_Octagonal_Shape_mpz_class_t pset_after, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Octagonal_Shape_mpz_class_2(
        ppl_const_Octagonal_Shape_mpz_class_t pset_before,
        ppl_const_Octagonal_Shape_mpz_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Octagonal_Shape_mpz_class_2(
        ppl_const_Octagonal_Shape_mpz_class_t pset_before,
        ppl_const_Octagonal_Shape_mpz_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t pset);
    int ppl_termination_test_PR_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t pset);
    int ppl_one_affine_ranking_function_MS_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Octagonal_Shape_mpq_class(
        ppl_const_Octagonal_Shape_mpq_class_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Octagonal_Shape_mpq_class_2(
        ppl_const_Octagonal_Shape_mpq_class_t pset_before,
        ppl_const_Octagonal_Shape_mpq_class_t pset_after);
    int ppl_termination_test_PR_Octagonal_Shape_mpq_class_2(
        ppl_const_Octagonal_Shape_mpq_class_t pset_before,
        ppl_const_Octagonal_Shape_mpq_class_t pset_after);
    int ppl_one_affine_ranking_function_MS_Octagonal_Shape_mpq_class_2(
        ppl_const_Octagonal_Shape_mpq_class_t pset_before,
        ppl_const_Octagonal_Shape_mpq_class_t pset_after, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Octagonal_Shape_mpq_class_2(
        ppl_const_Octagonal_Shape_mpq_class_t pset_before,
        ppl_const_Octagonal_Shape_mpq_class_t pset_after, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Octagonal_Shape_mpq_class_2(
        ppl_const_Octagonal_Shape_mpq_class_t pset_before,
        ppl_const_Octagonal_Shape_mpq_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Octagonal_Shape_mpq_class_2(
        ppl_const_Octagonal_Shape_mpq_class_t pset_before,
        ppl_const_Octagonal_Shape_mpq_class_t pset_after, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Double_Box(ppl_const_Double_Box_t pset);
    int ppl_termination_test_PR_Double_Box(ppl_const_Double_Box_t pset);
    int ppl_one_affine_ranking_function_MS_Double_Box(ppl_const_Double_Box_t pset,
                                                      ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Double_Box(ppl_const_Double_Box_t pset,
                                                      ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Double_Box(ppl_const_Double_Box_t pset,
                                                       ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Double_Box(ppl_const_Double_Box_t pset,
                                                       ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Double_Box_2(ppl_const_Double_Box_t pset_before,
                                             ppl_const_Double_Box_t pset_after);
    int ppl_termination_test_PR_Double_Box_2(ppl_const_Double_Box_t pset_before,
                                             ppl_const_Double_Box_t pset_after);
    int ppl_one_affine_ranking_function_MS_Double_Box_2(
        ppl_const_Double_Box_t pset_before, ppl_const_Double_Box_t pset_after,
        ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Double_Box_2(
        ppl_const_Double_Box_t pset_before, ppl_const_Double_Box_t pset_after,
        ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Double_Box_2(
        ppl_const_Double_Box_t pset_before, ppl_const_Double_Box_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Double_Box_2(
        ppl_const_Double_Box_t pset_before, ppl_const_Double_Box_t pset_after,
        ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_BD_Shape_double(ppl_const_BD_Shape_double_t pset);
    int ppl_termination_test_PR_BD_Shape_double(ppl_const_BD_Shape_double_t pset);
    int ppl_one_affine_ranking_function_MS_BD_Shape_double(
        ppl_const_BD_Shape_double_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_BD_Shape_double(
        ppl_const_BD_Shape_double_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_BD_Shape_double(
        ppl_const_BD_Shape_double_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_BD_Shape_double(
        ppl_const_BD_Shape_double_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_BD_Shape_double_2(
        ppl_const_BD_Shape_double_t pset_before,
        ppl_const_BD_Shape_double_t pset_after);
    int ppl_termination_test_PR_BD_Shape_double_2(
        ppl_const_BD_Shape_double_t pset_before,
        ppl_const_BD_Shape_double_t pset_after);
    int ppl_one_affine_ranking_function_MS_BD_Shape_double_2(
        ppl_const_BD_Shape_double_t pset_before,
        ppl_const_BD_Shape_double_t pset_after, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_BD_Shape_double_2(
        ppl_const_BD_Shape_double_t pset_before,
        ppl_const_BD_Shape_double_t pset_after, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_BD_Shape_double_2(
        ppl_const_BD_Shape_double_t pset_before,
        ppl_const_BD_Shape_double_t pset_after, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_BD_Shape_double_2(
        ppl_const_BD_Shape_double_t pset_before,
        ppl_const_BD_Shape_double_t pset_after, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t pset);
    int ppl_termination_test_PR_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t pset);
    int ppl_one_affine_ranking_function_MS_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t pset, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t pset, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t pset, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Octagonal_Shape_double(
        ppl_const_Octagonal_Shape_double_t pset, ppl_Polyhedron_t ph);
    int ppl_termination_test_MS_Octagonal_Shape_double_2(
        ppl_const_Octagonal_Shape_double_t pset_before,
        ppl_const_Octagonal_Shape_double_t pset_after);
    int ppl_termination_test_PR_Octagonal_Shape_double_2(
        ppl_const_Octagonal_Shape_double_t pset_before,
        ppl_const_Octagonal_Shape_double_t pset_after);
    int ppl_one_affine_ranking_function_MS_Octagonal_Shape_double_2(
        ppl_const_Octagonal_Shape_double_t pset_before,
        ppl_const_Octagonal_Shape_double_t pset_after, ppl_Generator_t point);
    int ppl_one_affine_ranking_function_PR_Octagonal_Shape_double_2(
        ppl_const_Octagonal_Shape_double_t pset_before,
        ppl_const_Octagonal_Shape_double_t pset_after, ppl_Generator_t point);
    int ppl_all_affine_ranking_functions_MS_Octagonal_Shape_double_2(
        ppl_const_Octagonal_Shape_double_t pset_before,
        ppl_const_Octagonal_Shape_double_t pset_after, ppl_Polyhedron_t ph);
    int ppl_all_affine_ranking_functions_PR_Octagonal_Shape_double_2(
        ppl_const_Octagonal_Shape_double_t pset_before,
        ppl_const_Octagonal_Shape_double_t pset_after, ppl_Polyhedron_t ph);
    
    VERIFICATION_CRITERIA:

    Compare full ranking spaces and independently checked witnesses, vacuous paired inputs, strict boundaries, unsupported dimensions and selected-domain generation.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001564
    11. C bounded integer wrapping UID: PPL-SPEC-001564 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Generated forwarding must retain the native mathematical and ownership contract.

    INTERFACE:

    Public header: <ppl_c.h>. The concrete domain names below are available when their corresponding domain types and dependencies are selected.

    int ppl_Polyhedron_wrap_assign(
        ppl_Polyhedron_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_Grid_wrap_assign(ppl_Grid_t ph, ppl_dimension_type ds[], size_t n,
                             enum ppl_enum_Bounded_Integer_Type_Width w,
                             enum ppl_enum_Bounded_Integer_Type_Representation r,
                             enum ppl_enum_Bounded_Integer_Type_Overflow o,
                             const ppl_const_Constraint_System_t *pcs,
                             unsigned complexity_threshold, int wrap_individually);
    int ppl_Rational_Box_wrap_assign(
        ppl_Rational_Box_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_BD_Shape_mpz_class_wrap_assign(
        ppl_BD_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_BD_Shape_mpq_class_wrap_assign(
        ppl_BD_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_Octagonal_Shape_mpz_class_wrap_assign(
        ppl_Octagonal_Shape_mpz_class_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_Octagonal_Shape_mpq_class_wrap_assign(
        ppl_Octagonal_Shape_mpq_class_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_Double_Box_wrap_assign(
        ppl_Double_Box_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_BD_Shape_double_wrap_assign(
        ppl_BD_Shape_double_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    int ppl_Octagonal_Shape_double_wrap_assign(
        ppl_Octagonal_Shape_double_t ph, ppl_dimension_type ds[], size_t n,
        enum ppl_enum_Bounded_Integer_Type_Width w,
        enum ppl_enum_Bounded_Integer_Type_Representation r,
        enum ppl_enum_Bounded_Integer_Type_Overflow o,
        const ppl_const_Constraint_System_t *pcs, unsigned complexity_threshold,
        int wrap_individually);
    
    VERIFICATION_CRITERIA:

    Check width/sign/overflow combinations, exact modular witnesses, absent/present guards, supported integer-coordinate selections and native soundness conditions.

    SOURCE:

    interfaces/C/ppl_interface_generator_c_cc_code.m4; interfaces/C/ppl_interface_generator_c_h_code.m4; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001539
    1. C mixed integer problem values UID: PPL-SPEC-001539 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C solver objects require independent native lifetimes.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_MIP_Problem_from_space_dimension(ppl_MIP_Problem_t *pmip,
                                                 ppl_dimension_type d);
    int ppl_new_MIP_Problem(ppl_MIP_Problem_t *pmip, ppl_dimension_type d,
                            ppl_const_Constraint_System_t cs,
                            ppl_const_Linear_Expression_t le, int m);
    int ppl_new_MIP_Problem_from_MIP_Problem(ppl_MIP_Problem_t *pmip,
                                             ppl_const_MIP_Problem_t mip);
    int ppl_assign_MIP_Problem_from_MIP_Problem(ppl_MIP_Problem_t dst,
                                                ppl_const_MIP_Problem_t src);
    int ppl_delete_MIP_Problem(ppl_const_MIP_Problem_t mip);
    
    VERIFICATION_CRITERIA:

    Check each constructor, real/integer feasibility distinctions, source mutation, owned copy histories and construction failure cleanup.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001540
    2. C mixed integer descriptors and borrowing UID: PPL-SPEC-001540 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Canonical admitted descriptors must remain distinct from the transformed simplex representation. Integer-supported strict rows use the closed storage described by 🔗 1. Integer-supported strict MIP admission.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_MIP_Problem_space_dimension(ppl_const_MIP_Problem_t mip,
                                        ppl_dimension_type *m);
    int ppl_MIP_Problem_number_of_integer_space_dimensions(
        ppl_const_MIP_Problem_t mip, ppl_dimension_type *m);
    int ppl_MIP_Problem_integer_space_dimensions(ppl_const_MIP_Problem_t mip,
                                                 ppl_dimension_type ds[]);
    int ppl_MIP_Problem_number_of_constraints(ppl_const_MIP_Problem_t mip,
                                              ppl_dimension_type *m);
    int ppl_MIP_Problem_constraint_at_index(ppl_const_MIP_Problem_t mip,
                                            ppl_dimension_type i,
                                            ppl_const_Constraint_t *pc);
    int ppl_MIP_Problem_objective_function(ppl_const_MIP_Problem_t mip,
                                           ppl_const_Linear_Expression_t *ple);
    int ppl_MIP_Problem_optimization_mode(ppl_const_MIP_Problem_t mip);
    
    VERIFICATION_CRITERIA:

    Compare exact descriptors and index lists after additions, copy and solving; exercise first/last/rejected indices and valid borrowed inspection.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001541
    3. C mixed integer incremental updates UID: PPL-SPEC-001541 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Incremental C solving must agree with rebuilding the same native model.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_MIP_Problem_clear(ppl_MIP_Problem_t mip);
    int ppl_MIP_Problem_add_space_dimensions_and_embed(ppl_MIP_Problem_t mip,
                                                       ppl_dimension_type d);
    int ppl_MIP_Problem_add_to_integer_space_dimensions(ppl_MIP_Problem_t mip,
                                                        ppl_dimension_type ds[],
                                                        size_t n);
    int ppl_MIP_Problem_add_constraint(ppl_MIP_Problem_t mip,
                                       ppl_const_Constraint_t c);
    int ppl_MIP_Problem_add_constraints(ppl_MIP_Problem_t mip,
                                        ppl_const_Constraint_System_t cs);
    int ppl_MIP_Problem_set_objective_function(ppl_MIP_Problem_t mip,
                                               ppl_const_Linear_Expression_t le);
    int ppl_MIP_Problem_set_optimization_mode(ppl_MIP_Problem_t mip, int mode);
    
    VERIFICATION_CRITERIA:

    Compare independent fresh models after each update, including new integer coordinates, free dimensions, contradictory cuts and objective reversal.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001542
    4. C mixed integer solution outcomes and witnesses UID: PPL-SPEC-001542 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A borrowed witness and a status have distinct ownership and mathematical roles.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_is_mixed_integer_satisfiable(ppl_dimension_type dimension,
                                         ppl_const_Constraint_System_t cs,
                                         const ppl_dimension_type integers[],
                                         size_t n);
    int ppl_MIP_Problem_is_satisfiable(ppl_const_MIP_Problem_t mip);
    int ppl_MIP_Problem_solve(ppl_const_MIP_Problem_t mip);
    int ppl_MIP_Problem_evaluate_objective_function(ppl_const_MIP_Problem_t mip,
                                                    ppl_const_Generator_t g,
                                                    ppl_Coefficient_t num,
                                                    ppl_Coefficient_t den);
    int ppl_MIP_Problem_feasible_point(ppl_const_MIP_Problem_t mip,
                                       ppl_const_Generator_t *pg);
    int ppl_MIP_Problem_optimizing_point(ppl_const_MIP_Problem_t mip,
                                         ppl_const_Generator_t *pg);
    int ppl_MIP_Problem_optimal_value(ppl_const_MIP_Problem_t mip,
                                      ppl_Coefficient_t num, ppl_Coefficient_t den);
    
    VERIFICATION_CRITERIA:

    Check all three solve outcomes, exact rational objectives, mixed integrality, witness satisfaction, failure outputs and repeated/incremental solving.

    SOURCE:

    interfaces/interfaced_polyhedra.hh; interfaces/C/tests/newoperations.c; interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001543
    5. C mixed integer controls, validity and memory UID: PPL-SPEC-001543 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Heuristic controls and storage estimates must not weaken numerical guarantees.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_MIP_Problem_OK(ppl_const_MIP_Problem_t mip);
    int ppl_MIP_Problem_get_control_parameter(ppl_const_MIP_Problem_t mip,
                                              int name);
    int ppl_MIP_Problem_set_control_parameter(ppl_MIP_Problem_t mip, int value);
    int ppl_MIP_Problem_total_memory_in_bytes(ppl_const_MIP_Problem_t mip,
                                              size_t *sz);
    int ppl_MIP_Problem_external_memory_in_bytes(ppl_const_MIP_Problem_t mip,
                                                 size_t *sz);
    
    VERIFICATION_CRITERIA:

    Exercise supported pricing values against independently known optima and inspect validity and memory across copy, pending and solved states.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001519
    1. C variable formatting and callback failures UID: PPL-SPEC-001519 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A missing variable can change the meaning of a displayed constraint or expression.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_io_print_variable(ppl_dimension_type var);
    int ppl_io_fprint_variable(FILE *stream, ppl_dimension_type var);
    int ppl_io_asprint_variable(char **strp, ppl_dimension_type var);
    int ppl_io_set_variable_output_function(
        ppl_io_variable_output_function_type *p);
    int ppl_io_get_variable_output_function(
        ppl_io_variable_output_function_type **pp);
    
    VERIFICATION_CRITERIA:

    Check default and custom names, borrowed callback strings, null callback results in direct and composite output, and errno/error-handler propagation.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/cerrorsspec1.cc.

  • PPL-SPEC-001520
    2. C textual output and allocated buffers UID: PPL-SPEC-001520 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A C client needs explicit buffer ownership and observable write failures.

    INTERFACE:

    Public header: <ppl_c.h>.

    /* T ranges over exposed C object types. */
    int ppl_io_print_T(ppl_const_T_t x);
    int ppl_io_fprint_T(FILE *file, ppl_const_T_t x);
    int ppl_io_asprint_T(char **result, ppl_const_T_t x);
    
    VERIFICATION_CRITERIA:

    Compare buffered and file output, exercise callback and writable-stream failures, inject allocation failure and release every successful buffer.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common_defs.hh; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/cerrorsspec1.cc.

  • PPL-SPEC-001521
    3. C line wrapping and pointer failure result UID: PPL-SPEC-001521 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    The pointer-returning utility must still contain failures at the C boundary.

    INTERFACE:

    Public header: <ppl_c.h>.

    char *ppl_io_wrap_string(const char *src, unsigned indent_depth,
                             unsigned preferred_first_line_length,
                             unsigned preferred_line_length);
    
    VERIFICATION_CRITERIA:

    Compare exact text for empty input, commas, newlines, indentation and long words; inject string construction and final-buffer allocation failures.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/cerrorsspec1.cc.

  • PPL-SPEC-001522
    4. C reloadable FILE representations UID: PPL-SPEC-001522 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C serialization must expose the native parser outcome without changing ownership.

    INTERFACE:

    Public header: <ppl_c.h>.

    /* T ranges over types exposing the native operations. */
    int ppl_T_ascii_dump(ppl_const_T_t x, FILE *file);
    int ppl_T_ascii_load(ppl_T_t x, FILE *file);
    
    VERIFICATION_CRITERIA:

    Round-trip descriptor, system, optimizer and generated-domain values through files, test malformed and truncated input and populated destinations, and verify destruction after rejected loads.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common_defs.hh; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/cerrorsspec1.cc.

  • PPL-SPEC-001544
    1. C parametric problem values and ownership UID: PPL-SPEC-001544 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A copied parametric problem owns another tree rather than borrowing the source tree.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_PIP_Problem_from_space_dimension(ppl_PIP_Problem_t *ppip,
                                                 ppl_dimension_type d);
    int ppl_new_PIP_Problem_from_PIP_Problem(ppl_PIP_Problem_t *ppip,
                                             ppl_const_PIP_Problem_t pip);
    int ppl_assign_PIP_Problem_from_PIP_Problem(ppl_PIP_Problem_t dst,
                                                ppl_const_PIP_Problem_t src);
    int ppl_new_PIP_Problem_from_constraints(
        ppl_PIP_Problem_t *ppip, ppl_dimension_type d,
        ppl_Constraint_System_const_iterator_t first,
        ppl_Constraint_System_const_iterator_t last, size_t n,
        ppl_dimension_type ds[]);
    int ppl_delete_PIP_Problem(ppl_const_PIP_Problem_t pip);
    
    VERIFICATION_CRITERIA:

    Check zero/nonzero dimensions, parameter selection, copied solved/pending problems, independent destruction and rejected construction.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001545
    2. C parametric descriptors and parameter lists UID: PPL-SPEC-001545 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Clients require original parameter identities and constraints independent of solver transformations.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_PIP_Problem_space_dimension(ppl_const_PIP_Problem_t pip,
                                        ppl_dimension_type *m);
    int ppl_PIP_Problem_number_of_parameter_space_dimensions(
        ppl_const_PIP_Problem_t pip, ppl_dimension_type *m);
    int ppl_PIP_Problem_parameter_space_dimensions(ppl_const_PIP_Problem_t pip,
                                                   ppl_dimension_type ds[]);
    int ppl_PIP_Problem_number_of_constraints(ppl_const_PIP_Problem_t pip,
                                              ppl_dimension_type *m);
    int ppl_PIP_Problem_constraint_at_index(ppl_const_PIP_Problem_t pip,
                                            ppl_dimension_type i,
                                            ppl_const_Constraint_t *pc);
    
    VERIFICATION_CRITERIA:

    Compare parameter arrays, original constraint order and borrowed values before and after solving and dimension changes.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001546
    3. C parametric incremental updates UID: PPL-SPEC-001546 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Parameter identity and dimension admission govern subsequent piecewise solutions.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_PIP_Problem_clear(ppl_PIP_Problem_t pip);
    int ppl_PIP_Problem_add_space_dimensions_and_embed(
        ppl_PIP_Problem_t pip, ppl_dimension_type pip_vars,
        ppl_dimension_type pip_params);
    int ppl_PIP_Problem_add_to_parameter_space_dimensions(ppl_PIP_Problem_t pip,
                                                          ppl_dimension_type ds[],
                                                          size_t n);
    int ppl_PIP_Problem_add_constraint(ppl_PIP_Problem_t pip,
                                       ppl_const_Constraint_t c);
    int ppl_PIP_Problem_add_constraints(ppl_PIP_Problem_t pip,
                                        ppl_const_Constraint_System_t cs);
    
    VERIFICATION_CRITERIA:

    Compare fresh and incremental models, floor-term renumbering, duplicate selections, dimension overflow and incompatible empty systems.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001547
    4. C parametric outcomes and borrowed solution trees UID: PPL-SPEC-001547 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A null solution root represents a mathematical outcome and is distinct from a negative failure status.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_PIP_Problem_is_satisfiable(ppl_const_PIP_Problem_t pip);
    int ppl_PIP_Problem_solve(ppl_const_PIP_Problem_t pip);
    int ppl_PIP_Problem_solution(ppl_const_PIP_Problem_t pip,
                                 ppl_const_PIP_Tree_Node_t *pip_tree);
    int ppl_PIP_Problem_optimizing_solution(ppl_const_PIP_Problem_t pip,
                                            ppl_const_PIP_Tree_Node_t *pip_tree);
    
    VERIFICATION_CRITERIA:

    Evaluate returned trees independently over bounded parameter contexts, including infeasible regions, floor terms, copies and incremental changes.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001548
    5. C parametric controls, big parameter and memory UID: PPL-SPEC-001548 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C controls must preserve context and asymptotic meaning.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_PIP_Problem_get_big_parameter_dimension(ppl_const_PIP_Problem_t pip,
                                                    ppl_dimension_type *pd);
    int ppl_PIP_Problem_total_memory_in_bytes(ppl_const_PIP_Problem_t pip,
                                              size_t *sz);
    int ppl_PIP_Problem_external_memory_in_bytes(ppl_const_PIP_Problem_t pip,
                                                 size_t *sz);
    int ppl_PIP_Problem_OK(ppl_const_PIP_Problem_t pip);
    int ppl_PIP_Problem_set_big_parameter_dimension(ppl_PIP_Problem_t pip,
                                                    ppl_dimension_type d);
    int ppl_PIP_Problem_get_control_parameter(ppl_const_PIP_Problem_t pip,
                                              int name);
    int ppl_PIP_Problem_set_control_parameter(ppl_PIP_Problem_t pip, int value);
    
    VERIFICATION_CRITERIA:

    Check all supported control choices against literal piecewise solutions, big-parameter histories, invalid native requests and memory/validity queries.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001549
    6. C solution-tree kind, guards, children and values UID: PPL-SPEC-001549 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Safe traversal depends on distinguishing successful absent nodes from errors.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_PIP_Tree_Node_as_solution(ppl_const_PIP_Tree_Node_t spip_tree,
                                      ppl_const_PIP_Solution_Node_t *dpip_tree);
    int ppl_PIP_Tree_Node_as_decision(ppl_const_PIP_Tree_Node_t spip_tree,
                                      ppl_const_PIP_Decision_Node_t *dpip_tree);
    int ppl_PIP_Tree_Node_get_constraints(ppl_const_PIP_Tree_Node_t pip_tree,
                                          ppl_const_Constraint_System_t *pcs);
    int ppl_PIP_Tree_Node_OK(ppl_const_PIP_Tree_Node_t pip);
    int ppl_PIP_Solution_Node_OK(ppl_const_PIP_Solution_Node_t pip_sol);
    int ppl_PIP_Solution_Node_get_parametric_values(
        ppl_const_PIP_Solution_Node_t pip_sol, ppl_dimension_type var,
        ppl_const_Linear_Expression_t *le);
    int ppl_PIP_Decision_Node_OK(ppl_const_PIP_Decision_Node_t pip_dec);
    int ppl_PIP_Decision_Node_get_child_node(ppl_const_PIP_Decision_Node_t pip_dec,
                                             int b,
                                             ppl_const_PIP_Tree_Node_t *pip_tree);
    
    VERIFICATION_CRITERIA:

    Traverse both branch kinds and absent branches, evaluate guards and leaf expressions over admitted contexts, and check invalid coordinate queries and unchanged failure outputs.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001550
    7. C artificial-parameter expression and coefficient queries UID: PPL-SPEC-001550 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    The denominator is separate from an inherited affine numerator.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_Artificial_Parameter_get_Linear_Expression(
        ppl_const_Artificial_Parameter_t ap, ppl_Linear_Expression_t le);
    int ppl_Artificial_Parameter_coefficient(ppl_const_Artificial_Parameter_t ap,
                                             ppl_dimension_type var,
                                             ppl_Coefficient_t n);
    int ppl_Artificial_Parameter_inhomogeneous_term(
        ppl_const_Artificial_Parameter_t ap, ppl_Coefficient_t n);
    int ppl_Artificial_Parameter_denominator(ppl_const_Artificial_Parameter_t ap,
                                             ppl_Coefficient_t n);
    
    VERIFICATION_CRITERIA:

    Check copied numerator dimensions and exact coefficients, independence after tree destruction, source preservation, positive denominators and independent floor evaluation for generated parameters.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001551
    8. C artificial-parameter sequence traversal UID: PPL-SPEC-001551 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Local artificial parameters have an order and a lifetime inherited from the solution tree.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_PIP_Tree_Node_number_of_artificials(ppl_const_PIP_Tree_Node_t pip_tree,
                                                ppl_dimension_type *m);
    int ppl_PIP_Tree_Node_begin(
        ppl_const_PIP_Tree_Node_t pip_tree,
        ppl_Artificial_Parameter_Sequence_const_iterator_t pit);
    int ppl_PIP_Tree_Node_end(
        ppl_const_PIP_Tree_Node_t pip_tree,
        ppl_Artificial_Parameter_Sequence_const_iterator_t pit);
    int ppl_new_Artificial_Parameter_Sequence_const_iterator(
        ppl_Artificial_Parameter_Sequence_const_iterator_t *papit);
    int ppl_new_Artificial_Parameter_Sequence_const_iterator_from_Artificial_Parameter_Sequence_const_iterator(
        ppl_Artificial_Parameter_Sequence_const_iterator_t *papit,
        ppl_const_Artificial_Parameter_Sequence_const_iterator_t apit);
    int ppl_assign_Artificial_Parameter_Sequence_const_iterator_from_Artificial_Parameter_Sequence_const_iterator(
        ppl_Artificial_Parameter_Sequence_const_iterator_t dst,
        ppl_const_Artificial_Parameter_Sequence_const_iterator_t src);
    int ppl_delete_Artificial_Parameter_Sequence_const_iterator(
        ppl_const_Artificial_Parameter_Sequence_const_iterator_t apit);
    int ppl_Artificial_Parameter_Sequence_const_iterator_dereference(
        ppl_const_Artificial_Parameter_Sequence_const_iterator_t apit,
        ppl_const_Artificial_Parameter_t *pap);
    int ppl_Artificial_Parameter_Sequence_const_iterator_increment(
        ppl_Artificial_Parameter_Sequence_const_iterator_t apit);
    int ppl_Artificial_Parameter_Sequence_const_iterator_equal_test(
        ppl_const_Artificial_Parameter_Sequence_const_iterator_t x,
        ppl_const_Artificial_Parameter_Sequence_const_iterator_t y);
    
    VERIFICATION_CRITERIA:

    Traverse empty/nonempty local sequences, compare/copy/assign iterator positions and inspect borrowed parameters without invalidating the tree.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001516
    2. C failures and installed error notification UID: PPL-SPEC-001516 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    An error status and its callback are two observations of the same failed operation.

    INTERFACE:

    Public header: <ppl_c.h>.

    enum ppl_enum_error_code {
    
      PPL_ERROR_OUT_OF_MEMORY = -2,
    
      PPL_ERROR_INVALID_ARGUMENT = -3,
    
      PPL_ERROR_DOMAIN_ERROR = -4,
    
      PPL_ERROR_LENGTH_ERROR = -5,
    
      PPL_ARITHMETIC_OVERFLOW = -6,
    
      PPL_STDIO_ERROR = -7,
    
      PPL_ERROR_INTERNAL_ERROR = -8,
    
      PPL_ERROR_UNKNOWN_STANDARD_EXCEPTION = -9,
    
      PPL_ERROR_UNEXPECTED_ERROR = -10,
    
      PPL_TIMEOUT_EXCEPTION = -11,
    
      PPL_ERROR_LOGIC_ERROR = -12
    };
    int ppl_set_error_handler(void (*h)(enum ppl_enum_error_code code,
                                        const char *description));
    
    VERIFICATION_CRITERIA:

    Check every supported category, callback counts, null-handler operation, errno preservation and native exception containment; inject both C++ allocation and output-buffer allocation failures.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/ppl_c_implementation_common_defs.hh; interfaces/C/tests/ccontractsspec1.cc; interfaces/C/tests/partitions.c; interfaces/C/tests/polyhedra.c; interfaces/C/tests/cerrorsspec1.cc.

  • PPL-SPEC-001552
    5. C signal timeout lifecycle UID: PPL-SPEC-001552 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A C-owned timer must have a finite lifetime and a distinct interruption outcome.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_set_timeout(unsigned csecs);
    int ppl_reset_timeout(void);
    
    VERIFICATION_CRITERIA:

    Check supported/unsupported requests, invalid and excessive durations, replacement/reset effects, timeout translation and finalization with an armed timer.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/watchdog1.c; interfaces/C/tests/cerrorsspec1.cc.

  • PPL-SPEC-001553
    6. C deterministic timeout lifecycle UID: PPL-SPEC-001553 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    An observed timeout must not repeatedly poison independent later computations.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_set_deterministic_timeout(unsigned long unscaled_weight,
                                      unsigned scale);
    int ppl_reset_deterministic_timeout(void);
    
    VERIFICATION_CRITERIA:

    Force a threshold crossing, check exactly one translated notification, then run an independent query without an explicit client reset; check invalid/replacement/reset/finalization transitions. Exercise simultaneous thread budgets, cross-module native/C watchers, unrelated borrowed requests and finalization/reentry with a pending budget.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/weightwatch1.c; interfaces/C/tests/cerrorsspec1.cc; interfaces/C/tests/deterministictimeouts1.cc.

  • PPL-SPEC-001534
    1. C constraint systems UID: PPL-SPEC-001534 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Systems own elements, while traversal only borrows them.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Constraint_System(ppl_Constraint_System_t *pcs);
    int ppl_new_Constraint_System_zero_dim_empty(ppl_Constraint_System_t *pcs);
    int ppl_new_Constraint_System_from_Constraint(ppl_Constraint_System_t *pcs,
                                                  ppl_const_Constraint_t c);
    int ppl_new_Constraint_System_from_Constraint_System(
        ppl_Constraint_System_t *pcs, ppl_const_Constraint_System_t cs);
    int ppl_assign_Constraint_System_from_Constraint_System(
        ppl_Constraint_System_t dst, ppl_const_Constraint_System_t src);
    int ppl_delete_Constraint_System(ppl_const_Constraint_System_t cs);
    int ppl_Constraint_System_space_dimension(ppl_const_Constraint_System_t cs,
                                              ppl_dimension_type *m);
    int ppl_Constraint_System_empty(ppl_const_Constraint_System_t cs);
    int ppl_Constraint_System_has_strict_inequalities(
        ppl_const_Constraint_System_t cs);
    int ppl_Constraint_System_begin(ppl_const_Constraint_System_t cs,
                                    ppl_Constraint_System_const_iterator_t cit);
    int ppl_Constraint_System_end(ppl_const_Constraint_System_t cs,
                                  ppl_Constraint_System_const_iterator_t cit);
    int ppl_Constraint_System_OK(ppl_const_Constraint_System_t cs);
    int ppl_Constraint_System_clear(ppl_Constraint_System_t cs);
    int ppl_Constraint_System_insert_Constraint(ppl_Constraint_System_t cs,
                                                ppl_const_Constraint_t c);
    
    VERIFICATION_CRITERIA:

    Check insertion and copy independence, empty and canonical systems, declared dimensions, native iterator filtering and destruction/invalidation histories.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001535
    2. C generator systems UID: PPL-SPEC-001535 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Systems own elements, while traversal only borrows them.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Generator_System(ppl_Generator_System_t *pgs);
    int ppl_new_Generator_System_zero_dim_univ(ppl_Generator_System_t *pgs);
    int ppl_new_Generator_System_from_Generator(ppl_Generator_System_t *pgs,
                                                ppl_const_Generator_t g);
    int ppl_new_Generator_System_from_Generator_System(
        ppl_Generator_System_t *pgs, ppl_const_Generator_System_t gs);
    int ppl_assign_Generator_System_from_Generator_System(
        ppl_Generator_System_t dst, ppl_const_Generator_System_t src);
    int ppl_delete_Generator_System(ppl_const_Generator_System_t gs);
    int ppl_Generator_System_space_dimension(ppl_const_Generator_System_t gs,
                                             ppl_dimension_type *m);
    int ppl_Generator_System_empty(ppl_const_Generator_System_t gs);
    int ppl_Generator_System_begin(ppl_const_Generator_System_t gs,
                                   ppl_Generator_System_const_iterator_t git);
    int ppl_Generator_System_end(ppl_const_Generator_System_t gs,
                                 ppl_Generator_System_const_iterator_t git);
    int ppl_Generator_System_OK(ppl_const_Generator_System_t gs);
    int ppl_Generator_System_clear(ppl_Generator_System_t gs);
    int ppl_Generator_System_insert_Generator(ppl_Generator_System_t gs,
                                              ppl_const_Generator_t g);
    
    VERIFICATION_CRITERIA:

    Check insertion and copy independence, empty and canonical systems, declared dimensions, native iterator filtering and destruction/invalidation histories.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001536
    3. C congruence systems UID: PPL-SPEC-001536 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Systems own elements, while traversal only borrows them.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Congruence_System(ppl_Congruence_System_t *pcs);
    int ppl_new_Congruence_System_zero_dim_empty(ppl_Congruence_System_t *pcs);
    int ppl_new_Congruence_System_from_Congruence(ppl_Congruence_System_t *pcs,
                                                  ppl_const_Congruence_t c);
    int ppl_new_Congruence_System_from_Congruence_System(
        ppl_Congruence_System_t *pcs, ppl_const_Congruence_System_t cs);
    int ppl_assign_Congruence_System_from_Congruence_System(
        ppl_Congruence_System_t dst, ppl_const_Congruence_System_t src);
    int ppl_delete_Congruence_System(ppl_const_Congruence_System_t cs);
    int ppl_Congruence_System_space_dimension(ppl_const_Congruence_System_t cs,
                                              ppl_dimension_type *m);
    int ppl_Congruence_System_empty(ppl_const_Congruence_System_t cs);
    int ppl_Congruence_System_begin(ppl_const_Congruence_System_t cs,
                                    ppl_Congruence_System_const_iterator_t cit);
    int ppl_Congruence_System_end(ppl_const_Congruence_System_t cs,
                                  ppl_Congruence_System_const_iterator_t cit);
    int ppl_Congruence_System_OK(ppl_const_Congruence_System_t cs);
    int ppl_Congruence_System_clear(ppl_Congruence_System_t cs);
    int ppl_Congruence_System_insert_Congruence(ppl_Congruence_System_t cs,
                                                ppl_const_Congruence_t c);
    
    VERIFICATION_CRITERIA:

    Check insertion and copy independence, empty and canonical systems, declared dimensions, native iterator filtering and destruction/invalidation histories.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001537
    4. C grid generator systems UID: PPL-SPEC-001537 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Systems own elements, while traversal only borrows them.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Grid_Generator_System(ppl_Grid_Generator_System_t *pgs);
    int ppl_new_Grid_Generator_System_zero_dim_univ(
        ppl_Grid_Generator_System_t *pgs);
    int ppl_new_Grid_Generator_System_from_Grid_Generator(
        ppl_Grid_Generator_System_t *pgs, ppl_const_Grid_Generator_t g);
    int ppl_new_Grid_Generator_System_from_Grid_Generator_System(
        ppl_Grid_Generator_System_t *pgs, ppl_const_Grid_Generator_System_t gs);
    int ppl_assign_Grid_Generator_System_from_Grid_Generator_System(
        ppl_Grid_Generator_System_t dst, ppl_const_Grid_Generator_System_t src);
    int ppl_delete_Grid_Generator_System(ppl_const_Grid_Generator_System_t gs);
    int ppl_Grid_Generator_System_space_dimension(
        ppl_const_Grid_Generator_System_t gs, ppl_dimension_type *m);
    int ppl_Grid_Generator_System_empty(ppl_const_Grid_Generator_System_t gs);
    int ppl_Grid_Generator_System_begin(
        ppl_const_Grid_Generator_System_t gs,
        ppl_Grid_Generator_System_const_iterator_t git);
    int ppl_Grid_Generator_System_end(
        ppl_const_Grid_Generator_System_t gs,
        ppl_Grid_Generator_System_const_iterator_t git);
    int ppl_Grid_Generator_System_OK(ppl_const_Grid_Generator_System_t gs);
    int ppl_Grid_Generator_System_clear(ppl_Grid_Generator_System_t gs);
    int ppl_Grid_Generator_System_insert_Grid_Generator(
        ppl_Grid_Generator_System_t gs, ppl_const_Grid_Generator_t g);
    
    VERIFICATION_CRITERIA:

    Check insertion and copy independence, empty and canonical systems, declared dimensions, native iterator filtering and destruction/invalidation histories.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001538
    5. C descriptor-system iterator lifetimes UID: PPL-SPEC-001538 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    An allocated iterator does not acquire ownership of its range.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Constraint_System_const_iterator(
        ppl_Constraint_System_const_iterator_t *pcit);
    int ppl_new_Constraint_System_const_iterator_from_Constraint_System_const_iterator(
        ppl_Constraint_System_const_iterator_t *pcit,
        ppl_const_Constraint_System_const_iterator_t cit);
    int ppl_assign_Constraint_System_const_iterator_from_Constraint_System_const_iterator(
        ppl_Constraint_System_const_iterator_t dst,
        ppl_const_Constraint_System_const_iterator_t src);
    int ppl_delete_Constraint_System_const_iterator(
        ppl_const_Constraint_System_const_iterator_t cit);
    int ppl_Constraint_System_const_iterator_dereference(
        ppl_const_Constraint_System_const_iterator_t cit,
        ppl_const_Constraint_t *pc);
    int ppl_Constraint_System_const_iterator_increment(
        ppl_Constraint_System_const_iterator_t cit);
    int ppl_Constraint_System_const_iterator_equal_test(
        ppl_const_Constraint_System_const_iterator_t x,
        ppl_const_Constraint_System_const_iterator_t y);
    int ppl_new_Generator_System_const_iterator(
        ppl_Generator_System_const_iterator_t *pgit);
    int ppl_new_Generator_System_const_iterator_from_Generator_System_const_iterator(
        ppl_Generator_System_const_iterator_t *pgit,
        ppl_const_Generator_System_const_iterator_t git);
    int ppl_assign_Generator_System_const_iterator_from_Generator_System_const_iterator(
        ppl_Generator_System_const_iterator_t dst,
        ppl_const_Generator_System_const_iterator_t src);
    int ppl_delete_Generator_System_const_iterator(
        ppl_const_Generator_System_const_iterator_t git);
    int ppl_Generator_System_const_iterator_dereference(
        ppl_const_Generator_System_const_iterator_t git, ppl_const_Generator_t *pg);
    int ppl_Generator_System_const_iterator_increment(
        ppl_Generator_System_const_iterator_t git);
    int ppl_Generator_System_const_iterator_equal_test(
        ppl_const_Generator_System_const_iterator_t x,
        ppl_const_Generator_System_const_iterator_t y);
    int ppl_new_Congruence_System_const_iterator(
        ppl_Congruence_System_const_iterator_t *pcit);
    int ppl_new_Congruence_System_const_iterator_from_Congruence_System_const_iterator(
        ppl_Congruence_System_const_iterator_t *pcit,
        ppl_const_Congruence_System_const_iterator_t cit);
    int ppl_assign_Congruence_System_const_iterator_from_Congruence_System_const_iterator(
        ppl_Congruence_System_const_iterator_t dst,
        ppl_const_Congruence_System_const_iterator_t src);
    int ppl_delete_Congruence_System_const_iterator(
        ppl_const_Congruence_System_const_iterator_t cit);
    int ppl_Congruence_System_const_iterator_dereference(
        ppl_const_Congruence_System_const_iterator_t cit,
        ppl_const_Congruence_t *pc);
    int ppl_Congruence_System_const_iterator_increment(
        ppl_Congruence_System_const_iterator_t cit);
    int ppl_Congruence_System_const_iterator_equal_test(
        ppl_const_Congruence_System_const_iterator_t x,
        ppl_const_Congruence_System_const_iterator_t y);
    int ppl_new_Grid_Generator_System_const_iterator(
        ppl_Grid_Generator_System_const_iterator_t *pgit);
    int ppl_new_Grid_Generator_System_const_iterator_from_Grid_Generator_System_const_iterator(
        ppl_Grid_Generator_System_const_iterator_t *pgit,
        ppl_const_Grid_Generator_System_const_iterator_t git);
    int ppl_assign_Grid_Generator_System_const_iterator_from_Grid_Generator_System_const_iterator(
        ppl_Grid_Generator_System_const_iterator_t dst,
        ppl_const_Grid_Generator_System_const_iterator_t src);
    int ppl_delete_Grid_Generator_System_const_iterator(
        ppl_const_Grid_Generator_System_const_iterator_t git);
    int ppl_Grid_Generator_System_const_iterator_dereference(
        ppl_const_Grid_Generator_System_const_iterator_t git,
        ppl_const_Grid_Generator_t *pg);
    int ppl_Grid_Generator_System_const_iterator_increment(
        ppl_Grid_Generator_System_const_iterator_t git);
    int ppl_Grid_Generator_System_const_iterator_equal_test(
        ppl_const_Grid_Generator_System_const_iterator_t x,
        ppl_const_Grid_Generator_System_const_iterator_t y);
    
    VERIFICATION_CRITERIA:

    Traverse empty/nonempty systems, copy/assign positions and compare begin/end, then release iterators independently of borrowed elements.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001514
    1. C handles, arguments and successful outcomes UID: PPL-SPEC-001514 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C pointers do not encode ownership, initialization or mathematical result categories.

    INTERFACE:

    Public header: <ppl_c.h>.

    #include <ppl_c.h>
    /* Opaque handles: ppl_T_t and ppl_const_T_t. */
    
    VERIFICATION_CRITERIA:

    Compile C18 and C++ clients; check status/boolean/enumeration distinctions, live borrowed views, zero-length arrays and native-result comparisons.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001523
    1. C coefficient ownership, conversion and bounds UID: PPL-SPEC-001523 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Host GMP values and library coefficients require exact conversion with explicit ownership.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Coefficient(ppl_Coefficient_t *pc);
    int ppl_new_Coefficient_from_mpz_t(ppl_Coefficient_t *pc, mpz_t z);
    int ppl_new_Coefficient_from_Coefficient(ppl_Coefficient_t *pc,
                                             ppl_const_Coefficient_t c);
    int ppl_assign_Coefficient_from_mpz_t(ppl_Coefficient_t dst, mpz_t z);
    int ppl_assign_Coefficient_from_Coefficient(ppl_Coefficient_t dst,
                                                ppl_const_Coefficient_t src);
    int ppl_delete_Coefficient(ppl_const_Coefficient_t c);
    int ppl_Coefficient_to_mpz_t(ppl_const_Coefficient_t c, mpz_t z);
    int ppl_Coefficient_OK(ppl_const_Coefficient_t c);
    int ppl_Coefficient_is_bounded(void);
    int ppl_Coefficient_min(mpz_t min);
    int ppl_Coefficient_max(mpz_t max);
    int ppl_multiply_Linear_Expression_by_Coefficient(ppl_Linear_Expression_t le,
                                                      ppl_const_Coefficient_t n);
    
    VERIFICATION_CRITERIA:

    Check signed and large integers, copy/assignment independence, configured bounds, round trips and bounded overflow where configured.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001524
    2. C affine expression values and updates UID: PPL-SPEC-001524 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C expression operations must preserve affine algebra and dimensions.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Linear_Expression(ppl_Linear_Expression_t *ple);
    int ppl_new_Linear_Expression_with_dimension(ppl_Linear_Expression_t *ple,
                                                 ppl_dimension_type d);
    int ppl_new_Linear_Expression_from_Linear_Expression(
        ppl_Linear_Expression_t *ple, ppl_const_Linear_Expression_t le);
    int ppl_new_Linear_Expression_from_Constraint(ppl_Linear_Expression_t *ple,
                                                  ppl_const_Constraint_t c);
    int ppl_new_Linear_Expression_from_Generator(ppl_Linear_Expression_t *ple,
                                                 ppl_const_Generator_t g);
    int ppl_new_Linear_Expression_from_Congruence(ppl_Linear_Expression_t *ple,
                                                  ppl_const_Congruence_t c);
    int ppl_new_Linear_Expression_from_Grid_Generator(ppl_Linear_Expression_t *ple,
                                                      ppl_const_Grid_Generator_t g);
    int ppl_assign_Linear_Expression_from_Linear_Expression(
        ppl_Linear_Expression_t dst, ppl_const_Linear_Expression_t src);
    int ppl_delete_Linear_Expression(ppl_const_Linear_Expression_t le);
    int ppl_Linear_Expression_all_homogeneous_terms_are_zero(
        ppl_const_Linear_Expression_t le);
    int ppl_Linear_Expression_add_to_coefficient(ppl_Linear_Expression_t le,
                                                 ppl_dimension_type var,
                                                 ppl_const_Coefficient_t n);
    int ppl_Linear_Expression_add_to_inhomogeneous(ppl_Linear_Expression_t le,
                                                   ppl_const_Coefficient_t n);
    int ppl_add_Linear_Expression_to_Linear_Expression(
        ppl_Linear_Expression_t dst, ppl_const_Linear_Expression_t src);
    int ppl_subtract_Linear_Expression_from_Linear_Expression(
        ppl_Linear_Expression_t dst, ppl_const_Linear_Expression_t src);
    
    VERIFICATION_CRITERIA:

    Compare literal coefficient vectors and constants after each constructor and arithmetic update, including cancellation, zero scaling, borrowed input conversion and rejected dimensions.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001525
    3. C affine expression queries UID: PPL-SPEC-001525 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Queries distinguish assigning an existing coefficient from creating another owned object.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_Linear_Expression_space_dimension(ppl_const_Linear_Expression_t le,
                                              ppl_dimension_type *m);
    int ppl_Linear_Expression_coefficient(ppl_const_Linear_Expression_t le,
                                          ppl_dimension_type var,
                                          ppl_Coefficient_t n);
    int ppl_Linear_Expression_inhomogeneous_term(ppl_const_Linear_Expression_t le,
                                                 ppl_Coefficient_t n);
    int ppl_Linear_Expression_OK(ppl_const_Linear_Expression_t le);
    int ppl_Linear_Expression_is_zero(ppl_const_Linear_Expression_t le);
    
    VERIFICATION_CRITERIA:

    Check exact coefficients/constants, zero expressions, padded dimensions, range admission and query-output reuse.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001526
    4. C linear constraint values UID: PPL-SPEC-001526 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Descriptor conversion must preserve its geometric or arithmetic meaning.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Constraint(ppl_Constraint_t *pc, ppl_const_Linear_Expression_t le,
                           enum ppl_enum_Constraint_Type rel);
    int ppl_new_Constraint_zero_dim_false(ppl_Constraint_t *pc);
    int ppl_new_Constraint_zero_dim_positivity(ppl_Constraint_t *pc);
    int ppl_new_Constraint_from_Constraint(ppl_Constraint_t *pc,
                                           ppl_const_Constraint_t c);
    int ppl_assign_Constraint_from_Constraint(ppl_Constraint_t dst,
                                              ppl_const_Constraint_t src);
    int ppl_delete_Constraint(ppl_const_Constraint_t c);
    
    VERIFICATION_CRITERIA:

    Check each supported kind, exact coefficients and normalization, empty/universe canonical descriptors, source independence and native admission failures.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001527
    5. C linear constraint queries UID: PPL-SPEC-001527 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C query results need the same interpretation as their native descriptor.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_Constraint_space_dimension(ppl_const_Constraint_t c,
                                       ppl_dimension_type *m);
    int ppl_Constraint_type(ppl_const_Constraint_t c);
    int ppl_Constraint_coefficient(ppl_const_Constraint_t c, ppl_dimension_type var,
                                   ppl_Coefficient_t n);
    int ppl_Constraint_inhomogeneous_term(ppl_const_Constraint_t c,
                                          ppl_Coefficient_t n);
    int ppl_Constraint_OK(ppl_const_Constraint_t c);
    
    VERIFICATION_CRITERIA:

    Check each kind against literal descriptors, normalized ratios or congruences, output reuse and rejected inappropriate queries.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001528
    6. C polyhedral generator values UID: PPL-SPEC-001528 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Descriptor conversion must preserve its geometric or arithmetic meaning.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Generator(ppl_Generator_t *pg, ppl_const_Linear_Expression_t le,
                          enum ppl_enum_Generator_Type t,
                          ppl_const_Coefficient_t d);
    int ppl_new_Generator_zero_dim_point(ppl_Generator_t *pg);
    int ppl_new_Generator_zero_dim_closure_point(ppl_Generator_t *pg);
    int ppl_new_Generator_from_Generator(ppl_Generator_t *pg,
                                         ppl_const_Generator_t g);
    int ppl_assign_Generator_from_Generator(ppl_Generator_t dst,
                                            ppl_const_Generator_t src);
    int ppl_delete_Generator(ppl_const_Generator_t g);
    
    VERIFICATION_CRITERIA:

    Check each supported kind, exact coefficients and normalization, empty/universe canonical descriptors, source independence and native admission failures.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001529
    7. C polyhedral generator queries UID: PPL-SPEC-001529 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C query results need the same interpretation as their native descriptor.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_Generator_space_dimension(ppl_const_Generator_t g,
                                      ppl_dimension_type *m);
    int ppl_Generator_type(ppl_const_Generator_t g);
    int ppl_Generator_coefficient(ppl_const_Generator_t g, ppl_dimension_type var,
                                  ppl_Coefficient_t n);
    int ppl_Generator_divisor(ppl_const_Generator_t g, ppl_Coefficient_t n);
    int ppl_Generator_OK(ppl_const_Generator_t g);
    
    VERIFICATION_CRITERIA:

    Check each kind against literal descriptors, normalized ratios or congruences, output reuse and rejected inappropriate queries.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001530
    8. C rational congruence values UID: PPL-SPEC-001530 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Descriptor conversion must preserve its geometric or arithmetic meaning.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Congruence(ppl_Congruence_t *pc, ppl_const_Linear_Expression_t le,
                           ppl_const_Coefficient_t m);
    int ppl_new_Congruence_zero_dim_false(ppl_Congruence_t *pc);
    int ppl_new_Congruence_zero_dim_integrality(ppl_Congruence_t *pc);
    int ppl_new_Congruence_from_Congruence(ppl_Congruence_t *pc,
                                           ppl_const_Congruence_t c);
    int ppl_assign_Congruence_from_Congruence(ppl_Congruence_t dst,
                                              ppl_const_Congruence_t src);
    int ppl_delete_Congruence(ppl_const_Congruence_t c);
    
    VERIFICATION_CRITERIA:

    Check each supported kind, exact coefficients and normalization, empty/universe canonical descriptors, source independence and native admission failures.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001531
    9. C rational congruence queries UID: PPL-SPEC-001531 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C query results need the same interpretation as their native descriptor.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_Congruence_space_dimension(ppl_const_Congruence_t c,
                                       ppl_dimension_type *m);
    int ppl_Congruence_coefficient(ppl_const_Congruence_t c, ppl_dimension_type var,
                                   ppl_Coefficient_t n);
    int ppl_Congruence_inhomogeneous_term(ppl_const_Congruence_t c,
                                          ppl_Coefficient_t n);
    int ppl_Congruence_modulus(ppl_const_Congruence_t c, ppl_Coefficient_t m);
    int ppl_Congruence_OK(ppl_const_Congruence_t c);
    
    VERIFICATION_CRITERIA:

    Check each kind against literal descriptors, normalized ratios or congruences, output reuse and rejected inappropriate queries.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001532
    10. C grid generator values UID: PPL-SPEC-001532 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    Descriptor conversion must preserve its geometric or arithmetic meaning.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_new_Grid_Generator(ppl_Grid_Generator_t *pg,
                               ppl_const_Linear_Expression_t le,
                               enum ppl_enum_Grid_Generator_Type t,
                               ppl_const_Coefficient_t d);
    int ppl_new_Grid_Generator_zero_dim_point(ppl_Grid_Generator_t *pg);
    int ppl_new_Grid_Generator_from_Grid_Generator(ppl_Grid_Generator_t *pg,
                                                   ppl_const_Grid_Generator_t g);
    int ppl_assign_Grid_Generator_from_Grid_Generator(
        ppl_Grid_Generator_t dst, ppl_const_Grid_Generator_t src);
    int ppl_delete_Grid_Generator(ppl_const_Grid_Generator_t g);
    
    VERIFICATION_CRITERIA:

    Check each supported kind, exact coefficients and normalization, empty/universe canonical descriptors, source independence and native admission failures.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.

  • PPL-SPEC-001533
    11. C grid generator queries UID: PPL-SPEC-001533 STATUS: APPROVED COMPONENT: C_INTERFACE APPLICABILITY: IF_C VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: C VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    C query results need the same interpretation as their native descriptor.

    INTERFACE:

    Public header: <ppl_c.h>.

    int ppl_Grid_Generator_space_dimension(ppl_const_Grid_Generator_t g,
                                           ppl_dimension_type *m);
    int ppl_Grid_Generator_type(ppl_const_Grid_Generator_t g);
    int ppl_Grid_Generator_coefficient(ppl_const_Grid_Generator_t g,
                                       ppl_dimension_type var, ppl_Coefficient_t n);
    int ppl_Grid_Generator_divisor(ppl_const_Grid_Generator_t g,
                                   ppl_Coefficient_t n);
    int ppl_Grid_Generator_OK(ppl_const_Grid_Generator_t g);
    
    VERIFICATION_CRITERIA:

    Check each kind against literal descriptors, normalized ratios or congruences, output reuse and rejected inappropriate queries.

    SOURCE:

    interfaces/C/ppl_c_header.h; interfaces/C/ppl_c_implementation_common.cc; interfaces/C/tests/ccontractsspec1.cc.