When NaNO3 is heated in a closed vessel