Search in sources :

Example 31 with Operator

use of org.evosuite.symbolic.expr.Operator in project evosuite by EvoSuite.

the class ATAN method executeFunction.

@Override
public Object executeFunction() {
    double res = this.getConcDoubleRetVal();
    RealValue realExpression = this.getSymbRealArgument(0);
    RealValue atanExpr;
    if (realExpression.containsSymbolicVariable()) {
        Operator op = Operator.ATAN;
        atanExpr = new RealUnaryExpression(realExpression, op, res);
    } else {
        atanExpr = this.getSymbRealRetVal();
    }
    return atanExpr;
}
Also used : RealValue(org.evosuite.symbolic.expr.fp.RealValue) Operator(org.evosuite.symbolic.expr.Operator) RealUnaryExpression(org.evosuite.symbolic.expr.fp.RealUnaryExpression)

Example 32 with Operator

use of org.evosuite.symbolic.expr.Operator in project evosuite by EvoSuite.

the class LOG1P method executeFunction.

@Override
public Object executeFunction() {
    double res = this.getConcDoubleRetVal();
    RealValue realExpression = this.getSymbRealArgument(0);
    RealValue log1pExpr;
    if (realExpression.containsSymbolicVariable()) {
        Operator op = Operator.LOG1P;
        log1pExpr = new RealUnaryExpression(realExpression, op, res);
    } else {
        log1pExpr = this.getSymbRealRetVal();
    }
    return log1pExpr;
}
Also used : RealValue(org.evosuite.symbolic.expr.fp.RealValue) Operator(org.evosuite.symbolic.expr.Operator) RealUnaryExpression(org.evosuite.symbolic.expr.fp.RealUnaryExpression)

Example 33 with Operator

use of org.evosuite.symbolic.expr.Operator 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;
}
Also used : RealValue(org.evosuite.symbolic.expr.fp.RealValue) Operator(org.evosuite.symbolic.expr.Operator) RealUnaryExpression(org.evosuite.symbolic.expr.fp.RealUnaryExpression)

Example 34 with Operator

use of org.evosuite.symbolic.expr.Operator 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;
}
Also used : RealValue(org.evosuite.symbolic.expr.fp.RealValue) Operator(org.evosuite.symbolic.expr.Operator) RealUnaryExpression(org.evosuite.symbolic.expr.fp.RealUnaryExpression)

Example 35 with Operator

use of org.evosuite.symbolic.expr.Operator 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;
}
Also used : RealValue(org.evosuite.symbolic.expr.fp.RealValue) Operator(org.evosuite.symbolic.expr.Operator) RealUnaryExpression(org.evosuite.symbolic.expr.fp.RealUnaryExpression)

Aggregations

Operator (org.evosuite.symbolic.expr.Operator)39 RealUnaryExpression (org.evosuite.symbolic.expr.fp.RealUnaryExpression)25 RealValue (org.evosuite.symbolic.expr.fp.RealValue)25 SmtExpr (org.evosuite.symbolic.solver.smt.SmtExpr)14 RealBinaryExpression (org.evosuite.symbolic.expr.fp.RealBinaryExpression)8 LinkedList (java.util.LinkedList)5 Expression (org.evosuite.symbolic.expr.Expression)4 IntegerBinaryExpression (org.evosuite.symbolic.expr.bv.IntegerBinaryExpression)4 IntegerUnaryExpression (org.evosuite.symbolic.expr.bv.IntegerUnaryExpression)4 RealUnaryToIntegerExpression (org.evosuite.symbolic.expr.bv.RealUnaryToIntegerExpression)4 StringBinaryToIntegerExpression (org.evosuite.symbolic.expr.bv.StringBinaryToIntegerExpression)4 StringMultipleToIntegerExpression (org.evosuite.symbolic.expr.bv.StringMultipleToIntegerExpression)4 StringUnaryToIntegerExpression (org.evosuite.symbolic.expr.bv.StringUnaryToIntegerExpression)4 GetFieldExpression (org.evosuite.symbolic.expr.ref.GetFieldExpression)4 StringBinaryExpression (org.evosuite.symbolic.expr.str.StringBinaryExpression)4 StringMultipleExpression (org.evosuite.symbolic.expr.str.StringMultipleExpression)4 StringUnaryExpression (org.evosuite.symbolic.expr.str.StringUnaryExpression)4 SmtIntConstant (org.evosuite.symbolic.solver.smt.SmtIntConstant)3 RegExp (dk.brics.automaton.RegExp)1 SmtStringConstant (org.evosuite.symbolic.solver.smt.SmtStringConstant)1