public class MathUtils {
public static int add(int a, int b) {
return a + b;
}
}
ShrikeBTMethodAnalyser analyser = new ShrikeBTMethodAnalyser(classLoader, klass.getMethod("add"));
ControlFlowGraph<SSAInstruction, ISSABasicBlock> cfg = analyser.buildCFG();
for (Iterator<ISSABasicBlock> it = cfg.iterator(); it.hasNext(); ) {
ISSABasicBlock bb = it.next();
int bbNumber = bb.getNumber();
IR ir = analyser.getIR();
SSAInstruction[] instructions = ir.getInstructions();
}