String returns a string representation of prim in DOT format. Example output: digraph seq { entry -> exit }
()
| 50 | // entry -> exit |
| 51 | // } |
| 52 | func (prim Seq) String() string { |
| 53 | entry, exit := label(prim.Entry), label(prim.Exit) |
| 54 | const format = ` |
| 55 | digraph seq { |
| 56 | %v -> %v |
| 57 | }` |
| 58 | return fmt.Sprintf(format[1:], entry, exit) |
| 59 | } |
| 60 | |
| 61 | // FindSeq returns the first occurrence of a sequence of two statements in g, |
| 62 | // and a boolean indicating if such a primitive was found. |