mirror of
https://github.com/github/codeql.git
synced 2026-05-14 11:19:27 +02:00
19 lines
403 B
Plaintext
19 lines
403 B
Plaintext
/**
|
|
* New-CFG version of NoBasicBlock.
|
|
*
|
|
* Checks that every annotated CFG node belongs to a basic block.
|
|
*/
|
|
|
|
import python
|
|
import TimerUtils
|
|
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()
|