Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b40acce commit bb7369eCopy full SHA for bb7369e
1 file changed
cpp/ql/src/semmle/code/cpp/rangeanalysis/RangeUtils.qll
@@ -81,6 +81,5 @@ predicate isReducibleCFG(Function f) {
81
82
predicate backEdge(PhiInstruction phi, PhiOperand op) {
83
phi.getAnOperand() = op and
84
- phi.getBlock().dominates(op.getPredecessorBlock())
85
- // TODO: identify backedges during IR construction
86
-}
+ phi.getBlock() = op.getPredecessorBlock().getBackEdgeSuccessor(_)
+}
0 commit comments