def on_pass_execution(p, fn): if p.name == '*free_lang_data': from gccutils import sorted_callgraph index = {} for i, cgn in enumerate(sorted_callgraph()): index[cgn.decl.name] = i assert index['a'] < index['e'] assert index['a'] < index['c'] assert index['d'] < index['a'] assert index['d'] < index['b'] assert index['d'] < index['c'] assert index['g'] < index['c'] assert index['j'] < index['f']
def on_pass_execution(p, fn): if p.name == '*free_lang_data': from gccutils import sorted_callgraph for cgn in sorted_callgraph(): print(cgn.decl)