mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
One might argue that these should be rewritten entirely to use more modern APIs, but for now I'll be content with just having them compile properly.
15 lines
323 B
Plaintext
15 lines
323 B
Plaintext
/**
|
|
* @id py/examples/mutualrecursion
|
|
* @name Mutual recursion
|
|
* @description Finds pairs of functions that call each other
|
|
* @tags method
|
|
* recursion
|
|
*/
|
|
|
|
import python
|
|
private import LegacyPointsTo
|
|
|
|
from FunctionObject m, FunctionObject n
|
|
where m != n and m.getACallee() = n and n.getACallee() = m
|
|
select m, n
|