| acc .first = (st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)][r0 -- fs ']) .refval, st[r0 -- _type] .type ≤ ty, is_obj(r, st), is_reftype(ty0), mkfs(class, ty0, fieldvar) ' ∈ instfields(st[r -- _type] .type .class), junkrefs(str, acc, fs .type, st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)]), is_referencevalue(st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)][r0 -- fs ']), fs ' ∈ instfields((st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)][r0 -- _type]) .type .class), is_obj(str, r0, st), (st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)][r0 -- _type]) .type ≤ ty, is_obj(str, r0, st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)]), ∀ str, ty, st, r, fs. ¬ junkrefs(str, acc, ty, st) ∧ is_obj(r, st) ∧ is_reftype(fs .type) ∧ fs ' ∈ instfields(st[r -- _type] .type .class) → ¬ junkrefs(str, acc, ty, st[r -- fs ', refval(jvmref)]) ⊦ acc = [], r0 = jvmref, junkrefs(str, r0 ' + acc, ty, st) |
acc = r1 + refs, r1 = (st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)][r0 -- fs ']) .refval, st[r0 -- _type] .type ≤ ty, is_obj(r, st), is_reftype(ty0), mkfs(class, ty0, fieldvar) ' ∈ instfields(st[r -- _type] .type .class), junkrefs(str, acc, fs .type, st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)]), is_referencevalue(st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)][r0 -- fs ']), fs ' ∈ instfields((st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)][r0 -- _type]) .type .class), is_obj(str, r0, st), (st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)][r0 -- _type]) .type ≤ ty, is_obj(str, r0, st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)]), ∀ str, ty, st, r, fs. ¬ junkrefs(str, acc, ty, st) ∧ is_obj(r, st) ∧ is_reftype(fs .type) ∧ fs ' ∈ instfields(st[r -- _type] .type .class) → ¬ junkrefs(str, acc, ty, st[r -- fs ', refval(jvmref)]) ⊦ acc = [], r0 = jvmref, junkrefs(str, r0 ' + acc, ty, st)
[[CONCRETESIMPRULES : ([CSIMPELIM : refs ≠ [] ⊦ r = refs .first ∧ refs0 = refs .rest ↔ refs = r + refs0])], [EXTRATERMS : (acc, r1, refs)]]