Parma Polyhedra Library requirements
C++ modeled floating-format errors and finite-value inclusion
1. Descriptor absolute-error interval PPL-SPEC-001012

The public static absolute_error field shall initially contain an interval enclosing [ − ω, ω], where the radius is the larger of the analyzed absolute error and the analyzer boundary type's smallest positive subnormal. Built-in IEEE binary descriptors shall use their smallest positive subnormal; normalized IBM short and long hexadecimal descriptors shall use 16 − 65, including underflow to zero with the exponent-underflow interruption disabled. Custom three-field descriptors shall use BASE1 −  EXPONENT_BIAS − MANTISSA_BITS. The descriptor shall meet the radix, precision and exponent-range prerequisites of 🔗 1. Owned floating-expression protocol and lifetime. The stored radius shall enclose the mathematical value even when it is not exactly representable in the analyzer.

The field shall be owned by its I, Format specialization and by its thread when PPL thread support selects thread-local storage. It shall remain publicly mutable; callers changing it shall preserve a sound nonempty error interval for their analysis. Subsequent rounded-node evaluation shall use the current field. Selected arithmetic and runtime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

2. Enumeration-based cached absolute error PPL-SPEC-001013

compute_absolute_error<I>() shall return a stable const reference to the cached absolute-error interval for IEEE754_HALF, IEEE754_SINGLE, IEEE754_DOUBLE, IEEE754_QUAD, INTEL_DOUBLE_EXTENDED or IBM_SINGLE. Its radius shall enclose the corresponding analyzed absolute error and the analyzer's smallest positive subnormal, with binary and IBM meanings from 🔗 1. Descriptor absolute-error interval. Distinct supported formats shall retain their own cached values. Repeated calls shall not change a previously returned interval. Unsupported format selections, including IBM_DOUBLE, shall throw std::invalid_argument.

References shall belong to the selected template specialization and thread when configured thread-local, and shall not be deleted or modified by the caller. Native boundary arithmetic and runtime prerequisites shall be met; metadata support alone shall not establish this helper's support.

  • PPL-LLR-000081
    1. Identity of modeled numeric types PPL-LLR-000081

    A modeled numeric type shall preserve the distinctions relevant to expression meaning: integer width, integer representation and integer overflow interpretation, or the selected floating-point format; modeling a width shall not imply that the host provides a native arithmetic type of that width.

    • PPL-HLR-000004
      4. Abstract expression evaluation PPL-HLR-000004

      PPL shall provide numerical expression analysis facilities whose successful results conservatively enclose the concrete evaluations admitted by the input approximation and the selected arithmetic model.

  • PPL-LLR-000082
    2. Sound successful floating-point linearization PPL-LLR-000082

    Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, for a supported floating-point expression and a valid abstract store, a successful linearization shall overapproximate every value of the modeled expression consistent with that store, including rounding error of the modeled format.

    • PPL-HLR-000004
      4. Abstract expression evaluation PPL-HLR-000004

      PPL shall provide numerical expression analysis facilities whose successful results conservatively enclose the concrete evaluations admitted by the input approximation and the selected arithmetic model.

  • PPL-LLR-000311
    1. Public C++ access to supported facilities PPL-LLR-000311

    The public C++ interface shall expose the configured library's supported numerical facilities and their public value types through the documented public headers, preserving the declared numerical meanings and public type contracts of those facilities.

    • PPL-HLR-000007
      7. Access through supported language interfaces PPL-HLR-000007

      PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.

  • 4. Explicit numerical operation contracts PPL-LLR-000442

    Each supported numerical operation shall have an explicit contract identifying its concrete meaning, the conditions of its numerical guarantees, and the meaning of its exact, approximate, inconclusive and failure outcomes, as applicable. The contract shall identify its applicable domain, numerical profile and interface contexts; restrictions on availability or precision shall be consistent with the required facility and selected configuration.

    • PPL-HLR-000011
      11. Sound and explicit numerical guarantees PPL-HLR-000011

      PPL shall distinguish exact numerical results, conservative approximations and inconclusive outcomes, and shall make the assumptions and precision guarantees of each numerical operation explicit.

PPL-SPEC-001014
3. Finite floating-format value inclusion PPL-SPEC-001014

For the seven named floating-format identifiers, is_less_precise_than(first, second) shall return false exactly when every finite mathematical value representable in second is also representable in first. It shall compare modeled value sets, including precision and exponent/subnormal range, independently of the analyzer's native formats. Equal formats shall return false. Incomparable value sets shall return true in both directions; the predicate shall not establish a total ranking. Distinctions between signed zeros or special NaN/infinity encodings shall not alter this finite mathematical-value relation.

The query shall require no PPL initialization, FPU setup or native floating-point availability. Arguments shall be the seven named identifiers specified by 🔗 2. Modeled floating-point format identity.