def METHOD_NAME(gcovDirectory, gcovFile, gcovResultDictionary):
    """
    The primary action of the program. This runs "gcov" for an
    object file in the source directory and produce a dictionary
    entry of the result keyed by the shortened version of the file name.
    """
    if (os.path.isfile(gcovFile)):
        #create the gcov command
        #the cd is necessary because the gcov command follows
        #relative links
        gcov_command = "cd %s; gcov %s" %(gcovDirectory , gcovFile)
        stdin, stdout = os.popen2(gcov_command)
        stdin.close()
        gcov_result = stdout.read()
        stdout.close()
        data = re.findall(r'([\d]+\.[\d]+)\D+([\d]+)', gcov_result)
        percent_coverage, lines = data[0]
        gcovResultDictionary[simplify_name(gcovFile)] = \
                    (str(float(percent_coverage) / 100.0), lines)