Stack assignment