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"
()
| 31 | // "cond": "A" |
| 32 | // "exit": "B" |
| 33 | func (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 | // |