| st[r0 -- _type] .type = mkclasstype(class), st[r -- mkfs(class0, ty1, fieldvar) '] = refval(r2), junkrefs(str, r2 ' + refs, ty1, st[r0 -- fs ', val]), mkfs(class0, ty1, fieldvar) ' ∈ instfields(st[r -- _type] .type .class), is_obj(str, r, st), st[r -- _type] .type ≤ ty, is_obj(str, r, st[r0 -- fs ', val]), ∀ str0, ty0, st0, fs1, r1, val0. ¬ junkrefs(str0, r2 ' + refs, ty0, st0) ∧ fs1 ' ≠ _type ∧ is_classtype(st0[r1 -- _type] .type) ∧ ¬ fs1 ' ∈ instfields(st0[r1 -- _type] .type .class) → ¬ junkrefs(str0, r2 ' + refs, ty0, st0[r1 -- fs1 ', val0]), r ≠ r0 ∨ mkfs(class0, ty1, fieldvar) ≠ fs ⊦ r = jvmref, fs ' = _type, junkrefs(str, r ' + r2 ' + refs, ty, st), fs ' ∈ instfields(class) |
⊦ is_obj(str, r, st) ∧ st[r -- _type] .type ≤ ty → ( junkrefs(str, r ' + refs, ty, st) ↔ refs ≠ [] ∧ (∃ fs. fs ' ∈ instfields(st[r -- _type] .type .class) ∧ is_referencevalue(st[r -- fs ']) ∧ refs .first = st[r -- fs '] .refval ∧ junkrefs(str, refs, fs .type, st)))
is_obj(str, r, st) ∧ st[r -- _type] .type ≤ ty, st[r0 -- _type] .type = mkclasstype(class), st[r -- mkfs(class0, ty1, fieldvar) '] = refval(r2), junkrefs(str, r2 ' + refs, ty1, st[r0 -- fs ', val]), mkfs(class0, ty1, fieldvar) ' ∈ instfields(st[r -- _type] .type .class), is_obj(str, r, st), st[r -- _type] .type ≤ ty, is_obj(str, r, st[r0 -- fs ', val]), ∀ str0, ty0, st0, fs1, r1, val0. ¬ junkrefs(str0, r2 ' + refs, ty0, st0) ∧ fs1 ' ≠ _type ∧ is_classtype(st0[r1 -- _type] .type) ∧ ¬ fs1 ' ∈ instfields(st0[r1 -- _type] .type .class) → ¬ junkrefs(str0, r2 ' + refs, ty0, st0[r1 -- fs1 ', val0]), r ≠ r0 ∨ mkfs(class0, ty1, fieldvar) ≠ fs ⊦ r = jvmref, fs ' = _type, r2 ' + refs ≠ [] ∧ (∃ fs. fs ' ∈ instfields(st[r -- _type] .type .class) ∧ is_referencevalue(st[r -- fs ']) ∧ (r2 ' + refs) .first = st[r -- fs '] .refval ∧ junkrefs(str, r2 ' + refs, fs .type, st)), fs ' ∈ instfields(class)
[[CONCRETESIMPRULES : ([CSIMPSEQ : ⊦ (refs + refs0) + refs1 = refs + refs0 + refs1])], [EXTRATERMS : (st, ty, r2 ' + refs, r, str)]]