tree-optimization/112843 - update_stmt doing wrong things