Parma Polyhedra Library requirements
Termination analysis low-level requirements
  • PPL-HLR-000006
    6. Termination analysis using linear ranking functions UID: PPL-HLR-000006 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): STATEMENT:

    PPL shall provide termination analysis facilities that decide the existence of, or construct, affine ranking functions for the transition-relation classes admitted by the selected method. A ranking found within the method's stated scope shall certify termination. An unsuccessful ranking search shall leave termination inconclusive.

    RATIONALE:

    A termination claim must be justified by a ranking-function argument under the method's stated assumptions.

    VERIFICATION_CRITERIA:

    Review each method's accepted transition model and arithmetic assumptions. Validate returned ranking functions against transition constraints. Check examples with and without an affine ranking in the method's decision scope, and check that an unsuccessful search is reported as inconclusive about termination.

    BIBLIOGRAPHY:

    BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).

    SOURCE:

    src/termination_defs.hh; src/termination_templates.hh; src/termination.cc.

PPL-LLR-000121
1. Transition-coordinate interpretation UID: PPL-LLR-000121 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

Termination analysis shall interpret transition coordinates consistently with the documented before-state and after-state ordering. For paired inputs it shall analyze the conjunction of the before-state restriction and transition relation after aligning their coordinate meanings. Inputs with incompatible state dimensions shall be rejected rather than analyzed under a different ordering.

RATIONALE:

A sound ranking argument for an incorrectly aligned transition relation does not establish termination of the intended loop.

COMMENT:

Verification covers the accepted transition encodings, before/after coordinate mapping, paired-input interpretation and dimension-validation contracts. Use the stated comparisons and rejection cases to verify those contracts together with analysis of coordinate alignment. Successful mathematical results assume valid inputs, documented caller preconditions, and arithmetic representable under the selected configuration; resource or arithmetic failures are not successful results.

VERIFICATION_CRITERIA:

Compare single-relation and paired-input encodings of the same transitions, including coordinate permutations and zero-dimensional states. Check rejection of odd single-relation dimensions and paired dimensions that do not describe matching before and after states. Include paired inputs whose conjunction is empty although each input is nonempty.

BIBLIOGRAPHY:

BagnaraMPZ12IC | Section 3 and Section 4.3 (transition relations and imperative-loop encoding; author manuscript).

SOURCE:

