CodeQL library for C/C++
codeql/cpp-all 1.1.0 (changelog, source)

Member predicate Instruction::getBackEdgeSuccessor

Gets the a back-edge successor of this instruction along the control flow edge specified by kind. A back edge in the control-flow graph is intuitively the edge that goes back around a loop. If all back edges are removed from the control-flow graph, it becomes acyclic.

Instruction getBackEdgeSuccessor(EdgeKind kind)