Open an IR and draw the CFG to the screen.
21 import matplotlib.pyplot
as plt
25 print(f
"Usage: {sys.argv[0]} /path/to/file.gtirb")
28 ir = gtirb.ir.IR.load_protobuf(sys.argv[1])
32 if isinstance(edge.target, gtirb.block.ProxyBlock):
34 G.add_edge(edge.source.address, edge.target.uuid)
36 G.add_edge(edge.source.address, edge.target.address)
38 nx.draw(G, with_labels=
True)