| st0[r -- mkfs(class0, ty, fieldvar) '] = refval(r0), is_reftype(ty), mkfs(class0, ty, fieldvar) ' ∈ instfields(class), st0[r -- _type] .type ≤ mkclasstype(class), is_valid_ref(str, r, st0) ⊦ r = jvmref, r0 = jvmref, junkref(str, r, st0), st0[r0 -- _type] .type ≤ ty ∧ ¬ junkref(str, r0, st0) |
⊦ 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, st0), st0[r -- mkfs(class0, ty, fieldvar) '] = refval(r0), is_reftype(ty), mkfs(class0, ty, fieldvar) ' ∈ instfields(class), st0[r -- _type] .type ≤ mkclasstype(class), is_valid_ref(str, r, st0) ⊦ r = jvmref, r0 = jvmref, ∃ fs. fs ' ∈ instfields(st0[r -- _type] .type .class) ∧ (is_reftype(fs .type) ∨ fs .type = abstract_type) ∧ st0[r -- fs '] .refval ≠ jvmref ∧ (¬ is_referencevalue(st0[r -- fs ']) ∨ ¬ st0[st0[r -- fs '] .refval -- _type] .type ≤ fs .type ∨ junkref(str, st0[r -- fs '] .refval, st0)), st0[r0 -- _type] .type ≤ ty ∧ ¬ junkref(str, r0, st0)
[[CONCRETESIMPRULES : ([CSIMPSEQ : ⊦ ¬ is_obj(str, r, st) → ( is_valid_ref(str, r, st) ↔ is_array(str, r, st))], [CSIMPSEQ : ⊦ is_array(str, r, st) → ( st[r -- _type] .type ≤ mkclasstype(class) ↔ class = `java.lang.Object' .class)], [CSIMPSEQ : ⊦ is_array(str, r, st) → ¬ is_obj(str, r, st)], [CSIMPSEQ : ⊦ instfields (`java.lang.Object' .class) = []], [CSIMPSEQ : ⊦ ¬ sk ∈ []])], [EXTRATERMS : (st0, r, str)]]