Ejemplo n.º 1
0
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']
Ejemplo n.º 2
0
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']
Ejemplo n.º 3
0
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)
Ejemplo n.º 4
0
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)