emit assigns only for variables actually used