def check_abc_lec_status(output):
    """
    Reads abc_lec output and determines if the files were equivelent and
    if there were errors when preforming lec.
    """
    equivalent = None
    errored = False
    for line in output:
        if "Error: The network has no latches." in line:
            errored = True
        if line.startswith("Networks are NOT EQUIVALENT"):
            equivalent = False
        elif line.startswith("Networks are equivalent"):
            equivalent = True

    # Returns None if could not determine LEC status
    return equivalent, errored