Files
codeql/java/ql/test/library-tests/ssa/ssaDef.ql
2018-10-11 11:31:37 +02:00

13 lines
257 B
Plaintext

import java
import semmle.code.java.dataflow.SSA
from SsaVariable ssa, SsaSourceVariable v, string s
where
ssa.getSourceVariable() = v and
(
s = ssa.toString()
or
not exists(ssa.toString()) and s = "error"
)
select v, ssa.getCFGNode(), s