| acc = r1 + refs, r1 = (st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)][r0 -- fs ']) .refval, st[r0 -- _type] .type ≤ ty, is_reftype(ty0), 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, fs, r. ¬ junkrefs(str, acc, ty, st) ∧ is_reftype(fs .type) → ¬ junkrefs(str, acc, ty, st[r -- fs ', refval(jvmref)]) ⊦ acc = [], r0 = jvmref, junkrefs(str, r0 ' + acc, ty, st) |
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)]), st[r0 -- _type] .type ≤ ty, is_reftype(ty0), junkrefs (str, (st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)][r0 -- fs ']) .refval ' + refs, fs .type, st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)]), ∀ str0, ty1, st0, fs0, r1. ¬ junkrefs(str0, (st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)][r0 -- fs ']) .refval ' + refs, ty1, st0) ∧ is_reftype(fs0 .type) → ¬ junkrefs(str0, (st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)][r0 -- fs ']) .refval ' + refs, ty1, st0[r1 -- fs0 ', refval(jvmref)]) ⊦ r0 = jvmref, junkrefs(str, r0 ' + (st[r -- mkfs(class, ty0, fieldvar) ', refval(jvmref)][r0 -- fs ']) .refval ' + refs, ty, st)
[[CONCRETESIMPRULES : ([CSIMPSEQ : ⊦ (refs + refs0) + refs1 = refs + refs0 + refs1], [CSIMPSEQ : ⊦ r ' + refs ≠ []], [CSIMPSEQ : ⊦ r + refs = r ' + refs])]]