mchalupa / dg

[LLVM Static Slicer] Various program analyses, construction of dependence graphs and program slicing of LLVM bitcode.
MIT License
484 stars 135 forks source link

How to make a dependence graph of source code lines #252

Open ivanpostolski opened 5 years ago

ivanpostolski commented 5 years ago

Hello

I've realized that the dependence graph is over LLVM bitcode rather than the original source code lines (though they appear to be referenced as labelURL in some nodes at the dot dependency graph). Is there any simple way to "transform" the dependency graph so I can have the links between original source lines?

If there isn't, a reference of the lines in the bitcode will do as well

Cheers

Ivan.-

mchalupa commented 5 years ago

Hi,

currently, there is no way how to get the dependence graph for the original C. But yes, you can get the references to lines from debugging information and create a graph from that.

Cheers, Marek