simple hack: optimize multi-statement programs by independently optimizing each statement