mgudim wrote: Why do we need a test if we have asserts? Don't asserts make it self-evident that the map is cleared? The test would essentially be the same this as an assert, just much more effort to set up. https://github.com/llvm/llvm-project/pull/160544