pub fn optimize(ast: &mut AST)
Runs every CFG optimization on a single CFG built from the AST, then writes the result back once: dead-function elimination, then the ALU32 extension and signed division fix-ups.