radareorg / r2retdec

RetDec plugin for Radare2
https://retdec.com/
MIT License
124 stars 24 forks source link

Provide import/export of basic blocks #21

Open xkubov opened 4 years ago

xkubov commented 4 years ago

We can use info from disassembly by calling:

#include <retdec/retdec.h>

LlvmModuleContextPair disassemble(
                const std::string& inputPath,
                retdec::common::FunctionSet* fs = nullptr);

This function will return the LLVM module that contains all info required to import basic blocks from RetDec.

On the other hand, for exporting blocks from Radare2 into RetDec, there needs to be a new interface for it created on the RetDec side.