mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Python points-to: Assorted tweaks to get nore tests passing.
This commit is contained in:
@@ -8,20 +8,20 @@ import semmle.python.pointsto.PointsToContext
|
||||
|
||||
from int total_facts, int total_size, int depth, float efficiency
|
||||
where
|
||||
total_facts = strictcount(ControlFlowNode call, FunctionObject func |
|
||||
total_facts = strictcount(ControlFlowNode call, CallableValue func |
|
||||
exists(PointsToContext ctx |
|
||||
call = PointsTo::get_a_call(func, ctx) and
|
||||
call = func.getACall(ctx) and
|
||||
depth = ctx.getDepth()
|
||||
and not
|
||||
exists(PointsToContext shallower |
|
||||
call = PointsTo::get_a_call(func, shallower) and
|
||||
call = func.getACall(shallower) and
|
||||
shallower.getDepth() < depth
|
||||
)
|
||||
)
|
||||
)
|
||||
and
|
||||
total_size = strictcount(ControlFlowNode call, FunctionObject func, PointsToContext ctx |
|
||||
call = PointsTo::get_a_call(func, ctx) and
|
||||
total_size = strictcount(ControlFlowNode call, CallableValue func, PointsToContext ctx |
|
||||
call = func.getACall(ctx) and
|
||||
depth = ctx.getDepth()
|
||||
)
|
||||
and
|
||||
|
||||
Reference in New Issue
Block a user