Skip to content

Commit 54632cd

Browse files
committed
C++: Replace not exists by forex in clearsContent
1 parent 527b537 commit 54632cd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/DataFlowPrivate.qll

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -785,11 +785,10 @@ predicate clearsContent(Node n, Content c) {
785785
p.getAnOperand() = op.getUse().getAst()
786786
)
787787
or
788-
not exists(PostUpdateNode pun, Content d |
789-
d.impliesClearOf(c) and
790-
storeStepImpl(_, d, pun, true) and
791-
c.getIndirectionIndex() > d.getIndirectionIndex() and
792-
pun.getPreUpdateNode() = n
788+
forex(PostUpdateNode pun, Content d |
789+
d.impliesClearOf(c) and storeStepImpl(_, d, pun, true) and pun.getPreUpdateNode() = n
790+
|
791+
c.getIndirectionIndex() = d.getIndirectionIndex()
793792
)
794793
)
795794
}

0 commit comments

Comments
 (0)