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

Method Prim

cfa/post_loop.go:33–44  ·  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" "exit": "B"

()

Source from the content-addressed store, hash-verified

31// "cond": "A"
32// "exit": "B"
33func (prim PostLoop) Prim() *primitive.Primitive {
34 cond, exit := label(prim.Cond), label(prim.Exit)
35 return &primitive.Primitive{
36 Prim: "post_loop",
37 Nodes: map[string]string{
38 "cond": cond,
39 "exit": exit,
40 },
41 Entry: cond,
42 Exit: exit,
43 }
44}
45
46// String returns a string representation of prim in DOT format.
47//

Callers

nothing calls this directly

Calls 1

labelFunction · 0.70

Tested by

no test coverage detected