Hello,<br><br>On the following code, <br><br>//<br>#include <stdio.h><br><br>void f2();<br><br>int main(){<br>    f2();<br>    return 0;    <br>}<br><br>void f2(){<br>    printf("f2()\n");<br>}<br>//<br><br>
I have obtained the .bc file and run <br><br>opt -print-callgraph finename.bc.<br><br>For the main function, the output of the above command is:<br><br>Call graph node for function: 'main'<br>  Calls external node<br>
<br>However, the function called by main(which is f2) is inside the module. <br><br>Is there any way to detect all function calls, including the one above and those made via pointers to functions?<br><br>Thanks,<br>Gener<br>