for (BasicBlock b: cfg.getBasicBlocks()) {
if ((b != entry) && (b != exit)) {
BasicBlock rb = ii.getRenamedBB(b);
for (Edge<BasicBlock> e : cfg.getOutgoingEdges(b)) {
BasicBlock destination = e.getDestination().getData();
if (destination != exit) selfClone.addEdge(rb, ii.getRenamedBB(destination), e.getType());
}
}
}
return selfClone;