mirror of
https://github.com/github/codeql.git
synced 2026-07-29 23:00:09 +02:00
20 lines
520 B
Plaintext
20 lines
520 B
Plaintext
/**
|
|
* New-CFG version of NoSharedReachable.
|
|
*
|
|
* Checks that two annotations sharing a timestamp value are on
|
|
* mutually exclusive CFG paths (neither can reach the other).
|
|
*/
|
|
|
|
import python
|
|
import NewCfgImpl
|
|
|
|
private module Utils = EvalOrderCfgUtils<NewCfg>;
|
|
|
|
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()
|