[ty] Avoid storing redundant reachability indexes (#25453)
## Summary When all reachability nodes for a scope are retained, their IDs already match their positions in the stored node array. In that case, this PR avoids storing an extra bit vector for mapping node IDs back to the array. We only allocate that mapping when unused intermediate nodes were removed. This reduces retained memory for reachability constraints while preserving the existing compaction for scopes that need it. It also moves node lookup into `ReachabilityConstraints::get_interior_node`, so both paths use the same lookup logic.
C
Charlie Marsh committed
5a6c811505e5068bc98752944830d244f68b9bb6
Parent: a8aceb1
Committed by GitHub <noreply@github.com>
on 5/29/2026, 9:01:39 PM