Section EFFSTEP_PERM.
Variable cenv : compilenv.
Variable sz : Z.
Variable f : Csharpminor.function.
Variable tfn : function.
Variable mu : SM_Injection.
Variable m tm : mem.
Variable e : Csharpminor.env.
Variable lenv : temp_env.
Variable te : env.
Variable sp lo hi: Values.block.
Variable cs : callstack.
Variable s : Csharpminor.stmt.
Variable k : Csharpminor.cont.
Variable tk : cont.
Variable xenv : exit_env.
Variable PRE: REACH_closed m (vis mu) /\
meminj_preserves_globals ge (as_inj mu) /\
(forall b, isGlobalBlock ge b = true -> frgnBlocksSrc mu b = true) /\
sm_valid mu m tm /\ SM_wd mu /\
Mem.inject (as_inj mu) m tm.
Variable TRF : transl_funbody cenv sz f = OK tfn.

Lemma EFF_step_case_Store: forall
(MCS : structured_match_callstack mu m tm
(Frame cenv tfn e lenv te sp lo hi :: cs)
(Mem.nextblock m)
(Mem.nextblock tm))
x x0 x1 x2 chunk m' a addr vaddr v
(CH: Mem.storev chunk m vaddr v = Some m')
(MK : match_cont k tk cenv xenv cs)
(EvAddr : Csharpminor.eval_expr ge e lenv m addr vaddr)
(EvA : Csharpminor.eval_expr ge e lenv m a v)
(EQ : transl_expr cenv addr = OK (x, x0))
(EQ1 : transl_expr cenv a = OK (x1, x2)),
exists tv',
(eval_expr tge (Vptr sp Int.zero) te tm x tv' /\
val_inject (restrict (as_inj mu) (vis mu)) vaddr tv' /\
val_match_approx x0 vaddr) /\
exists st2' : CMin_core,
exists m2' mu',
exists vv,
effstep_plus cmin_eff_sem tge (StoreEffect tv' (encode_val chunk vv))
(CMin_State tfn (make_store chunk x x1) tk
(Vptr sp Int.zero) te) tm st2' m2' /\
Mem.storev chunk tm tv' vv = Some m2' /\
intern_incr mu mu' /\
sm_inject_separated mu mu' m tm /\
sm_locally_allocated mu mu' m tm m' m2' /\
Match_cores (CSharpMin_State f Csharpminor.Sskip k e lenv)
mu' (CSharpMin_State f Csharpminor.Sskip k e lenv) m' st2' m2' /\
SM_wd mu' /\
sm_valid mu' m' m2'.