def is_main_source(src) -> bool:
    """
    A source file is a 'main' source if it has a 'main' function.
    Because we're only dealing with C or C++ files,
    """
    with open(src) as f:
        return "int main(" in f.read()