Files
codeql/python/ql/test/library-tests/ControlFlow/evaluation-order/NoBasicBlock.ql
Taus edfbaa5ceb Python: Add some CFG-validation queries
These use the annotated, self-verifying test files to check various
consistency requirements.

Some of these may be expressing the same thing in different ways, but
it's fairly cheap to keep them around, so I have not attempted to
produce a minimal set of queries for this.
2026-04-28 15:38:04 +00:00

16 lines
350 B
Plaintext

/**
* Checks that every annotated CFG node belongs to a basic block.
*/
import TimerUtils
import OldCfgImpl
private module Utils = EvalOrderCfgUtils<OldCfg>;
private import Utils
private import Utils::CfgTests
from CfgNode n, TestFunction f
where noBasicBlock(n, f)
select n, "CFG node in $@ does not belong to any basic block", f, f.getName()