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

Method Prim

cfa/if_return.go:38–50  ·  view source on GitHub ↗

Prim returns a representation of the high-level control flow primitive, as a mapping from control flow primitive node names to control flow graph node names. Example mapping: "cond": "A" "body": "B" "exit": "C"

()

Source from the content-addressed store, hash-verified

36// "body": "B"
37// "exit": "C"
38func (prim IfReturn) Prim() *primitive.Primitive {
39 cond, body, exit := label(prim.Cond), label(prim.Body), label(prim.Exit)
40 return &primitive.Primitive{
41 Prim: "if_return",
42 Nodes: map[string]string{
43 "cond": cond,
44 "body": body,
45 "exit": exit,
46 },
47 Entry: cond,
48 Exit: exit,
49 }
50}
51
52// String returns a string representation of prim in DOT format.
53//

Callers

nothing calls this directly

Calls 1

labelFunction · 0.70

Tested by

no test coverage detected