Represents a numeric interval [low, high] in abstract interpretation. Supports basic arithmetic operations and comparisons on intervals.

Special cases:

  • FULL: (-∞, +∞) represents the interval containing all numbers
  • EMPTY: Empty interval (∅) represents an invalid or undefined interval

This class implements interval arithmetic for abstract interpretation, following standard interval arithmetic rules for operations like addition, multiplication, division etc.

Error when performing division by an interval containing zero

Constructors

Properties

high: NumImpl
low: NumImpl
EMPTY: Interval = ...
FULL: Interval = ...

Methods