Open hac425xxx opened 1 month ago
Hello hac425xx,
This approach is intentional because some people read assembly, searching for patterns and other specific details. While this may not be your use case, it's perfectly fine :)
However, you can use decompiled code as input for c2cpg; there's no reason it shouldn't work, aside from potential bugs or missing information.
Thank you very much, I understand what you mean, if use the decompiled output c file as the input of c2cpg, there may be many errors.
My idea is to build CPG directly using the decompiler's AST, so the result should be more accurate
currently joern support ghidra2cpg, with use ghidra to load binary to cpg.
but it seems only use the assembly instruction, why not use the decompiler infomation?