mirror of
https://github.com/github/codeql.git
synced 2026-05-14 11:19:27 +02:00
Currently we only instantiate them with the old CFG library, but in the future we'll want to do this with the new library as well. Co-authored-by: yoff <yoff@github.com>
19 lines
519 B
Plaintext
19 lines
519 B
Plaintext
/**
|
|
* Checks that within a single basic block, annotations appear in
|
|
* increasing minimum-timestamp order.
|
|
*/
|
|
|
|
import python
|
|
import TimerUtils
|
|
import OldCfgImpl
|
|
|
|
private module Utils = EvalOrderCfgUtils<OldCfg>;
|
|
|
|
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
|