pub fn optimize(ops: Vec<Operation>) -> Vec<Operation>
Reduce ops with the documented local optimizations.
ops