vault backup: 2025-03-24 10:18:11

This commit is contained in:
Marco Realacci 2025-03-24 10:18:11 +01:00
parent 9774fc006c
commit da0d94e481

View file

@ -167,12 +167,12 @@ conclude(i, v, s) :=
pop() := pop() :=
while true do while true do
⟨i,v,s⟩ <- TOP ⟨i,v,s⟩ <- TOP
conclude(i,v,s) conclude(i,v,s)
if i=k then if i=0 then
return FULL return EMPTY
newtop <- i+1,w,STACK[i+1].seq_num+1 newtop <- i-1,STACK[i-1
if TOP.compare&set(⟨i,v,s⟩,newtop) then if TOP.compare&set(⟨i,v,s⟩,newtop) then
return OK return v
``` ```