<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Python script extract_vplan.py to extract VPlan digraphs regexp broken"
   href="https://bugs.llvm.org/show_bug.cgi?id=46451">46451</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Python script extract_vplan.py to extract VPlan digraphs regexp broken
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>10.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mauri_mustonen@hotmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23649" name="attach_23649" title="vplan log">attachment 23649</a> <a href="attachment.cgi?id=23649&action=edit" title="vplan log">[details]</a></span>
vplan log

Hi all! My first issue here.

Python script in LLVM project called
extract_vplan.py:(<a href="https://github.com/llvm/llvm-project/blob/master/llvm/utils/extract_vplan.py#L27">https://github.com/llvm/llvm-project/blob/master/llvm/utils/extract_vplan.py#L27</a>
is not able to extract VPlan graph because of regexp matching error. It seems
logging output has changed and regexp in the python script is not updated.
Following error is produced:
  File "../llvm/llvm/utils/extract_vplan.py", line 30, in <module>
    raise ValueError("Can't get the right VPlan name")
  ValueError: Can't get the right VPlan name

I added part of the log file as an attachment which can be used to test this.
To test it run this at llvm project root:
cat digraph.log | python utils/extract_vplan.py --png

When I change the regexp line:
- m = re.search("graph \[.+(VF=.+,UF.+), ", vplan)
+ m = re.search("graph \[.+(VF=.+,UF.+)", vplan)

It starts to work and I'm able to generate png images just fine. I don't think
there are test cases for this. I'd like to contribute and fix this as my first
issue. Any pointers should test be added for this and where?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>