def METHOD_NAME(name, gds_name, sp_name, final_verification=False):
    """Run LVS check on a given top-level name which is
       implemented in gds_name and sp_name. """
    global num_lvs_runs
    num_lvs_runs += 1
    write_lvs_script(name, gds_name, sp_name, final_verification, OPTS.openram_temp)
    (outfile, errfile, resultsfile) = run_script(name, "drc")
    errors = 0
    try:
        f = open(OPTS.openram_temp + name + ".csm", "r")
    except:
        debug.error("Unable to retrieve LVS results file.", 1)
    results = f.readlines()
    f.close()
    for line in results:
        if re.search("errors", line):
            errors = errors + 1
            debug.info(1, line)
        elif re.search("Schematic and Layout", line):
            debug.info(1, line)
    return errors