parameters: (executable)
return_statement: return process_symbolizer_output(output, os.path.dirname(executable))
docstring: Return the instrumented lines of an executable.
  
    Called trough multiprocessing pool.
  
    Returns: Post-processed llvm output as returned by process_symbolizer_output.
docstring_summary: Return the instrumented lines of an executable.
docstring_tokens: Return the instrumented lines of an executable .
function: def get_instrumented_lines(executable):
    """Return the instrumented lines of an executable.
  
    Called trough multiprocessing pool.
  
    Returns: Post-processed llvm output as returned by process_symbolizer_output.
    """
    # The first two pipes are from llvm's tool sancov.py with 0x added to the hex
    # numbers. The results are piped into the llvm symbolizer, which outputs for
    # each PC: <file name with abs path>:<line number>:<character number>.
    # We don't call the sancov tool to get more speed.
    process = subprocess.Popen(
        'objdump -d %s | '
        'grep \'^\s\+[0-9a-f]\+:.*\scall\(q\|\)\s\+[0-9a-f]\+ '
        '<__sanitizer_cov\(_with_check\|\|_trace_pc_guard\)\(@plt\|\)>\' | '
        'grep \'^\s\+[0-9a-f]\+\' -o | '
        '%s | '
        '%s --obj %s -functions=none' %
            (executable, SANITIZE_PCS, SYMBOLIZER, executable),
        stdout=subprocess.PIPE,
        stderr=subprocess.PIPE,
        stdin=subprocess.PIPE,
        cwd=BASE_DIR,
        shell=True,
    )
    output, _ = process.communicate()
    assert process.returncode == 0
    return process_symbolizer_output(output, os.path.dirname(executable))
function_tokens: def get_instrumented_lines ( executable ) : # The first two pipes are from llvm's tool sancov.py with 0x added to the hex # numbers. The results are piped into the llvm symbolizer, which outputs for # each PC: <file name with abs path>:<line number>:<character number>. # We don't call the sancov tool to get more speed. process = subprocess . Popen ( 'objdump -d %s | ' 'grep \'^\s\+[0-9a-f]\+:.*\scall\(q\|\)\s\+[0-9a-f]\+ ' '<__sanitizer_cov\(_with_check\|\|_trace_pc_guard\)\(@plt\|\)>\' | ' 'grep \'^\s\+[0-9a-f]\+\' -o | ' '%s | ' '%s --obj %s -functions=none' % ( executable , SANITIZE_PCS , SYMBOLIZER , executable ) , stdout = subprocess . PIPE , stderr = subprocess . PIPE , stdin = subprocess . PIPE , cwd = BASE_DIR , shell = True , ) output , _ = process . communicate ( ) assert process . returncode == 0 return process_symbolizer_output ( output , os . path . dirname ( executable ) )