copy the baseline code to optimized code
some wrong tricks used in spare_opt.pl