def main():
    main_function = sark.Function(name='main')

    print(main_function.comments)
    dump_attrs(main_function.comments)

    for line in main_function.lines:
        print(line.comments)
        dump_attrs(line.comments)
Exemple #2
0
def main():
    for function in sark.functions():
        print('*' * 70)
        print(function)
        flowchart = sark.FlowChart(f=function.ea)
        for block in flowchart:
            print('-' * 70)
            print(block)
            dump_attrs(block, exclude=('startEA', 'endEA'))
            print('    {} = {}'.format('prev', list(block.prev)))
            print('    {} = {}'.format('next', list(block.next)))
Exemple #3
0
def main():
    for segment in sark.segments():
        print(segment)
        dump_attrs(segment, exclude=('prev', 'next'))
Exemple #4
0
def main():
    for enum in sark.enums():
        print(enum)
        dump_attrs(enum)
def main():
    for function in sark.functions():
        print(function)
        dump_attrs(function)