blob: 4e4ea637ffa845f4c89d4c0230731bc95edde744 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/usr/bin/python
import cPickle
callgraph = cPickle.load(open("callgraph.cp"))
closure = cPickle.load(open("callgraph_closure.cp"))
for n_reachable, fn in sorted(list((len(r), fn) for fn, r in closure.iteritems())):
print "%s can reach %s other functions." %(fn, n_reachable)
|