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