44 if (right <= otherLeft)
48 else if (right <= otherRight)
50 *
this =
Scalar(otherRight);
52 else if (left < otherRight)
73 if (left >= otherRight)
77 else if (left >= otherLeft)
81 else if (right > otherLeft)
93 if (c <
min() || c >
max())
123 if (c <
min() || c >
max())
137 *
this =
Scalar(static_cast<s4>(c));
void lowerBoundOfMinimumWith(const Scalar &)
Computes a lower bound of the minimum of this and the specified scalar.
Scalar()
Creates a scalar which equals zero.
An integral value of the form Constant + NumericInstruction.
s4 lower() const
The smallest value this instruction can return.
OStream & operator<<(OStream &OS, const std::string &t)
void upperBoundOfMaximumWith(const Scalar &)
Computes an upper bound of the maximum of this and the specified scalar.
NumericInstruction instruction() const
bool tryAdd(const Scalar &)
Tries to add a scalar to this scalar.
s4 upper() const
The largest value this instruction can return.
NumericInstruction _instruction
bool trySubtract(const Scalar &)
Tries to subtract a scalar from this scalar.