| st2[r -- fs '] = refval(r2), st1[r1 -- _type] .type = mkclasstype(class), st[r -- _type] = st1[r1 -- _type], st2[r -- _type] = st1[r1 -- _type], is_obj(str, r, st), is_obj(str, r1, st1), r ∈ st2, r ∈ st, r -- _type ∈ st2, r -- _type ∈ st, fs ' ∈ instfields(class), ∀ rk. rk ∈ st → rk ∈ st2 ∧ st[rk] = st2[rk], ∀ fs. fs ' ∈ instfields(class) ∧ is_referencevalue(st[r -- fs ']) → ps=(st[r -- fs '] .refval, st, st1[r1 -- fs '] .refval, st1), ∀ fs. fs ' ∈ instfields(class) ∧ ¬ is_referencevalue(st[r -- fs ']) → st[r -- fs '] = st1[r1 -- fs '], ∀ st1, r1, st2, st0, r0, str0. maxpath(str0, r0, st0) < maxpath(str, r, st) → ( st0 ⊆ st2 ∧ ps=(r0, st0, r1, st1) → junkref(str0, r0, st0) ∨ cyclic(str0, r0, st0) ∨ junkref(str0, r1, st1) ∨ cyclic(str0, r1, st1) ∨ ps=(r0, st2, r1, st1)) ⊦ r = jvmref, r1 = jvmref, junkref(str, r, st), cyclic(str, r, st), junkref(str, r1, st1), cyclic(str, r1, st1), ps=(r2, st2, st1[r1 -- fs '] .refval, st1), is_referencevalue(st[r -- fs ']), is_reftype(fs .type) |
⊦ 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), st2[r -- fs '] = refval(r2), st1[r1 -- _type] .type = mkclasstype(class), st[r -- _type] = st1[r1 -- _type], st2[r -- _type] = st1[r1 -- _type], is_obj(str, r, st), is_obj(str, r1, st1), r ∈ st2, r ∈ st, r -- _type ∈ st2, r -- _type ∈ st, fs ' ∈ instfields(class), ∀ rk. rk ∈ st → rk ∈ st2 ∧ st[rk] = st2[rk], ∀ fs. fs ' ∈ instfields(class) ∧ is_referencevalue(st[r -- fs ']) → ps=(st[r -- fs '] .refval, st, st1[r1 -- fs '] .refval, st1), ∀ fs. fs ' ∈ instfields(class) ∧ ¬ is_referencevalue(st[r -- fs ']) → st[r -- fs '] = st1[r1 -- fs '], ∀ st1, r1, st2, st0, r0, str0. maxpath(str0, r0, st0) < maxpath(str, r, st) → ( st0 ⊆ st2 ∧ ps=(r0, st0, r1, st1) → junkref(str0, r0, st0) ∨ cyclic(str0, r0, st0) ∨ junkref(str0, r1, st1) ∨ cyclic(str0, r1, st1) ∨ ps=(r0, st2, r1, st1)) ⊦ r = jvmref, r1 = jvmref, ∃ 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)), cyclic(str, r, st), junkref(str, r1, st1), cyclic(str, r1, st1), ps=(r2, st2, st1[r1 -- fs '] .refval, st1), is_referencevalue(st[r -- fs ']), is_reftype(fs .type)
[[CONCRETESIMPRULES : ()], [EXTRATERMS : (st, r, str)]]