mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
Reduce partial definition flow edge redundancy
This commit is contained in:
committed by
Jonas Jensen
parent
bb8eb235e0
commit
1b9a2d3d87
@@ -173,7 +173,7 @@ private class ArrayContent extends Content, TArrayContent {
|
||||
predicate storeStep(Node node1, Content f, PostUpdateNode node2) {
|
||||
exists(FieldAccess fa |
|
||||
exists(Assignment a |
|
||||
(a.getRValue() = node1.asExpr() or node1.asExpr() = a) and
|
||||
node1.asExpr() = a and
|
||||
a.getLValue() = fa
|
||||
) and
|
||||
not fa.getTarget().isStatic() and
|
||||
|
||||
@@ -320,7 +320,8 @@ module FlowVar_internal {
|
||||
BlockVar() { this = TBlockVar(sbb, v) }
|
||||
|
||||
override VariableAccess getAnAccess() {
|
||||
variableAccessInSBB(v, getAReachedBlockVarSBB(this), result)
|
||||
variableAccessInSBB(v, getAReachedBlockVarSBB(this), result) and
|
||||
result != sbb
|
||||
}
|
||||
|
||||
override predicate definedByInitialValue(LocalScopeVariable lsv) {
|
||||
|
||||
Reference in New Issue
Block a user