Swift: Fix accidental cartesian product.

This commit is contained in:
Anders Schack-Mulligen
2025-04-01 15:23:16 +02:00
parent 7afcd1bbec
commit e1ef56b8bb

View File

@@ -159,6 +159,7 @@ module Ssa {
cached
predicate adjacentReadPair(ControlFlowNode read1, ControlFlowNode read2) {
read1 = this.getARead() and
exists(SsaInput::BasicBlock bb1, int i1, SsaInput::BasicBlock bb2, int i2 |
read1 = bb1.getNode(i1) and
SsaImpl::adjacentUseUse(bb1, i1, bb2, i2, _, true) and