Parma Polyhedra Library requirements
Abstract expression analysis

Abstract expression analysis

UID:
VERSION:
CLASSIFICATION:
PREFIX:
Type
Level
MID
UID
REFS
Title
Statement
Rationale
Comment
BIBLIOGRAPHY
STATUS
COMPONENT
APPLICABILITY
VERIFICATION_METHODS
VERIFICATION_CRITERIA
SOURCE
LANGUAGE
VISIBILITY
INTERFACE
LLR
1
PPL-LLR-000081
PPL-LLR-000081
Identity of modeled numeric types

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.

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.

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

APPROVED
EXPRESSION_ANALYSIS
ALL
Test, Analysis

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.

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.

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

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.

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

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.

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

APPROVED
EXPRESSION_ANALYSIS
ALL
Test, Analysis

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.

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.

LLR
3
PPL-LLR-000083
PPL-LLR-000083
Explicit failure of unsupported expression approximation

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.

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

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

APPROVED
EXPRESSION_ANALYSIS
ALL
Test, Analysis

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.

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.

LLR
4
PPL-LLR-000084
PPL-LLR-000084
Conservative arithmetic on interval linear forms

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.

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

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

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

APPROVED
EXPRESSION_ANALYSIS
ALL
Test, Analysis

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.

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.