Skip to content

Commit e14b654

Browse files
hvitvedaschackmull
andauthored
Update shared/controlflow/codeql/controlflow/ControlFlowGraph.qll
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
1 parent 99b5cec commit e14b654

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

shared/controlflow/codeql/controlflow/ControlFlowGraph.qll

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,15 +1395,11 @@ module Make0<LocationSig Location, AstSig<Location> Ast> {
13951395
n2.isBefore(getParameterOrBodyEntry(c, _, 1))
13961396
or
13971397
exists(CallableContextOption ctx, Parameter p, int i | p = getRankedParameter(c, ctx, i) |
1398-
exists(ConditionalSuccessor t |
1398+
exists(MatchingSuccessor t |
13991399
n1.isAfterValue(p, t) and
1400-
t.getKind().isMatching()
1401-
|
1402-
t.getValue() = true and
1403-
n2.isBefore(getParameterOrBodyEntry(c, ctx, i + 1))
1404-
or
1405-
t.getValue() = false and
1406-
n2.isBefore(p.getDefaultValue())
1400+
if t.isMatch()
1401+
then n2.isBefore(getParameterOrBodyEntry(c, ctx, i + 1))
1402+
else n2.isBefore(p.getDefaultValue())
14071403
)
14081404
or
14091405
n1.isAfter(p.getDefaultValue()) and

0 commit comments

Comments
 (0)