fun superoptimizer result from @hyperoptimizer, this occurs in ImageMagick

https://godbolt.org/z/75sYhYsKq

@hyperoptimizer here's what an LLM thought about how to generalize this transformation 🤖 🤖 🤖

https://users.cs.utah.edu/~regehr/fp-opt/foo-summary.html

foo-summary

@regehr using > to denote “is more work than”,

reading this > doing the reasoning yourself > reading Steve's toot

@void_friend well, I read it and it seems broadly correct. I'm interested because I work on generalizing program rewrites and I'm suspecting that the synthesis part of that work is now wholly obsolete.
@regehr @void_friend it's pretty good!