vault backup: 2025-03-24 10:18:11
This commit is contained in:
parent
9774fc006c
commit
da0d94e481
1 changed files with 6 additions and 6 deletions
|
@ -169,10 +169,10 @@ pop() :=
|
|||
while true do
|
||||
⟨i,v,s⟩ <- TOP
|
||||
conclude(i,v,s)
|
||||
if i=k then
|
||||
return FULL
|
||||
newtop <- ⟨i+1,w,STACK[i+1].seq_num+1⟩
|
||||
if i=0 then
|
||||
return EMPTY
|
||||
newtop <- ⟨i-1,STACK[i-1⟩
|
||||
if TOP.compare&set(⟨i,v,s⟩,newtop) then
|
||||
return OK
|
||||
return v
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue