Files
codeql/python/ql/test/library-tests/state_tracking/Test.ql
2025-11-26 12:30:31 +00:00

14 lines
344 B
Plaintext

import python
import Lib
private import LegacyPointsTo
from ControlFlowNode f, TrackableState state, Context ctx, boolean sense
where
f.getLocation().getStartLine() >= 20 and
(
state.appliesTo(f, ctx) and sense = true
or
state.mayNotApplyTo(f, ctx) and sense = false
)
select f.getLocation().toString(), f, ctx, state, sense