Search in sources :

Example 1 with Arithmetic

use of org.candle.decompiler.intermediate.expression.Arithmetic in project candle-decompiler by bradsdavis.

the class MethodIntermediateVisitor method processArithmeticTwoStackOperations.

protected void processArithmeticTwoStackOperations(ArithmeticType type) {
    Expression right = context.getExpressions().pop();
    Expression left = context.getExpressions().pop();
    Expression addExp = new Arithmetic(context.getCurrentInstruction(), left, right, type);
    context.getExpressions().push(addExp);
}
Also used : TypedExpression(org.candle.decompiler.intermediate.expression.TypedExpression) Expression(org.candle.decompiler.intermediate.expression.Expression) Arithmetic(org.candle.decompiler.intermediate.expression.Arithmetic)

Aggregations

Arithmetic (org.candle.decompiler.intermediate.expression.Arithmetic)1 Expression (org.candle.decompiler.intermediate.expression.Expression)1 TypedExpression (org.candle.decompiler.intermediate.expression.TypedExpression)1