model-writtenrun 4170 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ranier Vilela proposed checking MSVC reverse bit-scan return values and returning zero on failure, together with input assertions, to address suspected undefined behavior in #1.
- John Naylor rejected the runtime fallback and cosmetic changes but proposed matching other platforms' input assertions in #2.
- Tom Lane explained that the existing assertions already enforced the API contract, that returning zero for invalid input offered no improvement, and that input assertions should replace the existing result assertions in #3.
- John committed the discussion-derived assertion cleanup for both forward and reverse variants as 39055cb4cc, then explained in #4 that he retained the now-unused return-value variables for clarity.
- Tom questioned possible unused-variable warnings and suggested discarding the return values explicitly in #5; John reported a green drongo build but left the warning concern under observation in #6, with the assertion cleanup landed and the original runtime fallback rejected.