Files
codeql/csharp/ql/test/library-tests/dataflow/ssa/BaseSsaConsistency.ql
2026-04-30 12:52:51 +02:00

16 lines
388 B
Plaintext

import csharp
import semmle.code.csharp.dataflow.internal.BaseSSA
from
AssignableRead ar, BaseSsa::SsaExplicitWrite ssaDef, AssignableDefinition def,
LocalScopeVariable v
where
ar = ssaDef.getARead() and
def = ssaDef.getDefinition() and
v = def.getTarget() and
not exists(SsaExplicitWrite edef |
edef.getDefinition() = def and
edef.getARead() = ar
)
select ar, def