MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / next

Method next

ir/function.cpp:944–959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

942
943
944void CFG::edge_iterator::next() {
945 // jump to next BB with a terminator that is a jump
946 while (true) {
947 if (bbi == bbe)
948 return;
949
950 if (!(*bbi)->empty()) {
951 if (auto instr = dynamic_cast<JumpInstr*>(&(*bbi)->back())) {
952 ti = instr->targets().begin();
953 te = instr->targets().end();
954 return;
955 }
956 }
957 ++bbi;
958 }
959}
960
961CFG::edge_iterator::edge_iterator(vector<BasicBlock*>::iterator &&it,
962 vector<BasicBlock*>::iterator &&end)

Callers

nothing calls this directly

Calls 4

emptyMethod · 0.45
beginMethod · 0.45
targetsMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected