def main():
    if ((len(sys.argv) < 2) or (len(sys.argv) > 3) or (sys.argv[1] == '--help')):
        print('Usage:')
        print('    {} file1 - list functions in a file in ascending order of size'.format(sys.argv[0]))
        print('    {} file1 file2 - compare functions across two files'.format(sys.argv[0]))
        return 1
    if (len(sys.argv) == 2):
        filename = sys.argv[1]
        data = processfile(filename)
        list_bigfuncs(data)
        return 0
    if (len(sys.argv) == 3):
        filename1 = sys.argv[1]
        data1 = processfile(filename1)
        filename2 = sys.argv[2]
        data2 = processfile(filename2)
        uniq_compare(data1, data2)
        common_compare(data1, data2)
        return 0
    assert False
def main():
    if ((len(sys.argv) < 2) or (len(sys.argv) > 3) or (sys.argv[1] == '--help')):
        print('Usage:')
        print('    {} file1 - list functions in a file in ascending order of size'.format(sys.argv[0]))
        print('    {} file1 file2 - compare functions across two files'.format(sys.argv[0]))
        return 1
    if (len(sys.argv) == 2):
        filename = sys.argv[1]
        data = processfile(filename)
        list_bigfuncs(data)
        return 0
    if (len(sys.argv) == 3):
        filename1 = sys.argv[1]
        data1 = processfile(filename1)
        filename2 = sys.argv[2]
        data2 = processfile(filename2)
        uniq_compare(data1, data2)
        common_compare(data1, data2)
        return 0
    assert False