binaryOp converts the given LLVM IR binary operation to a corresponding Go expression.
(x value.Value, op token.Token, y value.Value)
| 539 | // binaryOp converts the given LLVM IR binary operation to a corresponding Go |
| 540 | // expression. |
| 541 | func (d *decompiler) binaryOp(x value.Value, op token.Token, y value.Value) ast.Expr { |
| 542 | return &ast.BinaryExpr{ |
| 543 | X: d.value(x), |
| 544 | Op: op, |
| 545 | Y: d.value(y), |
| 546 | } |
| 547 | } |
| 548 | |
| 549 | // convert returns a Go statement for converting the given LLVM IR value into |
| 550 | // the specified type. |
no test coverage detected