src/termination_defs.hh: single-relation and paired-input coordinate conventions. src/termination_templates.hh: dimension validation, coordinate shifting, and conjunction of before and after constraints. tests/Polyhedron/termination1.cc and tests/Polyhedron/termination2.cc: ranking and transition-model tests.

  • 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.

  • 1. Transition encoding and ranking interpretation UID: PPL-SPEC-001506 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    A single transition input of dimension 2n shall place after-state coordinates x’ in indices 0, …, n − 1 and before-state coordinates x in indices n, …, 2n − 1. An odd dimension shall raise std::invalid_argument. Paired inputs shall have dimensions n and 2n; otherwise they shall raise std::invalid_argument before analysis. The first input shall restrict before states in its own indices 0, …, n − 1; the second shall use the single-input ordering. Their aligned conjunction shall define the analyzed relation. For paired inputs, emptiness of the conjunction shall be determined with strict rows intact before relaxation. If the exact conjunction is empty, the paired Boolean tests shall succeed and the paired witness operations shall return an admissible coefficient point of dimension n + 1.

    The input type shall provide supported minimized linear constraints. Numerical guarantees shall concern the rational transition approximation defined by those constraints, with sound positive conclusions for every represented concrete transition. A coefficient point of dimension n + 1 shall encode f(x) = c + ∑iaixi with slopes in indices 0, …, n − 1 and constant c at index n. A ranking argument shall require a finite uniform lower bound and a uniform decrease δ > 0 over transitions. Strict positivity at individual transitions alone shall not replace uniform decrease. Input mathematical values shall remain unchanged. Separate outputs shall not alias one another or the inputs.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    A ranking for a misaligned relation proves nothing about the intended loop; uniform decrease and a lower bound rule out infinite transition sequences.

    INTERFACE:

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

    template<class PSET> bool termination_test_MS(const PSET&);
    template<class PSET> bool termination_test_PR(const PSET&);
    
    VERIFICATION_CRITERIA:

    Compare single and paired encodings, independently decoded coefficients, coordinate permutations, odd or mismatched dimensions, zero dimensions and discrete input relaxations. Check a conjunction made empty only by strict boundaries through paired Boolean, witness and coefficient-space calls.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/rankingpairs1.cc; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-SPEC-001507
    2. MS termination test outcomes UID: PPL-SPEC-001507 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    A completed true result shall certify an affine ranking for the analyzed transition approximation under 🔗 1. Transition encoding and ranking interpretation. False shall mean that this test is inconclusive about termination. It shall not mean that the loop has an infinite execution, even for an exact input relation. Single and paired forms shall use the same coordinate convention and preserve input values. Resource or arithmetic exceptions shall not constitute a true result.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    Affine rankings are sufficient arguments but do not characterize all terminating programs.

    INTERFACE:

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

    template<class PSET> bool termination_test_MS(const PSET&);
    template<class PSET> bool termination_test_MS_2(const PSET& before,
                                                 const PSET& after);
    
    VERIFICATION_CRITERIA:

    Check decreasing rational loops, stuttering and bidirectional relations, empty relations and terminating loops with no affine ranking; compare equivalent encodings.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/rankingpairs1.cc; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-SPEC-001508
    3. MS affine ranking witnesses UID: PPL-SPEC-001508 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    On true, the output shall be assigned a point of dimension n + 1 encoding an affine function satisfying the MS nonnegative and unit-decrease ranking obligations over the analyzed approximation. No particular witness shall be selected. On false, no witness value shall be promised and termination shall remain inconclusive. The layout and dimension admission rules in 🔗 1. Transition encoding and ranking interpretation shall apply.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    A returned coefficient point must substantiate the positive ranking claim rather than merely carry a success flag.

    INTERFACE:

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

    template<class PSET>
    bool one_affine_ranking_function_MS(const PSET&, Generator& mu);
    template<class PSET>
    bool one_affine_ranking_function_MS_2(const PSET& before,
                                        const PSET& after, Generator& mu);
    
    VERIFICATION_CRITERIA:

    Independently minimize the lower-bound and decrease expressions over original rational transition constraints; check dimension/constant placement, strict and empty relations and false-output admission.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/rankingpairs1.cc; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-SPEC-001509
    4. Normalized MS affine ranking spaces UID: PPL-SPEC-001509 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The output shall replace its prior value with a closed polyhedron of dimension n + 1 containing exactly the affine coefficient tuples that satisfy f(x) ≥ 0 and f(x) − f(x’) ≥ 1 on every rational transition described by the input constraints. For an empty relation it shall be universe, including an empty conjunction of individually nonempty paired inputs. Strict constraints shall be preserved when establishing that emptiness; for nonempty relations these weak ranking obligations also hold on the closure. An empty output shall mean no normalized affine ranking exists and shall not establish nontermination.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    Universal transition obligations are vacuous on empty relations; relaxing strict constraints too early can incorrectly create obligations.

    INTERFACE:

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

    template<class PSET>
    void all_affine_ranking_functions_MS(const PSET&, C_Polyhedron& mu_space);
    template<class PSET>
    void all_affine_ranking_functions_MS_2(const PSET& before, const PSET& after,
                                         C_Polyhedron& mu_space);
    
    VERIFICATION_CRITERIA:

    Check exact coefficient-space inequalities for rational translations and bounded boxes, explicit/latent/paired strict emptiness, generator directions and fresh output replacement.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-SPEC-001510
    5. MS affine quasi-ranking spaces UID: PPL-SPEC-001510 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The two distinct outputs shall be closed polyhedra of dimension n + 1. The decreasing space shall contain exactly tuples satisfying f(x) − f(x’) ≥ 1 on every analyzed rational transition, with unrestricted additive constant. The bounded space shall contain exactly tuples satisfying f(x) ≥ 0 on every such before state. It shall use that nonnegative normalization rather than accept every arbitrary finite lower bound.

    Their intersection shall equal the normalized MS ranking space. Empty relations shall yield universe in both outputs; the zero function shall always belong to the bounded space. Strict boundaries and paired conjunction emptiness shall be handled as in 🔗 4. Normalized MS affine ranking spaces. Neither an empty decreasing space nor an empty intersection shall establish nontermination.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    Lower-bound and decrease obligations can be represented separately and recombined by intersection.

    INTERFACE:

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

    template<class PSET>
    void all_affine_quasi_ranking_functions_MS(const PSET&,
        C_Polyhedron& decreasing, C_Polyhedron& bounded);
    template<class PSET>
    void all_affine_quasi_ranking_functions_MS_2(const PSET& before,
        const PSET& after, C_Polyhedron& decreasing, C_Polyhedron& bounded);
    
    VERIFICATION_CRITERIA:

    Check independent literal coefficient spaces, free constants, zero membership, intersection equality, strict empty conjunctions and output dimensions.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-SPEC-001511
    6. PR termination test outcomes UID: PPL-SPEC-001511 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    A completed true result shall certify an affine ranking with a finite lower bound and uniformly positive decrease over the analyzed transition approximation. For the paired form both obligations apply to the aligned conjunction, including bounds implied by the transition description. False shall be inconclusive about termination. Unit decrease and nonnegative normalization shall not be required for the PR certificate. The coordinate and valid-use rules in 🔗 1. Transition encoding and ranking interpretation shall apply to both the single and paired forms.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    Positive scaling and additive shifts preserve a ranking argument but change its normalization.

    INTERFACE:

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

    template<class PSET> bool termination_test_PR(const PSET&);
    template<class PSET> bool termination_test_PR_2(const PSET& before,
                                                 const PSET& after);
    
    VERIFICATION_CRITERIA:

    Check descending and ascending guarded rays with negative state bounds, rational steps, stuttering, empty relations and equivalent single/paired encodings.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/rankingpairs1.cc; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-SPEC-001512
    7. PR affine ranking witnesses UID: PPL-SPEC-001512 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    On true, the output shall be assigned a point of dimension n + 1 encoding an affine function with a finite uniform lower bound and uniformly positive decrease over the analyzed approximation. Its constant coordinate shall follow 🔗 1. Transition encoding and ranking interpretation; no nonnegative normalization or particular witness shall be required. On false, no output value shall be promised and termination shall remain inconclusive.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    A zero additive constant can still be a valid PR ranking when the function has a negative finite lower bound.

    INTERFACE:

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

    template<class PSET>
    bool one_affine_ranking_function_PR(const PSET&, Generator& mu);
    template<class PSET>
    bool one_affine_ranking_function_PR_2(const PSET& before,
                                        const PSET& after, Generator& mu);
    
    VERIFICATION_CRITERIA:

    Independently establish finite lower bound and strictly positive minimum decrease, including rational steps, negative states and constant layout; check false cases separately.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/rankingpairs1.cc; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-SPEC-001513
    8. PR affine ranking spaces UID: PPL-SPEC-001513 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The output shall replace its prior value with an NNC polyhedron of dimension n + 1 describing the affine coefficient tuples with a finite lower bound and a uniform decrease δ > 0 over the rational relation defined by the input constraints. For the paired form both obligations apply to the same aligned conjunction. In particular, the lower bound may follow from the transition description. The additive constant shall be unrestricted. No unit-decrease or nonnegative normalization shall be imposed. For an empty relation the space shall be universe, including empty aligned conjunctions of individually nonempty paired inputs. Strict boundaries shall not be discarded before establishing such emptiness. An empty output shall exclude rankings of this form and shall not establish nontermination.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    The positive-decrease space can have strict coefficient boundaries and differs from the closed normalized MS space.

    INTERFACE:

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

    template<class PSET>
    void all_affine_ranking_functions_PR(const PSET&, NNC_Polyhedron& mu_space);
    template<class PSET>
    void all_affine_ranking_functions_PR_2(const PSET& before, const PSET& after,
                                         NNC_Polyhedron& mu_space);
    
    VERIFICATION_CRITERIA:

    Compare full coefficient spaces for guarded rational translations, positive scaling and free constants; check stuttering, explicit/latent/paired strict emptiness and output replacement.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/rankingpairs1.cc; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-HLR-000006
    6. Termination analysis using linear ranking functions UID: PPL-HLR-000006 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): STATEMENT:

    PPL shall provide termination analysis facilities that decide the existence of, or construct, affine ranking functions for the transition-relation classes admitted by the selected method. A ranking found within the method's stated scope shall certify termination. An unsuccessful ranking search shall leave termination inconclusive.

    RATIONALE:

    A termination claim must be justified by a ranking-function argument under the method's stated assumptions.

    VERIFICATION_CRITERIA:

    Review each method's accepted transition model and arithmetic assumptions. Validate returned ranking functions against transition constraints. Check examples with and without an affine ranking in the method's decision scope, and check that an unsuccessful search is reported as inconclusive about termination.

    BIBLIOGRAPHY:

    BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).

    SOURCE:

    src/termination_defs.hh; src/termination_templates.hh; src/termination.cc.

