function luaY.check_conflict(u,P,p,W)local Y=P.fs local f=Y.freereg local h=false while p do if p.v.k=="\086\073\078\068\069\088\069\068"then if p.v.info==W.info then h=true p.v.info=f end if p.v.aux==W.info then h=true p.v.aux=f end end p=p.prev end if h then luaK:codeABC(Y,"\079\080\095\077\079\086\069",Y.freereg,W.info,0)luaK:reserveregs(Y,1)end end
------------------------------------------------------------------------
-- check whether, in an assignment to a local variable, the local variable
-- is needed in a previous assignment (to a table). If so, save original
-- local value in a safe place and use this safe copy in the previous
-- assignment.
-- * used in assignment()
------------------------------------------------------------------------
function luaY:check_conflict(ls, lh, v)
	local fs = ls.fs
	local extra = fs.freereg -- eventual position to save local variable
	local conflict = false
	while lh do
		if lh.v.k == "VINDEXED" then
			if lh.v.info == v.info then -- conflict?
				conflict = true
				lh.v.info = extra -- previous assignment will use safe copy
			end
			if lh.v.aux == v.info then -- conflict?
				conflict = true
				lh.v.aux = extra -- previous assignment will use safe copy
			end
		end
		lh = lh.prev
	end
	if conflict then
		luaK:codeABC(fs, "OP_MOVE", fs.freereg, v.info, 0) -- make copy
		luaK:reserveregs(fs, 1)
	end
end
