| acc + refs0 = r0 ' + refs, st[r -- mkfs(class, ty0, fieldvar) '] = refval(r0), st[r -- _type] .type ≤ ty, junkrefs(str, acc + refs0, ty0, st), mkfs(class, ty0, fieldvar) ' ∈ instfields(st[r -- _type] .type .class), is_obj(str, r, st), ∀ str, refs0, ty, st. junkrefs(str, acc + refs0, ty, st) → junkrefs(str, acc, ty, st) ∨ validrefs(str, acc, ty, st) ⊦ acc + refs0 = [], r = jvmref, validrefs(str, r ' + acc, ty, st), junkrefs(str, r ' + acc, ty, st), ¬ r0 ∈ acc ∧ ¬ r0 ∈ refs0 |
⊦ 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, acc + refs0 = r0 ' + refs, st[r -- mkfs(class, ty0, fieldvar) '] = refval(r0), st[r -- _type] .type ≤ ty, junkrefs(str, acc + refs0, ty0, st), mkfs(class, ty0, fieldvar) ' ∈ instfields(st[r -- _type] .type .class), is_obj(str, r, st), ∀ str, refs0, ty, st. junkrefs(str, acc + refs0, ty, st) → junkrefs(str, acc, ty, st) ∨ validrefs(str, acc, ty, st) ⊦ acc + refs0 = [], r = jvmref, validrefs(str, r ' + acc, ty, st), acc ≠ [] ∧ (∃ fs. fs ' ∈ instfields(st[r -- _type] .type .class) ∧ is_referencevalue(st[r -- fs ']) ∧ acc .first = st[r -- fs '] .refval ∧ junkrefs(str, acc, fs .type, st)), ¬ r0 ∈ acc ∧ ¬ r0 ∈ refs0
[[CONCRETESIMPRULES : ()], [EXTRATERMS : (st, ty, acc, r, str)]]