aboutsummaryrefslogtreecommitdiffstats
path: root/backend/ProfilingExploitproof.v
diff options
context:
space:
mode:
Diffstat (limited to 'backend/ProfilingExploitproof.v')
-rw-r--r--backend/ProfilingExploitproof.v35
1 files changed, 18 insertions, 17 deletions
diff --git a/backend/ProfilingExploitproof.v b/backend/ProfilingExploitproof.v
index 78de09af..4308b670 100644
--- a/backend/ProfilingExploitproof.v
+++ b/backend/ProfilingExploitproof.v
@@ -126,23 +126,24 @@ Proof.
rewrite <- H0. apply eval_operation_preserved. exact symbols_preserved.
constructor; auto.
(* load *)
-- econstructor; split.
- assert (eval_addressing tge sp addr rs ## args = Some a).
- rewrite <- H0. apply eval_addressing_preserved. exact symbols_preserved.
- eapply exec_Iload; eauto.
- constructor; auto.
-- (* load notrap1 *)
- econstructor; split.
- assert (eval_addressing tge sp addr rs ## args = None).
- rewrite <- H0. apply eval_addressing_preserved. exact symbols_preserved.
- eapply exec_Iload_notrap1; eauto.
- constructor; auto.
-- (* load notrap2 *)
- econstructor; split.
- assert (eval_addressing tge sp addr rs ## args = Some a).
- rewrite <- H0. apply eval_addressing_preserved. exact symbols_preserved.
- eapply exec_Iload_notrap2; eauto.
- constructor; auto.
+- inv H0.
+ + econstructor; split.
+ * try (eapply exec_Iload; eauto; eapply has_loaded_normal; eauto;
+ rewrite <- EVAL; apply eval_addressing_preserved; exact symbols_preserved).
+ * econstructor; eauto.
+ + destruct (eval_addressing) eqn:EVAL in LOAD.
+ * specialize (LOAD v). econstructor; split.
+ -- eapply exec_Iload; eauto. eapply has_loaded_default; eauto.
+ rewrite eval_addressing_preserved with (ge1:=ge).
+ intros a EVAL'; rewrite EVAL in EVAL'; inv EVAL'. apply LOAD; auto.
+ exact symbols_preserved.
+ -- econstructor; eauto.
+ * econstructor; split.
+ -- eapply exec_Iload; eauto. eapply has_loaded_default; eauto.
+ rewrite eval_addressing_preserved with (ge1:=ge).
+ intros a EVAL'; rewrite EVAL in EVAL'; inv EVAL'.
+ exact symbols_preserved.
+ -- econstructor; eauto.
- (* store *)
econstructor; split.
assert (eval_addressing tge sp addr rs ## args = Some a).