<br><br>Hi all.<br><br>I am new to LLVM, and wondering are there any off-the-shelf tools for C programs<br>for measuring testing coverage and simple dependence analysis (within the LLVM framework).<br><br>Specifically, I would like to:<br>
<br>(1)  measure which line is covered when executing a C program with specific input values.<br><br>     It likes a testing coverage tool, but I hope to get the line number. are there off-the-shelf<br>     tool (or LLVM extension) to do that?<br>
<br><br>(2) find control/data dependence between each statement<br><br>    For example, given the following program:<br><br>1.    if(x) {<br>2.       f();<br>3.    }<br>4.    a = 1;<br>5.    b = a;<br><br><br>Line 2 is control-dependent on line 1, and line 5 is data-dependent on line 4 (with variable a)<br>
<br>I hope a tool can report this potential dependence information. It does not need to very <br>precise for alias (pointers).  A conservative treatment should be fine.<br><br>I am also wondering is there an off-the-shelf tool can report such potential dependence?<br>
<br><br>Thanks a lot, any suggestion is highly appreciated.<br><br><br>-Sai<br><br>    <br>