49 return fabs(C->evaluate());
62 double temp = C->evaluate();
112 return std::min(left->evaluate(),right->evaluate());
125 return std::max(left->evaluate(),right->evaluate());
139 return left->evaluate()+right->evaluate();
156 return left->evaluate()-right->evaluate();
173 return left->evaluate()*right->evaluate();
186 return left->evaluate()/right->evaluate();
199 double temp = exp->evaluate();
200 if (temp > the_max) {
220 double temp = exp->evaluate();
221 if (temp < the_min) {
241 the_sum += exp->evaluate();
259 the_product *= exp->evaluate();
299 using namespace flopc;
Constant_pos(const Constant &c)
Constant_exp(const Constant &i, const Constant &j)
Constant maximum(const Constant &a, const Constant &b)
Returns the larger of two constants.This is used in the formation of an expression.
Constant_min_2(const Constant &i, const Constant &j)
Constant_sum(const MP_domain &i, const Constant &e)
Constant_max_2(const Constant &i, const Constant &j)
Constant abs(const Constant &c)
for computing the absolute value of a constant value.This is used in the normal formation of an expre...
Constant operator/(const Constant &a, const Constant &b)
Returns the quotient of two constants.This is used in the formation of an expression.
Constant_max(const MP_domain &i, const Constant &e)
Constant_abs(const Constant &c)
Constant_div(const Constant &i, const Constant &j)
Constant product(const MP_domain &i, const Constant &e)
Returns the sum of two constants.
Constant_floor(const Constant &c)
Representation of an index.This is one of the main public interface classes. It is used to iterate th...
Constant_double(double d)
Utility for doing reference counted pointers.
Constant ceil(const Constant &c)
The ceiling integral value of the input constant.This is used in the formation of an expression...
Constant floor(const Constant &c)
The floor integral value of the input constant.This is used in the formation of an expression...
Constant operator+(const Constant &a, const Constant &b)
Returns the sum of two constants.This is used in the formation of an expression.
Constant_mult(const Constant &i, const Constant &j)
Representation of an expression involving an index.This is one of the main public interface classes...
Base class for all "constant" types of data.
Constant_index(const MP_index_exp &i)
Constant_minus(const Constant &i, const Constant &j)
Reference to a set of data.
Constant_min(const MP_domain &i, const Constant &e)
Constant_plus(const Constant &i, const Constant &j)
Constant operator-(const Constant &a, const Constant &b)
Returns the difference of two constants.This is used in the formation of an expression.
Constant(Constant_base *r)
Constant minimum(const Constant &a, const Constant &b)
Returns the smaller of two constants.This is used in the formation of an expression.
Range over which some other constuct is defined.This is one of the main public interface classes...
Function object. Often used.
Constant pos(const Constant &c)
for returning non-negative value of the constant.This is used in the formation of an expression...
Reference counted class for all "constant" types of data.
Constant operator*(const Constant &a, const Constant &b)
Returns the product of two constants.This is used in the formation of an expression.
Constant sum(const MP_domain &i, const Constant &e)
Returns the sum of two constants.
Constant_ceil(const Constant &c)
Constant_product(const MP_domain &i, const Constant &e)