1 #ifndef LOCARNA_INFTY_INT_HH 2 #define LOCARNA_INFTY_INT_HH 141 return min_finity <= val && val <=
max_finity;
friend TaintedInftyInt max(const TaintedInftyInt &x, const TaintedInftyInt &y)
Maximum.
Definition: infty_int.hh:617
static const InftyInt neg_infty
normalized negative infinity
Definition: infty_int.hh:349
friend bool operator==(const TaintedInftyInt &x, const TaintedInftyInt &y)
Equality test.
Definition: infty_int.hh:598
InftyInt(const TaintedInftyInt &x)
Construct from potentially tainted.
Definition: infty_int.hh:395
InftyInt & operator-=(const FiniteInt &x)
Definition: infty_int.hh:558
TaintedInftyInt & operator=(const FiniteInt &x)
Assignment.
Definition: infty_int.hh:604
Definition: infty_int.hh:56
base_type val
value
Definition: infty_int.hh:62
friend bool operator>(const TaintedInftyInt &x, const TaintedInftyInt &y)
Definition: infty_int.hh:627
friend bool operator<(const TaintedInftyInt &x, const TaintedInftyInt &y)
Definition: infty_int.hh:633
friend bool operator<=(const TaintedInftyInt &x, const TaintedInftyInt &y)
Definition: infty_int.hh:645
Definition: aligner.cc:17
long int base_type
the base type
Definition: infty_int.hh:59
FiniteInt()
Construct empty.
Definition: infty_int.hh:470
static const base_type max_finity
maximum finite value
Definition: infty_int.hh:68
InftyInt()
Construct empty.
Definition: infty_int.hh:368
const base_type & finite_value() const
Access finite value.
Definition: infty_int.hh:488
base_type finite_value() const
Convert finite value to base type.
Definition: infty_int.hh:161
TaintedInftyInt()
Construct empty.
Definition: infty_int.hh:80
static const base_type min_finity
minimum finite value
Definition: infty_int.hh:65
Definition: infty_int.hh:344
friend TaintedInftyInt operator+(const TaintedInftyInt &x, const FiniteInt &y)
Add.
Definition: infty_int.hh:518
static const InftyInt pos_infty
normalized positive infinity
Definition: infty_int.hh:351
static const base_type max_normal_pos_infty
maximum normal infinite value
Definition: infty_int.hh:74
FiniteInt(base_type x)
Construct from base type value.
Definition: infty_int.hh:478
Definition: infty_int.hh:464
InftyInt(const base_type &x)
Construct from base type.
Definition: infty_int.hh:377
InftyInt & operator+=(const FiniteInt &x)
Definition: infty_int.hh:551
TaintedInftyInt(const base_type &x)
Construct from base type.
Definition: infty_int.hh:88
friend std::ostream & operator<<(std::ostream &out, const TaintedInftyInt &x)
Definition: infty_int.cc:40
bool is_finite() const
Definition: infty_int.hh:140
bool is_neg_infty() const
Definition: infty_int.hh:120
bool is_pos_infty() const
Definition: infty_int.hh:130
friend TaintedInftyInt operator-(const TaintedInftyInt &x, const FiniteInt &y)
Subtract.
Definition: infty_int.hh:526
static base_type max_finite()
maximum finite value
Definition: infty_int.hh:110
bool is_normal() const
Definition: infty_int.hh:150
static base_type min_finite()
minimum finite value
Definition: infty_int.hh:99
friend TaintedInftyInt min(const TaintedInftyInt &x, const TaintedInftyInt &y)
Minimum.
Definition: infty_int.hh:611
static const base_type min_normal_neg_infty
minimum normal infinite value
Definition: infty_int.hh:71
friend bool operator>=(const TaintedInftyInt &x, const TaintedInftyInt &y)
Definition: infty_int.hh:639