Python: Fix reachability-related test failures

This commit is contained in:
Taus
2025-10-31 14:22:29 +00:00
parent 21e74a3f01
commit 7328f26311
2 changed files with 6 additions and 3 deletions

View File

@@ -12,6 +12,7 @@
*/
import python
private import LegacyPointsTo
predicate explicitly_returns_non_none(Function func) {
exists(Return return |
@@ -21,7 +22,7 @@ predicate explicitly_returns_non_none(Function func) {
}
predicate has_implicit_return(Function func) {
exists(ControlFlowNode fallthru |
exists(ControlFlowNodeWithPointsTo fallthru |
fallthru = func.getFallthroughNode() and not fallthru.unlikelyReachable()
)
or