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

Method String

cfa/pre_loop.go:60–69  ·  view source on GitHub ↗

String returns a string representation of prim in DOT format. Example output: digraph pre_loop { cond -> body cond -> exit body -> cond }

()

Source from the content-addressed store, hash-verified

58// body -> cond
59// }
60func (prim PreLoop) String() string {
61 cond, body, exit := label(prim.Cond), label(prim.Body), label(prim.Exit)
62 const format = `
63digraph pre_loop {
64 %v -> %v
65 %v -> %v
66 %v -> %v
67}`
68 return fmt.Sprintf(format[1:], cond, body, cond, exit, body, cond)
69}
70
71// FindPreLoop returns the first occurrence of a pre-test loop in g, and a
72// boolean indicating if such a primitive was found.

Callers

nothing calls this directly

Calls 1

labelFunction · 0.70

Tested by

no test coverage detected