Files
codeql/python/ql/test/library-tests/ControlFlow/evaluation-order/NewCfgNoBasicBlock.ql
2026-07-27 17:37:36 +02:00

18 lines
385 B
Plaintext

/**
* New-CFG version of NoBasicBlock.
*
* Checks that every annotated CFG node belongs to a basic block.
*/
import python
import NewCfgImpl
private module Utils = EvalOrderCfgUtils<NewCfg>;
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()