use of org.evosuite.symbolic.expr.fp.RealValue in project evosuite by EvoSuite.
the class RINT method executeFunction.
@Override
public Object executeFunction() {
double res = this.getConcDoubleRetVal();
RealValue realExpression = this.getSymbRealArgument(0);
RealValue rintExpr;
if (realExpression.containsSymbolicVariable()) {
Operator op = Operator.RINT;
rintExpr = new RealUnaryExpression(realExpression, op, res);
} else {
rintExpr = this.getSymbRealRetVal();
}
return rintExpr;
}
use of org.evosuite.symbolic.expr.fp.RealValue in project evosuite by EvoSuite.
the class SIN method executeFunction.
@Override
public Object executeFunction() {
double res = this.getConcDoubleRetVal();
RealValue realExpression = this.getSymbRealArgument(0);
RealValue sinExpr;
if (realExpression.containsSymbolicVariable()) {
Operator op = Operator.SIN;
sinExpr = new RealUnaryExpression(realExpression, op, res);
} else {
sinExpr = this.getSymbRealRetVal();
}
return sinExpr;
}
use of org.evosuite.symbolic.expr.fp.RealValue in project evosuite by EvoSuite.
the class TANH method executeFunction.
@Override
public Object executeFunction() {
double res = this.getConcDoubleRetVal();
RealValue realExpression = this.getSymbRealArgument(0);
RealValue tanhExpr;
if (realExpression.containsSymbolicVariable()) {
Operator op = Operator.TANH;
tanhExpr = new RealUnaryExpression(realExpression, op, res);
} else {
tanhExpr = this.getSymbRealRetVal();
}
return tanhExpr;
}
use of org.evosuite.symbolic.expr.fp.RealValue in project evosuite by EvoSuite.
the class ToRadians method executeFunction.
@Override
public Object executeFunction() {
double res = this.getConcDoubleRetVal();
RealValue realExpression = this.getSymbRealArgument(0);
RealValue toRadiansExpr;
if (realExpression.containsSymbolicVariable()) {
Operator op = Operator.TORADIANS;
toRadiansExpr = new RealUnaryExpression(realExpression, op, res);
} else {
toRadiansExpr = this.getSymbRealRetVal();
}
return toRadiansExpr;
}
use of org.evosuite.symbolic.expr.fp.RealValue in project evosuite by EvoSuite.
the class EXPM1 method executeFunction.
@Override
public Object executeFunction() {
double res = this.getConcDoubleRetVal();
RealValue realExpression = this.getSymbRealArgument(0);
RealValue expm1Expr;
if (realExpression.containsSymbolicVariable()) {
Operator op = Operator.EXPM1;
expm1Expr = new RealUnaryExpression(realExpression, op, res);
} else {
expm1Expr = this.getSymbRealRetVal();
}
return expm1Expr;
}
Aggregations