Require Export Maps.
Definition assign_loc_Effect (ty:type) (b: block) (ofs: int) v : (block -> Z -> bool)  :=
match access_mode ty with
By_value chunk => fun b' z' => eq_block b b'
&& zle (Int.unsigned ofs) z'
&& zlt z' ((Int.unsigned ofs) + Z.of_nat (length (encode_val chunk v)))
| By_copy => fun b' z' => eq_block b' b
&& zle (Int.unsigned ofs) z'
&& zlt z' ((Int.unsigned ofs) + (sizeof ty))
| _ => fun b' z' => false
end.

Lemma assign_loc_forward: forall ty m b ofs v m1
(A: assign_loc ty m b ofs v m1),
mem_forward m m1.