Parma Polyhedra Library requirements
Abstract expression analysis
PPL-LLR-000081
1. Identity of modeled numeric types UID: PPL-LLR-000081 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

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.

RATIONALE:

Analyzed machine arithmetic and arithmetic used to represent its abstraction are separate concepts. The modeled integer-width vocabulary includes 128 bits independently of native storage support.

COMMENT:

Verification covers modeled numeric-type descriptors and their width, representation and overflow attributes. Related obligations: 🔗 12. Modeled bounded-integer arithmetic and wrapping.

VERIFICATION_CRITERIA:

Check that each admitted modeled type retains its defining attributes and that distinct admitted attributes remain distinguishable. Include the 128-bit modeled width on hosts both with and without native 128-bit capability, without inferring additional coefficient or scalar support.

SOURCE:

src/Concrete_Expression_defs.hh: modeled numeric type attributes. src/Concrete_Expression_types.hh: concrete expression type vocabulary. src/globals_types.hh: bounded integer widths, representations, overflow interpretations and floating-point formats.

  • 1. Modeled bounded-integer type identity UID: PPL-SPEC-000981 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Concrete_Expression_Type::bounded_integer() shall create a value identifying the supplied modeled width, representation and overflow interpretation. The admitted widths shall be BITS_8, BITS_16, BITS_32, BITS_64 and BITS_128; representations shall be UNSIGNED and SIGNED_2_COMPLEMENT; overflow interpretations shall be OVERFLOW_WRAPS, OVERFLOW_UNDEFINED and OVERFLOW_IMPOSSIBLE. The result shall classify as bounded integer and not floating point, and its matching-kind getters shall return those attributes exactly.

    These shall describe analyzed arithmetic, independently of native host integer types and of the configured coefficient storage. Modeling 128 bits shall not require a native 128-bit type. The factory and accessors shall require no PPL initialization, arithmetic evaluation or FPU setup.

    RATIONALE:

    Modeled integer meaning must retain width, sign representation and overflow choices without confusing them with host storage capabilities.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to their corresponding class templates; target-provided excerpts describe the required adapter protocol.

    static Concrete_Expression_Type bounded_integer(
      Bounded_Integer_Type_Width width,
      Bounded_Integer_Type_Representation representation,
      Bounded_Integer_Type_Overflow overflow);
    bool is_bounded_integer() const;
    bool is_floating_point() const;
    Bounded_Integer_Type_Width bounded_integer_type_width() const;
    Bounded_Integer_Type_Representation bounded_integer_type_representation() const;
    Bounded_Integer_Type_Overflow bounded_integer_type_overflow() const;
    
    VERIFICATION_CRITERIA:

    Check all 30 named attribute combinations, including 128 bits, under supported and no-native-FP configurations without initialization; compare every matching-kind getter and discriminator.

    SOURCE:

    src/Concrete_Expression_defs.hh; src/Concrete_Expression_inlines.hh; src/Concrete_Expression_types.hh; src/Concrete_Expression.cc; src/Float_defs.hh; tests/expressionprotocolsspec1.cc; tests/expressionprotocolfixture.hh; tests/expressiontype1.cc; tests/expressionpublic1.cc; src/globals_types.hh.

  • PPL-SPEC-000982
    2. Modeled floating-point format identity UID: PPL-SPEC-000982 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Concrete_Expression_Type::floating_point() shall create a value identifying the supplied modeled format. The admitted formats shall be IEEE754_HALF, IEEE754_SINGLE, IEEE754_DOUBLE, IEEE754_QUAD, INTEL_DOUBLE_EXTENDED, IBM_SINGLE and IBM_DOUBLE. The value shall classify as floating point and not bounded integer; its matching-kind format getter shall return the supplied format exactly.

    A modeled format shall remain available as metadata when host arithmetic in that format is unavailable. This factory shall not construct a host floating-point value or imply that every numerical algorithm supports every modeled format. It shall require no PPL initialization or FPU setup.

    RATIONALE:

    Analyzed format identity and availability of a host implementation are different capabilities.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to their corresponding class templates; target-provided excerpts describe the required adapter protocol.

    static Concrete_Expression_Type floating_point(Floating_Point_Format format);
    bool is_bounded_integer() const;
    bool is_floating_point() const;
    Floating_Point_Format floating_point_format() const;
    
    VERIFICATION_CRITERIA:

    Check all seven named formats without numerical evaluation or initialization, including formats unavailable natively and an actual no-native-FP configuration.

    SOURCE:

    src/Concrete_Expression_defs.hh; src/Concrete_Expression_inlines.hh; src/Concrete_Expression_types.hh; src/Concrete_Expression.cc; src/Float_defs.hh; tests/expressionprotocolsspec1.cc; tests/expressionprotocolfixture.hh; tests/expressiontype1.cc; tests/expressionpublic1.cc; src/globals_types.hh.

  • PPL-SPEC-000983
    3. Type-descriptor copying and validity diagnostics UID: PPL-SPEC-000983 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Implicit copying and assignment of Concrete_Expression_Type shall preserve its discriminator and complete matching-kind attributes as independent values. Assigning the other category shall replace the previous category and attributes. Getter calls shall require the matching category; querying inactive-category fields shall not be a supported way to convert a descriptor.

    OK() shall accept descriptors constructed from the named admitted attributes and reject stored invalid attribute combinations. Factories shall not be required to throw for unnamed enumeration values. Values used solely for validity diagnostics shall still lie within the enumeration's C++ value range; a rejected descriptor shall not be used as an admitted expression type. Copying, assignment and diagnostics shall require no PPL initialization or FPU setup.

    RATIONALE:

    Category-safe queries and independent metadata values prevent accidental reinterpretation of unrelated attributes.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to their corresponding class templates; target-provided excerpts describe the required adapter protocol.

    Concrete_Expression_Type(const Concrete_Expression_Type&);
    Concrete_Expression_Type& operator=(const Concrete_Expression_Type&);
    bool OK() const;
    
    VERIFICATION_CRITERIA:

    Check copies/self-assignment/category replacement and preserved donors; exercise unnamed in-range widths 0/24/255, overflow 3 and format 7 solely through OK(), and inspect inactive-field invariant checks.

    SOURCE:

    src/Concrete_Expression_defs.hh; src/Concrete_Expression_inlines.hh; src/Concrete_Expression_types.hh; src/Concrete_Expression.cc; src/Float_defs.hh; tests/expressionprotocolsspec1.cc; tests/expressionprotocolfixture.hh; tests/expressiontype1.cc; tests/expressionpublic1.cc; src/globals_types.hh.

  • PPL-SPEC-000984
    4. Target-specific concrete-expression adapter protocol UID: PPL-SPEC-000984 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    A target used with the concrete-expression analysis templates shall provide specializations for the expression base and the supported binary, unary, cast, integer-constant, floating-constant and approximable-reference node adapters. Each node kind shall have a distinct KIND matching the base expression's kind() result. type() shall return the node's modeled numeric type. The base adapter shall derive unambiguously and nonvirtually from Concrete_Expression_Common<Target>; a kind-specific adapter shall have the corresponding concrete base lineage required for its downcast.

    Binary adapters shall expose distinct ADD, SUB, MUL, DIV, REM, BAND, BOR, BXOR, LSHIFT and RSHIFT operator identities and borrowed left/right expression pointers. Unary adapters shall expose UPLUS, UMINUS and BNOT and a borrowed argument pointer. Cast adapters shall expose their borrowed argument pointer. A target used with the general linearize() template shall provide all adapters and operator names needed to instantiate its dispatch, even if a particular input uses fewer kinds.

    Nodes, children and target-specific payloads shall remain live, type-correct and unchanged throughout analysis. Argument pointers for an admitted operation shall be nonnull; the analyzed graph shall have no recursion cycle. The PPL common adapters shall not take ownership of target nodes or supply a runtime polymorphic deletion protocol. Target-owned storage and callbacks shall retain their own lifetime and synchronization prerequisites.

    RATIONALE:

    Explicit target adapters let an analyzer expose its own expression graph without copying it into a PPL-owned tree.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to their corresponding class templates; target-provided excerpts describe the required adapter protocol.

    template <typename Target> class Concrete_Expression;
    template <typename Target> class Binary_Operator;
    template <typename Target> class Unary_Operator;
    template <typename Target> class Cast_Operator;
    template <typename Target> class Integer_Constant;
    template <typename Target> class Floating_Point_Constant;
    template <typename Target> class Approximable_Reference;
    typedef int Concrete_Expression_Kind;
    typedef int Concrete_Expression_BOP;
    typedef int Concrete_Expression_UOP;
    // Required target-provided member signatures, on their corresponding adapters:
    Concrete_Expression_Type type() const;
    Concrete_Expression_Kind kind() const;
    Concrete_Expression_BOP binary_operator() const;
    const Concrete_Expression<Target>* left_hand_side() const;
    const Concrete_Expression<Target>* right_hand_side() const;
    Concrete_Expression_UOP unary_operator() const;
    const Concrete_Expression<Target>* argument() const;
    
    VERIFICATION_CRITERIA:

    Instantiate a target with distinct nonconsecutive kind/operator codes, borrowed children and every required adapter; verify payload/type/child identities and valid analysis dispatch without assuming a particular host AST layout.

    SOURCE:

    src/Concrete_Expression_defs.hh; src/Concrete_Expression_inlines.hh; src/Concrete_Expression_types.hh; src/Concrete_Expression.cc; src/Float_defs.hh; tests/expressionprotocolsspec1.cc; tests/expressionprotocolfixture.hh; tests/expressiontype1.cc; tests/expressionpublic1.cc; src/globals_types.hh.

  • PPL-SPEC-000985
    5. Checked-kind concrete adapter access UID: PPL-SPEC-000985 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a live well-formed target expression, is<Derived>() shall return true exactly when the target's current kind equals Derived<Target>::KIND. It shall not change the expression or acquire its ownership. The mutable and const as<Derived>() operations shall return pointers to the same actual derived node with the respective qualification. Their caller shall first establish a matching kind and correct actual inheritance/dynamic node type. A mismatched cast shall be outside the admitted interface; this shall not be a checked RTTI or allocating conversion.

    RATIONALE:

    Kind tests and borrowed static downcasts require consistent target tags and preserve node identity.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to their corresponding class templates; target-provided excerpts describe the required adapter protocol.

    template <typename Target>
    template <template <typename T> class Derived>
    bool Concrete_Expression_Common<Target>::is() const;
    template <typename Target>
    template <template <typename T> class Derived>
    Derived<Target>* Concrete_Expression_Common<Target>::as();
    template <typename Target>
    template <template <typename T> class Derived>
    const Derived<Target>* Concrete_Expression_Common<Target>::as() const;
    
    VERIFICATION_CRITERIA:

    Check all kind-test combinations across six node categories and const/mutable casts of each matching actual type; compare exact original pointers and retain payloads/children.

    SOURCE:

    src/Concrete_Expression_defs.hh; src/Concrete_Expression_inlines.hh; src/Concrete_Expression_types.hh; src/Concrete_Expression.cc; src/Float_defs.hh; tests/expressionprotocolsspec1.cc; tests/expressionprotocolfixture.hh; tests/expressiontype1.cc; tests/expressionpublic1.cc; src/globals_types.hh.

  • PPL-SPEC-001014
    3. Finite floating-format value inclusion UID: PPL-SPEC-001014 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A cast can omit extra rounding only when finite source values fit the destination value set; a single precision number is insufficient for incomparable formats.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    bool is_less_precise_than(Floating_Point_Format first,
                              Floating_Point_Format second);
    
    VERIFICATION_CRITERIA:

    Check every one of the 49 ordered pairs against independently characterized binade ranges and dyadic coefficient grids, including both incomparable IEEE/IBM pairs, in native and no-native-FP configurations without initialization.

    SOURCE:

    src/Float_defs.hh; src/Float_inlines.hh; tests/floatingformatsspec1.cc; tests/float1.cc; tests/ownedexpressionpublic1.cc.

PPL-LLR-000082
2. Sound successful floating-point linearization UID: PPL-LLR-000082 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

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.

RATIONALE:

A real-arithmetic algebraic transformation alone is insufficient to approximate machine floating-point evaluation.

COMMENT:

Verification covers floating-point expression linearization and its abstract-store preconditions. Related obligations: 🔗 6. Sound affine forward and backward transfers, 🔗 1. Meaning of successful exact and approximate results.

VERIFICATION_CRITERIA:

Compare enclosures with independently evaluated concrete expressions over finite operand sets and independently derived error bounds. Include cancellation, changes of analyzed format and expressions whose exact real result differs from their floating-point result.

BIBLIOGRAPHY:

Mine04 | whole work (background) Mine05th | whole work (background)

SOURCE:

