llvm2cpg icon indicating copy to clipboard operation
llvm2cpg copied to clipboard

LLVM2CPG doesn't work for the lifted IR

Open damaoooo opened this issue 2 years ago • 1 comments

Hello

Thanks for the wonderful tool you have invented. Here I have a issue in IR from lifter.

  1. I Lifted the binary into IR using Retdec and the LLVM IR can be re-compiled pass the clang and opt compiler.
  2. Then I use the LLVM2CPG to generate CPG from the LLVM IR (from lifter)
  3. then it reports Segmentation fault, and in log, there's nothing [x]
  4. I tried to compile the source code into LLVM IR, it works [v]
  5. I lifted the binary into C, re-compile it into LLVM IR, it doesn't work [x]

Can you help me to understand why it doesn't work in LLVM IR from the lifter, since it can pass the clang check.

damaoooo avatar May 14 '23 14:05 damaoooo