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.
ConditionalCompletionSplitting
1 parent a1b7096 commit 3bf424bCopy full SHA for 3bf424b
shared/controlflow/codeql/controlflow/Cfg.qll
@@ -1260,7 +1260,10 @@ module MakeWithSplitting<
1260
last(parent, succ, completion) and
1261
condPropagateExpr(parent, completion, child, c) and
1262
succ(pred, succ, c) and
1263
- last(child, pred, c)
+ last(child, pred, c) and
1264
+ // no need to create split if `succ` can only complete with the
1265
+ // recorded completion
1266
+ not completion = unique(ConditionalCompletion c0 | last(parent, succ, c0))
1267
)
1268
}
1269
0 commit comments