| ⊦ ( ( listp(gs.orl + gs.qrl, gs.vs, gs.ps, gs.owns) ∧ ¬ dups(gs.orl + gs.qrl) ∧ markedp(gs.orl, gs.ps) ∧ markedp(gs.orl, gs.vs) ∧ unmarkedp(gs.qrl, gs.ps) ∧ gs.orl ≠ [] ∧ gs.phead ∈ gs.orl ∧ rvownerok(gs.vretRefs, gs.vrvHp, gs.rvowns) ∧ allocrv(gs.vretRefs, gs.vrvHp) ∧ nonullRetRefs(gs.orl + gs.qrl, gs.vs, gs.vretRefs, gs.pretRefs) ∧ rvownerok(gs.pretRefs, gs.prvHp, gs.rvowns) ∧ allocrv(gs.pretRefs, gs.prvHp) ∧ dom gs.vrvHp = dom gs.prvHp ∧ ( gs.vs[gs.vhead].next ≠ null ∧ gs.vs[gs.vs[gs.vhead].next].deqID ≠ None → gs.rvowns(gs.vretRefs(gs.vs[gs.vs[gs.vhead].next].deqID.tid)) = Claimed(gs.vs[gs.vs[gs.vhead].next].deqID.tid, gs.vs[gs.vs[gs.vhead].next].val)) ∧ ( gs.orl.last = gs.vhead ∧ (gs.qrl ≠ [] → unmarkedp(gs.qrl.tail, gs.vs)) ∨ gs.orl.butlast ≠ [] ∧ gs.orl.butlast.last = gs.vhead ∧ gs.phead ≠ gs.orl.last ∧ unmarkedp(gs.qrl, gs.vs)) ∧ ( gs.vtail = (gs.orl + gs.qrl).last ∨ gs.qrl ≠ [] ∧ gs.vtail = (gs.orl + gs.qrl.butlast).last ∧ gs.vs[gs.qrl.last].deqID = None ∧ gs.vs[(gs.orl + gs.qrl).last].next = null)) ∧ nextnottid(ls.tid, gs.vhead, gs.vs) ∧ noid(ls.tid, gs.orl + gs.qrl, gs.vhead, gs.vs) ∧ noowns(ls.tid, gs.owns)) ∧ pre(gs, ls, D2, a) ∧ pcstepf(gs, ls, D2, a) = D2 → ( listp(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs, gstepf(gs, ls, D2, a).ps, gstepf(gs, ls, D2, a).owns) ∧ ¬ dups(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl) ∧ markedp(gstepf(gs, ls, D2, a).orl, gstepf(gs, ls, D2, a).ps) ∧ markedp(gstepf(gs, ls, D2, a).orl, gstepf(gs, ls, D2, a).vs) ∧ unmarkedp(gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).ps) ∧ gstepf(gs, ls, D2, a).orl ≠ [] ∧ gstepf(gs, ls, D2, a).phead ∈ gstepf(gs, ls, D2, a).orl ∧ rvownerok(gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).vrvHp, gstepf(gs, ls, D2, a).rvowns) ∧ allocrv(gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).vrvHp) ∧ nonullRetRefs (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs, gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).pretRefs) ∧ rvownerok(gstepf(gs, ls, D2, a).pretRefs, gstepf(gs, ls, D2, a).prvHp, gstepf(gs, ls, D2, a).rvowns) ∧ allocrv(gstepf(gs, ls, D2, a).pretRefs, gstepf(gs, ls, D2, a).prvHp) ∧ dom gstepf(gs, ls, D2, a).vrvHp = dom gstepf(gs, ls, D2, a).prvHp ∧ ( gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next ≠ null ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID ≠ None → gstepf(gs, ls, D2, a).rvowns (gstepf(gs, ls, D2, a).vretRefs(gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID.tid)) = Claimed (gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID.tid, gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].val)) ∧ ( gstepf(gs, ls, D2, a).orl.last = gstepf(gs, ls, D2, a).vhead ∧ (gstepf(gs, ls, D2, a).qrl ≠ [] → unmarkedp(gstepf(gs, ls, D2, a).qrl.tail, gstepf(gs, ls, D2, a).vs)) ∨ gstepf(gs, ls, D2, a).orl.butlast ≠ [] ∧ gstepf(gs, ls, D2, a).orl.butlast.last = gstepf(gs, ls, D2, a).vhead ∧ gstepf(gs, ls, D2, a).phead ≠ gstepf(gs, ls, D2, a).orl.last ∧ unmarkedp(gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs)) ∧ ( gstepf(gs, ls, D2, a).vtail = (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl).last ∨ gstepf(gs, ls, D2, a).qrl ≠ [] ∧ gstepf(gs, ls, D2, a).vtail = (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl.butlast).last ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).qrl.last].deqID = None ∧ gstepf(gs, ls, D2, a).vs[(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl).last].next = null)) ∧ nextnottid(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).vhead, gstepf(gs, ls, D2, a).vs) ∧ noid(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vhead, gstepf(gs, ls, D2, a).vs) ∧ noowns(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).owns) |
dom gs.vrvHp = dom gs.prvHp, pcstepf(gs, ls, D2, a) = D2, gs.orl ≠ [], allocrv(gs.vretRefs, gs.vrvHp), allocrv(gs.pretRefs, gs.prvHp), listp(gs.orl + gs.qrl, gs.vs, gs.ps, gs.owns), markedp(gs.orl, gs.ps), markedp(gs.orl, gs.vs), nextnottid(ls.tid, gs.vhead, gs.vs), noid(ls.tid, gs.orl + gs.qrl, gs.vhead, gs.vs), nonullRetRefs(gs.orl + gs.qrl, gs.vs, gs.vretRefs, gs.pretRefs), noowns(ls.tid, gs.owns), pre(gs, ls, D2, a), rvownerok(gs.vretRefs, gs.vrvHp, gs.rvowns), rvownerok(gs.pretRefs, gs.prvHp, gs.rvowns), unmarkedp(gs.qrl, gs.ps), gs.phead ∈ gs.orl, ¬ dups(gs.orl + gs.qrl), gs.vs[gs.vhead].next ≠ null ∧ gs.vs[gs.vs[gs.vhead].next].deqID ≠ None → gs.rvowns(gs.vretRefs(gs.vs[gs.vs[gs.vhead].next].deqID.tid)) = Claimed(gs.vs[gs.vs[gs.vhead].next].deqID.tid, gs.vs[gs.vs[gs.vhead].next].val), gs.orl.last = gs.vhead ∧ (gs.qrl ≠ [] → unmarkedp(gs.qrl.tail, gs.vs)) ∨ gs.orl.butlast ≠ [] ∧ gs.orl.butlast.last = gs.vhead ∧ gs.phead ≠ gs.orl.last ∧ unmarkedp(gs.qrl, gs.vs), gs.vtail = (gs.orl + gs.qrl).last ∨ gs.qrl ≠ [] ∧ gs.vtail = (gs.orl + gs.qrl.butlast).last ∧ gs.vs[gs.qrl.last].deqID = None ∧ gs.vs[(gs.orl + gs.qrl).last].next = null ⊦ ( listp(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs, gstepf(gs, ls, D2, a).ps, gstepf(gs, ls, D2, a).owns) ∧ ¬ dups(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl) ∧ markedp(gstepf(gs, ls, D2, a).orl, gstepf(gs, ls, D2, a).ps) ∧ markedp(gstepf(gs, ls, D2, a).orl, gstepf(gs, ls, D2, a).vs) ∧ unmarkedp(gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).ps) ∧ gstepf(gs, ls, D2, a).orl ≠ [] ∧ gstepf(gs, ls, D2, a).phead ∈ gstepf(gs, ls, D2, a).orl ∧ rvownerok(gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).vrvHp, gstepf(gs, ls, D2, a).rvowns) ∧ allocrv(gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).vrvHp) ∧ nonullRetRefs (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs, gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).pretRefs) ∧ rvownerok(gstepf(gs, ls, D2, a).pretRefs, gstepf(gs, ls, D2, a).prvHp, gstepf(gs, ls, D2, a).rvowns) ∧ allocrv(gstepf(gs, ls, D2, a).pretRefs, gstepf(gs, ls, D2, a).prvHp) ∧ dom gstepf(gs, ls, D2, a).vrvHp = dom gstepf(gs, ls, D2, a).prvHp ∧ ( gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next ≠ null ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID ≠ None → gstepf(gs, ls, D2, a).rvowns (gstepf(gs, ls, D2, a).vretRefs(gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID.tid)) = Claimed (gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID.tid, gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].val)) ∧ ( gstepf(gs, ls, D2, a).orl.last = gstepf(gs, ls, D2, a).vhead ∧ (gstepf(gs, ls, D2, a).qrl ≠ [] → unmarkedp(gstepf(gs, ls, D2, a).qrl.tail, gstepf(gs, ls, D2, a).vs)) ∨ gstepf(gs, ls, D2, a).orl.butlast ≠ [] ∧ gstepf(gs, ls, D2, a).orl.butlast.last = gstepf(gs, ls, D2, a).vhead ∧ gstepf(gs, ls, D2, a).phead ≠ gstepf(gs, ls, D2, a).orl.last ∧ unmarkedp(gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs)) ∧ ( gstepf(gs, ls, D2, a).vtail = (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl).last ∨ gstepf(gs, ls, D2, a).qrl ≠ [] ∧ gstepf(gs, ls, D2, a).vtail = (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl.butlast).last ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).qrl.last].deqID = None ∧ gstepf(gs, ls, D2, a).vs[(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl).last].next = null)) ∧ nextnottid(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).vhead, gstepf(gs, ls, D2, a).vs) ∧ noid(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vhead, gstepf(gs, ls, D2, a).vs) ∧ noowns(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).owns)
| dom gs.vrvHp = dom gs.prvHp, pcstepf(gs, ls, D2, a) = D2, gs.orl ≠ [], allocrv(gs.vretRefs, gs.vrvHp), allocrv(gs.pretRefs, gs.prvHp), listp(gs.orl + gs.qrl, gs.vs, gs.ps, gs.owns), markedp(gs.orl, gs.ps), markedp(gs.orl, gs.vs), nextnottid(ls.tid, gs.vhead, gs.vs), noid(ls.tid, gs.orl + gs.qrl, gs.vhead, gs.vs), nonullRetRefs(gs.orl + gs.qrl, gs.vs, gs.vretRefs, gs.pretRefs), noowns(ls.tid, gs.owns), pre(gs, ls, D2, a), rvownerok(gs.vretRefs, gs.vrvHp, gs.rvowns), rvownerok(gs.pretRefs, gs.prvHp, gs.rvowns), unmarkedp(gs.qrl, gs.ps), gs.phead ∈ gs.orl, ¬ dups(gs.orl + gs.qrl), gs.vs[gs.vhead].next ≠ null ∧ gs.vs[gs.vs[gs.vhead].next].deqID ≠ None → gs.rvowns(gs.vretRefs(gs.vs[gs.vs[gs.vhead].next].deqID.tid)) = Claimed(gs.vs[gs.vs[gs.vhead].next].deqID.tid, gs.vs[gs.vs[gs.vhead].next].val), gs.orl.last = gs.vhead ∧ (gs.qrl ≠ [] → unmarkedp(gs.qrl.tail, gs.vs)) ∨ gs.orl.butlast ≠ [] ∧ gs.orl.butlast.last = gs.vhead ∧ gs.phead ≠ gs.orl.last ∧ unmarkedp(gs.qrl, gs.vs), gs.vtail = (gs.orl + gs.qrl).last ∨ gs.qrl ≠ [] ∧ gs.vtail = (gs.orl + gs.qrl.butlast).last ∧ gs.vs[gs.qrl.last].deqID = None ∧ gs.vs[(gs.orl + gs.qrl).last].next = null ⊦ ( listp(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs, gstepf(gs, ls, D2, a).ps, gstepf(gs, ls, D2, a).owns) ∧ ¬ dups(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl) ∧ markedp(gstepf(gs, ls, D2, a).orl, gstepf(gs, ls, D2, a).ps) ∧ markedp(gstepf(gs, ls, D2, a).orl, gstepf(gs, ls, D2, a).vs) ∧ unmarkedp(gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).ps) ∧ gstepf(gs, ls, D2, a).orl ≠ [] ∧ gstepf(gs, ls, D2, a).phead ∈ gstepf(gs, ls, D2, a).orl ∧ rvownerok(gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).vrvHp, gstepf(gs, ls, D2, a).rvowns) ∧ allocrv(gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).vrvHp) ∧ nonullRetRefs (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs, gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).pretRefs) ∧ rvownerok(gstepf(gs, ls, D2, a).pretRefs, gstepf(gs, ls, D2, a).prvHp, gstepf(gs, ls, D2, a).rvowns) ∧ allocrv(gstepf(gs, ls, D2, a).pretRefs, gstepf(gs, ls, D2, a).prvHp) ∧ dom gstepf(gs, ls, D2, a).vrvHp = dom gstepf(gs, ls, D2, a).prvHp ∧ ( gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next ≠ null ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID ≠ None → gstepf(gs, ls, D2, a).rvowns (gstepf(gs, ls, D2, a).vretRefs(gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID.tid)) = Claimed (gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID.tid, gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].val)) ∧ ( gstepf(gs, ls, D2, a).orl.last = gstepf(gs, ls, D2, a).vhead ∧ (gstepf(gs, ls, D2, a).qrl ≠ [] → unmarkedp(gstepf(gs, ls, D2, a).qrl.tail, gstepf(gs, ls, D2, a).vs)) ∨ gstepf(gs, ls, D2, a).orl.butlast ≠ [] ∧ gstepf(gs, ls, D2, a).orl.butlast.last = gstepf(gs, ls, D2, a).vhead ∧ gstepf(gs, ls, D2, a).phead ≠ gstepf(gs, ls, D2, a).orl.last ∧ unmarkedp(gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs)) ∧ ( gstepf(gs, ls, D2, a).vtail = (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl).last ∨ gstepf(gs, ls, D2, a).qrl ≠ [] ∧ gstepf(gs, ls, D2, a).vtail = (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl.butlast).last ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).qrl.last].deqID = None ∧ gstepf(gs, ls, D2, a).vs[(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl).last].next = null)) ∧ nextnottid(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).vhead, gstepf(gs, ls, D2, a).vs) ∧ noid(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vhead, gstepf(gs, ls, D2, a).vs) ∧ noowns(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).owns) |
dom gs.vrvHp = dom gs.prvHp, gs.orl ≠ [], allocrv(gs.pretRefs, gs.prvHp), allocrv(gs.vretRefs, gs.vrvHp), listp(gs.orl + gs.qrl, gs.vs, gs.ps, gs.owns), markedp(gs.orl, gs.vs), markedp(gs.orl, gs.ps), nextnottid(ls.tid, gs.vhead, gs.vs), noid(ls.tid, gs.orl + gs.qrl, gs.vhead, gs.vs), nonullRetRefs(gs.orl + gs.qrl, gs.vs, gs.vretRefs, gs.pretRefs), noowns(ls.tid, gs.owns), rvownerok(gs.pretRefs, gs.prvHp, gs.rvowns), rvownerok(gs.vretRefs, gs.vrvHp, gs.rvowns), unmarkedp(gs.qrl, gs.ps), gs.phead ∈ gs.orl, gs.phead ∈ gs.vs, gs.phead ∈ gs.ps, ¬ dups(gs.orl + gs.qrl), ¬ dups(gs.orl), ¬ dups(gs.qrl), gs.vs[gs.vhead].next ≠ null ∧ gs.vs[gs.vs[gs.vhead].next].deqID ≠ None → gs.rvowns(gs.vretRefs(gs.vs[gs.vs[gs.vhead].next].deqID.tid)) = Claimed(gs.vs[gs.vs[gs.vhead].next].deqID.tid, gs.vs[gs.vs[gs.vhead].next].val), gs.orl.last = gs.vhead ∧ (gs.qrl ≠ [] → unmarkedp(gs.qrl.tail, gs.vs)) ∨ gs.orl.butlast ≠ [] ∧ gs.orl.butlast.last = gs.vhead ∧ gs.phead ≠ gs.orl.last ∧ unmarkedp(gs.qrl, gs.vs), ¬ rvref0 ∈ gs.vrvHp ∧ ¬ rvref0 ∈ gs.prvHp ∧ rvref0 ≠ null ∧ a = chooseD2(rvref0, optval00) ∨ a = τ ∧ ¬(∃ rvref0. ¬ rvref0 ∈ gs.vrvHp ∧ ¬ rvref0 ∈ gs.prvHp ∧ rvref0 ≠ null), gs.vtail = (gs.orl + gs.qrl).last ∨ gs.qrl ≠ [] ∧ gs.vtail = (gs.orl + gs.qrl.butlast).last ∧ gs.vs[gs.qrl.last].deqID = None ∧ gs.vs[gs.qrl.last].next = null ⊦ ∃ rvref0, optval00. a = chooseD2(rvref0, optval00), listp(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs, gstepf(gs, ls, D2, a).ps, gstepf(gs, ls, D2, a).owns) ∧ ¬ dups(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl) ∧ markedp(gstepf(gs, ls, D2, a).orl, gstepf(gs, ls, D2, a).ps) ∧ markedp(gstepf(gs, ls, D2, a).orl, gstepf(gs, ls, D2, a).vs) ∧ unmarkedp(gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).ps) ∧ gstepf(gs, ls, D2, a).orl ≠ [] ∧ gstepf(gs, ls, D2, a).phead ∈ gstepf(gs, ls, D2, a).orl ∧ rvownerok(gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).vrvHp, gstepf(gs, ls, D2, a).rvowns) ∧ allocrv(gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).vrvHp) ∧ nonullRetRefs (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs, gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).pretRefs) ∧ rvownerok(gstepf(gs, ls, D2, a).pretRefs, gstepf(gs, ls, D2, a).prvHp, gstepf(gs, ls, D2, a).rvowns) ∧ allocrv(gstepf(gs, ls, D2, a).pretRefs, gstepf(gs, ls, D2, a).prvHp) ∧ dom gstepf(gs, ls, D2, a).vrvHp = dom gstepf(gs, ls, D2, a).prvHp ∧ ( gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next ≠ null ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID ≠ None → gstepf(gs, ls, D2, a).rvowns (gstepf(gs, ls, D2, a).vretRefs(gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID.tid)) = Claimed (gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID.tid, gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].val)) ∧ ( gstepf(gs, ls, D2, a).orl.last = gstepf(gs, ls, D2, a).vhead ∧ (gstepf(gs, ls, D2, a).qrl ≠ [] → unmarkedp(gstepf(gs, ls, D2, a).qrl.tail, gstepf(gs, ls, D2, a).vs)) ∨ gstepf(gs, ls, D2, a).orl.butlast ≠ [] ∧ gstepf(gs, ls, D2, a).orl.butlast.last = gstepf(gs, ls, D2, a).vhead ∧ gstepf(gs, ls, D2, a).phead ≠ gstepf(gs, ls, D2, a).orl.last ∧ unmarkedp(gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs)) ∧ ( gstepf(gs, ls, D2, a).vtail = (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl).last ∨ gstepf(gs, ls, D2, a).qrl ≠ [] ∧ gstepf(gs, ls, D2, a).vtail = (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl.butlast).last ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).qrl.last].deqID = None ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).qrl.last].next = null) ∧ nextnottid(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).vhead, gstepf(gs, ls, D2, a).vs) ∧ noid(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vhead, gstepf(gs, ls, D2, a).vs) ∧ noowns(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).owns)
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] list-elem-in-app11: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ vs; (forward) from specification DMSQ list-elem-in-app12: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ ps; (forward) from specification DMSQ ⊦ y ≠ [] → (x + y).last = y.last; (s) ⊦ pre(gs, ls, D2, a) ↔ (∃ rvref0, optval00. (¬ rvref0 ∈ gs.vrvHp ∧ ¬ rvref0 ∈ gs.prvHp ∧ rvref0 ≠ null) ∧ a = chooseD2(rvref0, optval00)) ∨ a = τ ∧ ¬ (∃ rvref0, optval00. ¬ rvref0 ∈ gs.vrvHp ∧ ¬ rvref0 ∈ gs.prvHp ∧ rvref0 ≠ null); (s) ⊦ D2 ≠ D3; (s) ⊦ pcstepf(gs, ls, D2, a) = (∃ rvref0, optval00. a = chooseD2(rvref0, optval00) ⊃ D3;D2); (s)
| dom gs.vrvHp = dom gs.prvHp, gs.orl ≠ [], allocrv(gs.pretRefs, gs.prvHp), allocrv(gs.vretRefs, gs.vrvHp), listp(gs.orl + gs.qrl, gs.vs, gs.ps, gs.owns), markedp(gs.orl, gs.vs), markedp(gs.orl, gs.ps), nextnottid(ls.tid, gs.vhead, gs.vs), noid(ls.tid, gs.orl + gs.qrl, gs.vhead, gs.vs), nonullRetRefs(gs.orl + gs.qrl, gs.vs, gs.vretRefs, gs.pretRefs), noowns(ls.tid, gs.owns), rvownerok(gs.pretRefs, gs.prvHp, gs.rvowns), rvownerok(gs.vretRefs, gs.vrvHp, gs.rvowns), unmarkedp(gs.qrl, gs.ps), gs.phead ∈ gs.orl, gs.phead ∈ gs.vs, gs.phead ∈ gs.ps, ¬ dups(gs.orl + gs.qrl), ¬ dups(gs.orl), ¬ dups(gs.qrl), gs.vs[gs.vhead].next ≠ null ∧ gs.vs[gs.vs[gs.vhead].next].deqID ≠ None → gs.rvowns(gs.vretRefs(gs.vs[gs.vs[gs.vhead].next].deqID.tid)) = Claimed(gs.vs[gs.vs[gs.vhead].next].deqID.tid, gs.vs[gs.vs[gs.vhead].next].val), gs.orl.last = gs.vhead ∧ (gs.qrl ≠ [] → unmarkedp(gs.qrl.tail, gs.vs)) ∨ gs.orl.butlast ≠ [] ∧ gs.orl.butlast.last = gs.vhead ∧ gs.phead ≠ gs.orl.last ∧ unmarkedp(gs.qrl, gs.vs), ¬ rvref0 ∈ gs.vrvHp ∧ ¬ rvref0 ∈ gs.prvHp ∧ rvref0 ≠ null ∧ a = chooseD2(rvref0, optval00) ∨ a = τ ∧ ¬(∃ rvref0. ¬ rvref0 ∈ gs.vrvHp ∧ ¬ rvref0 ∈ gs.prvHp ∧ rvref0 ≠ null), gs.vtail = (gs.orl + gs.qrl).last ∨ gs.qrl ≠ [] ∧ gs.vtail = (gs.orl + gs.qrl.butlast).last ∧ gs.vs[gs.qrl.last].deqID = None ∧ gs.vs[gs.qrl.last].next = null ⊦ ∃ rvref0, optval00. a = chooseD2(rvref0, optval00), listp(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs, gstepf(gs, ls, D2, a).ps, gstepf(gs, ls, D2, a).owns) ∧ ¬ dups(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl) ∧ markedp(gstepf(gs, ls, D2, a).orl, gstepf(gs, ls, D2, a).ps) ∧ markedp(gstepf(gs, ls, D2, a).orl, gstepf(gs, ls, D2, a).vs) ∧ unmarkedp(gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).ps) ∧ gstepf(gs, ls, D2, a).orl ≠ [] ∧ gstepf(gs, ls, D2, a).phead ∈ gstepf(gs, ls, D2, a).orl ∧ rvownerok(gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).vrvHp, gstepf(gs, ls, D2, a).rvowns) ∧ allocrv(gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).vrvHp) ∧ nonullRetRefs (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs, gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).pretRefs) ∧ rvownerok(gstepf(gs, ls, D2, a).pretRefs, gstepf(gs, ls, D2, a).prvHp, gstepf(gs, ls, D2, a).rvowns) ∧ allocrv(gstepf(gs, ls, D2, a).pretRefs, gstepf(gs, ls, D2, a).prvHp) ∧ dom gstepf(gs, ls, D2, a).vrvHp = dom gstepf(gs, ls, D2, a).prvHp ∧ ( gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next ≠ null ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID ≠ None → gstepf(gs, ls, D2, a).rvowns (gstepf(gs, ls, D2, a).vretRefs(gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID.tid)) = Claimed (gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID.tid, gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].val)) ∧ ( gstepf(gs, ls, D2, a).orl.last = gstepf(gs, ls, D2, a).vhead ∧ (gstepf(gs, ls, D2, a).qrl ≠ [] → unmarkedp(gstepf(gs, ls, D2, a).qrl.tail, gstepf(gs, ls, D2, a).vs)) ∨ gstepf(gs, ls, D2, a).orl.butlast ≠ [] ∧ gstepf(gs, ls, D2, a).orl.butlast.last = gstepf(gs, ls, D2, a).vhead ∧ gstepf(gs, ls, D2, a).phead ≠ gstepf(gs, ls, D2, a).orl.last ∧ unmarkedp(gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs)) ∧ ( gstepf(gs, ls, D2, a).vtail = (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl).last ∨ gstepf(gs, ls, D2, a).qrl ≠ [] ∧ gstepf(gs, ls, D2, a).vtail = (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl.butlast).last ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).qrl.last].deqID = None ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).qrl.last].next = null) ∧ nextnottid(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).vhead, gstepf(gs, ls, D2, a).vs) ∧ noid(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vhead, gstepf(gs, ls, D2, a).vs) ∧ noowns(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).owns) |
dom vrvHp = dom prvHp, gs = mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), orl ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, ps), markedp(orl, vs), nextnottid(ls.tid, vhead, vs), noid(ls.tid, orl + qrl, vhead, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(ls.tid, owns), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), unmarkedp(qrl, ps), phead ∈ ps, phead ∈ vs, phead ∈ orl, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null ∧ a = chooseD2(rvref0, optval00) ∨ a = τ ∧ ¬(∃ rvref0. ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦ ∃ rvref0, optval00. a = chooseD2(rvref0, optval00), listp(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs, gstepf(gs, ls, D2, a).ps, gstepf(gs, ls, D2, a).owns) ∧ ¬ dups(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl) ∧ markedp(gstepf(gs, ls, D2, a).orl, gstepf(gs, ls, D2, a).ps) ∧ markedp(gstepf(gs, ls, D2, a).orl, gstepf(gs, ls, D2, a).vs) ∧ unmarkedp(gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).ps) ∧ gstepf(gs, ls, D2, a).orl ≠ [] ∧ gstepf(gs, ls, D2, a).phead ∈ gstepf(gs, ls, D2, a).orl ∧ rvownerok(gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).vrvHp, gstepf(gs, ls, D2, a).rvowns) ∧ allocrv(gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).vrvHp) ∧ nonullRetRefs (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs, gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).pretRefs) ∧ rvownerok(gstepf(gs, ls, D2, a).pretRefs, gstepf(gs, ls, D2, a).prvHp, gstepf(gs, ls, D2, a).rvowns) ∧ allocrv(gstepf(gs, ls, D2, a).pretRefs, gstepf(gs, ls, D2, a).prvHp) ∧ dom gstepf(gs, ls, D2, a).vrvHp = dom gstepf(gs, ls, D2, a).prvHp ∧ ( gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next ≠ null ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID ≠ None → gstepf(gs, ls, D2, a).rvowns (gstepf(gs, ls, D2, a).vretRefs(gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID.tid)) = Claimed (gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID.tid, gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].val)) ∧ ( gstepf(gs, ls, D2, a).orl.last = gstepf(gs, ls, D2, a).vhead ∧ (gstepf(gs, ls, D2, a).qrl ≠ [] → unmarkedp(gstepf(gs, ls, D2, a).qrl.tail, gstepf(gs, ls, D2, a).vs)) ∨ gstepf(gs, ls, D2, a).orl.butlast ≠ [] ∧ gstepf(gs, ls, D2, a).orl.butlast.last = gstepf(gs, ls, D2, a).vhead ∧ gstepf(gs, ls, D2, a).phead ≠ gstepf(gs, ls, D2, a).orl.last ∧ unmarkedp(gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs)) ∧ ( gstepf(gs, ls, D2, a).vtail = (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl).last ∨ gstepf(gs, ls, D2, a).qrl ≠ [] ∧ gstepf(gs, ls, D2, a).vtail = (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl.butlast).last ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).qrl.last].deqID = None ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).qrl.last].next = null) ∧ nextnottid(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).vhead, gstepf(gs, ls, D2, a).vs) ∧ noid(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vhead, gstepf(gs, ls, D2, a).vs) ∧ noowns(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).owns)
Used simplifier rules: ⊦ ( ( ( ( ( ( ( ( ( ((ps = gs.ps ∧ vs = gs.vs) ∧ phead = gs.phead) ∧ vhead = gs.vhead) ∧ vtail = gs.vtail) ∧ vretRefs = gs.vretRefs) ∧ pretRefs = gs.pretRefs) ∧ vrvHp = gs.vrvHp) ∧ prvHp = gs.prvHp) ∧ qrl = gs.qrl) ∧ orl = gs.orl) ∧ owns = gs.owns) ∧ rvowns = gs.rvowns ↔ gs = mkgs (ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns); (elim) Used terms: qrl, ps, phead, vrvHp, vretRefs, vhead, vtail, gs, owns, rvowns, orl, prvHp, pretRefs, vs
| dom vrvHp = dom prvHp, gs = mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), orl ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, ps), markedp(orl, vs), nextnottid(ls.tid, vhead, vs), noid(ls.tid, orl + qrl, vhead, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(ls.tid, owns), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), unmarkedp(qrl, ps), phead ∈ ps, phead ∈ vs, phead ∈ orl, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null ∧ a = chooseD2(rvref0, optval00) ∨ a = τ ∧ ¬(∃ rvref0. ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦ ∃ rvref0, optval00. a = chooseD2(rvref0, optval00), listp(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs, gstepf(gs, ls, D2, a).ps, gstepf(gs, ls, D2, a).owns) ∧ ¬ dups(gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl) ∧ markedp(gstepf(gs, ls, D2, a).orl, gstepf(gs, ls, D2, a).ps) ∧ markedp(gstepf(gs, ls, D2, a).orl, gstepf(gs, ls, D2, a).vs) ∧ unmarkedp(gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).ps) ∧ gstepf(gs, ls, D2, a).orl ≠ [] ∧ gstepf(gs, ls, D2, a).phead ∈ gstepf(gs, ls, D2, a).orl ∧ rvownerok(gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).vrvHp, gstepf(gs, ls, D2, a).rvowns) ∧ allocrv(gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).vrvHp) ∧ nonullRetRefs (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs, gstepf(gs, ls, D2, a).vretRefs, gstepf(gs, ls, D2, a).pretRefs) ∧ rvownerok(gstepf(gs, ls, D2, a).pretRefs, gstepf(gs, ls, D2, a).prvHp, gstepf(gs, ls, D2, a).rvowns) ∧ allocrv(gstepf(gs, ls, D2, a).pretRefs, gstepf(gs, ls, D2, a).prvHp) ∧ dom gstepf(gs, ls, D2, a).vrvHp = dom gstepf(gs, ls, D2, a).prvHp ∧ ( gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next ≠ null ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID ≠ None → gstepf(gs, ls, D2, a).rvowns (gstepf(gs, ls, D2, a).vretRefs(gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID.tid)) = Claimed (gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].deqID.tid, gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).vhead].next].val)) ∧ ( gstepf(gs, ls, D2, a).orl.last = gstepf(gs, ls, D2, a).vhead ∧ (gstepf(gs, ls, D2, a).qrl ≠ [] → unmarkedp(gstepf(gs, ls, D2, a).qrl.tail, gstepf(gs, ls, D2, a).vs)) ∨ gstepf(gs, ls, D2, a).orl.butlast ≠ [] ∧ gstepf(gs, ls, D2, a).orl.butlast.last = gstepf(gs, ls, D2, a).vhead ∧ gstepf(gs, ls, D2, a).phead ≠ gstepf(gs, ls, D2, a).orl.last ∧ unmarkedp(gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vs)) ∧ ( gstepf(gs, ls, D2, a).vtail = (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl).last ∨ gstepf(gs, ls, D2, a).qrl ≠ [] ∧ gstepf(gs, ls, D2, a).vtail = (gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl.butlast).last ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).qrl.last].deqID = None ∧ gstepf(gs, ls, D2, a).vs[gstepf(gs, ls, D2, a).qrl.last].next = null) ∧ nextnottid(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).vhead, gstepf(gs, ls, D2, a).vs) ∧ noid(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).orl + gstepf(gs, ls, D2, a).qrl, gstepf(gs, ls, D2, a).vhead, gstepf(gs, ls, D2, a).vs) ∧ noowns(lstepf(gs, ls, D2, a).tid, gstepf(gs, ls, D2, a).owns) |
dom vrvHp = dom prvHp, orl ≠ [], allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), nextnottid(ls.tid, vhead, vs), noid(ls.tid, orl + qrl, vhead, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(ls.tid, owns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), unmarkedp(qrl, ps), phead ∈ orl, phead ∈ vs, phead ∈ ps, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null ∧ a = chooseD2(rvref0, optval00) ∨ a = τ ∧ ¬(∃ rvref0. ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ ∃ rvref0, optval00. a = chooseD2(rvref0, optval00), listp ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).ps, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).owns) ∧ ¬ dups ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl) ∧ markedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).ps) ∧ markedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs) ∧ unmarkedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).ps) ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl ≠ [] ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).phead ∈ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl ∧ rvownerok (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vrvHp, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).rvowns) ∧ allocrv (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vrvHp) ∧ nonullRetRefs ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).pretRefs) ∧ rvownerok (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).pretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).prvHp, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).rvowns) ∧ allocrv (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).pretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).prvHp) ∧ dom gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vrvHp = dom gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).prvHp ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ≠ null ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .deqID ≠ None → gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).rvowns (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .deqID .tid)) = Claimed (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .deqID .tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .val)) ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.last = gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl ≠ [] → unmarkedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.tail, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs)) ∨ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.butlast ≠ [] ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.butlast.last = gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).phead ≠ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.last ∧ unmarkedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs)) ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vtail = ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl ).last ∨ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl ≠ [] ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vtail = ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.butlast ).last ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.last ] .deqID = None ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.last ] .next = null) ∧ nextnottid (lstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs) ∧ noid (lstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs) ∧ noowns (lstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).owns)
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] list-elem-in-app11: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ vs; (forward) from specification DMSQ list-elem-in-app12: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ ps; (forward) from specification DMSQ
| dom vrvHp = dom prvHp, orl ≠ [], allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), nextnottid(ls.tid, vhead, vs), noid(ls.tid, orl + qrl, vhead, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(ls.tid, owns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), unmarkedp(qrl, ps), phead ∈ orl, phead ∈ vs, phead ∈ ps, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null ∧ a = chooseD2(rvref0, optval00) ∨ a = τ ∧ ¬(∃ rvref0. ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ ∃ rvref0, optval00. a = chooseD2(rvref0, optval00), listp ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).ps, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).owns) ∧ ¬ dups ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl) ∧ markedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).ps) ∧ markedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs) ∧ unmarkedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).ps) ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl ≠ [] ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).phead ∈ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl ∧ rvownerok (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vrvHp, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).rvowns) ∧ allocrv (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vrvHp) ∧ nonullRetRefs ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).pretRefs) ∧ rvownerok (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).pretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).prvHp, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).rvowns) ∧ allocrv (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).pretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).prvHp) ∧ dom gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vrvHp = dom gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).prvHp ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ≠ null ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .deqID ≠ None → gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).rvowns (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .deqID .tid)) = Claimed (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .deqID .tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .val)) ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.last = gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl ≠ [] → unmarkedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.tail, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs)) ∨ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.butlast ≠ [] ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.butlast.last = gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).phead ≠ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.last ∧ unmarkedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs)) ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vtail = ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl ).last ∨ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl ≠ [] ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vtail = ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.butlast ).last ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.last ] .deqID = None ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.last ] .next = null) ∧ nextnottid (lstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs) ∧ noid (lstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs) ∧ noowns (lstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).owns) |
dom vrvHp = dom prvHp, ls = mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), orl ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, ps), markedp(orl, vs), nextnottid(tid, vhead, vs), noid(tid, orl + qrl, vhead, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), unmarkedp(qrl, ps), phead ∈ ps, phead ∈ vs, phead ∈ orl, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null ∧ a = chooseD2(rvref0, optval00) ∨ a = τ ∧ ¬(∃ rvref0. ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦ ∃ rvref0, optval00. a = chooseD2(rvref0, optval00), listp ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).ps, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).owns) ∧ ¬ dups ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl) ∧ markedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).ps) ∧ markedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs) ∧ unmarkedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).ps) ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl ≠ [] ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).phead ∈ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl ∧ rvownerok (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vrvHp, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).rvowns) ∧ allocrv (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vrvHp) ∧ nonullRetRefs ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).pretRefs) ∧ rvownerok (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).pretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).prvHp, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).rvowns) ∧ allocrv (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).pretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).prvHp) ∧ dom gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vrvHp = dom gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).prvHp ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ≠ null ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .deqID ≠ None → gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).rvowns (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .deqID .tid)) = Claimed (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .deqID .tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .val)) ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.last = gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl ≠ [] → unmarkedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.tail, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs)) ∨ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.butlast ≠ [] ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.butlast.last = gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).phead ≠ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.last ∧ unmarkedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs)) ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vtail = ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl ).last ∨ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl ≠ [] ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vtail = ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.butlast ).last ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.last ] .deqID = None ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.last ] .next = null) ∧ nextnottid (lstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs) ∧ noid (lstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs) ∧ noowns (lstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).owns)
Used simplifier rules: ⊦ ( ( ( ( ( ( ( ( ( ( (tid = ls.tid ∧ value = ls.value) ∧ optval = ls.optval) ∧ node = ls.node) ∧ nd = ls.nd) ∧ (success ↔ ls.success)) ∧ lst = ls.lst) ∧ nxt = ls.nxt) ∧ rvref = ls.rvref) ∧ optval0 = ls.optval0) ∧ first = ls.first) ∧ othertid = ls.othertid) ∧ addr = ls.addr ↔ ls = mkls (tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr); (elim) Used terms: value, nxt, optval, node, nd, ls, addr, tid, lst, first, rvref, othertid, success, optval
| dom vrvHp = dom prvHp, ls = mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), orl ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, ps), markedp(orl, vs), nextnottid(tid, vhead, vs), noid(tid, orl + qrl, vhead, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), unmarkedp(qrl, ps), phead ∈ ps, phead ∈ vs, phead ∈ orl, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null ∧ a = chooseD2(rvref0, optval00) ∨ a = τ ∧ ¬(∃ rvref0. ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦ ∃ rvref0, optval00. a = chooseD2(rvref0, optval00), listp ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).ps, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).owns) ∧ ¬ dups ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl) ∧ markedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).ps) ∧ markedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs) ∧ unmarkedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).ps) ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl ≠ [] ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).phead ∈ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl ∧ rvownerok (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vrvHp, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).rvowns) ∧ allocrv (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vrvHp) ∧ nonullRetRefs ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).pretRefs) ∧ rvownerok (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).pretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).prvHp, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).rvowns) ∧ allocrv (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).pretRefs, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).prvHp) ∧ dom gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vrvHp = dom gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).prvHp ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ≠ null ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .deqID ≠ None → gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).rvowns (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vretRefs (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .deqID .tid)) = Claimed (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .deqID .tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ] .next ] .val)) ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.last = gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl ≠ [] → unmarkedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.tail, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs)) ∨ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.butlast ≠ [] ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.butlast.last = gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).phead ≠ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl.last ∧ unmarkedp (gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs)) ∧ ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vtail = ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl ).last ∨ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl ≠ [] ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vtail = ( gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.butlast ).last ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.last ] .deqID = None ∧ gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs [gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl.last ] .next = null) ∧ nextnottid (lstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs) ∧ noid (lstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).orl + gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).qrl, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vhead, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).vs) ∧ noowns (lstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).tid, gstepf(mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), ls, D2, a).owns) |
dom vrvHp = dom prvHp, orl ≠ [], allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), nextnottid(tid, vhead, vs), noid(tid, orl + qrl, vhead, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), unmarkedp(qrl, ps), phead ∈ orl, phead ∈ vs, phead ∈ ps, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null ∧ a = chooseD2(rvref0, optval00) ∨ a = τ ∧ ¬(∃ rvref0. ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ ∃ rvref0, optval00. a = chooseD2(rvref0, optval00), listp ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl + gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .ps, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .owns) ∧ ¬ dups ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl + gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl) ∧ markedp (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .ps) ∧ markedp (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs) ∧ unmarkedp (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .ps) ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl ≠ [] ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .phead ∈ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl ∧ rvownerok (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vretRefs, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vrvHp, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .rvowns) ∧ allocrv (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vretRefs, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vrvHp) ∧ nonullRetRefs ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl + gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vretRefs, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .pretRefs) ∧ rvownerok (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .pretRefs, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .prvHp, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .rvowns) ∧ allocrv (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .pretRefs, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .prvHp) ∧ dom gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vrvHp = dom gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .prvHp ∧ ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead ] .next ≠ null ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead ] .next ] .deqID ≠ None → gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .rvowns (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vretRefs (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead ] .next ] .deqID .tid)) = Claimed (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead ] .next ] .deqID .tid, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead ] .next ] .val)) ∧ ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl .last = gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead ∧ ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl ≠ [] → unmarkedp (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl .tail, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs)) ∨ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl .butlast ≠ [] ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl .butlast .last = gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .phead ≠ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl .last ∧ unmarkedp (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs)) ∧ ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vtail = ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl + gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl ).last ∨ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl ≠ [] ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vtail = ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl + gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl .butlast ).last ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl .last ] .deqID = None ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl .last ] .next = null) ∧ nextnottid (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs) ∧ noid (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl + gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs) ∧ noowns (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .owns)
| dom vrvHp = dom prvHp, orl ≠ [], allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), nextnottid(tid, vhead, vs), noid(tid, orl + qrl, vhead, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), unmarkedp(qrl, ps), phead ∈ orl, phead ∈ vs, phead ∈ ps, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null ∧ a = chooseD2(rvref0, optval00) ∨ a = τ ∧ ¬(∃ rvref0. ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ ∃ rvref0, optval00. a = chooseD2(rvref0, optval00), listp ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl + gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .ps, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .owns) ∧ ¬ dups ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl + gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl) ∧ markedp (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .ps) ∧ markedp (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs) ∧ unmarkedp (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .ps) ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl ≠ [] ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .phead ∈ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl ∧ rvownerok (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vretRefs, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vrvHp, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .rvowns) ∧ allocrv (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vretRefs, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vrvHp) ∧ nonullRetRefs ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl + gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vretRefs, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .pretRefs) ∧ rvownerok (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .pretRefs, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .prvHp, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .rvowns) ∧ allocrv (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .pretRefs, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .prvHp) ∧ dom gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vrvHp = dom gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .prvHp ∧ ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead ] .next ≠ null ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead ] .next ] .deqID ≠ None → gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .rvowns (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vretRefs (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead ] .next ] .deqID .tid)) = Claimed (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead ] .next ] .deqID .tid, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead ] .next ] .val)) ∧ ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl .last = gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead ∧ ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl ≠ [] → unmarkedp (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl .tail, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs)) ∨ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl .butlast ≠ [] ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl .butlast .last = gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .phead ≠ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl .last ∧ unmarkedp (gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs)) ∧ ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vtail = ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl + gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl ).last ∨ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl ≠ [] ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vtail = ( gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl + gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl .butlast ).last ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl .last ] .deqID = None ∧ gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs [gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl .last ] .next = null) ∧ nextnottid (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs) ∧ noid (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .orl + gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .qrl, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vhead, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .vs) ∧ noowns (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .owns) |
dom vrvHp = dom prvHp, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) = mkgs(ps0, vs0, phead0, vhead0, vtail0, vretRefs0, pretRefs0, vrvHp0, prvHp0, qrl0, orl0, owns0, rvowns0), orl ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, ps), markedp(orl, vs), nextnottid(tid, vhead, vs), noid(tid, orl + qrl, vhead, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), unmarkedp(qrl, ps), phead ∈ ps, phead ∈ vs, phead ∈ orl, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null ∧ a = chooseD2(rvref0, optval00) ∨ a = τ ∧ ¬(∃ rvref0. ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦ ∃ rvref0, optval00. a = chooseD2(rvref0, optval00), listp(orl0 + qrl0, vs0, ps0, owns0) ∧ ¬ dups(orl0 + qrl0) ∧ markedp(orl0, ps0) ∧ markedp(orl0, vs0) ∧ unmarkedp(qrl0, ps0) ∧ orl0 ≠ [] ∧ phead0 ∈ orl0 ∧ rvownerok(vretRefs0, vrvHp0, rvowns0) ∧ allocrv(vretRefs0, vrvHp0) ∧ nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0) ∧ rvownerok(pretRefs0, prvHp0, rvowns0) ∧ allocrv(pretRefs0, prvHp0) ∧ dom vrvHp0 = dom prvHp0 ∧ ( vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val)) ∧ ( orl0.last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0)) ∧ (vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null) ∧ nextnottid (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, vhead0, vs0) ∧ noid (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, orl0 + qrl0, vhead0, vs0) ∧ noowns (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, owns0)
Used simplifier rules: ⊦ ( ( ( ( ( ( ( ( ( ((ps = gs.ps ∧ vs = gs.vs) ∧ phead = gs.phead) ∧ vhead = gs.vhead) ∧ vtail = gs.vtail) ∧ vretRefs = gs.vretRefs) ∧ pretRefs = gs.pretRefs) ∧ vrvHp = gs.vrvHp) ∧ prvHp = gs.prvHp) ∧ qrl = gs.qrl) ∧ orl = gs.orl) ∧ owns = gs.owns) ∧ rvowns = gs.rvowns ↔ gs = mkgs (ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns); (elim) Used terms: qrl0, ps0, phead0, vrvHp0, vretRefs0, vhead0, vtail0, gstepf (mkgs (ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls (tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a), owns0, rvowns0, orl0, prvHp0, pretRefs0, vs0
| dom vrvHp = dom prvHp, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) = mkgs(ps0, vs0, phead0, vhead0, vtail0, vretRefs0, pretRefs0, vrvHp0, prvHp0, qrl0, orl0, owns0, rvowns0), orl ≠ [], allocrv(vretRefs, vrvHp), allocrv(pretRefs, prvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, ps), markedp(orl, vs), nextnottid(tid, vhead, vs), noid(tid, orl + qrl, vhead, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(vretRefs, vrvHp, rvowns), rvownerok(pretRefs, prvHp, rvowns), unmarkedp(qrl, ps), phead ∈ ps, phead ∈ vs, phead ∈ orl, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null, ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null ∧ a = chooseD2(rvref0, optval00) ∨ a = τ ∧ ¬(∃ rvref0. ¬ rvref0 ∈ vrvHp ∧ ¬ rvref0 ∈ prvHp ∧ rvref0 ≠ null), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs) ⊦ ∃ rvref0, optval00. a = chooseD2(rvref0, optval00), listp(orl0 + qrl0, vs0, ps0, owns0) ∧ ¬ dups(orl0 + qrl0) ∧ markedp(orl0, ps0) ∧ markedp(orl0, vs0) ∧ unmarkedp(qrl0, ps0) ∧ orl0 ≠ [] ∧ phead0 ∈ orl0 ∧ rvownerok(vretRefs0, vrvHp0, rvowns0) ∧ allocrv(vretRefs0, vrvHp0) ∧ nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0) ∧ rvownerok(pretRefs0, prvHp0, rvowns0) ∧ allocrv(pretRefs0, prvHp0) ∧ dom vrvHp0 = dom prvHp0 ∧ ( vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val)) ∧ ( orl0.last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0)) ∧ (vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null) ∧ nextnottid (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, vhead0, vs0) ∧ noid (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, orl0 + qrl0, vhead0, vs0) ∧ noowns (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, owns0) |
a = chooseD2(rvref0, optval00), dom vrvHp = dom prvHp, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) = mkgs(ps0, vs0, phead0, vhead0, vtail0, vretRefs0, pretRefs0, vrvHp0, prvHp0, qrl0, orl0, owns0, rvowns0), orl ≠ [], rvref0 ≠ null, allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), nextnottid(tid, vhead, vs), noid(tid, orl + qrl, vhead, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), unmarkedp(qrl, ps), phead ∈ orl, phead ∈ vs, phead ∈ ps, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), ¬ rvref0 ∈ prvHp, ¬ rvref0 ∈ vrvHp, vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ ∃ rvref0, optval00. a = chooseD2(rvref0, optval00), listp(orl0 + qrl0, vs0, ps0, owns0) ∧ ¬ dups(orl0 + qrl0) ∧ markedp(orl0, ps0) ∧ markedp(orl0, vs0) ∧ unmarkedp(qrl0, ps0) ∧ orl0 ≠ [] ∧ phead0 ∈ orl0 ∧ rvownerok(vretRefs0, vrvHp0, rvowns0) ∧ allocrv(vretRefs0, vrvHp0) ∧ nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0) ∧ rvownerok(pretRefs0, prvHp0, rvowns0) ∧ allocrv(pretRefs0, prvHp0) ∧ dom vrvHp0 = dom prvHp0 ∧ ( vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val)) ∧ ( orl0.last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0)) ∧ (vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null) ∧ nextnottid (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, vhead0, vs0) ∧ noid (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, orl0 + qrl0, vhead0, vs0) ∧ noowns (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, owns0)
Used simplifier rules: ⊦ gstepf(gs, ls, D2, τ) = gs; (s) ⊦ mkgs (ps, ps0, phead, phead0, phead1, vretRefs, vretRefs0, vrvHp, vrvHp0, qrl, qrl0, owns, rvowns) = mkgs (ps1, ps2, phead2, phead3, phead4, vretRefs1, vretRefs2, vrvHp1, vrvHp2, qrl1, qrl2, owns0, rvowns0) ↔ ps = ps1 ∧ ps0 = ps2 ∧ phead = phead2 ∧ phead0 = phead3 ∧ phead1 = phead4 ∧ vretRefs = vretRefs1 ∧ vretRefs0 = vretRefs2 ∧ vrvHp = vrvHp1 ∧ vrvHp0 = vrvHp2 ∧ qrl = qrl1 ∧ qrl0 = qrl2 ∧ owns = owns0 ∧ rvowns = rvowns0; (ws) ⊦ lstepf(gs, ls, D2, τ) = ls; (s) ⊦ mkls (tid, value, optval, node, nd, success, node0, node1, rvref, optval0, node2, tid0, rvref0) .tid = tid; (s) ⊦ chooseD2(rvref, optval) ≠ τ; (s)
| a = chooseD2(rvref0, optval00), dom vrvHp = dom prvHp, gstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) = mkgs(ps0, vs0, phead0, vhead0, vtail0, vretRefs0, pretRefs0, vrvHp0, prvHp0, qrl0, orl0, owns0, rvowns0), orl ≠ [], rvref0 ≠ null, allocrv(pretRefs, prvHp), allocrv(vretRefs, vrvHp), listp(orl + qrl, vs, ps, owns), markedp(orl, vs), markedp(orl, ps), nextnottid(tid, vhead, vs), noid(tid, orl + qrl, vhead, vs), nonullRetRefs(orl + qrl, vs, vretRefs, pretRefs), noowns(tid, owns), rvownerok(pretRefs, prvHp, rvowns), rvownerok(vretRefs, vrvHp, rvowns), unmarkedp(qrl, ps), phead ∈ orl, phead ∈ vs, phead ∈ ps, ¬ dups(orl + qrl), ¬ dups(orl), ¬ dups(qrl), ¬ rvref0 ∈ prvHp, ¬ rvref0 ∈ vrvHp, vs[vhead].next ≠ null ∧ vs[vs[vhead].next].deqID ≠ None → rvowns(vretRefs(vs[vs[vhead].next].deqID.tid)) = Claimed(vs[vs[vhead].next].deqID.tid, vs[vs[vhead].next].val), orl.last = vhead ∧ (qrl ≠ [] → unmarkedp(qrl.tail, vs)) ∨ orl.butlast ≠ [] ∧ orl.butlast.last = vhead ∧ phead ≠ orl.last ∧ unmarkedp(qrl, vs), vtail = (orl + qrl).last ∨ qrl ≠ [] ∧ vtail = (orl + qrl.butlast).last ∧ vs[qrl.last].deqID = None ∧ vs[qrl.last].next = null ⊦ ∃ rvref0, optval00. a = chooseD2(rvref0, optval00), listp(orl0 + qrl0, vs0, ps0, owns0) ∧ ¬ dups(orl0 + qrl0) ∧ markedp(orl0, ps0) ∧ markedp(orl0, vs0) ∧ unmarkedp(qrl0, ps0) ∧ orl0 ≠ [] ∧ phead0 ∈ orl0 ∧ rvownerok(vretRefs0, vrvHp0, rvowns0) ∧ allocrv(vretRefs0, vrvHp0) ∧ nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0) ∧ rvownerok(pretRefs0, prvHp0, rvowns0) ∧ allocrv(pretRefs0, prvHp0) ∧ dom vrvHp0 = dom prvHp0 ∧ ( vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns0(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val)) ∧ ( orl0.last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0)) ∧ (vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null) ∧ nextnottid (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, vhead0, vs0) ∧ noid (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, orl0 + qrl0, vhead0, vs0) ∧ noowns (lstepf (mkgs(ps, vs, phead, vhead, vtail, vretRefs, pretRefs, vrvHp, prvHp, qrl, orl, owns, rvowns), mkls(tid, value, optval, node, nd, success, lst, nxt, rvref, optval0, first, othertid, addr), D2, a) .tid, owns0) |
dom vrvHp = dom prvHp, orl0 ≠ [], rvref0 ≠ null, allocrv(pretRefs0, prvHp[rvref0, optval00]), allocrv(vretRefs0, vrvHp), allocrv(pretRefs0, prvHp), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + qrl0, vhead0, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp, rvowns), rvownerok(pretRefs0, prvHp, rvowns), unmarkedp(qrl0, ps0), phead0 ∈ ps0, phead0 ∈ vs0, phead0 ∈ orl0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ rvref0 ∈ prvHp, ¬ rvref0 ∈ vrvHp, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, orl0.last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0) ⊦ ∃ rvref, optval. chooseD2(rvref0, optval00) = chooseD2(rvref, optval), ( vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → (rvref0 = vretRefs0(vs0[vs0[vhead0].next].deqID.tid) ⊃ Pending(tid);rvowns(vretRefs0(vs0[vs0[vhead0].next].deqID.tid))) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val)) ∧ rvownerok(pretRefs0, prvHp[rvref0, optval00], rvowns(rvref0; Pending(tid))) ∧ allocrv(vretRefs0, vrvHp[rvref0, optval00]) ∧ rvownerok(vretRefs0, vrvHp[rvref0, optval00], rvowns(rvref0; Pending(tid)))
Used simplifier rules: a: ⊦ (x + y) + z = x + y + z; from specification list[reflist] a: ⊦ ¬ dups(x + y) → ¬ dups(x) ∧ ¬ dups(y); (forward) from specification list-dup[reflist] list-elem-in-app11: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ vs; (forward) from specification DMSQ list-elem-in-app12: ⊦ listp(orl + qrl, vs, ps, owns) ∧ node ∈ orl → node ∈ ps; (forward) from specification DMSQ ⊦ a ∈ st[b, d] ↔ a = b ∨ a ∈ st; (ws) ⊦ allocrv(vretRefs, vrvHp) → ( allocrv(vretRefs0, vrvHp0) ↔ (∀ tid. vretRefs(tid) = null ∨ vretRefs(tid) ∈ vrvHp ∧ vretRefs(tid) ≠ null → vretRefs0(tid) = null ∨ vretRefs0(tid) ∈ vrvHp0 ∧ vretRefs0(tid) ≠ null)); (ss) ⊦ dom st[a, d] = dom st ++ a; (s) ⊦ mkls (tid, value, optval, node, nd, success, node0, node1, rvref, optval0, node2, tid0, rvref0) .tid = tid; (s) ⊦ mkls (tid, value, optval, node, nd, success, node0, node1, rvref, optval0, node2, tid0, rvref0) .optval0:= optval2 = mkls (tid, value, optval, node, nd, success, node0, node1, rvref, optval2, node2, tid0, rvref0); (s) ⊦ mkls (tid, value, optval, node, nd, success, node0, node1, rvref, optval0, node2, tid0, rvref0) .rvref:= rvref1 = mkls (tid, value, optval, node, nd, success, node0, node1, rvref1, optval0, node2, tid0, rvref0); (s) ⊦ lstepf(gs, ls, D2, chooseD2(rvref0, optval00)) = (ls.rvref:= rvref0).optval0:= optval00; (s) ⊦ mkgs (ps, ps0, phead, phead0, phead1, vretRefs, vretRefs0, vrvHp, vrvHp0, qrl, qrl0, owns, rvowns) = mkgs (ps1, ps2, phead2, phead3, phead4, vretRefs1, vretRefs2, vrvHp1, vrvHp2, qrl1, qrl2, owns0, rvowns0) ↔ ps = ps1 ∧ ps0 = ps2 ∧ phead = phead2 ∧ phead0 = phead3 ∧ phead1 = phead4 ∧ vretRefs = vretRefs1 ∧ vretRefs0 = vretRefs2 ∧ vrvHp = vrvHp1 ∧ vrvHp0 = vrvHp2 ∧ qrl = qrl1 ∧ qrl0 = qrl2 ∧ owns = owns0 ∧ rvowns = rvowns0; (ws) ⊦ mkgs (ps, ps0, phead, phead0, phead1, vretRefs, vretRefs0, vrvHp, vrvHp0, qrl, qrl0, owns, rvowns) .rvowns:= rvowns0 = mkgs (ps, ps0, phead, phead0, phead1, vretRefs, vretRefs0, vrvHp, vrvHp0, qrl, qrl0, owns, rvowns0); (s) ⊦ mkls (tid, value, optval, node, nd, success, node0, node1, rvref, optval0, node2, tid0, rvref0) .rvref = rvref; (s) ⊦ mkgs (ps, ps0, phead, phead0, phead1, vretRefs, vretRefs0, vrvHp, vrvHp0, qrl, qrl0, owns, rvowns) .rvowns = rvowns; (s) ⊦ mkgs (ps, ps0, phead, phead0, phead1, vretRefs, vretRefs0, vrvHp, vrvHp0, qrl, qrl0, owns, rvowns) .prvHp:= vrvHp2 = mkgs (ps, ps0, phead, phead0, phead1, vretRefs, vretRefs0, vrvHp, vrvHp2, qrl, qrl0, owns, rvowns); (s) ⊦ mkls (tid, value, optval, node, nd, success, node0, node1, rvref, optval0, node2, tid0, rvref0) .optval0 = optval0; (s) ⊦ mkgs (ps, ps0, phead, phead0, phead1, vretRefs, vretRefs0, vrvHp, vrvHp0, qrl, qrl0, owns, rvowns) .prvHp = vrvHp0; (s) ⊦ mkgs (ps, ps0, phead, phead0, phead1, vretRefs, vretRefs0, vrvHp, vrvHp0, qrl, qrl0, owns, rvowns) .vrvHp:= vrvHp1 = mkgs (ps, ps0, phead, phead0, phead1, vretRefs, vretRefs0, vrvHp1, vrvHp0, qrl, qrl0, owns, rvowns); (s) ⊦ mkgs (ps, ps0, phead, phead0, phead1, vretRefs, vretRefs0, vrvHp, vrvHp0, qrl, qrl0, owns, rvowns) .vrvHp = vrvHp; (s) ⊦ gstepf(gs, ls, D2, chooseD2(rvref0, optval00)) = ( ( gs .vrvHp:= gs.vrvHp [((ls.rvref:= rvref0).optval0:= optval00 ).rvref, ((ls.rvref:= rvref0).optval0:= optval00 ).optval0 ]) .prvHp:= gs.prvHp [((ls.rvref:= rvref0).optval0:= optval00).rvref, ((ls.rvref:= rvref0).optval0:= optval00).optval0 ]) .rvowns:= gs.rvowns (((ls.rvref:= rvref0).optval0:= optval00).rvref ; Pending(((ls.rvref:= rvref0).optval0:= optval00).tid) ); (s)
| dom vrvHp = dom prvHp, orl0 ≠ [], rvref0 ≠ null, allocrv(pretRefs0, prvHp[rvref0, optval00]), allocrv(vretRefs0, vrvHp), allocrv(pretRefs0, prvHp), listp(orl0 + qrl0, vs0, ps0, owns0), markedp(orl0, ps0), markedp(orl0, vs0), nextnottid(tid, vhead0, vs0), noid(tid, orl0 + qrl0, vhead0, vs0), nonullRetRefs(orl0 + qrl0, vs0, vretRefs0, pretRefs0), noowns(tid, owns0), rvownerok(vretRefs0, vrvHp, rvowns), rvownerok(pretRefs0, prvHp, rvowns), unmarkedp(qrl0, ps0), phead0 ∈ ps0, phead0 ∈ vs0, phead0 ∈ orl0, ¬ dups(qrl0), ¬ dups(orl0), ¬ dups(orl0 + qrl0), ¬ rvref0 ∈ prvHp, ¬ rvref0 ∈ vrvHp, vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → rvowns(vretRefs0(vs0[vs0[vhead0].next].deqID.tid)) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val), vtail0 = (orl0 + qrl0).last ∨ qrl0 ≠ [] ∧ vtail0 = (orl0 + qrl0.butlast).last ∧ vs0[qrl0.last].deqID = None ∧ vs0[qrl0.last].next = null, orl0.last = vhead0 ∧ (qrl0 ≠ [] → unmarkedp(qrl0.tail, vs0)) ∨ orl0.butlast ≠ [] ∧ orl0.butlast.last = vhead0 ∧ phead0 ≠ orl0.last ∧ unmarkedp(qrl0, vs0) ⊦ ∃ rvref, optval. chooseD2(rvref0, optval00) = chooseD2(rvref, optval), ( vs0[vhead0].next ≠ null ∧ vs0[vs0[vhead0].next].deqID ≠ None → (rvref0 = vretRefs0(vs0[vs0[vhead0].next].deqID.tid) ⊃ Pending(tid);rvowns(vretRefs0(vs0[vs0[vhead0].next].deqID.tid))) = Claimed(vs0[vs0[vhead0].next].deqID.tid, vs0[vs0[vhead0].next].val)) ∧ rvownerok(pretRefs0, prvHp[rvref0, optval00], rvowns(rvref0; Pending(tid))) ∧ allocrv(vretRefs0, vrvHp[rvref0, optval00]) ∧ rvownerok(vretRefs0, vrvHp[rvref0, optval00], rvowns(rvref0; Pending(tid))) |
Used terms: rvref0, optval00
The following image shows the proof tree of sequent calculus. The proved goal is at the bottom. You can click on the nodes to view additional rules. See here for details on colors in a proof tree.