SVF-tools / SVF

Static Value-Flow Analysis Framework for Source Code
http://svf-tools.github.io/SVF/
Other
1.43k stars 436 forks source link

How to get llvm::Function and llvm::BasicBlock in SVF-2.7? #1582

Open Shrimpig opened 2 weeks ago

Shrimpig commented 2 weeks ago

Hi,

I use SVF to construct ICFG and try to analyze the basic blocks of each ICFGNode.

SVF-2.4 provides methods such as getBB(), getLLVMFun() to return llvm::BasicBlock and llvm::Function.

However, these methods are removed from SVF-2.7. (getBB() is not removed, but it returns SVFBasicBlock) In this case, how to get an llvm::Value (e.g., llvm::BasicBlock, llvm::Function, llvm::Instruction) from a SVFValue?