mirror of
https://github.com/github/codeql.git
synced 2026-06-02 20:30:15 +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
494 B
Plaintext
19 lines
494 B
Plaintext
/**
|
|
* Checks that two annotations sharing a timestamp value are on
|
|
* mutually exclusive CFG paths (neither can reach the other).
|
|
*/
|
|
|
|
import python
|
|
import TimerUtils
|
|
import OldCfgImpl
|
|
|
|
private module Utils = EvalOrderCfgUtils<OldCfg>;
|
|
|
|
private import Utils
|
|
private import Utils::CfgTests
|
|
|
|
from TimerCfgNode a, TimerCfgNode b, int ts
|
|
where noSharedReachable(a, b, ts)
|
|
select a, "Shared timestamp $@ but this node reaches $@", a.getTimestampExpr(ts), ts.toString(), b,
|
|
b.getNode().toString()
|