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

Method Prim

cfa/seq.go:32–43  ·  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: "entry": "A" "exit": "B"

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

labelFunction · 0.70

Tested by

no test coverage detected