Open an IR and draw the CFG to the screen.
20 import matplotlib.pyplot
as plt
26 print(f
"Usage: {sys.argv[0]} /path/to/file.gtirb")
29 ir = gtirb.ir.IR.load_protobuf(sys.argv[1])
33 if isinstance(edge.target, gtirb.block.ProxyBlock):
35 G.add_edge(edge.source.address, edge.target.uuid)
37 G.add_edge(edge.source.address, edge.target.address)
39 nx.draw(G, with_labels=
True)