(** Memory accesses *)

Lemma transl_load_access_correct:
forall chunk (mk_instr: ireg -> offset -> instruction) addr args k c rd (rs: regset) m v v',
(forall base ofs rs,
exec_instr ge fn (mk_instr base ofs) rs m = exec_load ge chunk rs m rd base ofs) ->
transl_memory_access mk_instr addr args k = OK c ->
eval_addressing ge rs#SP addr (map rs (map preg_of args)) = Some v ->
Mem.loadv chunk m v = Some v' ->
rd <> PC ->
exists rs',
exec_straight ge fn c rs m k rs' m
/\ rs'#rd = v'
/\ forall r, r <> PC -> r <> X31 -> r <> rd -> rs'#r = rs#r.