PPL-LLR-000122
2. Sound positive results and inconclusive negative results UID: PPL-LLR-000122 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

Under the selected analysis operation's stated input and computational-arithmetic preconditions, a positive termination-analysis result shall certify termination of every loop whose transition relation is contained in the supplied approximation, under the mathematical state semantics of the selected analysis method. Within that scope, a completed ranking-function search that does not establish an affine ranking function shall report an inconclusive result and shall not be interpreted as proof of nontermination, even when the supplied relation is exact.

RATIONALE:

Affine ranking functions are sufficient termination arguments, but terminating loops need not admit a ranking function of the supported form. A completed search without such a function is distinct from a computation outside its stated preconditions or a reported computational failure; neither establishes a termination certificate.

COMMENT:

Verification covers termination-query outcome contracts, including the mathematical meaning of a positive answer and the inconclusive meaning of unsuccessful ranking-function discovery within the normative scope. The contracts make the input and computational-arithmetic preconditions precise; they do not introduce permission to accept an unsound positive result in that scope. Verify the contracts using the stated soundness analysis and positive, negative and inconclusive examples. Unsuccessful ranking-function discovery is not a nontermination decision.

VERIFICATION_CRITERIA:

Establish the selected analysis operation's stated input and computational-arithmetic preconditions for numerical evidence cases. Review the soundness argument connecting represented transitions to the selected ranking obligations. Test positive decreasing-loop models, nondecreasing models, empty relations, and examples requiring a different form of ranking argument. Verify that user-facing outcome descriptions preserve the distinction between inconclusiveness and nontermination. Apparent completion of unchecked arithmetic does not establish the preconditions or justify accepting a positive certificate.