doc/definitions.dox: Analysis of Floating Point Computations; Linear Forms with Interval Coefficients. src/Floating_Point_Expression_defs.hh: successful linearization meaning. src/linearize.hh: expression linearization.

  • PPL-SPEC-000984
    4. Target-specific concrete-expression adapter protocol UID: PPL-SPEC-000984 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    A target used with the concrete-expression analysis templates shall provide specializations for the expression base and the supported binary, unary, cast, integer-constant, floating-constant and approximable-reference node adapters. Each node kind shall have a distinct KIND matching the base expression's kind() result. type() shall return the node's modeled numeric type. The base adapter shall derive unambiguously and nonvirtually from Concrete_Expression_Common<Target>; a kind-specific adapter shall have the corresponding concrete base lineage required for its downcast.

    Binary adapters shall expose distinct ADD, SUB, MUL, DIV, REM, BAND, BOR, BXOR, LSHIFT and RSHIFT operator identities and borrowed left/right expression pointers. Unary adapters shall expose UPLUS, UMINUS and BNOT and a borrowed argument pointer. Cast adapters shall expose their borrowed argument pointer. A target used with the general linearize() template shall provide all adapters and operator names needed to instantiate its dispatch, even if a particular input uses fewer kinds.

    Nodes, children and target-specific payloads shall remain live, type-correct and unchanged throughout analysis. Argument pointers for an admitted operation shall be nonnull; the analyzed graph shall have no recursion cycle. The PPL common adapters shall not take ownership of target nodes or supply a runtime polymorphic deletion protocol. Target-owned storage and callbacks shall retain their own lifetime and synchronization prerequisites.

    RATIONALE:

    Explicit target adapters let an analyzer expose its own expression graph without copying it into a PPL-owned tree.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to their corresponding class templates; target-provided excerpts describe the required adapter protocol.

    template <typename Target> class Concrete_Expression;
    template <typename Target> class Binary_Operator;
    template <typename Target> class Unary_Operator;
    template <typename Target> class Cast_Operator;
    template <typename Target> class Integer_Constant;
    template <typename Target> class Floating_Point_Constant;
    template <typename Target> class Approximable_Reference;
    typedef int Concrete_Expression_Kind;
    typedef int Concrete_Expression_BOP;
    typedef int Concrete_Expression_UOP;
    // Required target-provided member signatures, on their corresponding adapters:
    Concrete_Expression_Type type() const;
    Concrete_Expression_Kind kind() const;
    Concrete_Expression_BOP binary_operator() const;
    const Concrete_Expression<Target>* left_hand_side() const;
    const Concrete_Expression<Target>* right_hand_side() const;
    Concrete_Expression_UOP unary_operator() const;
    const Concrete_Expression<Target>* argument() const;
    
    VERIFICATION_CRITERIA:

    Instantiate a target with distinct nonconsecutive kind/operator codes, borrowed children and every required adapter; verify payload/type/child identities and valid analysis dispatch without assuming a particular host AST layout.

    SOURCE:

    src/Concrete_Expression_defs.hh; src/Concrete_Expression_inlines.hh; src/Concrete_Expression_types.hh; src/Concrete_Expression.cc; src/Float_defs.hh; tests/expressionprotocolsspec1.cc; tests/expressionprotocolfixture.hh; tests/expressiontype1.cc; tests/expressionpublic1.cc; src/globals_types.hh.

  • PPL-SPEC-000985
    5. Checked-kind concrete adapter access UID: PPL-SPEC-000985 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a live well-formed target expression, is<Derived>() shall return true exactly when the target's current kind equals Derived<Target>::KIND. It shall not change the expression or acquire its ownership. The mutable and const as<Derived>() operations shall return pointers to the same actual derived node with the respective qualification. Their caller shall first establish a matching kind and correct actual inheritance/dynamic node type. A mismatched cast shall be outside the admitted interface; this shall not be a checked RTTI or allocating conversion.

    RATIONALE:

    Kind tests and borrowed static downcasts require consistent target tags and preserve node identity.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to their corresponding class templates; target-provided excerpts describe the required adapter protocol.

    template <typename Target>
    template <template <typename T> class Derived>
    bool Concrete_Expression_Common<Target>::is() const;
    template <typename Target>
    template <template <typename T> class Derived>
    Derived<Target>* Concrete_Expression_Common<Target>::as();
    template <typename Target>
    template <template <typename T> class Derived>
    const Derived<Target>* Concrete_Expression_Common<Target>::as() const;
    
    VERIFICATION_CRITERIA:

    Check all kind-test combinations across six node categories and const/mutable casts of each matching actual type; compare exact original pointers and retain payloads/children.

    SOURCE:

    src/Concrete_Expression_defs.hh; src/Concrete_Expression_inlines.hh; src/Concrete_Expression_types.hh; src/Concrete_Expression.cc; src/Float_defs.hh; tests/expressionprotocolsspec1.cc; tests/expressionprotocolfixture.hh; tests/expressiontype1.cc; tests/expressionpublic1.cc; src/globals_types.hh.

  • PPL-SPEC-000986
    6. Oracle interval and expression-value queries UID: PPL-SPEC-000986 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    FP_Oracle<Target, C> shall define an abstract client-supplied query interface for a coordinate interval, a floating-point constant value and an integer expression value. A true return shall mean that the output is an initialized valid interval enclosing all relevant values under the client's current modeled state. A false return shall mean that the query supplies no usable complete enclosure; callers shall not infer an unchanged output value. An admitted oracle shall report refusal rather than certify an unsound enclosure.

    The oracle and target inputs shall remain live and semantically consistent with the analyzed expression and any affine store throughout one analysis. Callbacks may propagate their documented exceptions. C shall provide the selected valid interval operations; rational interval queries shall not require host floating-point arithmetic merely because the interface is named FP_Oracle. Construction/destruction of the concrete oracle shall remain with its client; the protected nonvirtual base destructor shall not support deleting an owned oracle through a base pointer.

    RATIONALE:

    A true oracle response is an enclosure promise from the analyzer, while explicit refusal prevents a partial query from being treated as established numerical information.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to their corresponding class templates; target-provided excerpts describe the required adapter protocol.

    template <typename Target, typename C> class FP_Oracle;
    virtual bool get_interval(dimension_type coordinate, C& result) const = 0;
    virtual bool get_fp_constant_value(
      const Floating_Point_Constant<Target>& expression, C& result) const = 0;
    virtual bool get_integer_expr_value(
      const Concrete_Expression<Target>& expression, C& result) const = 0;
    // Protected base destructor:
    ~FP_Oracle();
    
    VERIFICATION_CRITERIA:

    Check abstract/protected-destructor type properties, typed callback arguments, direct rational query results, refusals and recovery; verify consuming analyses propagate false without treating stale outputs as evidence.

    SOURCE:

    src/Concrete_Expression_defs.hh; src/Concrete_Expression_inlines.hh; src/Concrete_Expression_types.hh; src/Concrete_Expression.cc; src/Float_defs.hh; tests/expressionprotocolsspec1.cc; tests/expressionprotocolfixture.hh; tests/expressiontype1.cc; tests/expressionpublic1.cc; src/globals_types.hh.

  • 7. Oracle reference-to-coordinate associations UID: PPL-SPEC-000987 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    get_associated_dimensions() shall provide the possible coordinate identities denoted by an approximable reference. On true return, its output set shall contain every possible associated coordinate and shall not contain not_a_dimension(). An empty successful set shall remain distinguishable from a single identity and multiple possible identities; it shall not by itself authorize a numerical enclosure. On false return the set shall not establish a usable association. Returned coordinate identities shall remain consistent with coordinate-value queries and the affine store during the analysis call. The oracle shall not transfer ownership of the target reference or create a new coordinate merely by reporting its identity.

    RATIONALE:

    Symbolic reference identity and numerical value information are different queries; multiple aliases require conservative handling.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to their corresponding class templates; target-provided excerpts describe the required adapter protocol.

    virtual bool get_associated_dimensions(
      const Approximable_Reference<Target>& expression,
      std::set<dimension_type>& result) const = 0;
    
    VERIFICATION_CRITERIA:

    Check typed associations for empty/single/multiple coordinate sets, failure/retry and independent output ownership; verify linearization rejects unavailable/empty associations and conservatively handles multiple identities.

    SOURCE:

    src/Concrete_Expression_defs.hh; src/Concrete_Expression_inlines.hh; src/Concrete_Expression_types.hh; src/Concrete_Expression.cc; src/Float_defs.hh; tests/expressionprotocolsspec1.cc; tests/expressionprotocolfixture.hh; tests/expressiontype1.cc; tests/expressionpublic1.cc; src/globals_types.hh.

  • 1. Target-adapted floating expression evaluation UID: PPL-SPEC-000991 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a well-formed floating-point expression and sound composite abstract store, linearize() shall return true only with a linear form enclosing every modeled expression value consistent with the entry inputs, including the analyzed operations' rounding error. Target nodes and the oracle shall meet 🔗 4. Target-specific concrete-expression adapter protocol, 🔗 6. Oracle interval and expression-value queries and 🔗 7. Oracle reference-to-coordinate associations. Each stored affine binding shall already enclose the corresponding coordinate in that same modeled state. Correlations shall use consistent coordinate identities.

    C shall have a supported native floating-point boundary type and sound interval operations under its initialized arithmetic/FPU prerequisites. Modeled metadata shall not itself establish numerical format support. The selected relative/absolute-error helpers shall support every format for which the operation needs an error bound. Allocation, callback and selected arithmetic operations shall satisfy their documented preconditions.

    On false return, the output shall not establish a complete enclosure; no preservation of its prior value shall be promised. Documented callback, resource and unsupported-operation exceptions may propagate. Output owners shall remain safely destructible and reusable after such failure. Analysis shall use input entry values even when result designates a store binding; only the designated output may then change, and other input bindings and target nodes shall remain unchanged. No node or oracle ownership shall be acquired.

    RATIONALE:

    A successful result is a numerical enclosure promise for the original modeled state, rather than a claim about real arithmetic alone.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool linearize(
      const Concrete_Expression<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Use exact rational modeled arithmetic and independently rounded binary32 samples, retained input snapshots, refusal/recovery, supported native boundary profiles and entry-value alias histories; compare every successful affine enclosure at explicit valuations.

    BIBLIOGRAPHY:

    Mine04 | Section 5, Theorem 1 and the discussion of failed linearization (PDF page index 7, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000992
    2. Floating constant linearization UID: PPL-SPEC-000992 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a floating-constant node, linearize() shall query the oracle for that constant. Refusal shall return false. Success shall replace result with a dimension-zero form whose constant is the returned interval and whose homogeneous coefficients are zero. This leaf shall add no operation-rounding error beyond the oracle's enclosure. A valid unbounded oracle interval shall remain an admitted constant result; true at this leaf shall not by itself certify finite coefficients. The common prerequisites and failure/lifetime rules of 🔗 1. Target-adapted floating expression evaluation shall apply.

    RATIONALE:

    Constant interpretation belongs to the oracle; constructing its affine enclosure must not reinterpret it as an additional arithmetic operation.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool linearize(
      const Concrete_Expression<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Check exact and non-dyadic rational payloads, dimension replacement, unbounded constant intervals, oracle refusal and recovery, without introducing coordinate queries.

    BIBLIOGRAPHY:

    Mine04 | Section 5, constant and variable linearization rules (PDF page index 6, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000993
    3. Unary and unsupported operator dispatch UID: PPL-SPEC-000993 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For unary UPLUS, linearize() shall return the operand's linearization without an additional rounding term. For UMINUS, it shall propagate operand refusal; on success it shall negate every coefficient interval, preserving the operand form's dimension. Unary BNOT shall report unsupported evaluation by throwing std::runtime_error.

    Binary REM, BAND, BOR, BXOR, LSHIFT and RSHIFT shall return false without claiming a result. ADD, SUB, MUL and DIV shall dispatch to their matching helper contracts. Unknown kind/operator codes inconsistent with the target protocol shall be outside the admitted interface. The common prerequisites and failure/lifetime rules of 🔗 1. Target-adapted floating expression evaluation shall apply.

    RATIONALE:

    Expression syntax must distinguish supported arithmetic, exact sign changes and explicit unsupported outcomes.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool linearize(
      const Concrete_Expression<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Check both unary signs on constant and symbolic forms, nested refusal, every named unsupported binary operator and the unary exception, with independent child-query counters and preserved inputs.

    BIBLIOGRAPHY:

    Mine04 | Section 5, interval linear forms and coefficient-wise arithmetic (PDF page index 6, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • 4. Rounding-aware addition linearization UID: PPL-SPEC-000994 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    add_linearize() shall require an ADD node and linearize both operands in the same entry store. When either operand refuses, it shall return false. A successful child form with an unbounded coefficient shall also cause refusal before its relative-error form is constructed; later children need not be evaluated after this refusal. Let L1, L2 be their forms, Rf the selected format's relative-error form from 🔗 21. Format-specific relative-error linear form, and Af the interval returned by compute_absolute_error<C>(f). The output shall soundly enclose the coefficient-wise combination L1 + L2 + Rf(L1) + Rf(L2) + Af, retaining symbolic coordinate terms. It shall return false if the resulting coefficients are unbounded, and true otherwise. 🔗 1. Target-adapted floating expression evaluation shall govern runtime, entry-value, exception and ownership semantics.

    RATIONALE:

    Addition requires both operand-sensitive relative error and an absolute error allowance while retaining useful affine dependence.

    A rounded parent needs finite coefficient magnitudes even when a constant leaf can soundly represent an unbounded value.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool add_linearize(
      const Binary_Operator<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Compare exact rational affine coefficients and independently rounded binary32 sums at explicit valuations, including half-ulp ties, cancellation, unequal dimensions and operand refusal; distinguish removal of each error component.

    Check unbounded constant leaves in either child position, refusal before relative-error construction, first-child short-circuiting and successful bounded recovery. Keep source/store entry-value and alias controls.

    BIBLIOGRAPHY:

    Mine04 | Section 5, addition linearization and relative-error definitions (PDF page index 6, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000995
    5. Rounding-aware subtraction linearization UID: PPL-SPEC-000995 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    sub_linearize() shall require a SUB node and linearize both operands in the same entry store. Operand refusal shall return false. A successful child form with an unbounded coefficient shall also cause refusal before its relative-error form is constructed; later children need not be evaluated after this refusal. Using L1, L2, Rf, Af as in 🔗 4. Rounding-aware addition linearization, the output shall soundly enclose L1 − L2 + Rf(L1) + Rf(L2) + Af, using coefficient-wise interval operations and preserving the operands' coordinate identities. It shall return false if any resulting coefficient is unbounded, and true otherwise. 🔗 1. Target-adapted floating expression evaluation shall govern common prerequisites and failure effects.

    RATIONALE:

    Subtraction must preserve cancellation relationships while accounting for both operands in its rounding bound.

    Finite coefficient magnitudes make the two relative-error components well-defined; an admitted unbounded leaf can therefore cause parent refusal.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool sub_linearize(
      const Binary_Operator<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Use independently rounded subtraction samples, cancellation and nontrivial signs, different symbolic dimensions and refusal at either operand; compare rational coefficient bounds and input snapshots.

    Check unbounded constant leaves on both sides, first-child short-circuiting, safe refusal and bounded recovery without changing operand signs or input entry values.

    BIBLIOGRAPHY:

    Mine04 | Section 5, subtraction linearization and relative-error definitions (PDF page index 6, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000996
    6. Interval-scalar multiplication linearization UID: PPL-SPEC-000996 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    mul_linearize() shall require a MUL node, obtain both operand forms and intervalize both through the oracle. Failure of any required linearization or coordinate query shall return false. It shall select a bounded intervalized operand for scalar multiplication; if neither operand has a bounded interval enclosure it shall return false. If the retained form has an unbounded coefficient, an exactly zero selected scalar shall yield a dimension-zero form containing the absolute-error interval without constructing relative error; a nonzero selected scalar shall cause refusal. Width estimates may choose either bounded operand and shall not promise optimal precision.

    For a bounded retained form, if I1 is selected, the result shall soundly enclose I1L2 + I1Rf(L2) + Af; if I2 is selected it shall soundly enclose I2L1 + I2Rf(L1) + Af. Scalar multiplication shall preserve the other operand's symbolic coordinates. It shall return false for an unbounded result coefficient, and true otherwise. Common notation and prerequisites shall follow 🔗 4. Rounding-aware addition linearization and 🔗 1. Target-adapted floating expression evaluation.

    RATIONALE:

    One operand is enclosed as a scalar interval so that the remaining affine dependence can be retained without introducing nonlinear terms.

    An exact zero scalar annihilates every real coefficient without requiring a finite magnitude for the retained form. A nonzero scalar still requires finite retained coefficients for relative-error construction.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool mul_linearize(
      const Binary_Operator<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Use independent rational products and binary32 rounding, opposite width choices, signed intervals, ties, one/two unbounded enclosures and refusal at each required query; ensure the unselected symbolic dependence remains represented.

    Check an unbounded constant times exact zero in both selected orientations, requiring only the absolute-error constant and dimension zero. Nonzero bounded scalars with unbounded retained coefficients shall refuse. Retain successful unbounded oracle values with bounded coefficient forms.

    BIBLIOGRAPHY:

    Mine04 | Section 5, multiplication and intervalization rules (PDF page indices 6–7, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000997
    7. Nonzero interval-divisor linearization UID: PPL-SPEC-000997 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    div_linearize() shall require a DIV node and first obtain the denominator's linear form and oracle-based interval enclosure. Required query refusal shall return false. If the closed hull of the denominator interval reaches zero it shall return false, including a zero endpoint excluded by openness. Thus a successful division shall not rely on an unproved nonzero denominator. A one-sided unbounded denominator whose closed hull excludes zero shall remain admitted when the selected interval arithmetic supports it.

    It shall then linearize the numerator, propagating refusal. An unbounded numerator coefficient shall cause refusal before its relative-error form is constructed. For numerator form L1 and denominator enclosure I2, it shall soundly enclose L1 ⁄ I2 + Rf(L1) ⁄ I2 + Af, retaining numerator coordinates. An unbounded result coefficient shall return false; a bounded result shall return true. Common prerequisites and notation shall follow 🔗 1. Target-adapted floating expression evaluation and 🔗 4. Rounding-aware addition linearization.

    RATIONALE:

    Division requires established separation from zero before applying a reciprocal scalar enclosure and its rounding allowance.

    A sign-separated unbounded divisor can have a bounded reciprocal, while relative rounding of the numerator requires finite coefficient magnitudes.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool div_linearize(
      const Binary_Operator<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Check positive/negative and one-sided unbounded denominators, interior/closed/open-endpoint zero exclusions, denominator-first refusal and successful retry; compare exact rational quotient and independently rounded binary32 samples.

    Check unbounded numerator refusal after denominator validation, preserving denominator-first queries. Retain bounded numerator controls with positive and negative sign-separated unbounded denominator intervals.

    BIBLIOGRAPHY:

    Mine04 | Section 5, division and intervalization rules (PDF page indices 6–7, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000998
    8. Floating and integer cast linearization UID: PPL-SPEC-000998 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    cast_linearize() shall require a floating-result cast node. For a floating argument it shall linearize that argument, propagating refusal. When the destination format contains every finite value representable by the source format, it shall retain the resulting form without added cast error. A constant enclosure certified by 🔗 11. Constant affine enclosures closed under destination rounding shall also require no added cast error.

    For an integer argument it shall obtain a sound interval through get_integer_expr_value(), returning false on refusal. If the destination contains every finite value of the analyzer boundary format, it shall close any excluded finite endpoints of that interval and retain the resulting constant form without a further error term. Equality of formats shall satisfy this inclusion condition. Other integer enclosures certified by 🔗 11. Constant affine enclosures closed under destination rounding shall remain unchanged without an error term.

    Value-set inclusion shall use is_less_precise_than(): the destination contains the analyzer exactly when !is_less_precise_than(destination, analyzer). The converse difference predicate shall not establish inclusion for incomparable formats.

    In the remaining cases it shall add destination-format relative and absolute error enclosures. An unbounded input coefficient shall cause refusal before relative error is constructed. Unbounded resulting coefficients shall return false and bounded coefficients true. Error-free casts may retain admitted unbounded enclosures; success alone shall not certify finite coefficients. Common numerical and entry-value rules shall follow 🔗 1. Target-adapted floating expression evaluation; unsupported selected error helpers may report their documented exceptions.

    RATIONALE:

    Format value sets form a partial order. Lacking some destination values does not establish that every analyzer value belongs to the destination. Monotone rounding fixes representable finite enclosure endpoints, but may produce a previously excluded endpoint. Closing those endpoints preserves soundness of integer conversions. A closed constant enclosure with exact finite endpoints already contains every rounded result, even when not every interior value is exactly representable.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool cast_linearize(
      const Cast_Operator<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Check same-format, widening and narrowing casts, zero/one and other exact constants, padded zero dimensions and genuine symbolic forms. Compare integer and floating casts with independent exact-rational destination lattices. Include signed modeled128-bit integers without native128 arithmetic, oracle refusal/recovery, input/output store aliases and unsupported selected error helpers.

    Check binary32 analyzer enclosures of integers converted to IBM single, including an enclosure containing no destination value. Check integer casts whose open native endpoints can become rounded results, both for equal and wider destinations. Distinguish certified constant rays and universe from unbounded enclosures requiring an error term. Check open finite endpoints and nonrepresentable finite endpoints against directed rounding neighbors.

    BIBLIOGRAPHY:

    Mine04 | Section 5, floating-point cast linearization rule (PDF page index 6, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/castcontracts1.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000999
    9. Reference association and symbolic-store lookup UID: PPL-SPEC-000999 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For an approximable reference, linearize() shall obtain its possible coordinate identities from the oracle. Refusal or an empty association set shall return false. For a single associated coordinate, an existing store binding shall be copied into the result; an unbounded copied form shall return false. If that key is absent, the result shall be the exact unit variable form for that coordinate, with dimension equal to its index plus one. This symbolic fallback shall not require a numerical coordinate query.

    For multiple possible coordinates it shall query every required coordinate interval and return false on refusal. Otherwise it shall form their interval hull as a dimension-zero constant form, returning true exactly when its coefficient is bounded. It shall not arbitrarily select one possible identity or combine alternatives as a conjunction. Coordinate validity, entry-value copying and common lifetime/numerical rules shall follow 🔗 7. Oracle reference-to-coordinate associations and 🔗 1. Target-adapted floating expression evaluation.

    RATIONALE:

    A known identity permits affine substitution; several possible identities require a conservative numerical union.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool linearize(
      const Concrete_Expression<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Check absent/present single keys, independent copies, high valid indices, unbounded stored forms, multiple coordinate hulls, empty/refused sets and failure at first/middle/last value query followed by recovery.

    BIBLIOGRAPHY:

    Mine04 | Section 5, Linear Form Propagation (PDF page index 7, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • 10. Native value membership in modeled floating formats UID: PPL-SPEC-001658 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    For a configured supported native binary floating type Boundary and one of the seven modeled Floating_Point_Format values, cast_value_is_exact() shall return true exactly when the native value is finite and exactly representable in that modeled format. Both signs of zero shall be representable. Nonfinite native values shall return false.

    Binary format membership shall include normal and subnormal values within the finite range of binary16, binary32, binary64, binary128 and x87 extended. IBM single and double membership shall use their normalized radix-16 value sets, including zero, their finite exponent ranges and their respective significand precisions. Membership shall be symmetric under sign reversal. The checker shall require no dynamic storage and shall preserve the active rounding direction.

    RATIONALE:

    Exact destination-value membership permits an enclosure endpoint to be a fixed point of rounding. Classification through exact native scaling avoids rounding through the very destination format being examined. Equality with an integer-rounded value tests integrality in any rounding direction.

    INTERFACE:

    Header: <ppl.hh>; namespace Parma_Polyhedra_Library::Implementation.

    template <typename Boundary>
    bool cast_value_is_exact(Boundary value, Floating_Point_Format format);
    
    VERIFICATION_CRITERIA:

    Compare classifications with independent integer/rational lattice tests for every format. Include signed zero, both signs, subnormal and normal boundaries, exponent boundaries, exact and inexact significands, finite extremes, infinities and NaN. Exercise native precision both below and above the destination precision, including cases requiring no significand scaling. Check classification and direction preservation in all four IEEE rounding directions, including exact values and halfway/inexact significands. Exercise actual native significand precisions both up to 64 bits and above 64 bits; inspect the compiled precision selection and the retained wide-format path.

    SOURCE:

    src/linearize.hh; tests/Concrete_Expression/castcontracts1.cc.

  • 11. Constant affine enclosures closed under destination rounding UID: PPL-SPEC-001659 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    For a linear form over admitted real intervals with a configured supported native floating boundary type and a known modeled destination format, cast_interval_is_rounding_closed() shall return true exactly when all homogeneous coefficients are zero and the constant interval is nonempty, topologically closed, and has exactly representable finite endpoints as defined by 🔗 10. Native value membership in modeled floating formats. Infinite abstract bounds shall impose no additional representability condition. Retained zero dimensions shall not prevent certification.

    A true result shall certify that rounding any admitted finite concrete value from the enclosure to a finite destination value remains in that enclosure. It shall not claim that every interior real value is exactly representable. False shall provide no such certificate. The checker shall preserve the represented form, its space dimension and the active rounding direction, and shall require no dynamic storage.

    RATIONALE:

    Monotone rounding fixes exactly representable finite endpoints. Therefore rounding maps a closed interval into itself. The same argument applies when one or both abstract bounds are infinite. A nonzero homogeneous coefficient prevents treating an affine form as a constant enclosure.

    INTERFACE:

    Header: <ppl.hh>; namespace Parma_Polyhedra_Library::Implementation.

    template <typename Interval>
    bool cast_interval_is_rounding_closed(
      const Linear_Form<Interval>& form, Floating_Point_Format format);
    
    VERIFICATION_CRITERIA:

    Check exact and halfway singleton neighbors at each smaller destination precision, including x87 precision when the native boundary is binary128. Check scalar and zero-padded forms, nonzero homogeneous coefficients at several coordinates, empty intervals, finite open endpoints, closed bounded intervals, both half-lines and universe. Distinguish inexact lower and upper endpoints and singleton endpoints. Exercise certification through public integer and floating cast calls as well as directly. Check preserved values, dimensions and rounding direction.

    SOURCE:

    src/linearize.hh; tests/Concrete_Expression/castcontracts1.cc.

  • 1. Dependency invalidation UID: PPL-SPEC-000988 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a well-formed affine store, discard_occurrences(store, var) shall erase exactly those bindings whose linear form has a coefficient for var unequal to the singleton zero interval. It shall preserve every other key and associated value. An absent coordinate beyond a form's stored dimension shall have zero coefficient as specified by 🔗 6. Dimensions and borrowed coefficient access. An uncertain coefficient containing zero and other values shall count as a dependency. The operation shall accept empty stores and shall not create a binding.

    Store keys and referenced coordinates shall be valid dimension indices; each form shall meet the interval-coefficient and lifetime prerequisites of 🔗 1. Interval-linear-form meaning and numerical prerequisites. No PPL initialization or native floating-point arithmetic shall be required when the selected exact interval operations require neither. Erasing a binding shall invalidate references to that binding; references to retained bindings shall remain valid.

    RATIONALE:

    Invalidating all possibly dependent expressions prevents a changed program variable from leaving a stale symbolic relationship.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. C is the selected interval coefficient type.

    template <typename C>
    void discard_occurrences(
      std::map<dimension_type, Linear_Form<C>>& store, Variable var);
    
    VERIFICATION_CRITERIA:

    Compare retained keys and literal coefficients for no dependency, consecutive dependencies, uncertain intervals, empty stores and coordinates beyond stored dimensions.

    BIBLIOGRAPHY:

    Mine04 | Section 5, Linear Form Propagation (PDF page index 7, zero-based).

    SOURCE:

    src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionstoresspec1.cc; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000989
    2. Affine assignment and dependency invalidation UID: PPL-SPEC-000989 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    affine_form_image(store, var, form) shall first assign a copy of the entry value of form to the key var.id(), inserting or replacing the binding. It shall then perform the dependency invalidation specified by 🔗 1. Dependency invalidation for var across the resulting store. Consequently, a newly assigned form depending on var shall also be discarded. The input may be a form borrowed from the same store, including the target binding; copying shall use its entry value before any removal can destroy that donor. An independent donor shall remain unchanged.

    Valid keys, interval operations and lifetimes shall meet 🔗 1. Dependency invalidation. Allocation or coefficient-operation exceptions may propagate; no rollback of the entire store shall be promised, but existing owners shall remain safely destructible. After normal return, every retained binding shall be independent of the assigned coordinate.

    RATIONALE:

    Assignment records the new expression and then conservatively removes relationships that cannot remain valid when the coordinate changes.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. C is the selected interval coefficient type.

    template <typename C>
    void affine_form_image(
      std::map<dimension_type, Linear_Form<C>>& store,
      Variable var, const Linear_Form<C>& form);
    
    VERIFICATION_CRITERIA:

    Check insertion/replacement, independent inputs, same-store borrowed donors that are removed during invalidation, same-target aliasing and self-dependent assignments; compare all remaining mappings to independent entry-value snapshots.

    BIBLIOGRAPHY:

    Mine04 | Section 5, Linear Form Propagation (PDF page index 7, zero-based).

    SOURCE:

    src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionstoresspec1.cc; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000990
    3. Common-binding affine-store join UID: PPL-SPEC-000990 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    upper_bound_assign(left, right) shall retain exactly the bindings of left whose keys also occur in right and whose associated linear forms are equal according to 🔗 14. Coefficient equality with implicit trailing zeros. Every other left binding shall be erased. No right-only binding shall be inserted. The retained forms and the right operand shall remain unchanged. Explicit trailing zero coefficients shall not cause mathematically equal forms to be discarded. Joining a store with itself shall preserve all bindings.

    Both stores shall meet 🔗 1. Dependency invalidation and describe consistent coordinate identities. Coefficient comparison shall be supported for their selected interval type. Empty operands shall be admitted; an empty right operand shall remove every left binding. Exceptions from selected coefficient comparisons may propagate without a whole-store rollback promise; surviving owners shall remain safely destructible.

    RATIONALE:

    Only a symbolic relationship established on both alternatives can survive their conservative join.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. C is the selected interval coefficient type.

    template <typename C>
    void upper_bound_assign(
      std::map<dimension_type, Linear_Form<C>>& left,
      const std::map<dimension_type, Linear_Form<C>>& right);
    
    VERIFICATION_CRITERIA:

    Compare independent literal mappings for equal and unequal common bindings, missing right keys, right-only keys, explicit zero tails, empty operands and self-aliasing; retain an independent right snapshot.

    BIBLIOGRAPHY:

    Mine04 | Section 5, Linear Form Propagation (PDF page index 7, zero-based).

    SOURCE:

    src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionstoresspec1.cc; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/expressionpublic1.cc.

  • 1. Descriptor absolute-error interval UID: PPL-SPEC-001012 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A separate absolute term bounds underflow even when the relative term vanishes, and analyzer storage must not shrink that bound.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    // Public static member of Floating_Point_Expression<I, Format>:
    static PPL_TLS I absolute_error;
    
    VERIFICATION_CRITERIA:

    Compare exact rational radii for all built-in descriptors and custom radix powers, analyzer-subnormal clamping, specialization/thread lifetime and a sound temporary public-field override with restoration.

    SOURCE:

    src/Float_defs.hh; src/Float_templates.hh; src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionthreads1.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/ownedexpressionpublic1.cc.

  • 2. Enumeration-based cached absolute error UID: PPL-SPEC-001013 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A cached immutable reference gives repeated analyses the same error bound while retaining an explicit unsupported-format outcome.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I>
    const I& compute_absolute_error(Floating_Point_Format analyzed_format);
    
    VERIFICATION_CRITERIA:

    Check all six supported format/radius pairs using exact rationals, stable reference addresses, preserved values after intervening queries and explicit IBM_DOUBLE rejection.

    SOURCE:

    src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionthreads1.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/ownedexpressionpublic1.cc.

  • PPL-SPEC-001014
    3. Finite floating-format value inclusion UID: PPL-SPEC-001014 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A cast can omit extra rounding only when finite source values fit the destination value set; a single precision number is insufficient for incomparable formats.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    bool is_less_precise_than(Floating_Point_Format first,
                              Floating_Point_Format second);
    
    VERIFICATION_CRITERIA:

    Check every one of the 49 ordered pairs against independently characterized binade ranges and dyadic coefficient grids, including both incomparable IEEE/IBM pairs, in native and no-native-FP configurations without initialization.

    SOURCE:

    src/Float_defs.hh; src/Float_inlines.hh; tests/floatingformatsspec1.cc; tests/float1.cc; tests/ownedexpressionpublic1.cc.

  • PPL-SPEC-001594
    1. IBM hexadecimal format metadata for expression analysis UID: PPL-SPEC-001594 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    float_ibm_single and float_ibm_double shall provide compile-time numerical metadata for the short and long IBM hexadecimal formats used by floating-expression analysis. Both shall expose radix BASE == 16, characteristic width EXPONENT_BITS == 7 and excess-64 bias EXPONENT_BIAS == 64. MANTISSA_BITS shall count stored fraction bits: 24 for the short format and 56 for the long format, corresponding to six and fourteen hexadecimal digits. The short descriptor shall also expose floating_point_format == IBM_SINGLE.

    Reading these constants shall require no library initialization, floating hardware support or FPU rounding-state setup. Their use in rounded analysis shall retain the numerical and initialization prerequisites of the selected consumer, including 🔗 11. Descriptor-based relative rounding error and 🔗 1. Descriptor absolute-error interval. The cached enumeration-based query shall retain its supported-format domain in 🔗 2. Enumeration-based cached absolute error.

    RATIONALE:

    Expression analysis needs the analyzed format's radix, fraction precision and bias independently of the analyzer's native arithmetic. Stating the precision unit prevents interpreting a bit count as a hexadecimal digit count when selecting rounding-error bounds.

    INTERFACE:

    Public header: <ppl.hh>; implementation names in Parma_Polyhedra_Library.

    struct float_ibm_single {
      static constexpr unsigned int BASE = 16;
      static constexpr unsigned int EXPONENT_BITS = 7;
      static constexpr unsigned int MANTISSA_BITS = 24;
      static constexpr int EXPONENT_BIAS = 64;
      static constexpr Floating_Point_Format floating_point_format = IBM_SINGLE;
    };
    struct float_ibm_double {
      static constexpr unsigned int BASE = 16;
      static constexpr unsigned int EXPONENT_BITS = 7;
      static constexpr unsigned int MANTISSA_BITS = 56;
      static constexpr int EXPONENT_BIAS = 64;
    };
    
    VERIFICATION_CRITERIA:

    Use constant expressions to check every exposed metadata value and the short-format identifier independently of native IBM hardware. Check the existing short and long expression-analysis error bounds against exact rational hexadecimal quantization, including underflow, both signs and consumer rejection of unsupported cached format selections.

    SOURCE:

    src/Float_defs.hh; src/Float_templates.hh; src/Linear_Form_templates.hh; tests/floatrepresentationsspec1.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/ownedexpressionspec1.cc.

  • PPL-SPEC-000940
    20. Oracle-based interval enclosure and explicit refusal UID: PPL-SPEC-000940 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a live form with supported initialized interval coefficients, intervalize() shall ask the oracle for intervals of its declared variable coordinates. When the oracle supplies valid enclosures for every requested coordinate, a true result shall set result to an interval enclosing all entry-form affine values at independently admitted coefficient and coordinate choices. A dimension-zero form shall need no coordinate query and shall return its constant interval. The form shall remain unchanged.

    If a required oracle query returns false, the method shall return false and shall not claim that result establishes a complete enclosure; no prior result-value preservation shall be promised. Exceptions from the oracle or coefficient operations may propagate. The oracle shall supply initialized intervals and remain valid for the call; overlapping mutation shall follow the operation's numerical/runtime prerequisites. Rational coefficient intervals shall not require native floating-point availability.

    RATIONALE:

    Interval evaluation composes independent coefficient/coordinate products and propagates refusal rather than reporting a partial sum as complete.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    template <typename Target>
    bool intervalize(const FP_Oracle<Target, C>& oracle, C& result) const;
    
    VERIFICATION_CRITERIA:

    Enumerate independent rational corner values for signed uncertain coefficients and coordinate boxes, including inexact native bounds, zero dimension, zero coefficients and failures at first/middle/last queried coordinates followed by recovery. Include exact rational oracle evaluation with native floating-point support disabled.

    BIBLIOGRAPHY:

    Mine04 | Whole work (background on floating-point expressions modeled by interval linear forms).

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000941
    21. Format-specific relative-error linear form UID: PPL-SPEC-000941 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a form with nonempty bounded supported floating-point intervals, relative_error(format, result) shall preserve the entry dimension and replace result by a form whose coefficient at each coordinate and constant encloses the corresponding magnitude bound multiplied by [ − u, u]. The magnitude bound shall be the maximum absolute value of that entry interval's endpoints. The relative-error unit u shall be 2 − 10, 2 − 23, 2 − 52, 2 − 112 and 2 − 63 for IEEE754_HALF, IEEE754_SINGLE, IEEE754_DOUBLE, IEEE754_QUAD and INTEL_DOUBLE_EXTENDED, respectively. It shall be 2 − 20 for IBM_SINGLE and 2 − 52 for IBM_DOUBLE.

    The source shall remain unchanged unless it is also result; in that case the complete result shall still use the source's entry intervals and dimension. This operation shall construct the relative-error component; it shall not alone establish a complete floating-point linearization or supply a separate absolute error term for underflow. All evaluated boundary and interval operations shall satisfy their supported-format, rounding and representability prerequisites.

    RATIONALE:

    Analyzed-format error units and entry-value alias semantics are needed to compose a sound rounding-error form.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    void relative_error(Floating_Point_Format format, Linear_Form& result) const;
    
    VERIFICATION_CRITERIA:

    Use independently specified powers of two and rational magnitude products for every named format, zero/unequal-dimensional outputs, signed/zero/uncertain coefficients, preserved donors and same-object output.

    BIBLIOGRAPHY:

    Mine04 | Whole work (background on floating-point expressions modeled by interval linear forms).

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • 1. Owned floating-expression protocol and lifetime UID: PPL-SPEC-001000 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Floating_Point_Expression<I, Format> shall provide polymorphic numerical linearization and virtual destruction. FP_Linear_Form shall denote Linear_Form<I>, FP_Interval_Abstract_Store shall denote Box<I> and FP_Linear_Form_Abstract_Store shall denote the map from valid coordinate indices to such forms. I shall have a supported native floating-point boundary type and well-formed interval operations under the selected arithmetic/FPU initialization prerequisites. Format shall provide BASE, MANTISSA_BITS and EXPONENT_BIAS describing the analyzed arithmetic; a format-enumeration member shall not be required. The radix shall be an integer at least two, precision shall be positive, and bias/exponent calculations shall stay within their representable descriptor ranges. Custom decimal radices shall remain admitted. Its modeled rounding and underflow behavior shall meet the selected error bounds in 🔗 11. Descriptor-based relative rounding error and 🔗 1. Descriptor absolute-error interval.

    All expression coordinates and coefficients used in intervalization shall have corresponding intervals in the entry box. The box and every symbolic binding shall soundly describe the same modeled state. A successful linearize() shall enclose all corresponding modeled expression values, including operation rounding. Input entry values shall determine the result, including when the output is a symbolic-store binding. Other input bindings shall remain unchanged. A false result shall not certify an enclosure or promise preservation of the previous output. Allocation, coefficient and custom-node callback exceptions may propagate; live owners and outputs shall remain safely destructible and reusable without whole-operation rollback.

    Pointer-taking concrete nodes shall acquire exclusive ownership of their nonnull child trees after successful construction. Children shall be independently owned, with no shared ownership or cycles. Deleting through the base pointer shall destroy every owned child exactly once. Concrete nodes shall provide neither public copying nor implicit move ownership. Borrowed access to a child shall not transfer its ownership.

    Each of the six unary and binary operator nodes shall expose operand_ptr as std::unique_ptr<Floating_Point_Expression<I, Format>> and accept default-deleter unique_ptr rvalues whose child pointers convert to the base pointer, in addition to its raw-pointer adoption constructor. These arguments shall be nonnull and independently owned. The owning overloads shall not throw and shall consume their arguments' ownership. A pre-existing child owner shall retain its subtree until the parent constructor begins. If evaluating another argument throws, temporary owning arguments already created shall destroy their subtrees during unwinding. Binary nodes shall destroy the first operand before the second operand; unary nodes shall destroy their sole operand. Neither ownership form shall add a child allocation.

    overflows() shall return true exactly when the constant or a homogeneous coefficient interval is unbounded. It shall inspect every declared coordinate, treating absent coefficients as zero under 🔗 6. Dimensions and borrowed coefficient access, without changing the form.

    RATIONALE:

    Owned trees need a numerical success promise and an explicit lifetime model independent of the non-owning target adapters.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Floating_Point_Expression {
    public:
      typedef Linear_Form<I> FP_Linear_Form;
      typedef Box<I> FP_Interval_Abstract_Store;
      typedef std::map<dimension_type, FP_Linear_Form> FP_Linear_Form_Abstract_Store;
      typedef typename I::boundary_type boundary_type;
      typedef typename I::info_type info_type;
      virtual ~Floating_Point_Expression();
      virtual bool linearize(const FP_Interval_Abstract_Store& intervals,
        const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const = 0;
      static bool overflows(const FP_Linear_Form& form);
    };
    
    VERIFICATION_CRITERIA:

    Check virtual destruction, child counters, noncopyable concrete types, nonthrowing consuming construction, first-before-second destruction, rejection of unrelated and const child types, and retention of a caller's owners when argument evaluation throws. Check callback exception/retry, both refusal and recovery, input snapshots and boundedness at each coefficient position. Evaluate successful forms using exact rational and independently rounded native-format samples.

    BIBLIOGRAPHY:

    Mine04 | Section 5, Theorem 1 and failed linearization (PDF page index 7, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Constant_Floating_Point_Expression_defs.hh; src/Constant_Floating_Point_Expression_inlines.hh; src/Variable_Floating_Point_Expression_defs.hh; src/Variable_Floating_Point_Expression_inlines.hh; src/Opposite_Floating_Point_Expression_defs.hh; src/Opposite_Floating_Point_Expression_inlines.hh; src/Cast_Floating_Point_Expression_defs.hh; src/Cast_Floating_Point_Expression_inlines.hh; src/Sum_Floating_Point_Expression_defs.hh; src/Sum_Floating_Point_Expression_inlines.hh; src/Difference_Floating_Point_Expression_defs.hh; src/Difference_Floating_Point_Expression_inlines.hh; src/Multiplication_Floating_Point_Expression_defs.hh; src/Multiplication_Floating_Point_Expression_inlines.hh; src/Division_Floating_Point_Expression_defs.hh; src/Division_Floating_Point_Expression_inlines.hh; src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc.

  • PPL-SPEC-001001
    2. Owned constant construction and evaluation UID: PPL-SPEC-001001 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The two-bound constructor shall store the closed interval between its ordered boundary values. The string constructor shall store the selected interval parser's enclosure of a valid constant expression; it shall not retain the caller's character storage. linearize() shall replace the output by a dimension-zero form containing exactly that stored interval, return true and add no operation-rounding term. A valid unbounded constant interval shall remain an admitted leaf result; true at that leaf shall not imply a finite coefficient. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    A constant is interpreted once; evaluation copies its enclosure without treating it as another arithmetic operation.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Constant_Floating_Point_Expression;
    // Members of Constant_Floating_Point_Expression<I, Format>:
    Constant_Floating_Point_Expression(boundary_type lower, boundary_type upper);
    Constant_Floating_Point_Expression(const char* value);
    ~Constant_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Compare ordered endpoints, decimal text against an exact rational, caller storage lifetime, dimension replacement and admitted unbounded constants.

    BIBLIOGRAPHY:

    Mine04 | Section 5, constant linearization rule (PDF page index 6, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Constant_Floating_Point_Expression_defs.hh; src/Constant_Floating_Point_Expression_inlines.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc.

  • PPL-SPEC-001002
    3. Owned variable lookup and symbolic fallback UID: PPL-SPEC-001002 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a valid coordinate index, variable construction shall retain that identity. If the symbolic store has a binding at that index, linearize() shall copy its entry form to the output and return true exactly when the copied coefficients are bounded. Without such a binding, it shall return the unit coordinate form, with dimension one greater than the index and all other coefficients zero. It shall not mutate the store or borrow its coefficient storage as output ownership. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    Stable coordinate identities preserve symbolic dependencies without requiring every variable to have a stored affine substitute.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Variable_Floating_Point_Expression;
    // Members of Variable_Floating_Point_Expression<I, Format>:
    explicit Variable_Floating_Point_Expression(dimension_type index);
    ~Variable_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Check missing and present bindings, trailing indices, copied-output independence, unbounded stored constants/coefficients, refusal and recovered replacement.

    BIBLIOGRAPHY:

    Mine04 | Section 5, variable rule and Linear Form Propagation (PDF page indices 6–7, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Variable_Floating_Point_Expression_defs.hh; src/Variable_Floating_Point_Expression_inlines.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc.

  • PPL-SPEC-001003
    4. Owned exact opposite UID: PPL-SPEC-001003 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The opposite node shall own its child. It shall propagate child refusal; on success, it shall negate all coefficient intervals of the child's form, preserving its dimension, and return true without an additional rounding term. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    Changing a floating-point sign is exact within the modeled finite format.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Opposite_Floating_Point_Expression;
    // Members of Opposite_Floating_Point_Expression<I, Format>:
    explicit Opposite_Floating_Point_Expression(Floating_Point_Expression<I, Format>* child);
    ~Opposite_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Compare coefficient-wise interval negation, symbolic dimensions, refused child/retry and child destruction.

    BIBLIOGRAPHY:

    Mine04 | Section 5, interval linear forms and coefficient-wise arithmetic (PDF page index 6, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Opposite_Floating_Point_Expression_defs.hh; src/Opposite_Floating_Point_Expression_inlines.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc.

  • PPL-SPEC-001004
    5. Owned rounding cast UID: PPL-SPEC-001004 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The cast node shall own its child and model rounding to its Format. It shall propagate child refusal and refuse a child form with an unbounded coefficient before constructing relative error. After these checks, it shall add the relative error of the child's form and the selected absolute-error interval, then return true exactly when all resulting coefficients are bounded. This explicit rounding node shall apply those terms even for zero or a representable child constant; it shall not infer a different source format or a widening conversion from the tree's common format parameter. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    An explicit rounding node needs its own error model even when another interface could prove a particular conversion exact.

    An explicit rounding node needs finite child coefficient magnitudes for its relative-error term, even though an unbounded constant is a valid leaf.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Cast_Floating_Point_Expression;
    // Members of Cast_Floating_Point_Expression<I, Format>:
    Cast_Floating_Point_Expression(Floating_Point_Expression<I, Format>* child);
    ~Cast_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Check a zero child exposes absolute error, nonzero and symbolic children expose relative error, exact rational rounding samples, overflow, refusal/retry and owned destruction.

    Check safe refusal for an unbounded child, then bounded successful replacement. Keep zero and representable-constant controls that still receive explicit cast error.

    BIBLIOGRAPHY:

    Mine04 | Section 5, rounding-error and cast rules (PDF page index 6, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Cast_Floating_Point_Expression_defs.hh; src/Cast_Floating_Point_Expression_inlines.hh; src/Cast_Floating_Point_Expression_templates.hh; src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc.

  • PPL-SPEC-001005
    6. Owned floating sum UID: PPL-SPEC-001005 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The node shall own both ordered children. It shall linearize the first child before the second, propagating refusal. An unbounded child coefficient shall also cause refusal before relative error is constructed; the second child need not be evaluated after a first-child refusal. With successful bounded child forms L1 and L2, it shall enclose the coefficient-wise form L1 + L2 + R(L1) + R(L2) + A, where R is the relative-error helper and A is the selected absolute-error interval. It shall return true exactly when the resulting coefficients are bounded. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    Both operand magnitudes contribute to a conservative rounding enclosure, including cancellation.

    The leaf and rounded-parent protocols have different finite-magnitude requirements; refusal prevents construction of an undefined relative error.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Sum_Floating_Point_Expression;
    // Members of Sum_Floating_Point_Expression<I, Format>:
    Sum_Floating_Point_Expression(Floating_Point_Expression<I, Format>* first,
      Floating_Point_Expression<I, Format>* second);
    ~Sum_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Compare coefficient signs and error radii, independent binary32 tie/cancellation samples, ordered child refusals, overflow and destruction.

    Check unbounded children in both positions, first-child short-circuiting, source preservation and bounded recovery, including nested and borrowed store-output histories.

    BIBLIOGRAPHY:

    Mine04 | Section 5, addition/subtraction rules (PDF page index 6, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Sum_Floating_Point_Expression_defs.hh; src/Sum_Floating_Point_Expression_inlines.hh; src/Sum_Floating_Point_Expression_templates.hh; src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc; tests/Concrete_Expression/ibmroundoff1.cc.

  • PPL-SPEC-001006
    7. Owned floating difference UID: PPL-SPEC-001006 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The node shall own both ordered children. It shall linearize the first child before the second, propagating refusal. An unbounded child coefficient shall also cause refusal before relative error is constructed; the second child need not be evaluated after a first-child refusal. With successful bounded child forms L1 and L2, it shall enclose the coefficient-wise form L1 − L2 + R(L1) + R(L2) + A, where R is the relative-error helper and A is the selected absolute-error interval. It shall return true exactly when the resulting coefficients are bounded. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    Both operand magnitudes contribute to a conservative rounding enclosure, including cancellation.

    The leaf and rounded-parent protocols have different finite-magnitude requirements; refusal prevents construction of an undefined relative error.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Difference_Floating_Point_Expression;
    // Members of Difference_Floating_Point_Expression<I, Format>:
    Difference_Floating_Point_Expression(Floating_Point_Expression<I, Format>* first,
      Floating_Point_Expression<I, Format>* second);
    ~Difference_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Compare coefficient signs and error radii, independent binary32 tie/cancellation samples, ordered child refusals, overflow and destruction.

    Check unbounded children in both positions, first-child short-circuiting, source preservation and bounded recovery, including nested and borrowed store-output histories.

    BIBLIOGRAPHY:

    Mine04 | Section 5, addition/subtraction rules (PDF page index 6, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Difference_Floating_Point_Expression_defs.hh; src/Difference_Floating_Point_Expression_inlines.hh; src/Difference_Floating_Point_Expression_templates.hh; src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc.

  • PPL-SPEC-001007
    8. Owned floating multiplication UID: PPL-SPEC-001007 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The product node shall own both ordered children, linearize them in order and intervalize both forms in the supplied box. If the retained form has an unbounded coefficient, an exactly zero selected scalar shall yield a same-dimension zero form plus the absolute-error interval without constructing relative error; a nonzero selected scalar shall cause refusal. Child refusal or the absence of a bounded scalar selection shall return false. With a bounded selected operand interval J and a bounded retained form L, a successful result shall enclose J * (L + R(L)) + A, retaining the other form's symbolic coordinates. The bounded-width selection shall admit either orientation and one unbounded operand when the other provides a bounded scalar. It shall not promise an optimal multiplication strategy. Final unbounded coefficients shall return false. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    Intervalizing one operand bounds the product while retaining useful dependencies from the other.

    A selected exact zero gives a zero symbolic product without finite retained coefficient magnitudes; only the absolute-error term remains.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Multiplication_Floating_Point_Expression;
    // Members of Multiplication_Floating_Point_Expression<I, Format>:
    Multiplication_Floating_Point_Expression(Floating_Point_Expression<I, Format>* first,
      Floating_Point_Expression<I, Format>* second);
    ~Multiplication_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Check both selected orientations, one/two unbounded operand enclosures, exact rational product rounding, child refusals, finite overflow and owner destruction.

    Check an unbounded retained constant or homogeneous coefficient times exact zero in both selected orientations, including dimension zero and trailing coordinates. Require the selected absolute-error constant and zero homogeneous coefficients. Check nonzero-scalar refusal and bounded recovery.

    BIBLIOGRAPHY:

    Mine04 | Section 5, multiplication and intervalization rules (PDF page indices 6–7, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Multiplication_Floating_Point_Expression_defs.hh; src/Multiplication_Floating_Point_Expression_inlines.hh; src/Multiplication_Floating_Point_Expression_templates.hh; src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc; tests/Concrete_Expression/floatingcontracts1.cc.

  • PPL-SPEC-001008
    9. Owned floating division UID: PPL-SPEC-001008 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The quotient node shall own its numerator and denominator children. It shall linearize and intervalize the denominator first. Denominator refusal or a closed endpoint hull containing zero shall return false before linearizing the numerator; an open zero endpoint shall not evade that conservative rejection. Sign-separated positive or negative unbounded intervals shall be admitted when the selected interval division supports them. After successful numerator linearization, an unbounded numerator coefficient shall cause refusal before relative error is constructed. For accepted numerator form L and divisor enclosure J, the output shall enclose L/J + R(L)/J + A. Numerator refusal or unbounded final coefficients shall return false. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    Testing the complete divisor enclosure before the numerator prevents an unsupported quotient from being accepted.

    Admitting an unbounded nonzero divisor does not remove the finite coefficient requirement of the numerator relative-error computation.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Division_Floating_Point_Expression;
    // Members of Division_Floating_Point_Expression<I, Format>:
    Division_Floating_Point_Expression(Floating_Point_Expression<I, Format>* numerator,
      Floating_Point_Expression<I, Format>* denominator);
    ~Division_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Check denominator-first counters, numerator refusal, zero-crossing and open-zero hulls, both sign-separated rays, exact rational quotient rounding, overflow and destruction.

    Check unbounded numerator refusal after denominator validation, retaining closed-zero rejection, sign-separated unbounded denominator controls, source entry values and bounded successful recovery.

    BIBLIOGRAPHY:

    Mine04 | Section 5, division and intervalization rules (PDF page indices 6–7, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Division_Floating_Point_Expression_defs.hh; src/Division_Floating_Point_Expression_inlines.hh; src/Division_Floating_Point_Expression_templates.hh; src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc; tests/Concrete_Expression/ibmroundoff1.cc.

  • 11. Descriptor-based relative rounding error UID: PPL-SPEC-001010 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a bounded well-formed linear form, static relative_error() shall replace the output with a form of the same dimension. For every coefficient interval [a,b], including the constant, its error coefficient shall enclose [ − mu, mu], where m = max(|a|, |b|). For built-in binary descriptors, u = 2 − p with p excluding the leading significand bit. For normalized IBM hexadecimal short/long arithmetic, u = 161 − p with p equal to six/fourteen fraction digits. A custom three-field descriptor shall use u = BASE − MANTISSA_BITS.

    The source entry value shall determine every coefficient, including when the output aliases it. Independent sources shall remain unchanged. Coefficients shall use sound outward interval arithmetic rather than an inward approximation of the selected error radius. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    Every coefficient needs an enclosing error term; a small inward radius can invalidate the whole successful linearization.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    // Static member of Floating_Point_Expression<I, Format>:
    static void relative_error(const FP_Linear_Form& form, FP_Linear_Form& result);
    
    VERIFICATION_CRITERIA:

    Use exact rational radii for binary, hexadecimal and custom decimal descriptors, positive/negative and uncertain coefficients, zero/trailing dimensions, distinct outputs and source/output aliases.

    BIBLIOGRAPHY:

    Mine04 | Section 5, relative rounding-error definition (PDF page index 6, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/floatingcontracts1.cc.

  • PPL-SPEC-001011
    12. Box-based affine intervalization UID: PPL-SPEC-001011 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Static intervalize() shall enclose the sum of the constant interval and every homogeneous coefficient interval multiplied by the corresponding box interval, using the source form's entry values. The box shall have at least the form's dimension and valid factor intervals for every declared coordinate, including zero coefficients. Its result shall not preserve cross-coordinate correlations beyond those factors. Independent form and box inputs shall remain unchanged. The result shall be a separate interval owner from input form coefficients and box factors. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    An interval enclosure supplies the scalar bounds needed by multiplication and division without changing the underlying affine form.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    // Static member of Floating_Point_Expression<I, Format>:
    static void intervalize(const FP_Linear_Form& form,
      const FP_Interval_Abstract_Store& intervals, I& result);
    
    VERIFICATION_CRITERIA:

    Compare exact rational corner sums for positive/negative/zero coefficients, sparse and trailing dimensions, singleton and interval factors, preserving input snapshots.

    BIBLIOGRAPHY:

    Mine04 | Section 5, intervalization rule (PDF page index 6, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc.

  • PPL-SPEC-001015
    13. Owned-variable symbolic assignment UID: PPL-SPEC-001015 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    linear_form_assign() shall assign a copy of the supplied form's entry value to the node's coordinate in the symbolic store, replacing an existing binding or inserting one. Every other pre-existing binding with a non-singleton-zero coefficient for that coordinate shall be discarded; independent bindings, including explicit zero dependencies and coordinates beyond a form's dimension, shall be retained. A newly assigned form shall be retained, including when it contains the target coordinate; callers shall ensure its interpretation remains valid for their modeled state.

    A form borrowed from the same store shall use its entry value even if invalidation removes the donor. Independent inputs shall remain unchanged. Valid coordinate, coefficient and lifetime prerequisites of 🔗 1. Dependency invalidation shall apply. Allocation and coefficient exceptions may propagate without whole-store rollback; live owners shall remain safely destructible.

    RATIONALE:

    Changing a variable invalidates the other expressions that may depend on its previous value while explicitly recording the caller-supplied new form.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    // Member of Variable_Floating_Point_Expression<I, Format>:
    void linear_form_assign(const FP_Linear_Form& form,
                            FP_Linear_Form_Abstract_Store& symbols) const;
    
    VERIFICATION_CRITERIA:

    Check insertion/replacement, consecutive dependencies, uncertain/zero coefficients, retained keys and values, same-store borrowed donors and independent input snapshots.

    BIBLIOGRAPHY:

    Mine04 | Section 5, Linear Form Propagation (PDF page index 7, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Variable_Floating_Point_Expression_defs.hh; src/Variable_Floating_Point_Expression_inlines.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc.

PPL-LLR-000083
3. Explicit failure of unsupported expression approximation UID: PPL-LLR-000083 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

When an expression approximation cannot establish a sound result in its promised representation for the supplied valid inputs, it shall report failure rather than report an unsound approximation as successful.

RATIONALE:

Some valid concrete expressions cannot be enclosed by the selected finite linear form, including cases involving overflowing bounds or division intervals that contain zero.

COMMENT:

Verification covers expression-approximation success and failure outcomes. Related obligations: 🔗 1. Meaning of successful exact and approximate results.

VERIFICATION_CRITERIA:

Exercise valid cases where a finite sound linearization is unavailable, including documented bound-overflow and division cases. Check the failure classification independently and ensure failed outputs are not interpreted as established enclosures.

SOURCE:

doc/definitions.dox: Linear Forms with Interval Coefficients, linearization failure conditions. src/Floating_Point_Expression_defs.hh: linearization success and failure. src/Division_Floating_Point_Expression_templates.hh: division approximation. src/linearize.hh: failure propagation.

  • PPL-SPEC-000986
    6. Oracle interval and expression-value queries UID: PPL-SPEC-000986 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    FP_Oracle<Target, C> shall define an abstract client-supplied query interface for a coordinate interval, a floating-point constant value and an integer expression value. A true return shall mean that the output is an initialized valid interval enclosing all relevant values under the client's current modeled state. A false return shall mean that the query supplies no usable complete enclosure; callers shall not infer an unchanged output value. An admitted oracle shall report refusal rather than certify an unsound enclosure.

    The oracle and target inputs shall remain live and semantically consistent with the analyzed expression and any affine store throughout one analysis. Callbacks may propagate their documented exceptions. C shall provide the selected valid interval operations; rational interval queries shall not require host floating-point arithmetic merely because the interface is named FP_Oracle. Construction/destruction of the concrete oracle shall remain with its client; the protected nonvirtual base destructor shall not support deleting an owned oracle through a base pointer.

    RATIONALE:

    A true oracle response is an enclosure promise from the analyzer, while explicit refusal prevents a partial query from being treated as established numerical information.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to their corresponding class templates; target-provided excerpts describe the required adapter protocol.

    template <typename Target, typename C> class FP_Oracle;
    virtual bool get_interval(dimension_type coordinate, C& result) const = 0;
    virtual bool get_fp_constant_value(
      const Floating_Point_Constant<Target>& expression, C& result) const = 0;
    virtual bool get_integer_expr_value(
      const Concrete_Expression<Target>& expression, C& result) const = 0;
    // Protected base destructor:
    ~FP_Oracle();
    
    VERIFICATION_CRITERIA:

    Check abstract/protected-destructor type properties, typed callback arguments, direct rational query results, refusals and recovery; verify consuming analyses propagate false without treating stale outputs as evidence.

    SOURCE:

    src/Concrete_Expression_defs.hh; src/Concrete_Expression_inlines.hh; src/Concrete_Expression_types.hh; src/Concrete_Expression.cc; src/Float_defs.hh; tests/expressionprotocolsspec1.cc; tests/expressionprotocolfixture.hh; tests/expressiontype1.cc; tests/expressionpublic1.cc; src/globals_types.hh.

  • 7. Oracle reference-to-coordinate associations UID: PPL-SPEC-000987 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    get_associated_dimensions() shall provide the possible coordinate identities denoted by an approximable reference. On true return, its output set shall contain every possible associated coordinate and shall not contain not_a_dimension(). An empty successful set shall remain distinguishable from a single identity and multiple possible identities; it shall not by itself authorize a numerical enclosure. On false return the set shall not establish a usable association. Returned coordinate identities shall remain consistent with coordinate-value queries and the affine store during the analysis call. The oracle shall not transfer ownership of the target reference or create a new coordinate merely by reporting its identity.

    RATIONALE:

    Symbolic reference identity and numerical value information are different queries; multiple aliases require conservative handling.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to their corresponding class templates; target-provided excerpts describe the required adapter protocol.

    virtual bool get_associated_dimensions(
      const Approximable_Reference<Target>& expression,
      std::set<dimension_type>& result) const = 0;
    
    VERIFICATION_CRITERIA:

    Check typed associations for empty/single/multiple coordinate sets, failure/retry and independent output ownership; verify linearization rejects unavailable/empty associations and conservatively handles multiple identities.

    SOURCE:

    src/Concrete_Expression_defs.hh; src/Concrete_Expression_inlines.hh; src/Concrete_Expression_types.hh; src/Concrete_Expression.cc; src/Float_defs.hh; tests/expressionprotocolsspec1.cc; tests/expressionprotocolfixture.hh; tests/expressiontype1.cc; tests/expressionpublic1.cc; src/globals_types.hh.

  • 1. Target-adapted floating expression evaluation UID: PPL-SPEC-000991 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a well-formed floating-point expression and sound composite abstract store, linearize() shall return true only with a linear form enclosing every modeled expression value consistent with the entry inputs, including the analyzed operations' rounding error. Target nodes and the oracle shall meet 🔗 4. Target-specific concrete-expression adapter protocol, 🔗 6. Oracle interval and expression-value queries and 🔗 7. Oracle reference-to-coordinate associations. Each stored affine binding shall already enclose the corresponding coordinate in that same modeled state. Correlations shall use consistent coordinate identities.

    C shall have a supported native floating-point boundary type and sound interval operations under its initialized arithmetic/FPU prerequisites. Modeled metadata shall not itself establish numerical format support. The selected relative/absolute-error helpers shall support every format for which the operation needs an error bound. Allocation, callback and selected arithmetic operations shall satisfy their documented preconditions.

    On false return, the output shall not establish a complete enclosure; no preservation of its prior value shall be promised. Documented callback, resource and unsupported-operation exceptions may propagate. Output owners shall remain safely destructible and reusable after such failure. Analysis shall use input entry values even when result designates a store binding; only the designated output may then change, and other input bindings and target nodes shall remain unchanged. No node or oracle ownership shall be acquired.

    RATIONALE:

    A successful result is a numerical enclosure promise for the original modeled state, rather than a claim about real arithmetic alone.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool linearize(
      const Concrete_Expression<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Use exact rational modeled arithmetic and independently rounded binary32 samples, retained input snapshots, refusal/recovery, supported native boundary profiles and entry-value alias histories; compare every successful affine enclosure at explicit valuations.

    BIBLIOGRAPHY:

    Mine04 | Section 5, Theorem 1 and the discussion of failed linearization (PDF page index 7, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000992
    2. Floating constant linearization UID: PPL-SPEC-000992 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a floating-constant node, linearize() shall query the oracle for that constant. Refusal shall return false. Success shall replace result with a dimension-zero form whose constant is the returned interval and whose homogeneous coefficients are zero. This leaf shall add no operation-rounding error beyond the oracle's enclosure. A valid unbounded oracle interval shall remain an admitted constant result; true at this leaf shall not by itself certify finite coefficients. The common prerequisites and failure/lifetime rules of 🔗 1. Target-adapted floating expression evaluation shall apply.

    RATIONALE:

    Constant interpretation belongs to the oracle; constructing its affine enclosure must not reinterpret it as an additional arithmetic operation.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool linearize(
      const Concrete_Expression<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Check exact and non-dyadic rational payloads, dimension replacement, unbounded constant intervals, oracle refusal and recovery, without introducing coordinate queries.

    BIBLIOGRAPHY:

    Mine04 | Section 5, constant and variable linearization rules (PDF page index 6, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000993
    3. Unary and unsupported operator dispatch UID: PPL-SPEC-000993 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For unary UPLUS, linearize() shall return the operand's linearization without an additional rounding term. For UMINUS, it shall propagate operand refusal; on success it shall negate every coefficient interval, preserving the operand form's dimension. Unary BNOT shall report unsupported evaluation by throwing std::runtime_error.

    Binary REM, BAND, BOR, BXOR, LSHIFT and RSHIFT shall return false without claiming a result. ADD, SUB, MUL and DIV shall dispatch to their matching helper contracts. Unknown kind/operator codes inconsistent with the target protocol shall be outside the admitted interface. The common prerequisites and failure/lifetime rules of 🔗 1. Target-adapted floating expression evaluation shall apply.

    RATIONALE:

    Expression syntax must distinguish supported arithmetic, exact sign changes and explicit unsupported outcomes.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool linearize(
      const Concrete_Expression<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Check both unary signs on constant and symbolic forms, nested refusal, every named unsupported binary operator and the unary exception, with independent child-query counters and preserved inputs.

    BIBLIOGRAPHY:

    Mine04 | Section 5, interval linear forms and coefficient-wise arithmetic (PDF page index 6, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • 4. Rounding-aware addition linearization UID: PPL-SPEC-000994 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    add_linearize() shall require an ADD node and linearize both operands in the same entry store. When either operand refuses, it shall return false. A successful child form with an unbounded coefficient shall also cause refusal before its relative-error form is constructed; later children need not be evaluated after this refusal. Let L1, L2 be their forms, Rf the selected format's relative-error form from 🔗 21. Format-specific relative-error linear form, and Af the interval returned by compute_absolute_error<C>(f). The output shall soundly enclose the coefficient-wise combination L1 + L2 + Rf(L1) + Rf(L2) + Af, retaining symbolic coordinate terms. It shall return false if the resulting coefficients are unbounded, and true otherwise. 🔗 1. Target-adapted floating expression evaluation shall govern runtime, entry-value, exception and ownership semantics.

    RATIONALE:

    Addition requires both operand-sensitive relative error and an absolute error allowance while retaining useful affine dependence.

    A rounded parent needs finite coefficient magnitudes even when a constant leaf can soundly represent an unbounded value.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool add_linearize(
      const Binary_Operator<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Compare exact rational affine coefficients and independently rounded binary32 sums at explicit valuations, including half-ulp ties, cancellation, unequal dimensions and operand refusal; distinguish removal of each error component.

    Check unbounded constant leaves in either child position, refusal before relative-error construction, first-child short-circuiting and successful bounded recovery. Keep source/store entry-value and alias controls.

    BIBLIOGRAPHY:

    Mine04 | Section 5, addition linearization and relative-error definitions (PDF page index 6, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000995
    5. Rounding-aware subtraction linearization UID: PPL-SPEC-000995 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    sub_linearize() shall require a SUB node and linearize both operands in the same entry store. Operand refusal shall return false. A successful child form with an unbounded coefficient shall also cause refusal before its relative-error form is constructed; later children need not be evaluated after this refusal. Using L1, L2, Rf, Af as in 🔗 4. Rounding-aware addition linearization, the output shall soundly enclose L1 − L2 + Rf(L1) + Rf(L2) + Af, using coefficient-wise interval operations and preserving the operands' coordinate identities. It shall return false if any resulting coefficient is unbounded, and true otherwise. 🔗 1. Target-adapted floating expression evaluation shall govern common prerequisites and failure effects.

    RATIONALE:

    Subtraction must preserve cancellation relationships while accounting for both operands in its rounding bound.

    Finite coefficient magnitudes make the two relative-error components well-defined; an admitted unbounded leaf can therefore cause parent refusal.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool sub_linearize(
      const Binary_Operator<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Use independently rounded subtraction samples, cancellation and nontrivial signs, different symbolic dimensions and refusal at either operand; compare rational coefficient bounds and input snapshots.

    Check unbounded constant leaves on both sides, first-child short-circuiting, safe refusal and bounded recovery without changing operand signs or input entry values.

    BIBLIOGRAPHY:

    Mine04 | Section 5, subtraction linearization and relative-error definitions (PDF page index 6, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000996
    6. Interval-scalar multiplication linearization UID: PPL-SPEC-000996 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    mul_linearize() shall require a MUL node, obtain both operand forms and intervalize both through the oracle. Failure of any required linearization or coordinate query shall return false. It shall select a bounded intervalized operand for scalar multiplication; if neither operand has a bounded interval enclosure it shall return false. If the retained form has an unbounded coefficient, an exactly zero selected scalar shall yield a dimension-zero form containing the absolute-error interval without constructing relative error; a nonzero selected scalar shall cause refusal. Width estimates may choose either bounded operand and shall not promise optimal precision.

    For a bounded retained form, if I1 is selected, the result shall soundly enclose I1L2 + I1Rf(L2) + Af; if I2 is selected it shall soundly enclose I2L1 + I2Rf(L1) + Af. Scalar multiplication shall preserve the other operand's symbolic coordinates. It shall return false for an unbounded result coefficient, and true otherwise. Common notation and prerequisites shall follow 🔗 4. Rounding-aware addition linearization and 🔗 1. Target-adapted floating expression evaluation.

    RATIONALE:

    One operand is enclosed as a scalar interval so that the remaining affine dependence can be retained without introducing nonlinear terms.

    An exact zero scalar annihilates every real coefficient without requiring a finite magnitude for the retained form. A nonzero scalar still requires finite retained coefficients for relative-error construction.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool mul_linearize(
      const Binary_Operator<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Use independent rational products and binary32 rounding, opposite width choices, signed intervals, ties, one/two unbounded enclosures and refusal at each required query; ensure the unselected symbolic dependence remains represented.

    Check an unbounded constant times exact zero in both selected orientations, requiring only the absolute-error constant and dimension zero. Nonzero bounded scalars with unbounded retained coefficients shall refuse. Retain successful unbounded oracle values with bounded coefficient forms.

    BIBLIOGRAPHY:

    Mine04 | Section 5, multiplication and intervalization rules (PDF page indices 6–7, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000997
    7. Nonzero interval-divisor linearization UID: PPL-SPEC-000997 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    div_linearize() shall require a DIV node and first obtain the denominator's linear form and oracle-based interval enclosure. Required query refusal shall return false. If the closed hull of the denominator interval reaches zero it shall return false, including a zero endpoint excluded by openness. Thus a successful division shall not rely on an unproved nonzero denominator. A one-sided unbounded denominator whose closed hull excludes zero shall remain admitted when the selected interval arithmetic supports it.

    It shall then linearize the numerator, propagating refusal. An unbounded numerator coefficient shall cause refusal before its relative-error form is constructed. For numerator form L1 and denominator enclosure I2, it shall soundly enclose L1 ⁄ I2 + Rf(L1) ⁄ I2 + Af, retaining numerator coordinates. An unbounded result coefficient shall return false; a bounded result shall return true. Common prerequisites and notation shall follow 🔗 1. Target-adapted floating expression evaluation and 🔗 4. Rounding-aware addition linearization.

    RATIONALE:

    Division requires established separation from zero before applying a reciprocal scalar enclosure and its rounding allowance.

    A sign-separated unbounded divisor can have a bounded reciprocal, while relative rounding of the numerator requires finite coefficient magnitudes.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool div_linearize(
      const Binary_Operator<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Check positive/negative and one-sided unbounded denominators, interior/closed/open-endpoint zero exclusions, denominator-first refusal and successful retry; compare exact rational quotient and independently rounded binary32 samples.

    Check unbounded numerator refusal after denominator validation, preserving denominator-first queries. Retain bounded numerator controls with positive and negative sign-separated unbounded denominator intervals.

    BIBLIOGRAPHY:

    Mine04 | Section 5, division and intervalization rules (PDF page indices 6–7, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000998
    8. Floating and integer cast linearization UID: PPL-SPEC-000998 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    cast_linearize() shall require a floating-result cast node. For a floating argument it shall linearize that argument, propagating refusal. When the destination format contains every finite value representable by the source format, it shall retain the resulting form without added cast error. A constant enclosure certified by 🔗 11. Constant affine enclosures closed under destination rounding shall also require no added cast error.

    For an integer argument it shall obtain a sound interval through get_integer_expr_value(), returning false on refusal. If the destination contains every finite value of the analyzer boundary format, it shall close any excluded finite endpoints of that interval and retain the resulting constant form without a further error term. Equality of formats shall satisfy this inclusion condition. Other integer enclosures certified by 🔗 11. Constant affine enclosures closed under destination rounding shall remain unchanged without an error term.

    Value-set inclusion shall use is_less_precise_than(): the destination contains the analyzer exactly when !is_less_precise_than(destination, analyzer). The converse difference predicate shall not establish inclusion for incomparable formats.

    In the remaining cases it shall add destination-format relative and absolute error enclosures. An unbounded input coefficient shall cause refusal before relative error is constructed. Unbounded resulting coefficients shall return false and bounded coefficients true. Error-free casts may retain admitted unbounded enclosures; success alone shall not certify finite coefficients. Common numerical and entry-value rules shall follow 🔗 1. Target-adapted floating expression evaluation; unsupported selected error helpers may report their documented exceptions.

    RATIONALE:

    Format value sets form a partial order. Lacking some destination values does not establish that every analyzer value belongs to the destination. Monotone rounding fixes representable finite enclosure endpoints, but may produce a previously excluded endpoint. Closing those endpoints preserves soundness of integer conversions. A closed constant enclosure with exact finite endpoints already contains every rounded result, even when not every interior value is exactly representable.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool cast_linearize(
      const Cast_Operator<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Check same-format, widening and narrowing casts, zero/one and other exact constants, padded zero dimensions and genuine symbolic forms. Compare integer and floating casts with independent exact-rational destination lattices. Include signed modeled128-bit integers without native128 arithmetic, oracle refusal/recovery, input/output store aliases and unsupported selected error helpers.

    Check binary32 analyzer enclosures of integers converted to IBM single, including an enclosure containing no destination value. Check integer casts whose open native endpoints can become rounded results, both for equal and wider destinations. Distinguish certified constant rays and universe from unbounded enclosures requiring an error term. Check open finite endpoints and nonrepresentable finite endpoints against directed rounding neighbors.

    BIBLIOGRAPHY:

    Mine04 | Section 5, floating-point cast linearization rule (PDF page index 6, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/castcontracts1.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • PPL-SPEC-000999
    9. Reference association and symbolic-store lookup UID: PPL-SPEC-000999 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For an approximable reference, linearize() shall obtain its possible coordinate identities from the oracle. Refusal or an empty association set shall return false. For a single associated coordinate, an existing store binding shall be copied into the result; an unbounded copied form shall return false. If that key is absent, the result shall be the exact unit variable form for that coordinate, with dimension equal to its index plus one. This symbolic fallback shall not require a numerical coordinate query.

    For multiple possible coordinates it shall query every required coordinate interval and return false on refusal. Otherwise it shall form their interval hull as a dimension-zero constant form, returning true exactly when its coefficient is bounded. It shall not arbitrarily select one possible identity or combine alternatives as a conjunction. Coordinate validity, entry-value copying and common lifetime/numerical rules shall follow 🔗 7. Oracle reference-to-coordinate associations and 🔗 1. Target-adapted floating expression evaluation.

    RATIONALE:

    A known identity permits affine substitution; several possible identities require a conservative numerical union.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library.

    template <typename Target, typename C>
    bool linearize(
      const Concrete_Expression<Target>& expression,
      const FP_Oracle<Target, C>& oracle,
      const std::map<dimension_type, Linear_Form<C>>& store,
      Linear_Form<C>& result);
    
    VERIFICATION_CRITERIA:

    Check absent/present single keys, independent copies, high valid indices, unbounded stored forms, multiple coordinate hulls, empty/refused sets and failure at first/middle/last value query followed by recovery.

    BIBLIOGRAPHY:

    Mine04 | Section 5, Linear Form Propagation (PDF page index 7, zero-based).

    SOURCE:

    src/linearize.hh; src/Float_defs.hh; src/Float_inlines.hh; src/Float_templates.hh; tests/expressionlinearizationspec1.cc; tests/expressionprotocolfixture.hh; tests/Concrete_Expression/linearize.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/expressionpublic1.cc.

  • 1. Descriptor absolute-error interval UID: PPL-SPEC-001012 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A separate absolute term bounds underflow even when the relative term vanishes, and analyzer storage must not shrink that bound.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    // Public static member of Floating_Point_Expression<I, Format>:
    static PPL_TLS I absolute_error;
    
    VERIFICATION_CRITERIA:

    Compare exact rational radii for all built-in descriptors and custom radix powers, analyzer-subnormal clamping, specialization/thread lifetime and a sound temporary public-field override with restoration.

    SOURCE:

    src/Float_defs.hh; src/Float_templates.hh; src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionthreads1.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/ownedexpressionpublic1.cc.

  • 2. Enumeration-based cached absolute error UID: PPL-SPEC-001013 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    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.

    RATIONALE:

    A cached immutable reference gives repeated analyses the same error bound while retaining an explicit unsupported-format outcome.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I>
    const I& compute_absolute_error(Floating_Point_Format analyzed_format);
    
    VERIFICATION_CRITERIA:

    Check all six supported format/radius pairs using exact rationals, stable reference addresses, preserved values after intervening queries and explicit IBM_DOUBLE rejection.

    SOURCE:

    src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionthreads1.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/ownedexpressionpublic1.cc.

  • PPL-SPEC-001594
    1. IBM hexadecimal format metadata for expression analysis UID: PPL-SPEC-001594 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Internal RELATIONS (Parent): STATEMENT:

    float_ibm_single and float_ibm_double shall provide compile-time numerical metadata for the short and long IBM hexadecimal formats used by floating-expression analysis. Both shall expose radix BASE == 16, characteristic width EXPONENT_BITS == 7 and excess-64 bias EXPONENT_BIAS == 64. MANTISSA_BITS shall count stored fraction bits: 24 for the short format and 56 for the long format, corresponding to six and fourteen hexadecimal digits. The short descriptor shall also expose floating_point_format == IBM_SINGLE.

    Reading these constants shall require no library initialization, floating hardware support or FPU rounding-state setup. Their use in rounded analysis shall retain the numerical and initialization prerequisites of the selected consumer, including 🔗 11. Descriptor-based relative rounding error and 🔗 1. Descriptor absolute-error interval. The cached enumeration-based query shall retain its supported-format domain in 🔗 2. Enumeration-based cached absolute error.

    RATIONALE:

    Expression analysis needs the analyzed format's radix, fraction precision and bias independently of the analyzer's native arithmetic. Stating the precision unit prevents interpreting a bit count as a hexadecimal digit count when selecting rounding-error bounds.

    INTERFACE:

    Public header: <ppl.hh>; implementation names in Parma_Polyhedra_Library.

    struct float_ibm_single {
      static constexpr unsigned int BASE = 16;
      static constexpr unsigned int EXPONENT_BITS = 7;
      static constexpr unsigned int MANTISSA_BITS = 24;
      static constexpr int EXPONENT_BIAS = 64;
      static constexpr Floating_Point_Format floating_point_format = IBM_SINGLE;
    };
    struct float_ibm_double {
      static constexpr unsigned int BASE = 16;
      static constexpr unsigned int EXPONENT_BITS = 7;
      static constexpr unsigned int MANTISSA_BITS = 56;
      static constexpr int EXPONENT_BIAS = 64;
    };
    
    VERIFICATION_CRITERIA:

    Use constant expressions to check every exposed metadata value and the short-format identifier independently of native IBM hardware. Check the existing short and long expression-analysis error bounds against exact rational hexadecimal quantization, including underflow, both signs and consumer rejection of unsupported cached format selections.

    SOURCE:

    src/Float_defs.hh; src/Float_templates.hh; src/Linear_Form_templates.hh; tests/floatrepresentationsspec1.cc; tests/Concrete_Expression/floatingcontracts1.cc; tests/Concrete_Expression/ibmroundoff1.cc; tests/ownedexpressionspec1.cc.

  • PPL-SPEC-000940
    20. Oracle-based interval enclosure and explicit refusal UID: PPL-SPEC-000940 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a live form with supported initialized interval coefficients, intervalize() shall ask the oracle for intervals of its declared variable coordinates. When the oracle supplies valid enclosures for every requested coordinate, a true result shall set result to an interval enclosing all entry-form affine values at independently admitted coefficient and coordinate choices. A dimension-zero form shall need no coordinate query and shall return its constant interval. The form shall remain unchanged.

    If a required oracle query returns false, the method shall return false and shall not claim that result establishes a complete enclosure; no prior result-value preservation shall be promised. Exceptions from the oracle or coefficient operations may propagate. The oracle shall supply initialized intervals and remain valid for the call; overlapping mutation shall follow the operation's numerical/runtime prerequisites. Rational coefficient intervals shall not require native floating-point availability.

    RATIONALE:

    Interval evaluation composes independent coefficient/coordinate products and propagates refusal rather than reporting a partial sum as complete.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    template <typename Target>
    bool intervalize(const FP_Oracle<Target, C>& oracle, C& result) const;
    
    VERIFICATION_CRITERIA:

    Enumerate independent rational corner values for signed uncertain coefficients and coordinate boxes, including inexact native bounds, zero dimension, zero coefficients and failures at first/middle/last queried coordinates followed by recovery. Include exact rational oracle evaluation with native floating-point support disabled.

    BIBLIOGRAPHY:

    Mine04 | Whole work (background on floating-point expressions modeled by interval linear forms).

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • 1. Owned floating-expression protocol and lifetime UID: PPL-SPEC-001000 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Floating_Point_Expression<I, Format> shall provide polymorphic numerical linearization and virtual destruction. FP_Linear_Form shall denote Linear_Form<I>, FP_Interval_Abstract_Store shall denote Box<I> and FP_Linear_Form_Abstract_Store shall denote the map from valid coordinate indices to such forms. I shall have a supported native floating-point boundary type and well-formed interval operations under the selected arithmetic/FPU initialization prerequisites. Format shall provide BASE, MANTISSA_BITS and EXPONENT_BIAS describing the analyzed arithmetic; a format-enumeration member shall not be required. The radix shall be an integer at least two, precision shall be positive, and bias/exponent calculations shall stay within their representable descriptor ranges. Custom decimal radices shall remain admitted. Its modeled rounding and underflow behavior shall meet the selected error bounds in 🔗 11. Descriptor-based relative rounding error and 🔗 1. Descriptor absolute-error interval.

    All expression coordinates and coefficients used in intervalization shall have corresponding intervals in the entry box. The box and every symbolic binding shall soundly describe the same modeled state. A successful linearize() shall enclose all corresponding modeled expression values, including operation rounding. Input entry values shall determine the result, including when the output is a symbolic-store binding. Other input bindings shall remain unchanged. A false result shall not certify an enclosure or promise preservation of the previous output. Allocation, coefficient and custom-node callback exceptions may propagate; live owners and outputs shall remain safely destructible and reusable without whole-operation rollback.

    Pointer-taking concrete nodes shall acquire exclusive ownership of their nonnull child trees after successful construction. Children shall be independently owned, with no shared ownership or cycles. Deleting through the base pointer shall destroy every owned child exactly once. Concrete nodes shall provide neither public copying nor implicit move ownership. Borrowed access to a child shall not transfer its ownership.

    Each of the six unary and binary operator nodes shall expose operand_ptr as std::unique_ptr<Floating_Point_Expression<I, Format>> and accept default-deleter unique_ptr rvalues whose child pointers convert to the base pointer, in addition to its raw-pointer adoption constructor. These arguments shall be nonnull and independently owned. The owning overloads shall not throw and shall consume their arguments' ownership. A pre-existing child owner shall retain its subtree until the parent constructor begins. If evaluating another argument throws, temporary owning arguments already created shall destroy their subtrees during unwinding. Binary nodes shall destroy the first operand before the second operand; unary nodes shall destroy their sole operand. Neither ownership form shall add a child allocation.

    overflows() shall return true exactly when the constant or a homogeneous coefficient interval is unbounded. It shall inspect every declared coordinate, treating absent coefficients as zero under 🔗 6. Dimensions and borrowed coefficient access, without changing the form.

    RATIONALE:

    Owned trees need a numerical success promise and an explicit lifetime model independent of the non-owning target adapters.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Floating_Point_Expression {
    public:
      typedef Linear_Form<I> FP_Linear_Form;
      typedef Box<I> FP_Interval_Abstract_Store;
      typedef std::map<dimension_type, FP_Linear_Form> FP_Linear_Form_Abstract_Store;
      typedef typename I::boundary_type boundary_type;
      typedef typename I::info_type info_type;
      virtual ~Floating_Point_Expression();
      virtual bool linearize(const FP_Interval_Abstract_Store& intervals,
        const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const = 0;
      static bool overflows(const FP_Linear_Form& form);
    };
    
    VERIFICATION_CRITERIA:

    Check virtual destruction, child counters, noncopyable concrete types, nonthrowing consuming construction, first-before-second destruction, rejection of unrelated and const child types, and retention of a caller's owners when argument evaluation throws. Check callback exception/retry, both refusal and recovery, input snapshots and boundedness at each coefficient position. Evaluate successful forms using exact rational and independently rounded native-format samples.

    BIBLIOGRAPHY:

    Mine04 | Section 5, Theorem 1 and failed linearization (PDF page index 7, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Constant_Floating_Point_Expression_defs.hh; src/Constant_Floating_Point_Expression_inlines.hh; src/Variable_Floating_Point_Expression_defs.hh; src/Variable_Floating_Point_Expression_inlines.hh; src/Opposite_Floating_Point_Expression_defs.hh; src/Opposite_Floating_Point_Expression_inlines.hh; src/Cast_Floating_Point_Expression_defs.hh; src/Cast_Floating_Point_Expression_inlines.hh; src/Sum_Floating_Point_Expression_defs.hh; src/Sum_Floating_Point_Expression_inlines.hh; src/Difference_Floating_Point_Expression_defs.hh; src/Difference_Floating_Point_Expression_inlines.hh; src/Multiplication_Floating_Point_Expression_defs.hh; src/Multiplication_Floating_Point_Expression_inlines.hh; src/Division_Floating_Point_Expression_defs.hh; src/Division_Floating_Point_Expression_inlines.hh; src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc.

  • PPL-SPEC-001001
    2. Owned constant construction and evaluation UID: PPL-SPEC-001001 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The two-bound constructor shall store the closed interval between its ordered boundary values. The string constructor shall store the selected interval parser's enclosure of a valid constant expression; it shall not retain the caller's character storage. linearize() shall replace the output by a dimension-zero form containing exactly that stored interval, return true and add no operation-rounding term. A valid unbounded constant interval shall remain an admitted leaf result; true at that leaf shall not imply a finite coefficient. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    A constant is interpreted once; evaluation copies its enclosure without treating it as another arithmetic operation.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Constant_Floating_Point_Expression;
    // Members of Constant_Floating_Point_Expression<I, Format>:
    Constant_Floating_Point_Expression(boundary_type lower, boundary_type upper);
    Constant_Floating_Point_Expression(const char* value);
    ~Constant_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Compare ordered endpoints, decimal text against an exact rational, caller storage lifetime, dimension replacement and admitted unbounded constants.

    BIBLIOGRAPHY:

    Mine04 | Section 5, constant linearization rule (PDF page index 6, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Constant_Floating_Point_Expression_defs.hh; src/Constant_Floating_Point_Expression_inlines.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc.

  • PPL-SPEC-001002
    3. Owned variable lookup and symbolic fallback UID: PPL-SPEC-001002 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a valid coordinate index, variable construction shall retain that identity. If the symbolic store has a binding at that index, linearize() shall copy its entry form to the output and return true exactly when the copied coefficients are bounded. Without such a binding, it shall return the unit coordinate form, with dimension one greater than the index and all other coefficients zero. It shall not mutate the store or borrow its coefficient storage as output ownership. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    Stable coordinate identities preserve symbolic dependencies without requiring every variable to have a stored affine substitute.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Variable_Floating_Point_Expression;
    // Members of Variable_Floating_Point_Expression<I, Format>:
    explicit Variable_Floating_Point_Expression(dimension_type index);
    ~Variable_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Check missing and present bindings, trailing indices, copied-output independence, unbounded stored constants/coefficients, refusal and recovered replacement.

    BIBLIOGRAPHY:

    Mine04 | Section 5, variable rule and Linear Form Propagation (PDF page indices 6–7, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Variable_Floating_Point_Expression_defs.hh; src/Variable_Floating_Point_Expression_inlines.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc.

  • PPL-SPEC-001003
    4. Owned exact opposite UID: PPL-SPEC-001003 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The opposite node shall own its child. It shall propagate child refusal; on success, it shall negate all coefficient intervals of the child's form, preserving its dimension, and return true without an additional rounding term. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    Changing a floating-point sign is exact within the modeled finite format.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Opposite_Floating_Point_Expression;
    // Members of Opposite_Floating_Point_Expression<I, Format>:
    explicit Opposite_Floating_Point_Expression(Floating_Point_Expression<I, Format>* child);
    ~Opposite_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Compare coefficient-wise interval negation, symbolic dimensions, refused child/retry and child destruction.

    BIBLIOGRAPHY:

    Mine04 | Section 5, interval linear forms and coefficient-wise arithmetic (PDF page index 6, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Opposite_Floating_Point_Expression_defs.hh; src/Opposite_Floating_Point_Expression_inlines.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc.

  • PPL-SPEC-001004
    5. Owned rounding cast UID: PPL-SPEC-001004 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The cast node shall own its child and model rounding to its Format. It shall propagate child refusal and refuse a child form with an unbounded coefficient before constructing relative error. After these checks, it shall add the relative error of the child's form and the selected absolute-error interval, then return true exactly when all resulting coefficients are bounded. This explicit rounding node shall apply those terms even for zero or a representable child constant; it shall not infer a different source format or a widening conversion from the tree's common format parameter. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    An explicit rounding node needs its own error model even when another interface could prove a particular conversion exact.

    An explicit rounding node needs finite child coefficient magnitudes for its relative-error term, even though an unbounded constant is a valid leaf.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Cast_Floating_Point_Expression;
    // Members of Cast_Floating_Point_Expression<I, Format>:
    Cast_Floating_Point_Expression(Floating_Point_Expression<I, Format>* child);
    ~Cast_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Check a zero child exposes absolute error, nonzero and symbolic children expose relative error, exact rational rounding samples, overflow, refusal/retry and owned destruction.

    Check safe refusal for an unbounded child, then bounded successful replacement. Keep zero and representable-constant controls that still receive explicit cast error.

    BIBLIOGRAPHY:

    Mine04 | Section 5, rounding-error and cast rules (PDF page index 6, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Cast_Floating_Point_Expression_defs.hh; src/Cast_Floating_Point_Expression_inlines.hh; src/Cast_Floating_Point_Expression_templates.hh; src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc.

  • PPL-SPEC-001005
    6. Owned floating sum UID: PPL-SPEC-001005 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The node shall own both ordered children. It shall linearize the first child before the second, propagating refusal. An unbounded child coefficient shall also cause refusal before relative error is constructed; the second child need not be evaluated after a first-child refusal. With successful bounded child forms L1 and L2, it shall enclose the coefficient-wise form L1 + L2 + R(L1) + R(L2) + A, where R is the relative-error helper and A is the selected absolute-error interval. It shall return true exactly when the resulting coefficients are bounded. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    Both operand magnitudes contribute to a conservative rounding enclosure, including cancellation.

    The leaf and rounded-parent protocols have different finite-magnitude requirements; refusal prevents construction of an undefined relative error.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Sum_Floating_Point_Expression;
    // Members of Sum_Floating_Point_Expression<I, Format>:
    Sum_Floating_Point_Expression(Floating_Point_Expression<I, Format>* first,
      Floating_Point_Expression<I, Format>* second);
    ~Sum_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Compare coefficient signs and error radii, independent binary32 tie/cancellation samples, ordered child refusals, overflow and destruction.

    Check unbounded children in both positions, first-child short-circuiting, source preservation and bounded recovery, including nested and borrowed store-output histories.

    BIBLIOGRAPHY:

    Mine04 | Section 5, addition/subtraction rules (PDF page index 6, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Sum_Floating_Point_Expression_defs.hh; src/Sum_Floating_Point_Expression_inlines.hh; src/Sum_Floating_Point_Expression_templates.hh; src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc; tests/Concrete_Expression/ibmroundoff1.cc.

  • PPL-SPEC-001006
    7. Owned floating difference UID: PPL-SPEC-001006 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The node shall own both ordered children. It shall linearize the first child before the second, propagating refusal. An unbounded child coefficient shall also cause refusal before relative error is constructed; the second child need not be evaluated after a first-child refusal. With successful bounded child forms L1 and L2, it shall enclose the coefficient-wise form L1 − L2 + R(L1) + R(L2) + A, where R is the relative-error helper and A is the selected absolute-error interval. It shall return true exactly when the resulting coefficients are bounded. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    Both operand magnitudes contribute to a conservative rounding enclosure, including cancellation.

    The leaf and rounded-parent protocols have different finite-magnitude requirements; refusal prevents construction of an undefined relative error.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Difference_Floating_Point_Expression;
    // Members of Difference_Floating_Point_Expression<I, Format>:
    Difference_Floating_Point_Expression(Floating_Point_Expression<I, Format>* first,
      Floating_Point_Expression<I, Format>* second);
    ~Difference_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Compare coefficient signs and error radii, independent binary32 tie/cancellation samples, ordered child refusals, overflow and destruction.

    Check unbounded children in both positions, first-child short-circuiting, source preservation and bounded recovery, including nested and borrowed store-output histories.

    BIBLIOGRAPHY:

    Mine04 | Section 5, addition/subtraction rules (PDF page index 6, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Difference_Floating_Point_Expression_defs.hh; src/Difference_Floating_Point_Expression_inlines.hh; src/Difference_Floating_Point_Expression_templates.hh; src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc.

  • PPL-SPEC-001007
    8. Owned floating multiplication UID: PPL-SPEC-001007 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The product node shall own both ordered children, linearize them in order and intervalize both forms in the supplied box. If the retained form has an unbounded coefficient, an exactly zero selected scalar shall yield a same-dimension zero form plus the absolute-error interval without constructing relative error; a nonzero selected scalar shall cause refusal. Child refusal or the absence of a bounded scalar selection shall return false. With a bounded selected operand interval J and a bounded retained form L, a successful result shall enclose J * (L + R(L)) + A, retaining the other form's symbolic coordinates. The bounded-width selection shall admit either orientation and one unbounded operand when the other provides a bounded scalar. It shall not promise an optimal multiplication strategy. Final unbounded coefficients shall return false. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    Intervalizing one operand bounds the product while retaining useful dependencies from the other.

    A selected exact zero gives a zero symbolic product without finite retained coefficient magnitudes; only the absolute-error term remains.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Multiplication_Floating_Point_Expression;
    // Members of Multiplication_Floating_Point_Expression<I, Format>:
    Multiplication_Floating_Point_Expression(Floating_Point_Expression<I, Format>* first,
      Floating_Point_Expression<I, Format>* second);
    ~Multiplication_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Check both selected orientations, one/two unbounded operand enclosures, exact rational product rounding, child refusals, finite overflow and owner destruction.

    Check an unbounded retained constant or homogeneous coefficient times exact zero in both selected orientations, including dimension zero and trailing coordinates. Require the selected absolute-error constant and zero homogeneous coefficients. Check nonzero-scalar refusal and bounded recovery.

    BIBLIOGRAPHY:

    Mine04 | Section 5, multiplication and intervalization rules (PDF page indices 6–7, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Multiplication_Floating_Point_Expression_defs.hh; src/Multiplication_Floating_Point_Expression_inlines.hh; src/Multiplication_Floating_Point_Expression_templates.hh; src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc; tests/Concrete_Expression/floatingcontracts1.cc.

  • PPL-SPEC-001008
    9. Owned floating division UID: PPL-SPEC-001008 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    The quotient node shall own its numerator and denominator children. It shall linearize and intervalize the denominator first. Denominator refusal or a closed endpoint hull containing zero shall return false before linearizing the numerator; an open zero endpoint shall not evade that conservative rejection. Sign-separated positive or negative unbounded intervals shall be admitted when the selected interval division supports them. After successful numerator linearization, an unbounded numerator coefficient shall cause refusal before relative error is constructed. For accepted numerator form L and divisor enclosure J, the output shall enclose L/J + R(L)/J + A. Numerator refusal or unbounded final coefficients shall return false. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    Testing the complete divisor enclosure before the numerator prevents an unsupported quotient from being accepted.

    Admitting an unbounded nonzero divisor does not remove the finite coefficient requirement of the numerator relative-error computation.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    template <typename I, typename Format>
    class Division_Floating_Point_Expression;
    // Members of Division_Floating_Point_Expression<I, Format>:
    Division_Floating_Point_Expression(Floating_Point_Expression<I, Format>* numerator,
      Floating_Point_Expression<I, Format>* denominator);
    ~Division_Floating_Point_Expression() override;
    bool linearize(const FP_Interval_Abstract_Store& intervals,
      const FP_Linear_Form_Abstract_Store& symbols, FP_Linear_Form& result) const override;
    
    VERIFICATION_CRITERIA:

    Check denominator-first counters, numerator refusal, zero-crossing and open-zero hulls, both sign-separated rays, exact rational quotient rounding, overflow and destruction.

    Check unbounded numerator refusal after denominator validation, retaining closed-zero rejection, sign-separated unbounded denominator controls, source entry values and bounded successful recovery.

    BIBLIOGRAPHY:

    Mine04 | Section 5, division and intervalization rules (PDF page indices 6–7, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Division_Floating_Point_Expression_defs.hh; src/Division_Floating_Point_Expression_inlines.hh; src/Division_Floating_Point_Expression_templates.hh; src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/legacyarithmetic1.cc; tests/Concrete_Expression/ibmroundoff1.cc.

  • 11. Descriptor-based relative rounding error UID: PPL-SPEC-001010 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a bounded well-formed linear form, static relative_error() shall replace the output with a form of the same dimension. For every coefficient interval [a,b], including the constant, its error coefficient shall enclose [ − mu, mu], where m = max(|a|, |b|). For built-in binary descriptors, u = 2 − p with p excluding the leading significand bit. For normalized IBM hexadecimal short/long arithmetic, u = 161 − p with p equal to six/fourteen fraction digits. A custom three-field descriptor shall use u = BASE − MANTISSA_BITS.

    The source entry value shall determine every coefficient, including when the output aliases it. Independent sources shall remain unchanged. Coefficients shall use sound outward interval arithmetic rather than an inward approximation of the selected error radius. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    Every coefficient needs an enclosing error term; a small inward radius can invalidate the whole successful linearization.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    // Static member of Floating_Point_Expression<I, Format>:
    static void relative_error(const FP_Linear_Form& form, FP_Linear_Form& result);
    
    VERIFICATION_CRITERIA:

    Use exact rational radii for binary, hexadecimal and custom decimal descriptors, positive/negative and uncertain coefficients, zero/trailing dimensions, distinct outputs and source/output aliases.

    BIBLIOGRAPHY:

    Mine04 | Section 5, relative rounding-error definition (PDF page index 6, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; src/Float_defs.hh; src/Float_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc; tests/Concrete_Expression/floatingcontracts1.cc.

  • PPL-SPEC-001011
    12. Box-based affine intervalization UID: PPL-SPEC-001011 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Static intervalize() shall enclose the sum of the constant interval and every homogeneous coefficient interval multiplied by the corresponding box interval, using the source form's entry values. The box shall have at least the form's dimension and valid factor intervals for every declared coordinate, including zero coefficients. Its result shall not preserve cross-coordinate correlations beyond those factors. Independent form and box inputs shall remain unchanged. The result shall be a separate interval owner from input form coefficients and box factors. The numerical, entry-value and lifetime prerequisites of 🔗 1. Owned floating-expression protocol and lifetime shall apply.

    RATIONALE:

    An interval enclosure supplies the scalar bounds needed by multiplication and division without changing the underlying affine form.

    INTERFACE:

    Public header: <ppl.hh>; names belong to Parma_Polyhedra_Library. Member excerpts apply to the indicated class templates.

    // Static member of Floating_Point_Expression<I, Format>:
    static void intervalize(const FP_Linear_Form& form,
      const FP_Interval_Abstract_Store& intervals, I& result);
    
    VERIFICATION_CRITERIA:

    Compare exact rational corner sums for positive/negative/zero coefficients, sparse and trailing dimensions, singleton and interval factors, preserving input snapshots.

    BIBLIOGRAPHY:

    Mine04 | Section 5, intervalization rule (PDF page index 6, zero-based).

    SOURCE:

    src/Floating_Point_Expression_defs.hh; src/Floating_Point_Expression_inlines.hh; src/Floating_Point_Expression_templates.hh; tests/ownedexpressionspec1.cc; tests/ownedexpressionpublic1.cc.

PPL-LLR-000084
4. Conservative arithmetic on interval linear forms UID: PPL-LLR-000084 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: ALL VERIFICATION_METHODS: Test, Analysis RELATIONS (Parent): RELATIONS (Child): STATEMENT:

Assuming all intermediate calculations satisfy the selected arithmetic profile's documented preconditions, successful addition, subtraction and supported scalar multiplication or division of interval linear forms shall enclose the corresponding real-arithmetic combinations of all coefficient and variable values admitted by the input forms.

RATIONALE:

Expression abstraction composes interval operations; its algebra must preserve enclosure even before modeled floating-point rounding error is added.

COMMENT:

Verification covers interval-linear-form arithmetic and its enclosure guarantees. Related obligations: 🔗 3. Sound interval arithmetic, 🔗 1. Meaning of successful exact and approximate results.

VERIFICATION_CRITERIA:

Derive coefficient intervals independently using exact rational arithmetic and compare form evaluation over selected variable valuations. Include negative scalars, uncertain signs, inexact coefficient arithmetic and admissible division ranges.

BIBLIOGRAPHY:

Mine04 | whole work (background) Mine05th | whole work (background)

SOURCE:

doc/definitions.dox: Linear Forms with Interval Coefficients. src/Linear_Form_defs.hh: algebraic operations on linear forms. src/Linear_Form_templates.hh: coefficient-wise interval calculations.

  • 1. Interval-linear-form meaning and numerical prerequisites UID: PPL-SPEC-000921 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a selected interval type C, a live Linear_Form<C> of dimension d, with coefficient intervals Ai and constant interval B, shall represent the interval-affine expression B + ∑d − 1i = 0Aixi. At each real valuation x, it shall denote the set of sums obtained by choosing each coefficient and the constant independently from their intervals. Repeated use of an interval object shall not establish correlations between those choices. The constant shall occupy no variable coordinate. The declared dimension shall retain trailing zero coefficients.

    C shall provide the interval construction, copying, predicates and arithmetic required by the selected operation. Stored values shall satisfy its initialization, canonical-value and metadata prerequisites. Each successful arithmetic operation shall retain the interval operations' enclosure guarantees and selected numerical-profile conditions; no common optimality or finite-bound guarantee shall be inferred. Native floating-point arithmetic shall require the selected supported boundary format and its rounding-state prerequisites. Storage access shall add no numerical rounding requirement. Shared-facility initialization shall be required where the selected coefficient operation, expression conversion or output formatter requires it; unrelated storage shall add no initialization owner.

    Callers shall synchronize access against overlapping modification and obey shared-temporary restrictions in the selected configuration. Allocation and coefficient exceptions may propagate. Failed construction shall release resources owned by the incomplete form. Unchanged operands shall remain unchanged; modified destinations shall remain destructible, with no universal rollback guarantee.

    RATIONALE:

    Independent interval choices distinguish interval algebra from symbolic cancellation and make the numerical assumptions of every operation explicit.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    template <typename C> class Linear_Form;
    
    VERIFICATION_CRITERIA:

    Derive affine values with independent rational coefficient/valuation choices; check zero dimensions, trailing zeros, uncertain signs, native enclosures and source preservation. Inspect partial-construction cleanup and selected scalar/runtime prerequisites.

    BIBLIOGRAPHY:

    Mine04 | Whole work (background on floating-point expressions modeled by interval linear forms).

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000922
    2. Zero and interval-constant construction UID: PPL-SPEC-000922 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Default construction shall produce dimension zero and the singleton-zero constant. Construction from an initialized interval n shall produce dimension zero and an independent copy of that interval as the constant. Both forms shall report zero coefficients at every valid queried variable. The constant constructor shall preserve empty, bounded, open, singleton and unbounded values admitted by C.

    RATIONALE:

    Constants and ambient dimensions are separate; default construction creates a usable zero rather than an uninitialized interval.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    Linear_Form();
    explicit Linear_Form(const C& n);
    
    VERIFICATION_CRITERIA:

    Check literal zero/constant intervals, dimension zero, out-of-dimension zero queries, source mutation after construction and admitted open/empty/unbounded constants.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000923
    3. Variable and variable-difference construction UID: PPL-SPEC-000923 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Construction from Variable v shall produce dimension v.space_dimension(), singleton coefficient one at v.id(), singleton zero at every other coordinate and a singleton-zero constant. The explicitly selected interval-type overload for v-w shall produce dimension max(v.space_dimension(), w.space_dimension()). Distinct variables shall have singleton coefficients one and minus one, respectively; equal variables shall produce all singleton-zero coefficients while retaining that dimension. The selected interval representation shall enclose the signed unit values even when its boundary type is unsigned.

    A variable dimension exceeding max_space_dimension() shall cause std::length_error before a coefficient vector of that dimension is constructed.

    RATIONALE:

    Dimensioned variable forms provide the basis for building affine expressions without losing high zero coordinates after exact cancellation.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    Linear_Form(Variable v);
    template <typename C>
    Linear_Form<C> operator-(Variable v, Variable w);
    
    VERIFICATION_CRITERIA:

    Check equal/different/high variable indices, literal signed-unit coefficients, every remaining zero coordinate, unsigned-boundary enclosure, rejected dimensions and subsequent successful small construction.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000924
    4. Conversion from integral affine expressions UID: PPL-SPEC-000924 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Construction from Linear_Expression e shall preserve its declared dimension and enclose each integer coefficient and constant in the corresponding interval of C. Exactly representable integer values shall be singleton intervals; other supported conversions shall retain their coefficient-conversion enclosure guarantees. Source representation shall not alter the mathematical result, and the source shall remain unchanged. A source dimension greater than max_space_dimension() shall cause std::length_error. Reading e shall retain its configured coefficient profile and initialization prerequisites.

    RATIONALE:

    Integral expressions enter interval analysis through explicit coefficient conversion while retaining their ambient coordinates.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    Linear_Form(const Linear_Expression& e);
    
    VERIFICATION_CRITERIA:

    Convert independent literal integer vectors from dense/sparse expressions, zero/trailing dimensions and values above exact native precision; check enclosures, source preservation and oversized sparse-source rejection.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000925
    5. Independent copying, assignment and owned lifetimes UID: PPL-SPEC-000925 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Copy construction and copy assignment shall preserve the dimension and all coefficient intervals, including their admitted endpoint metadata. Copies shall own independent coefficient storage. Subsequent mutation or destruction of one form shall not change the other. Assignment shall return the destination reference, including same-object assignment, which shall preserve its value and dimension. Destruction shall release the form's owned vector and constructed coefficient objects. Copying shall not promise to preserve allocation capacity or introduce a move interface beyond the declared C++ operations.

    RATIONALE:

    Independent owned values allow snapshots to survive further interval algebra and owner destruction.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    Linear_Form(const Linear_Form& source);
    Linear_Form& operator=(const Linear_Form& source);
    ~Linear_Form();
    
    VERIFICATION_CRITERIA:

    Check copy/assignment/self-assignment and independent mutation across distinct dimensions, large rational endpoints, source destruction and open/empty intervals; inspect cleanup through failed vector/coefficient construction.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • 6. Dimensions and borrowed coefficient access UID: PPL-SPEC-000926 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Coefficient accessors shall require an lvalue receiver, with the corresponding const && overloads deleted. References shall not outlive the owning form.

    max_space_dimension() shall report the maximum ambient dimension admitted by the form's coefficient-vector representation. This limit shall not promise that allocating every admitted dimension will succeed. space_dimension() shall return the declared ambient dimension. inhomogeneous_term() shall return a const reference to the owned constant. For a valid variable inside that dimension, coefficient(v) shall return a const reference to its owned coefficient. A valid variable outside the declared dimension shall return a const reference to a singleton zero, without extending the form or allocating a coefficient for that variable.

    Owned coefficient references shall be usable until destruction or an operation that may replace/reallocate or transfer the owning vector. The shared zero shall remain usable during its owning type/context lifetime; callers shall not destroy or modify it through a cast.

    RATIONALE:

    Borrowing an absent zero coefficient does not change ambient dimension, while vector ownership determines view validity.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    static dimension_type max_space_dimension();
    dimension_type space_dimension() const;
    const C& coefficient(Variable v) const &;
    const C& inhomogeneous_term() const &;
    
    VERIFICATION_CRITERIA:

    Check reference types and repeated identity for owned cells, zero queries far beyond declared dimensions without growth, constants, trailing dimensions and the representation limit without attempting maximal allocation.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000927
    7. Unary copying and coefficient-wise negation UID: PPL-SPEC-000927 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Unary plus shall return an independent value copy with the same dimension. Unary minus shall return an independent form whose coefficient intervals, including the constant, enclose their entry-value negations. negate() shall apply the same interval negation to the current form and preserve its dimension. Negation shall exchange lower/upper roles and endpoint openness according to C. It shall not cancel an uncertain interval to zero.

    RATIONALE:

    Unary operations retain ambient coordinates and interval uncertainty while distinguishing a new value from in-place modification.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    template <typename C> Linear_Form<C> operator+(const Linear_Form<C>& f);
    template <typename C> Linear_Form<C> operator-(const Linear_Form<C>& f);
    void negate();
    
    VERIFICATION_CRITERIA:

    Use independent rational endpoint negation for positive/negative/straddling/open coefficients and constants; compare unary and in-place results, dimensions and unchanged donors.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000928
    8. Addition of interval linear forms UID: PPL-SPEC-000928 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a+b and a+=b, the result dimension shall be the maximum of the entry dimensions. Each common coefficient interval and the constant shall enclose the sum of the corresponding entry intervals. Coefficients belonging only to the larger form shall be preserved. Compound assignment shall return a by reference; noncompound addition shall return an independent form and preserve both operands. Same-object addition shall use the entry coefficient intervals and their independent-choice interval meaning.

    RATIONALE:

    Padding missing coordinates by exact zero preserves the meaning of addition across ambient dimensions.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    template <typename C>
    Linear_Form<C> operator+(const Linear_Form<C>& a, const Linear_Form<C>& b);
    template <typename C>
    Linear_Form<C>& operator+=(Linear_Form<C>& a, const Linear_Form<C>& b);
    
    VERIFICATION_CRITERIA:

    Derive sums independently over rational endpoint pairs and valuations for both dimension orders, constants, trailing zeros and same-object updates; check return references and unchanged independent inputs.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000929
    9. Subtraction of interval linear forms UID: PPL-SPEC-000929 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a-b and a-=b, the result dimension shall be the maximum of the entry dimensions. Each coefficient interval and constant shall enclose the corresponding entry interval difference. A coordinate present only in a shall be preserved; one present only in b shall be negated. Compound assignment shall return a by reference; the independent result shall preserve both operands. Same-object subtraction shall retain independent interval-choice semantics: subtracting an uncertain interval from itself shall not imply a singleton-zero coefficient.

    RATIONALE:

    Interval subtraction encloses all independently chosen differences, even for aliased operand objects.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    template <typename C>
    Linear_Form<C> operator-(const Linear_Form<C>& a, const Linear_Form<C>& b);
    template <typename C>
    Linear_Form<C>& operator-=(Linear_Form<C>& a, const Linear_Form<C>& b);
    
    VERIFICATION_CRITERIA:

    Check independent difference endpoints and affine valuations in both dimension orders, copied/aliased operands, zero tails and open coefficients; require uncertain self-differences to retain their widths.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000930
    10. Variable addition, subtraction and dimension extension UID: PPL-SPEC-000930 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Adding or subtracting a valid variable shall add or subtract singleton one at its coordinate, preserve every other entry coefficient and constant, and set dimension to the maximum of the form's entry dimension and the variable dimension. The reflected v-f shall negate every coefficient of f then add singleton one at v.id(). Compound operations shall return the modified form by reference. Returning operations shall preserve their operands. Exact cancellation shall not shrink the declared dimension. A variable dimension above max_space_dimension() shall cause std::length_error and leave the existing form unchanged.

    RATIONALE:

    Variable overloads must agree with interval-affine value meaning while safely extending coordinates.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    template <typename C> Linear_Form<C> operator+(Variable v, const Linear_Form<C>& f);
    template <typename C> Linear_Form<C> operator+(const Linear_Form<C>& f, Variable v);
    template <typename C> Linear_Form<C> operator-(Variable v, const Linear_Form<C>& f);
    template <typename C> Linear_Form<C> operator-(const Linear_Form<C>& f, Variable v);
    template <typename C> Linear_Form<C>& operator+=(Linear_Form<C>& f, Variable v);
    template <typename C> Linear_Form<C>& operator-=(Linear_Form<C>& f, Variable v);
    
    VERIFICATION_CRITERIA:

    Check every overload below/inside/above the entry dimension, literal coordinate updates, reflected signs, cancellation with retained dimensions, rejected maximal variables and retry.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000931
    11. Interval scalar translation and reflected subtraction UID: PPL-SPEC-000931 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Adding or subtracting an interval scalar shall change only the constant interval, by the corresponding interval sum or difference, and retain the form's dimension and homogeneous coefficients. n-f shall negate the homogeneous coefficients and produce the interval difference of entry scalar n and the entry constant. Returning operations shall preserve all inputs. Compound operations shall return the destination reference and use the scalar's entry value when it is borrowed from that form, including its constant.

    RATIONALE:

    Translating a form changes its constant without rewriting variable coefficients or silently correlating interval choices.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    template <typename C> Linear_Form<C> operator+(const C& n, const Linear_Form<C>& f);
    template <typename C> Linear_Form<C> operator+(const Linear_Form<C>& f, const C& n);
    template <typename C> Linear_Form<C> operator-(const C& n, const Linear_Form<C>& f);
    template <typename C> Linear_Form<C> operator-(const Linear_Form<C>& f, const C& n);
    template <typename C> Linear_Form<C>& operator+=(Linear_Form<C>& f, const C& n);
    template <typename C> Linear_Form<C>& operator-=(Linear_Form<C>& f, const C& n);
    
    VERIFICATION_CRITERIA:

    Compare independent rational endpoint sums/differences for both scalar positions, straddling/open intervals, zero and high dimensions, borrowed coefficients/constants and compound return identities.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000932
    12. Interval scalar multiplication UID: PPL-SPEC-000932 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Multiplying a form by interval scalar n shall preserve its declared dimension and produce coefficient intervals, including the constant, that enclose every product of the corresponding entry coefficient and the entry scalar. Both returning orders shall preserve their operands and return an independent form. Compound multiplication shall return the modified form reference. A scalar borrowed from the destination shall denote its entry interval for every coefficient update; changing an earlier coefficient shall not change that scalar's meaning for later updates.

    RATIONALE:

    All coefficients must use one entry scalar interval, including when the caller borrowed it from the destination.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    template <typename C> Linear_Form<C> operator*(const C& n, const Linear_Form<C>& f);
    template <typename C> Linear_Form<C> operator*(const Linear_Form<C>& f, const C& n);
    template <typename C> Linear_Form<C>& operator*=(Linear_Form<C>& f, const C& n);
    
    VERIFICATION_CRITERIA:

    Compute all four rational endpoint products independently for signed/zero/straddling scalars, verify affine enclosures over valuations and input preservation, and include scalar references borrowed from constant and homogeneous cells.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000933
    13. Division by an admitted nonzero interval scalar UID: PPL-SPEC-000933 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a supported interval divisor that excludes zero, compound division shall preserve the dimension and enclose, at every coefficient and constant, all quotients of the entry coefficient interval by the entry divisor interval. It shall return the destination reference. The divisor's entry interval shall apply to every coefficient even when borrowed from the destination. Callers shall satisfy the selected interval division's domain, representability and rounding prerequisites; this interface shall not imply that division by zero is admitted.

    RATIONALE:

    Coefficient-wise division needs a stable nonzero scalar value and an explicit valid numerical domain.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    template <typename C>
    Linear_Form<C>& operator/=(Linear_Form<C>& f, const C& n);
    
    VERIFICATION_CRITERIA:

    Derive rational endpoint quotients for positive/negative singleton/nonsingleton divisors, compare independent affine values and return identity, and include valid borrowed homogeneous/constant divisors.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000934
    14. Coefficient equality with implicit trailing zeros UID: PPL-SPEC-000934 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Equality shall return true exactly when the constants compare equal under C and every homogeneous coefficient compares equal after padding the shorter form with singleton-zero intervals. Different declared dimensions alone shall not imply inequality. Inequality shall be the logical complement of equality. Neither operation shall modify its inputs or dimensions. This comparison shall compare interval coefficients; it shall not assert relational equivalence after correlating uncertain coefficient choices.

    RATIONALE:

    An ambient zero tail does not change an interval-affine coefficient description.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    template <typename C> bool operator==(const Linear_Form<C>& a, const Linear_Form<C>& b);
    // Inequality uses C++20 rewriting of operator==.
    
    VERIFICATION_CRITERIA:

    Check Boolean inequality expressions in both operand orders through C++20 equality rewriting, retaining the stated equality and mismatch behavior. Check both argument orders, equal/unequal constants and internal cells, trailing zero/nonzero/uncertain cells, all-zero dimensions, self-comparison and unchanged dimensions.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000935
    15. Ownership-preserving swap UID: PPL-SPEC-000935 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Member and free swap shall exchange the complete owned coefficient values and declared dimensions of two forms without numerical conversion. Future mutation of either form shall affect its received value independently. Same-object swap shall preserve its value and dimension. Swap shall not require copying or re-evaluating every interval coefficient.

    RATIONALE:

    Ownership exchange is a representation operation and must not alter interval meaning.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    void m_swap(Linear_Form& other);
    template <typename C> void swap(Linear_Form<C>& a, Linear_Form<C>& b);
    
    VERIFICATION_CRITERIA:

    Check both swap forms across zero/different dimensions, open/empty/unbounded/large rational values, self-swap, repeated cycles, snapshots and coefficient-copy/allocation inspection.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000936
    16. Coefficient integrity and finite-bound classification UID: PPL-SPEC-000936 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    OK() shall return true when every owned interval coefficient satisfies its interval invariant predicate, and false when any such predicate returns false. overflows() shall return false exactly when the constant and every stored homogeneous coefficient satisfy C::is_bounded(); otherwise it shall return true. The latter shall classify the current coefficient bounds, not certify past arithmetic exactness or the absence of modeled floating-point rounding error. Both queries shall preserve the form and its dimension.

    RATIONALE:

    Current interval validity and finite-bound availability are separate from numerical error proofs.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    bool OK() const;
    bool overflows() const;
    
    VERIFICATION_CRITERIA:

    Check finite forms, unbounded constant/early/late coefficients, zero tails, recovery by assignment; inspect every owned coefficient path and propagation of an individual interval invariant failure.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000937
    17. Reloadable interval-coefficient ASCII representation UID: PPL-SPEC-000937 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    ascii_dump() shall write the dimension followed by the constant and homogeneous intervals in coordinate order, each in C's reloadable ascii_dump() format. Successful loading shall replace the complete form with that declared dimension and those intervals, including endpoint metadata and inactive payloads required by C's format. A dump shall round-trip under a compatible coefficient representation. The overload without a stream argument shall write that same frame on standard error. Dumping shall preserve the source and may propagate stream exceptions.

    ascii_load() shall return false when no valid dimension can be read, when it exceeds max_space_dimension(), or when a required interval record cannot be loaded. Success shall return true after consuming the required record; trailing input shall remain available. A failed load shall leave the form destructible and reusable by complete assignment/loading, with no unchanged-state guarantee. Earlier display-based coefficient encodings shall not be accepted as equivalent machine records.

    RATIONALE:

    Interval metadata must survive machine serialization independently of human-readable formatting.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    void ascii_dump(std::ostream& stream) const;
    void ascii_dump() const;
    bool ascii_load(std::istream& stream);
    
    VERIFICATION_CRITERIA:

    Check literal and round-trip records for zero/high dimensions and scalar families, open/empty/unbounded intervals, stream extent, malformed headers/coefficient truncation and successful reuse after failure.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; src/globals_defs.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000938
    18. Human-readable affine composition UID: PPL-SPEC-000938 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    Stream insertion shall return the supplied stream and preserve the form. It shall display nonzero homogeneous coefficients in increasing variable index order using the current variable formatter. A first singleton-minus-one coefficient shall display a leading minus; singleton-one factors shall omit the coefficient/product marker. A later minus-one coefficient shall use the separator " - "; every other later nonzero coefficient shall use " + ", displaying its interval and "*" when it is not singleton one. The nonzero constant shall follow existing variable terms with " + " and use C's display. If all coefficients are zero, the zero interval shall be displayed. A negative nonunit coefficient or constant shall retain its coefficient display rather than being rewritten into a subtraction. Coefficient display shall use the stream locale/format settings and retain the variable formatter's prerequisites. It shall not serve as the reloadable machine format. print() shall display the same form on standard error without adding a newline.

    RATIONALE:

    Literal coefficient and separator rules make public display stable while reserving reloadable metadata for ASCII serialization.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    namespace IO_Operators {
      template <typename C>
      std::ostream& operator<<(std::ostream& stream, const Linear_Form<C>& f);
    }
    void print() const;
    
    VERIFICATION_CRITERIA:

    Compare literal strings for zero/constant/unit/nonunit/negative/interval coefficients, gaps and canceled tails; check stream identity, formatter restoration, source preservation and separate machine round trips.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; src/globals_defs.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000939
    19. Owned vector and interval memory accounting UID: PPL-SPEC-000939 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    external_memory_in_bytes() shall count allocated vector capacity in bytes and the external memory reported by every constructed coefficient interval. It shall not charge the form for shared zero storage borrowed by out-of-dimension queries. total_memory_in_bytes() shall equal the external count plus sizeof(*this). Counts shall retain the selected coefficient memory-reporting contracts and require representable aggregate byte counts; allocator bookkeeping outside those reports shall not be inferred.

    RATIONALE:

    Capacity and live coefficient payloads jointly determine memory owned by the form.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    memory_size_type external_memory_in_bytes() const;
    memory_size_type total_memory_in_bytes() const;
    
    VERIFICATION_CRITERIA:

    Check total/external identity, vector-capacity lower bounds, large GMP endpoint payload growth, unchanged counts after distant zero queries and ownership transfer through swaps/copies.

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000940
    20. Oracle-based interval enclosure and explicit refusal UID: PPL-SPEC-000940 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a live form with supported initialized interval coefficients, intervalize() shall ask the oracle for intervals of its declared variable coordinates. When the oracle supplies valid enclosures for every requested coordinate, a true result shall set result to an interval enclosing all entry-form affine values at independently admitted coefficient and coordinate choices. A dimension-zero form shall need no coordinate query and shall return its constant interval. The form shall remain unchanged.

    If a required oracle query returns false, the method shall return false and shall not claim that result establishes a complete enclosure; no prior result-value preservation shall be promised. Exceptions from the oracle or coefficient operations may propagate. The oracle shall supply initialized intervals and remain valid for the call; overlapping mutation shall follow the operation's numerical/runtime prerequisites. Rational coefficient intervals shall not require native floating-point availability.

    RATIONALE:

    Interval evaluation composes independent coefficient/coordinate products and propagates refusal rather than reporting a partial sum as complete.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    template <typename Target>
    bool intervalize(const FP_Oracle<Target, C>& oracle, C& result) const;
    
    VERIFICATION_CRITERIA:

    Enumerate independent rational corner values for signed uncertain coefficients and coordinate boxes, including inexact native bounds, zero dimension, zero coefficients and failures at first/middle/last queried coordinates followed by recovery. Include exact rational oracle evaluation with native floating-point support disabled.

    BIBLIOGRAPHY:

    Mine04 | Whole work (background on floating-point expressions modeled by interval linear forms).

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-000941
    21. Format-specific relative-error linear form UID: PPL-SPEC-000941 STATUS: APPROVED COMPONENT: EXPRESSION_ANALYSIS APPLICABILITY: IF_CPP, NATIVE_FP_AVAILABLE VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a form with nonempty bounded supported floating-point intervals, relative_error(format, result) shall preserve the entry dimension and replace result by a form whose coefficient at each coordinate and constant encloses the corresponding magnitude bound multiplied by [ − u, u]. The magnitude bound shall be the maximum absolute value of that entry interval's endpoints. The relative-error unit u shall be 2 − 10, 2 − 23, 2 − 52, 2 − 112 and 2 − 63 for IEEE754_HALF, IEEE754_SINGLE, IEEE754_DOUBLE, IEEE754_QUAD and INTEL_DOUBLE_EXTENDED, respectively. It shall be 2 − 20 for IBM_SINGLE and 2 − 52 for IBM_DOUBLE.

    The source shall remain unchanged unless it is also result; in that case the complete result shall still use the source's entry intervals and dimension. This operation shall construct the relative-error component; it shall not alone establish a complete floating-point linearization or supply a separate absolute error term for underflow. All evaluated boundary and interval operations shall satisfy their supported-format, rounding and representability prerequisites.

    RATIONALE:

    Analyzed-format error units and entry-value alias semantics are needed to compose a sound rounding-error form.

    INTERFACE:

    Public header: <ppl.hh>. Names belong to Parma_Polyhedra_Library; member excerpts belong to Linear_Form<C>.

    void relative_error(Floating_Point_Format format, Linear_Form& result) const;
    
    VERIFICATION_CRITERIA:

    Use independently specified powers of two and rational magnitude products for every named format, zero/unequal-dimensional outputs, signed/zero/uncertain coefficients, preserved donors and same-object output.

    BIBLIOGRAPHY:

    Mine04 | Whole work (background on floating-point expressions modeled by interval linear forms).

    SOURCE:

    src/Linear_Form_defs.hh; src/Linear_Form_inlines.hh; src/Linear_Form_templates.hh; tests/linearformspec1.cc; tests/linearformstorage1.cc; tests/linearformscalar1.cc; tests/linearformvariables1.cc; tests/linearformoutput1.cc; tests/linearformlegacy1.cc; tests/linearformpublic1.cc; tests/inactiveboundcodec.hh.

  • PPL-SPEC-001376
    1. Sound polyhedral filtering by interval linear forms UID: PPL-SPEC-001376 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For an admitted nonempty receiver, floating-point formats and bounded interval coefficients, linear-form refinement shall retain every receiver state satisfying some coefficient instantiation of the selected comparison, and shall introduce no state outside the receiver. The basic overload shall select less-than or less-or-equal by is_strict; a closed receiver may relax strictness. Generalized refinement shall apply both non-strict filters for equality, reverse operands for greater-than relations, and retain the receiver for disequality. Excess input dimension shall throw std::invalid_argument; an invalid relation enumeration shall throw std::runtime_error. If the form or its normalization overflows the admitted analysis range, refinement may leave the receiver unchanged rather than use an unsound finite coefficient. External forms shall preserve their values.

    The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.

    RATIONALE:

    Interval coefficients describe a family of real affine expressions; sound filtering must retain the union of their feasible states.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.

    template <typename FP_Format, typename Interval_Info>
    void refine_with_linear_form_inequality(
     const Linear_Form<Interval<FP_Format, Interval_Info>>& left,
     const Linear_Form<Interval<FP_Format, Interval_Info>>& right,
     bool is_strict=false);
    template <typename FP_Format, typename Interval_Info>
    void generalized_refine_with_linear_form_inequality(
     const Linear_Form<Interval<FP_Format, Interval_Info>>& left,
     const Linear_Form<Interval<FP_Format, Interval_Info>>& right,
     Relation_Symbol);
    
    VERIFICATION_CRITERIA:

    Enumerate endpoint and interior coefficient choices on literal boxes, exact dyadic coefficients, every relation symbol, strict/closed behavior, overflowing normalization and invalid dimensions.

    SOURCE:

    src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/polyhedronintervalformspec1.cc.

  • PPL-SPEC-001377
    2. Sound polyhedral image of interval linear forms UID: PPL-SPEC-001377 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For an admitted nonempty receiver and a linear form with bounded interval coefficients in a supported floating-point format, affine-form image shall contain every target state produced by an admitted coefficient instantiation, with other coordinates unchanged in the concrete transition. The result may conservatively lose correlations. It shall preserve dimension and topology. Invalid target or excess form dimension shall throw std::invalid_argument. If the form or normalization overflows the analysis range, returning universe shall be permitted. External forms shall preserve their values. Arithmetic and rounding prerequisites of the selected interval and floating-expression profiles shall apply.

    The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.

    RATIONALE:

    Normalization separates interval uncertainty from exact rational coefficients; an overflowing abstraction must widen instead of silently discard concrete outcomes.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.

    template <typename FP_Format, typename Interval_Info>
    void affine_form_image(Variable,
     const Linear_Form<Interval<FP_Format, Interval_Info>>&);
    
    VERIFICATION_CRITERIA:

    Compare exact dyadic images with rational transforms, enumerate uncertain coefficients, include subnormals, cancellation, unbounded state coordinates, overflow fallback and argument rejection.

    SOURCE:

    src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/polyhedronintervalformspec1.cc.

  • PPL-SPEC-001378
    3. Polyhedral refinement of a floating interval store UID: PPL-SPEC-001378 STATUS: APPROVED COMPONENT: POLYHEDRA APPLICABILITY: IF_CPP VERIFICATION_METHODS: Test, Analysis, Inspection LANGUAGE: CPP VISIBILITY: Public RELATIONS (Parent): STATEMENT:

    For a dimension-compatible floating interval box, store refinement shall intersect that store with a sound box enclosure of the receiver. It shall not change the polyhedron, and shall retain every point that belonged to both the entry store and the receiver. Directed conversion and endpoint inclusion shall follow the selected interval-profile contracts; the result need not be the best box enclosure of the intersection. Dimension incompatibility shall follow the box intersection's invalid-argument channel.

    The initialization, lifetime, synchronization, coefficient-profile and failure conditions in 🔗 1. Polyhedral values, coefficient profile and valid use shall apply, including intermediate calculations. Unless dimension-changing behavior is specified, ambient dimension and the receiver's closed or NNC topology shall be preserved. Logically const queries may normalize caches while preserving the represented set; borrowed views shall follow 🔗 2. Equivalent borrowed polyhedral descriptions.

    RATIONALE:

    Intersecting sound enclosures is safe, while abstracting before intersection can lose relational precision.

    INTERFACE:

    Public header: <ppl.hh>; namespace Parma_Polyhedra_Library. Members belong to Polyhedron and are inherited by both concrete classes unless a concrete class or free function is shown.

    template <typename FP_Format, typename Interval_Info>
    void refine_fp_interval_abstract_store(
     Box<Interval<FP_Format, Interval_Info>>&) const;
    
    VERIFICATION_CRITERIA:

    Check directed rational-to-floating endpoints, empty and dimension mismatch, source preservation and concrete intersection retention for relational examples.

    SOURCE:

    src/Polyhedron_defs.hh; src/Polyhedron_inlines.hh; src/Polyhedron_public.cc; src/Polyhedron_nonpublic.cc; src/Polyhedron_templates.hh; src/C_Polyhedron_defs.hh; src/C_Polyhedron_inlines.hh; src/C_Polyhedron.cc; src/NNC_Polyhedron_defs.hh; src/NNC_Polyhedron_inlines.hh; src/NNC_Polyhedron.cc; tests/polyhedronintervalformspec1.cc.