<div class="post-text">
        <p>Hello everyone !<br></p><p>I have some problems of getting the index of a basic block. </p>

<pre><code>for (Function::iterator II = F.begin(), EE = F.end(); II != EE; ++II, ++ii) 
{  BasicBlock* BB=II;
</code></pre>

<p>I have segfaults or cannot use complex structures of several methods 
that I found in LLVM. Do you know how to use as simply as possible the 
methods found at :</p>

<p><a href="http://llvm.org/doxygen/Instructions_8h_source.html#l02136" rel="nofollow">http://llvm.org/doxygen/Instructions_8h_source.html#l02136</a></p>

<p><a href="http://llvm.org/doxygen/EdgeBundles_8cpp_source.html#l00078" rel="nofollow">http://llvm.org/doxygen/EdgeBundles_8cpp_source.html#l00078</a></p>

<p>Or something equivalent? I just want to get an ID of the basic blocks.</p>

<p>Thank you !</p>

    <br></div><br clear="all"><br>-- <br><font style="background-color:rgb(255,255,255);color:rgb(153,153,153)">Best regards,</font><br style="background-color:rgb(255,255,255);color:rgb(153,153,153)"><font style="background-color:rgb(255,255,255);color:rgb(153,153,153)">Alexandru Ionut Diaconescu</font><br>