MCPcopy Create free account
hub / github.com/decomp/decomp / instSub

Method instSub

cmd/ll2go/instruction.go:158–161  ·  view source on GitHub ↗

instSub converts the given LLVM IR sub instruction to a corresponding Go statement.

(inst *ir.InstSub)

Source from the content-addressed store, hash-verified

156// instSub converts the given LLVM IR sub instruction to a corresponding Go
157// statement.
158func (d *decompiler) instSub(inst *ir.InstSub) ast.Stmt {
159 expr := d.binaryOp(inst.X, token.SUB, inst.Y)
160 return d.assign(inst.Name, expr)
161}
162
163// instFSub converts the given LLVM IR fsub instruction to a corresponding Go
164// statement.

Callers 1

instMethod · 0.95

Calls 2

binaryOpMethod · 0.95
assignMethod · 0.95

Tested by

no test coverage detected