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)
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)))
def main(): for segment in sark.segments(): print(segment) dump_attrs(segment, exclude=('prev', 'next'))
def main(): for enum in sark.enums(): print(enum) dump_attrs(enum)
def main(): for function in sark.functions(): print(function) dump_attrs(function)