Skip to content
Snippets Groups Projects
Commit 6977e6b7 authored by Alban Gruin's avatar Alban Gruin
Browse files

correct_store_buffer: add a parameter to HbusFree


This add a stage as a parameter to HbusFree.  This is to make it more
correct (this hypothesis is only true if we are in the Lsu), and forbid
from using it in theorems where it is not specialized.

Signed-off-by: default avatarAlban Gruin <alban.gruin@irit.fr>
parent 7350a43b
Branches
No related tags found
No related merge requests found
...@@ -164,6 +164,7 @@ Section monotonicity. ...@@ -164,6 +164,7 @@ Section monotonicity.
free (existsb is_in_su t') sbState' t' (opc, (Lsu, 0)) = true. free (existsb is_in_su t') sbState' t' (opc, (Lsu, 0)) = true.
Hypothesis HbusFree : Hypothesis HbusFree :
forall st, st = Lsu ->
busFree (existsb is_in_su t) sbState = true -> busFree (existsb is_in_su t) sbState = true ->
busFree (existsb is_in_su t') sbState' = true. busFree (existsb is_in_su t') sbState' = true.
...@@ -197,6 +198,7 @@ Section monotonicity. ...@@ -197,6 +198,7 @@ Section monotonicity.
intros He He' n. intros He He' n.
specialize (Hlu st opc). specialize (Hlu st opc).
specialize (Hsu st opc). specialize (Hsu st opc).
specialize (HbusFree st).
(* Delve onto e, then handle stages on a case-by-case basis. *) (* Delve onto e, then handle stages on a case-by-case basis. *)
work_on_e He'. work_on_e He'.
...@@ -220,8 +222,7 @@ Section monotonicity. ...@@ -220,8 +222,7 @@ Section monotonicity.
(* Loads *) (* Loads *)
+ unfold ready. + unfold ready.
destruct (busFree _ sbState). destruct (busFree _ sbState).
* now destruct (busFree _ _); * now destruct (busFree _ _); [
[
destruct (free _ _ _ _) in HfreeFromLsuPersists |- *; destruct (free _ _ _ _) in HfreeFromLsuPersists |- *;
try discriminate HfreeFromLsuPersists | try discriminate HfreeFromLsuPersists |
discriminate HbusFree discriminate HbusFree
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment