self.assertEqual(graphs, {
'initial':
'graph {\n'
+ ' graph [pack = true]\n'
' "0" [label = "<arg.outputs[0]: <I64>>: 0"]\n'
' "1" [label = "<arg.out0.copy.outputs[0]: <I64>>: 0"]\n'
' "2" [label = "<vl.outputs[0]: <VL_MAXVL>>: 0"]\n'
# both directions
if edge_key not in edges and edge_key[::-1] not in edges:
edges[edge_key] = edge
- lines = ["graph {"]
+ lines = [
+ "graph {",
+ " graph [pack = true]",
+ ]
for node, node_id in node_ids.items():
label_lines = [] # type: list[str]
for k, v in node.merged_ssa_val.ssa_val_offsets.items():