We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b2f44b + dfb7076 commit 690e2aeCopy full SHA for 690e2ae
cpp/ql/src/semmle/code/cpp/controlflow/IRGuards.qll
@@ -381,9 +381,7 @@ cached class IRGuardCondition extends Instruction {
381
}
382
383
private ConditionalBranchInstruction get_branch_for_condition(Instruction guard) {
384
- exists(ConditionalBranchInstruction branch|
385
- branch.getCondition() = guard
386
- )
+ result.getCondition() = guard
387
or
388
exists(LogicalNotInstruction cond | result = get_branch_for_condition(cond) and cond.getUnary() = guard)
389
0 commit comments