| is_array(str, r, st), st[r -- _type] .type ≤ ty, ∀ str0, ty0, st1, st2. validrefs(str0, refs0, ty0, st1) ∧ (∀ r0. r0 ∈ refs0 ∧ r0 ≠ jvmref → st1[r0 -- _type] = st2[r0 -- _type] ∧ (is_classtype(st1[r0 -- _type] .type) → (∀ sk. sk ∈ instfields(st1[r0 -- _type] .type .class) → st1[r0 -- sk] = st2[r0 -- sk])) ∧ ( is_arraytype(st1[r0 -- _type] .type) → st1[r0 -- _length] = st2[r0 -- _length] ∧ (∀ i. 0 ≤ i ∧ i < st1[r0 -- _length] .intval → st1[r0 -- i '] = st2[r0 -- i ']))) → validrefs(str0, refs0, ty0, st2), ∀ r0. (r0 = r ∨ r0 ∈ refs0) ∧ r0 ≠ jvmref → st[r0 -- _type] = st0[r0 -- _type] ∧ (is_classtype(st[r0 -- _type] .type) → (∀ sk. sk ∈ instfields(st[r0 -- _type] .type .class) → st[r0 -- sk] = st0[r0 -- sk])) ∧ ( is_arraytype(st[r0 -- _type] .type) → st[r0 -- _length] = st0[r0 -- _length] ∧ (∀ i. ¬ i < 0 ∧ ¬ st[r0 -- _length] .intval ≤ i → st[r0 -- i '] = st0[r0 -- i '])), refs0 = [] ∨ 0 ≤ i ∧ i < st[r -- _length] .intval ∧ is_referencevalue(st[r -- i ']) ∧ refs0 .first = st[r -- i '] .refval ∧ validrefs(str, refs0, st[r -- _type] .type .type, st) ⊦ r = jvmref, validrefs(str, r ' + refs0, ty, st0) |
⊦ is_array(str, r, st) ∧ st[r -- _type] .type ≤ ty → ( validrefs(str, r ' + refs, ty, st) ↔ refs = [] ∨ (∃ i. 0 ≤ i ∧ i < st[r -- _length] .intval ∧ is_referencevalue(st[r -- i ']) ∧ refs .first = st[r -- i '] .refval ∧ validrefs(str, refs, st[r -- _type] .type .type, st)))
¬ (is_array(str, r, st0) ∧ st0[r -- _type] .type ≤ ty), is_array(str, r, st), st[r -- _type] .type ≤ ty, ∀ str0, ty0, st1, st2. validrefs(str0, refs0, ty0, st1) ∧ (∀ r0. r0 ∈ refs0 ∧ r0 ≠ jvmref → st1[r0 -- _type] = st2[r0 -- _type] ∧ (is_classtype(st1[r0 -- _type] .type) → (∀ sk. sk ∈ instfields(st1[r0 -- _type] .type .class) → st1[r0 -- sk] = st2[r0 -- sk])) ∧ ( is_arraytype(st1[r0 -- _type] .type) → st1[r0 -- _length] = st2[r0 -- _length] ∧ (∀ i. 0 ≤ i ∧ i < st1[r0 -- _length] .intval → st1[r0 -- i '] = st2[r0 -- i ']))) → validrefs(str0, refs0, ty0, st2), ∀ r0. (r0 = r ∨ r0 ∈ refs0) ∧ r0 ≠ jvmref → st[r0 -- _type] = st0[r0 -- _type] ∧ (is_classtype(st[r0 -- _type] .type) → (∀ sk. sk ∈ instfields(st[r0 -- _type] .type .class) → st[r0 -- sk] = st0[r0 -- sk])) ∧ ( is_arraytype(st[r0 -- _type] .type) → st[r0 -- _length] = st0[r0 -- _length] ∧ (∀ i. ¬ i < 0 ∧ ¬ st[r0 -- _length] .intval ≤ i → st[r0 -- i '] = st0[r0 -- i '])), refs0 = [] ∨ 0 ≤ i ∧ i < st[r -- _length] .intval ∧ is_referencevalue(st[r -- i ']) ∧ refs0 .first = st[r -- i '] .refval ∧ validrefs(str, refs0, st[r -- _type] .type .type, st) ⊦ r = jvmref, validrefs(str, r ' + refs0, ty, st0)
is_array(str, r, st0) ∧ st0[r -- _type] .type ≤ ty, is_array(str, r, st), st[r -- _type] .type ≤ ty, ∀ str0, ty0, st1, st2. validrefs(str0, refs0, ty0, st1) ∧ (∀ r0. r0 ∈ refs0 ∧ r0 ≠ jvmref → st1[r0 -- _type] = st2[r0 -- _type] ∧ (is_classtype(st1[r0 -- _type] .type) → (∀ sk. sk ∈ instfields(st1[r0 -- _type] .type .class) → st1[r0 -- sk] = st2[r0 -- sk])) ∧ ( is_arraytype(st1[r0 -- _type] .type) → st1[r0 -- _length] = st2[r0 -- _length] ∧ (∀ i. 0 ≤ i ∧ i < st1[r0 -- _length] .intval → st1[r0 -- i '] = st2[r0 -- i ']))) → validrefs(str0, refs0, ty0, st2), ∀ r0. (r0 = r ∨ r0 ∈ refs0) ∧ r0 ≠ jvmref → st[r0 -- _type] = st0[r0 -- _type] ∧ (is_classtype(st[r0 -- _type] .type) → (∀ sk. sk ∈ instfields(st[r0 -- _type] .type .class) → st[r0 -- sk] = st0[r0 -- sk])) ∧ ( is_arraytype(st[r0 -- _type] .type) → st[r0 -- _length] = st0[r0 -- _length] ∧ (∀ i. ¬ i < 0 ∧ ¬ st[r0 -- _length] .intval ≤ i → st[r0 -- i '] = st0[r0 -- i '])), refs0 = [] ∨ 0 ≤ i ∧ i < st[r -- _length] .intval ∧ is_referencevalue(st[r -- i ']) ∧ refs0 .first = st[r -- i '] .refval ∧ validrefs(str, refs0, st[r -- _type] .type .type, st) ⊦ r = jvmref, refs0 = [] ∨ (∃ i. 0 ≤ i ∧ i < st0[r -- _length] .intval ∧ is_referencevalue(st0[r -- i ']) ∧ refs0 .first = st0[r -- i '] .refval ∧ validrefs(str, refs0, st0[r -- _type] .type .type, st0))
[[CONCRETESIMPRULES : ()], [EXTRATERMS : (st0, ty, refs0, r, str)]]