CodeQL library for C/C++
codeql/cpp-all 3.0.1-dev (changelog, source)
Search

Predicate Cached::successors_adapted

An adapted version of the successors_extended relation that excludes impossible control-flow edges - flow will never occur along these edges, so it is safe (and indeed sensible) to remove them.

Import path

import semmle.code.cpp.controlflow.internal.ConstantExprs
predicate successors_adapted(Node pred, Node succ)