Finally found a good example of SMT solving for the book! I've been blocked for a while, because while SMT has a lot of uses, all of the easy-to-show examples are toys. But I finally realized a practical example: given some outputs an RNG, reverse-engineering the parameters!
Comments
Or https://x41-dsec.de/news/2024/04/09/ginlo/
Idk if that can fit in a book but it’s funnnnn
IIRC we used a quadratic programming thing for that sub-problem, even though we used SMT solvers for other things
it's a nice example because it's easy to understand, people find it exciting, and stresses the mental model for how programs are represented as formulas