mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
9 lines
289 B
Plaintext
9 lines
289 B
Plaintext
import cpp
|
|
import semmle.code.cpp.valuenumbering.GlobalValueNumberingImpl
|
|
|
|
// Every expression should have exactly one GVN.
|
|
// So this query should have zero results.
|
|
from Expr e
|
|
where count(globalValueNumber(e)) != 1
|
|
select e, concat(GVN g | g = globalValueNumber(e) | g.getKind(), ", ")
|