When your loop unroller works harder than your infinite loop detector

Hat tip to Lénárd Szolnoki for accidentally working this into an unrelated Godbolt (by reusing the name foo for both the caller-of-the-interesting-bit and the callee-of-the-interesting-bit). I was thoroughly confused for a minute there.

By the way, the “stonks” meme template is from /r/MemeTemplateOfficial. Because I just know I’m going to keep finding reasons to use it.

Previously on this blog:

Posted 2021-02-26