| 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, junkref(str, r, st) |
⊦ is_obj(str, r, st) → ( junkref(str, r, st) ↔ (∃ 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))))
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))
[[CONCRETESIMPRULES : ([CSIMPSEQ : ⊦ ¬ is_obj(str, r, st) → ( is_valid_ref(str, r, st) ↔ is_array(str, r, st))], [CSIMPSEQ : ⊦ st[r -- _type] .type = mkclasstype(class) → ¬ is_array(str, r, st)])], [EXTRATERMS : (st, r, str)]]