Files
codeql/csharp/ql/test/library-tests/dataflow/ssa/BaseSsaConsistency.ql
2021-02-23 14:06:27 +01:00

14 lines
386 B
Plaintext

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