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