| is_classtype(st[r0 -- _type] .type), validrefs(str, r ' + acc, ty, st), is_obj(str, r, st) ∨ is_array(str, r, st), st[r -- _type] .type ≤ ty, ∀ st, r0, str, ty, fs, val. is_classtype(st[r0 -- _type] .type) ∧ validrefs(str, acc, ty, st) → fs ' = _type ∨ acc = [] ∨ junkref(str, acc .first, st) ∨ fs ' ∈ instfields(st[r0 -- _type] .type .class) ∨ dups(acc .butlast) ∨ validrefs(str, acc, ty, st[r0 -- fs ', val]) ⊦ junkref(str, r, st[r0 -- fs ', val]), fs ' = _type, r = jvmref, junkref(str, r, st), fs ' ∈ instfields(st[r0 -- _type] .type .class), dups((r ' + acc) .butlast), validrefs(str, r ' + acc, ty, st[r0 -- fs ', val]) |
st[r0 -- _type] .type = mkclasstype(class), is_classtype(st[r0 -- _type] .type), validrefs(str, r ' + acc, ty, st), is_obj(str, r, st) ∨ is_array(str, r, st), st[r -- _type] .type ≤ ty, ∀ st, r0, str, ty, fs, val. is_classtype(st[r0 -- _type] .type) ∧ validrefs(str, acc, ty, st) → fs ' = _type ∨ acc = [] ∨ junkref(str, acc .first, st) ∨ fs ' ∈ instfields(st[r0 -- _type] .type .class) ∨ dups(acc .butlast) ∨ validrefs(str, acc, ty, st[r0 -- fs ', val]) ⊦ junkref(str, r, st[r0 -- fs ', val]), fs ' = _type, r = jvmref, junkref(str, r, st), fs ' ∈ instfields(class), dups((r ' + acc) .butlast), validrefs(str, r ' + acc, ty, st[r0 -- fs ', val])
[[CONCRETESIMPRULES : ([CSIMPELIM : ⊦ is_classtype(ty) → ( class = ty .class ↔ ty = mkclasstype(class))])], [EXTRATERMS : (st[r0 -- _type] .type, class)]]