afnrow wrote: Added the tests and changed the function signature to an `int` such that it can be propagated easily without having to change a `true` to 1 and `false` to 0. https://github.com/llvm/llvm-project/pull/224644