We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8f1ec6 commit 2743fc0Copy full SHA for 2743fc0
shared/controlflow/codeql/controlflow/Guards.qll
@@ -773,6 +773,10 @@ module Make<
773
or
774
exprHasValue(e.(IdExpr).getEqualChildExpr(), v)
775
776
+ exists(ConditionalExpr cond | cond = e |
777
+ exprHasValue(cond.getThen(), v) and exprHasValue(cond.getElse(), v)
778
+ )
779
+ or
780
exists(SsaDefinition def, Guard g, GuardValue gv |
781
e = def.getARead() and
782
g.directlyValueControls(e.getBasicBlock(), gv) and
0 commit comments