We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e784813 commit 958602eCopy full SHA for 958602e
javascript/ql/lib/semmle/javascript/dataflow/internal/sharedlib/Ssa.qll
@@ -66,6 +66,16 @@ module SsaDataflowInput implements DataFlowIntegrationInputSig {
66
67
predicate ssaDefInitializesParam(WriteDefinition def, Parameter p) { none() } // Not handled here
68
69
+ cached
70
+ Expr getARead(Definition def) {
71
+ // Copied from implementation so we can cache it here
72
+ exists(SsaConfig::SourceVariable v, js::BasicBlock bb, int i |
73
+ ssaDefReachesRead(v, def, bb, i) and
74
+ SsaConfig::variableRead(bb, i, v, true) and
75
+ result.hasCfgNode(bb, i)
76
+ )
77
+ }
78
+
79
class Guard extends js::ControlFlowNode {
80
Guard() { this = any(js::ConditionGuardNode g).getTest() }
81
0 commit comments