logoalt Hacker News

potato-peelertoday at 3:29 PM2 repliesview on HN

For the curious, solvers like z3 are used in programming languages to verify logic and constraints. Basically it can help find logic issues and bugs during compile time itself, instead of waiting for it to show up in runtime.

https://en.wikipedia.org/wiki/Satisfiability_modulo_theories...


Replies

bjornsingtoday at 4:14 PM

The concept is called static analysis.

show 1 reply
mathisfun123today at 5:15 PM

in theory that's what a compiler is - a thin wrapper over a SAT solver. in practice most compilers just use heuristics <shrug>.