mirror of
https://github.com/github/codeql.git
synced 2026-07-29 14:56:51 +02:00
20 lines
546 B
Plaintext
20 lines
546 B
Plaintext
/**
|
|
* New-CFG version of BasicBlockOrdering.
|
|
*
|
|
* Checks that within a single basic block, annotations appear in
|
|
* increasing minimum-timestamp order.
|
|
*/
|
|
|
|
import python
|
|
import NewCfgImpl
|
|
|
|
private module Utils = EvalOrderCfgUtils<NewCfg>;
|
|
|
|
private import Utils
|
|
private import Utils::CfgTests
|
|
|
|
from TimerCfgNode a, TimerCfgNode b, int minA, int minB
|
|
where basicBlockOrdering(a, b, minA, minB)
|
|
select a, "Basic block ordering: $@ appears before $@", a.getTimestampExpr(minA),
|
|
"timestamp " + minA, b.getTimestampExpr(minB), "timestamp " + minB
|