BIBLIOGRAPHY:

BagnaraMPZ12IC | Section 3, Section 4.2 and Section 5 (ranking conditions and termination methods; author manuscript).

SOURCE:

src/termination_defs.hh: termination-test and witness-query return contracts explicitly describe unsuccessful tests as inconclusive. src/termination_templates.hh and src/termination.cc: ranking reductions. tests/Polyhedron/termination1.cc and tests/Polyhedron/termination2.cc: positive and unsuccessful synthesis cases.

  • 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.

  • 1. Transition encoding and ranking interpretation UID: PPL-SPEC-001506 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    A single transition input of dimension 2n shall place after-state coordinates x’ in indices 0, …, n − 1 and before-state coordinates x in indices n, …, 2n − 1. An odd dimension shall raise std::invalid_argument. Paired inputs shall have dimensions n and 2n; otherwise they shall raise std::invalid_argument before analysis. The first input shall restrict before states in its own indices 0, …, n − 1; the second shall use the single-input ordering. Their aligned conjunction shall define the analyzed relation. For paired inputs, emptiness of the conjunction shall be determined with strict rows intact before relaxation. If the exact conjunction is empty, the paired Boolean tests shall succeed and the paired witness operations shall return an admissible coefficient point of dimension n + 1.

    The input type shall provide supported minimized linear constraints. Numerical guarantees shall concern the rational transition approximation defined by those constraints, with sound positive conclusions for every represented concrete transition. A coefficient point of dimension n + 1 shall encode f(x) = c + ∑iaixi with slopes in indices 0, …, n − 1 and constant c at index n. A ranking argument shall require a finite uniform lower bound and a uniform decrease δ > 0 over transitions. Strict positivity at individual transitions alone shall not replace uniform decrease. Input mathematical values shall remain unchanged. Separate outputs shall not alias one another or the inputs.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    A ranking for a misaligned relation proves nothing about the intended loop; uniform decrease and a lower bound rule out infinite transition sequences.

    INTERFACE:

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

    template<class PSET> bool termination_test_MS(const PSET&);
    template<class PSET> bool termination_test_PR(const PSET&);
    
    VERIFICATION_CRITERIA:

    Compare single and paired encodings, independently decoded coefficients, coordinate permutations, odd or mismatched dimensions, zero dimensions and discrete input relaxations. Check a conjunction made empty only by strict boundaries through paired Boolean, witness and coefficient-space calls.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/rankingpairs1.cc; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-SPEC-001507
    2. MS termination test outcomes UID: PPL-SPEC-001507 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    A completed true result shall certify an affine ranking for the analyzed transition approximation under 🔗 1. Transition encoding and ranking interpretation. False shall mean that this test is inconclusive about termination. It shall not mean that the loop has an infinite execution, even for an exact input relation. Single and paired forms shall use the same coordinate convention and preserve input values. Resource or arithmetic exceptions shall not constitute a true result.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    Affine rankings are sufficient arguments but do not characterize all terminating programs.

    INTERFACE:

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

    template<class PSET> bool termination_test_MS(const PSET&);
    template<class PSET> bool termination_test_MS_2(const PSET& before,
                                                 const PSET& after);
    
    VERIFICATION_CRITERIA:

    Check decreasing rational loops, stuttering and bidirectional relations, empty relations and terminating loops with no affine ranking; compare equivalent encodings.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/rankingpairs1.cc; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-SPEC-001508
    3. MS affine ranking witnesses UID: PPL-SPEC-001508 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    On true, the output shall be assigned a point of dimension n + 1 encoding an affine function satisfying the MS nonnegative and unit-decrease ranking obligations over the analyzed approximation. No particular witness shall be selected. On false, no witness value shall be promised and termination shall remain inconclusive. The layout and dimension admission rules in 🔗 1. Transition encoding and ranking interpretation shall apply.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    A returned coefficient point must substantiate the positive ranking claim rather than merely carry a success flag.

    INTERFACE:

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

    template<class PSET>
    bool one_affine_ranking_function_MS(const PSET&, Generator& mu);
    template<class PSET>
    bool one_affine_ranking_function_MS_2(const PSET& before,
                                        const PSET& after, Generator& mu);
    
    VERIFICATION_CRITERIA:

    Independently minimize the lower-bound and decrease expressions over original rational transition constraints; check dimension/constant placement, strict and empty relations and false-output admission.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/rankingpairs1.cc; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-SPEC-001511
    6. PR termination test outcomes UID: PPL-SPEC-001511 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    A completed true result shall certify an affine ranking with a finite lower bound and uniformly positive decrease over the analyzed transition approximation. For the paired form both obligations apply to the aligned conjunction, including bounds implied by the transition description. False shall be inconclusive about termination. Unit decrease and nonnegative normalization shall not be required for the PR certificate. The coordinate and valid-use rules in 🔗 1. Transition encoding and ranking interpretation shall apply to both the single and paired forms.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    Positive scaling and additive shifts preserve a ranking argument but change its normalization.

    INTERFACE:

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

    template<class PSET> bool termination_test_PR(const PSET&);
    template<class PSET> bool termination_test_PR_2(const PSET& before,
                                                 const PSET& after);
    
    VERIFICATION_CRITERIA:

    Check descending and ascending guarded rays with negative state bounds, rational steps, stuttering, empty relations and equivalent single/paired encodings.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/rankingpairs1.cc; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-SPEC-001512
    7. PR affine ranking witnesses UID: PPL-SPEC-001512 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    On true, the output shall be assigned a point of dimension n + 1 encoding an affine function with a finite uniform lower bound and uniformly positive decrease over the analyzed approximation. Its constant coordinate shall follow 🔗 1. Transition encoding and ranking interpretation; no nonnegative normalization or particular witness shall be required. On false, no output value shall be promised and termination shall remain inconclusive.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    A zero additive constant can still be a valid PR ranking when the function has a negative finite lower bound.

    INTERFACE:

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

    template<class PSET>
    bool one_affine_ranking_function_PR(const PSET&, Generator& mu);
    template<class PSET>
    bool one_affine_ranking_function_PR_2(const PSET& before,
                                        const PSET& after, Generator& mu);
    
    VERIFICATION_CRITERIA:

    Independently establish finite lower bound and strictly positive minimum decrease, including rational steps, negative states and constant layout; check false cases separately.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/rankingpairs1.cc; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-SPEC-001513
    8. PR affine ranking spaces UID: PPL-SPEC-001513 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The output shall replace its prior value with an NNC polyhedron of dimension n + 1 describing the affine coefficient tuples with a finite lower bound and a uniform decrease δ > 0 over the rational relation defined by the input constraints. For the paired form both obligations apply to the same aligned conjunction. In particular, the lower bound may follow from the transition description. The additive constant shall be unrestricted. No unit-decrease or nonnegative normalization shall be imposed. For an empty relation the space shall be universe, including empty aligned conjunctions of individually nonempty paired inputs. Strict boundaries shall not be discarded before establishing such emptiness. An empty output shall exclude rankings of this form and shall not establish nontermination.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    The positive-decrease space can have strict coefficient boundaries and differs from the closed normalized MS space.

    INTERFACE:

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

    template<class PSET>
    void all_affine_ranking_functions_PR(const PSET&, NNC_Polyhedron& mu_space);
    template<class PSET>
    void all_affine_ranking_functions_PR_2(const PSET& before, const PSET& after,
                                         NNC_Polyhedron& mu_space);
    
    VERIFICATION_CRITERIA:

    Compare full coefficient spaces for guarded rational translations, positive scaling and free constants; check stuttering, explicit/latent/paired strict emptiness and output replacement.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/rankingpairs1.cc; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-HLR-000006
    6. Termination analysis using linear ranking functions UID: PPL-HLR-000006 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): STATEMENT:

    PPL shall provide termination analysis facilities that decide the existence of, or construct, affine ranking functions for the transition-relation classes admitted by the selected method. A ranking found within the method's stated scope shall certify termination. An unsuccessful ranking search shall leave termination inconclusive.

    RATIONALE:

    A termination claim must be justified by a ranking-function argument under the method's stated assumptions.

    VERIFICATION_CRITERIA:

    Review each method's accepted transition model and arithmetic assumptions. Validate returned ranking functions against transition constraints. Check examples with and without an affine ranking in the method's decision scope, and check that an unsuccessful search is reported as inconclusive about termination.

    BIBLIOGRAPHY:

    BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).

    SOURCE:

    src/termination_defs.hh; src/termination_templates.hh; src/termination.cc.

