mchalupa / dg

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

How to use DG in an LLVM Pass? #457

Open liushengahn opened 3 months ago

liushengahn commented 3 months ago

Hello, I want to try using DG in LLVM PASS, but I failed. I couldn't compile the PASS, and I don't know how to modify my CMakeLists file. Can you help me? Looking forward to your reply.

mchalupa commented 3 months ago

Could you be more specific? What have you tried and what failed?

liushengahn commented 3 months ago

I hope to apply DG to Aflgo (I don't know if you have heard of it, a directed fuzzing tool, which uses LLVMPass to implement information collection and instrumentation). AFLGO uses LLVM pass, but I need to modify its Makefile so that it can link DG, but I failed. It prompted many errors.

liushengahn commented 3 months ago

https://github.com/aflgo/aflgo

mchalupa commented 3 months ago

Can you show the log of the errors?