https://github.com/MaheshRavishankar requested changes to this pull request. Ok, I think I understand the code and this makes sense. Can you add a test for partially intersecting as well? https://github.com/llvm/llvm-project/pull/94637