| acc .first = (st[r1 -- i ', val][r -- i0 ']) .refval, is_array(str, r, st[r1 -- i ', val]), st[r -- _type] .type ≤ ty, is_array(str, r, st), okval(val, st[r1 -- _type] .type .type), i0 < st[r -- _length] .intval, is_referencevalue(st[r1 -- i ', val][r -- i0 ']), junkrefs(str, acc, st[r -- _type] .type .type, st[r1 -- i ', val]), 0 ≤ i0, 0 < st[r -- _length] .intval, ∀ 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[r1 -- i ', val][r -- i0 ']) .refval, is_array(str, r, st[r1 -- i ', val]), st[r -- _type] .type ≤ ty, is_array(str, r, st), okval(val, st[r1 -- _type] .type .type), i0 < st[r -- _length] .intval, is_referencevalue(st[r1 -- i ', val][r -- i0 ']), junkrefs(str, acc, st[r -- _type] .type .type, st[r1 -- i ', val]), 0 ≤ i0, 0 < st[r -- _length] .intval, ∀ 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)]]