aboutsummaryrefslogtreecommitdiffstats
path: root/backend/ProfilingExploitproof.v
diff options
context:
space:
mode:
authorLéo Gourdin <leo.gourdin@lilo.org>2021-11-02 16:25:58 +0100
committerLéo Gourdin <leo.gourdin@lilo.org>2021-11-02 16:25:58 +0100
commit17b1ec4333af8120ab6867baf9c5c9139541c6b7 (patch)
tree71bd521b6603820c81217ebc10a24fcd940f110a /backend/ProfilingExploitproof.v
parente9dc339d5e5ec129dcf6b541d6c70f9ca7fe134c (diff)
parent98ec44d9d96e7e94896eea9ac054a0188be7b6dd (diff)
downloadcompcert-kvx-17b1ec4333af8120ab6867baf9c5c9139541c6b7.tar.gz
compcert-kvx-17b1ec4333af8120ab6867baf9c5c9139541c6b7.zip
Merge branch 'RTL_has_loaded' into kvx-work
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).