| is_obj(str, r, st), st[r -- mkfs(class0, ty0, fieldvar) '] = refval(r0), st[r -- _type] .type = mkclasstype(class), mkfs(class0, ty0, fieldvar) ' ∈ instfields(class), is_reftype(ty0), is_classtype(ty), class ≤ ty .class, is_valid_ref(str, r, st), ¬ validref(str, r0, ty0, st) ∨ ¬ st[r -- (mkfs(class0, ty0, fieldvar) ' ' + _type ')] .type ≤ ty0 ⊦ r = jvmref, r0 = jvmref, ty0 = abstract_type, ∃ fs. fs ' ∈ instfields(st[r -- _type] .type .class) ∧ (is_reftype(fs .type) ∨ fs .type = abstract_type) ∧ st[r -- fs '] .refval ≠ jvmref ∧ (¬ is_referencevalue(st[r -- fs ']) ∨ ¬ st[st[r -- fs '] .refval -- _type] .type ≤ fs .type ∨ junkref(str, st[r -- fs '] .refval, st)) |
st[r -- _type] .type = mkclasstype(class), st[r -- mkfs(class0, ty0, fieldvar) '] = refval(r0), class ≤ ty .class, is_classtype(ty), is_reftype(ty0), mkfs(class0, ty0, fieldvar) ' ∈ instfields(class), is_obj(str, r, st), ¬ validref(str, r0, ty0, st) ∨ ¬ st[r -- (mkfs(class0, ty0, fieldvar) ' ' + _type ')] .type ≤ ty0 ⊦ ty0 = abstract_type, r0 = jvmref, r = jvmref, ∃ fs. fs ' ∈ instfields(class) ∧ (is_reftype(fs .type) ∨ fs .type = abstract_type) ∧ st[r -- fs '] .refval ≠ jvmref ∧ (¬ is_referencevalue(st[r -- fs ']) ∨ ¬ st[st[r -- fs '] .refval -- _type] .type ≤ fs .type ∨ junkref(str, st[r -- fs '] .refval, st))
[[CONCRETESIMPRULES : ([CSIMPSEQ : ⊦ mkclasstype(class) .class = class], [CSIMPSEQ : ⊦ is_obj(str, r, st) → is_valid_ref(str, r, st)])]]