https://github.com/michaelrj-google approved this pull request. Overall LGTM, but in the tests you need to make sure to free the buffer you get from `asprintf` every time, not just the last time. https://github.com/llvm/llvm-project/pull/98824