The graph as `from → to` lines, each with what has to hold.
(root: WireBlock)
| 50 | |
| 51 | /** The graph as `from → to` lines, each with what has to hold. */ |
| 52 | function shape(root: WireBlock): string[] { |
| 53 | const g = orderGraph({ root, truncated: 0 } as WireProgram, 'anchor'); |
| 54 | return g.edges.map((e) => `${e.from} → ${e.to}${e.when ? ` · ${lineWords(e)}` : ''}${e.runs.length ? ` [${e.runs.join(', ')}]` : ''}`); |
| 55 | } |
| 56 | |
| 57 | function rowsOf(root: WireBlock): Record<string, number> { |
| 58 | const g = orderGraph({ root, truncated: 0 } as WireProgram, 'anchor'); |
no test coverage detected