PPL-LLR-000123
3. Ranking-witness validity UID: PPL-LLR-000123 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

Under the selected analysis operation's stated input and computational-arithmetic preconditions, a reported ranking witness's coefficients shall encode an affine function satisfying the lower-bound and decrease obligations of the selected documented ranking method over every represented transition.

The coefficient ordering and state-coordinate interpretation shall remain consistent between synthesis, witness extraction and subsequent inspection.

RATIONALE:

A returned witness must substantiate the positive result and be independently checkable against the transition model within the analysis operation's declared input and computational-arithmetic scope. The coefficient-layout convention is distinct from that numerical precondition and remains consistent wherever the witness is interpreted.

COMMENT:

Verification covers ranking-witness construction and extraction contracts, coefficient ordering and before/after coordinate interpretation. The contracts make the numerical preconditions precise without qualifying the separate layout-consistency obligation. Verify returned witnesses by the stated independent lower-bound and decrease checks and method-specific mathematical analysis.

VERIFICATION_CRITERIA:

Establish the selected analysis operation's stated input and computational-arithmetic preconditions for numerical evidence cases. Decode witness coefficients independently and reduce their lower-bound and decrease obligations to checks over the original rational transition constraints. Cover both supported ranking methods, the single and paired encodings, negative state values, and strict transition inequalities. Check the witness dimension and constant-term position independently of arithmetic-profile assumptions. A returned witness is not verified merely because unchecked execution completed.

