| junkrefs(str, r0 ' + acc, ty, st[r -- i ', refval(jvmref)]), is_reftype(st[r -- _type] .type .type), is_valid_ref(str, r0, st), st[r0 -- _type] .type ≤ ty, ∀ st, r, str, ty, i. is_reftype(st[r -- _type] .type .type) ∧ junkrefs(str, acc, ty, st[r -- i ', refval(jvmref)]) → r = jvmref ∨ junkrefs(str, acc, ty, st) ⊦ r0 = jvmref, r = jvmref, junkrefs(str, r0 ' + acc, ty, st) |
⊦ is_valid_ref(str, r, st) ↔ is_obj(str, r, st) ∨ is_array(str, r, st)
junkrefs(str, r0 ' + acc, ty, st[r -- i ', refval(jvmref)]), is_reftype(st[r -- _type] .type .type), is_obj(str, r0, st) ∨ is_array(str, r0, st), st[r0 -- _type] .type ≤ ty, ∀ st, r, str, ty, i. is_reftype(st[r -- _type] .type .type) ∧ junkrefs(str, acc, ty, st[r -- i ', refval(jvmref)]) → r = jvmref ∨ junkrefs(str, acc, ty, st) ⊦ r0 = jvmref, r = jvmref, junkrefs(str, r0 ' + acc, ty, st)
[[CONCRETESIMPRULES : ()], [EXTRATERMS : (st, r0, str)]]