mirror of
https://github.com/github/codeql.git
synced 2026-05-14 11:19:27 +02:00
22 lines
577 B
Plaintext
22 lines
577 B
Plaintext
/**
|
|
* New-CFG version of BasicBlockOrdering.
|
|
*
|
|
* Original:
|
|
* Checks that within a single basic block, annotations appear in
|
|
* increasing minimum-timestamp order.
|
|
*/
|
|
|
|
import python
|
|
import TimerUtils
|
|
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
|