BIBLIOGRAPHY:

BagnaraMPZ12IC | Section 4.2, Equations (16)-(17), and Section 5 (affine ranking witnesses; author manuscript).

SOURCE:

src/termination_defs.hh: witness coefficient ordering and the supported ranking-method contracts. src/termination.cc: ranking-witness extraction. tests/Polyhedron/termination1.cc: known ranking witnesses and spaces for independently described loop models.

  • 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.

  • 1. Transition encoding and ranking interpretation UID: PPL-SPEC-001506 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    A single transition input of dimension 2n shall place after-state coordinates x’ in indices 0, …, n − 1 and before-state coordinates x in indices n, …, 2n − 1. An odd dimension shall raise std::invalid_argument. Paired inputs shall have dimensions n and 2n; otherwise they shall raise std::invalid_argument before analysis. The first input shall restrict before states in its own indices 0, …, n − 1; the second shall use the single-input ordering. Their aligned conjunction shall define the analyzed relation. For paired inputs, emptiness of the conjunction shall be determined with strict rows intact before relaxation. If the exact conjunction is empty, the paired Boolean tests shall succeed and the paired witness operations shall return an admissible coefficient point of dimension n + 1.

    The input type shall provide supported minimized linear constraints. Numerical guarantees shall concern the rational transition approximation defined by those constraints, with sound positive conclusions for every represented concrete transition. A coefficient point of dimension n + 1 shall encode f(x) = c + ∑iaixi with slopes in indices 0, …, n − 1 and constant c at index n. A ranking argument shall require a finite uniform lower bound and a uniform decrease δ > 0 over transitions. Strict positivity at individual transitions alone shall not replace uniform decrease. Input mathematical values shall remain unchanged. Separate outputs shall not alias one another or the inputs.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    A ranking for a misaligned relation proves nothing about the intended loop; uniform decrease and a lower bound rule out infinite transition sequences.

    INTERFACE:

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

    template<class PSET> bool termination_test_MS(const PSET&);
    template<class PSET> bool termination_test_PR(const PSET&);
    
    VERIFICATION_CRITERIA:

    Compare single and paired encodings, independently decoded coefficients, coordinate permutations, odd or mismatched dimensions, zero dimensions and discrete input relaxations. Check a conjunction made empty only by strict boundaries through paired Boolean, witness and coefficient-space calls.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/rankingpairs1.cc; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-SPEC-001508
    3. MS affine ranking witnesses UID: PPL-SPEC-001508 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    On true, the output shall be assigned a point of dimension n + 1 encoding an affine function satisfying the MS nonnegative and unit-decrease ranking obligations over the analyzed approximation. No particular witness shall be selected. On false, no witness value shall be promised and termination shall remain inconclusive. The layout and dimension admission rules in 🔗 1. Transition encoding and ranking interpretation shall apply.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    A returned coefficient point must substantiate the positive ranking claim rather than merely carry a success flag.

    INTERFACE:

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

    template<class PSET>
    bool one_affine_ranking_function_MS(const PSET&, Generator& mu);
    template<class PSET>
    bool one_affine_ranking_function_MS_2(const PSET& before,
                                        const PSET& after, Generator& mu);
    
    VERIFICATION_CRITERIA:

    Independently minimize the lower-bound and decrease expressions over original rational transition constraints; check dimension/constant placement, strict and empty relations and false-output admission.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/rankingpairs1.cc; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-SPEC-001512
    7. PR affine ranking witnesses UID: PPL-SPEC-001512 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    On true, the output shall be assigned a point of dimension n + 1 encoding an affine function with a finite uniform lower bound and uniformly positive decrease over the analyzed approximation. Its constant coordinate shall follow 🔗 1. Transition encoding and ranking interpretation; no nonnegative normalization or particular witness shall be required. On false, no output value shall be promised and termination shall remain inconclusive.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    A zero additive constant can still be a valid PR ranking when the function has a negative finite lower bound.

    INTERFACE:

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

    template<class PSET>
    bool one_affine_ranking_function_PR(const PSET&, Generator& mu);
    template<class PSET>
    bool one_affine_ranking_function_PR_2(const PSET& before,
                                        const PSET& after, Generator& mu);
    
    VERIFICATION_CRITERIA:

    Independently establish finite lower bound and strictly positive minimum decrease, including rational steps, negative states and constant layout; check false cases separately.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/rankingpairs1.cc; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-HLR-000006
    6. Termination analysis using linear ranking functions UID: PPL-HLR-000006 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis, Review RELATIONS (Child): STATEMENT:

    PPL shall provide termination analysis facilities that decide the existence of, or construct, affine ranking functions for the transition-relation classes admitted by the selected method. A ranking found within the method's stated scope shall certify termination. An unsuccessful ranking search shall leave termination inconclusive.

    RATIONALE:

    A termination claim must be justified by a ranking-function argument under the method's stated assumptions.

    VERIFICATION_CRITERIA:

    Review each method's accepted transition model and arithmetic assumptions. Validate returned ranking functions against transition constraints. Check examples with and without an affine ranking in the method's decision scope, and check that an unsuccessful search is reported as inconclusive about termination.

    BIBLIOGRAPHY:

    BagnaraHZ08SCP | Whole work (background on the library's numerical abstractions and design).

    SOURCE:

    src/termination_defs.hh; src/termination_templates.hh; src/termination.cc.

PPL-LLR-000124
4. Normalized ranking-function spaces UID: PPL-LLR-000124 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

For valid transition data satisfying the analysis operation's stated input and computational-arithmetic preconditions, the coefficient space returned by the normalized all-ranking-functions analysis based on the Mesnard-Serebrenik method shall represent exactly the affine functions that are nonnegative before every represented rational transition and decrease by at least one on that transition. Within that scope, an empty transition relation shall yield the universal coefficient space, and an empty coefficient space shall indicate absence of a normalized affine ranking function and remain inconclusive for termination.

RATIONALE:

The result is a mathematical set of ranking coefficients, with vacuous obligations for an empty relation, rather than a general decision procedure for program termination. Its exactness guarantee depends on the declared input and computational-arithmetic preconditions, including intermediate calculations, rather than on apparent completion alone.

COMMENT:

Verification covers the normalized all-ranking-functions result, coefficient-space interpretation and empty-transition or empty-result contracts. The normative contracts make the delegated input and computational-arithmetic preconditions precise and preserve exactness within that scope. Verify the stated equivalence by method-specific analysis and the independent coefficient-space cases in the criteria.

VERIFICATION_CRITERIA:

Establish the analysis operation's stated input and computational-arithmetic preconditions for numerical evidence cases. Check expected coefficient polyhedra for simple rational relations and verify sampled coefficient membership through independent lower-bound and decrease checks. Include empty relations produced by contradictory strict constraints and by paired-input conjunction, nonempty strict relations, and nonempty relations without normalized affine rankings. Unchecked completion alone does not establish exact coefficient-space computation.

BIBLIOGRAPHY:

BagnaraMPZ12IC | Section 4.2, Theorem 4.4 and Equations (16)-(20) (normalized coefficient spaces; author manuscript).

SOURCE:

src/termination_defs.hh: normalized all-ranking-functions contracts, unit decrease, rational-transition scope, empty-relation universe, and inconclusiveness. src/termination_templates.hh: preservation of strict constraints when deciding transition emptiness. tests/Polyhedron/termination1.cc and tests/Polyhedron/termination2.cc: ranking-space and emptiness cases.

  • 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-001509
    4. Normalized MS affine ranking spaces UID: PPL-SPEC-001509 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The output shall replace its prior value with a closed polyhedron of dimension n + 1 containing exactly the affine coefficient tuples that satisfy f(x) ≥ 0 and f(x) − f(x’) ≥ 1 on every rational transition described by the input constraints. For an empty relation it shall be universe, including an empty conjunction of individually nonempty paired inputs. Strict constraints shall be preserved when establishing that emptiness; for nonempty relations these weak ranking obligations also hold on the closure. An empty output shall mean no normalized affine ranking exists and shall not establish nontermination.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    Universal transition obligations are vacuous on empty relations; relaxing strict constraints too early can incorrectly create obligations.

    INTERFACE:

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

    template<class PSET>
    void all_affine_ranking_functions_MS(const PSET&, C_Polyhedron& mu_space);
    template<class PSET>
    void all_affine_ranking_functions_MS_2(const PSET& before, const PSET& after,
                                         C_Polyhedron& mu_space);
    
    VERIFICATION_CRITERIA:

    Check exact coefficient-space inequalities for rational translations and bounded boxes, explicit/latent/paired strict emptiness, generator directions and fresh output replacement.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.

  • PPL-SPEC-001510
    5. MS affine quasi-ranking spaces UID: PPL-SPEC-001510 STATUS: APPROVED COMPONENT: TERMINATION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The two distinct outputs shall be closed polyhedra of dimension n + 1. The decreasing space shall contain exactly tuples satisfying f(x) − f(x’) ≥ 1 on every analyzed rational transition, with unrestricted additive constant. The bounded space shall contain exactly tuples satisfying f(x) ≥ 0 on every such before state. It shall use that nonnegative normalization rather than accept every arbitrary finite lower bound.

    Their intersection shall equal the normalized MS ranking space. Empty relations shall yield universe in both outputs; the zero function shall always belong to the bounded space. Strict boundaries and paired conjunction emptiness shall be handled as in 🔗 4. Normalized MS affine ranking spaces. Neither an empty decreasing space nor an empty intersection shall establish nontermination.

    The initialization, arithmetic, ownership and exceptional-completion conditions in 🔗 1. Optimization and ranking valid use shall apply.

    RATIONALE:

    Lower-bound and decrease obligations can be represented separately and recombined by intersection.

    INTERFACE:

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

    template<class PSET>
    void all_affine_quasi_ranking_functions_MS(const PSET&,
        C_Polyhedron& decreasing, C_Polyhedron& bounded);
    template<class PSET>
    void all_affine_quasi_ranking_functions_MS_2(const PSET& before,
        const PSET& after, C_Polyhedron& decreasing, C_Polyhedron& bounded);
    
    VERIFICATION_CRITERIA:

    Check independent literal coefficient spaces, free constants, zero membership, intersection equality, strict empty conjunctions and output dimensions.

    BIBLIOGRAPHY:

    BagnaraMPZ12IC | Sections 3–5; journal article author manuscript, ranking conditions and the two synthesis methods.

    SOURCE:

    src/termination.cc; src/termination_defs.hh; src/termination_templates.hh; src/termination_types.hh; tests/Polyhedron/termination1.cc; tests/Polyhedron/termination2.cc.