| st[r0 -- _type] .type = mkclasstype(class), st[r -- mkfs(class0, ty0, fieldvar) '] = refval(r1), validrefs(str, r1 ' + refs, ty0, st), junkref(str, r1, st), is_obj(str, r, st[r0 -- fs ', val]), is_classtype(st[r -- _type] .type), is_obj(str, r, st), st[r -- _type] .type ≤ ty, mkfs(class0, ty0, fieldvar) ' ∈ instfields(st[r -- _type] .type .class), r ≠ r0 ∨ mkfs(class0, ty0, fieldvar) ≠ fs ⊦ r = jvmref, fs ' = _type, dups((r1 ' + refs) .butlast), r ∈ (r1 ' + refs) .butlast, validrefs(str, r1 ' + refs, ty0, st[r0 -- fs ', val]), fs ' ∈ instfields(class), junkref(str, r, st), junkref(str, r, st[r0 -- fs ', val]) |
⊦ is_obj(str, r, st) → ( junkref(str, r, st) ↔ (∃ fs. fs ' ∈ instfields(st[r -- _type] .type .class) ∧ is_referencevalue(st[r -- fs ']) ∧ st[r -- fs '] .refval ≠ jvmref ∧ (¬ st[st[r -- fs '] .refval -- _type] .type ≤ fs .type ∨ junkref(str, st[r -- fs '] .refval, st))))
is_obj(str, r, st), st[r0 -- _type] .type = mkclasstype(class), st[r -- mkfs(class0, ty0, fieldvar) '] = refval(r1), validrefs(str, r1 ' + refs, ty0, st), junkref(str, r1, st), is_obj(str, r, st[r0 -- fs ', val]), is_classtype(st[r -- _type] .type), is_obj(str, r, st), st[r -- _type] .type ≤ ty, mkfs(class0, ty0, fieldvar) ' ∈ instfields(st[r -- _type] .type .class), r ≠ r0 ∨ mkfs(class0, ty0, fieldvar) ≠ fs ⊦ r = jvmref, fs ' = _type, dups((r1 ' + refs) .butlast), r ∈ (r1 ' + refs) .butlast, validrefs(str, r1 ' + refs, ty0, st[r0 -- fs ', val]), fs ' ∈ instfields(class), ∃ fs. fs ' ∈ instfields(st[r -- _type] .type .class) ∧ is_referencevalue(st[r -- fs ']) ∧ st[r -- fs '] .refval ≠ jvmref ∧ (¬ st[st[r -- fs '] .refval -- _type] .type ≤ fs .type ∨ junkref(str, st[r -- fs '] .refval, st)), junkref(str, r, st[r0 -- fs ', val])
[[CONCRETESIMPRULES : ()], [EXTRATERMS : (st, r, str)]]