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