Open an IR and print every path from some point to some other point.
26 print(f
"Usage: {sys.argv[0]} /path/to/file.gtirb source target")
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 for path
in nx.all_simple_paths(G, int(sys.argv[2]), int(sys.argv[3])):