We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ConditionalCompletionSplitting
1 parent b08f535 commit 8275b3eCopy full SHA for 8275b3e
1 file changed
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