mirror of
https://github.com/github/codeql.git
synced 2026-04-12 18:44:00 +02:00
These queries were great when evaluating coverage of the new call-graph compared with the old. However, they are not useful to run as part of our DCA experiments.
18 lines
520 B
Plaintext
18 lines
520 B
Plaintext
/**
|
|
* @name Shared call graph edge from using type-tracking instead of points-to
|
|
* @kind problem
|
|
* @problem.severity recommendation
|
|
* @id py/meta/call-graph-shared
|
|
* @precision very-low
|
|
*/
|
|
|
|
import python
|
|
import CallGraphQuality
|
|
|
|
from CallNode call, Target target
|
|
where
|
|
target.isRelevant() and
|
|
call.(PointsToBasedCallGraph::ResolvableCall).getTarget() = target and
|
|
call.(TypeTrackingBasedCallGraph::ResolvableCall).getTarget() = target
|
|
select call, "SHARED: $@ to $@", call, "Call", target, target.toString()
|