Superoptimization is a program synthesis technique that exhaustively searches for the shortest or fastest sequence of machine instructions to implement a given function, typically for small code blocks. Unlike traditional compilers that apply heuristic optimizations, it uses formal methods like SMT solvers or brute-force search to prove the optimality of the generated code against a formal specification of the target hardware's instruction set architecture (ISA).
