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

correct_store_buffer: simplify proofs


Signed-off-by: default avatarAlban Gruin <alban.gruin@irit.fr>
parent 97f0021e
No related branches found
No related tags found
No related merge requests found
...@@ -100,13 +100,10 @@ Section can_advance. ...@@ -100,13 +100,10 @@ Section can_advance.
destruct e1. destruct e1.
unfold cycle_elt. unfold cycle_elt.
destruct s, n0. destruct s, n0.
- destruct (ready _ _ _ && free _ _ _ _); - now destruct (ready _ _ _ && free _ _ _ _), s, o.
destruct s, o; - simpl.
reflexivity. rewrite stage_beq_eq_true, Nat.leb_le.
- destruct s; lia.
simpl;
rewrite Nat.leb_le;
lia.
Qed. Qed.
End can_advance. End can_advance.
...@@ -162,8 +159,7 @@ Section constrained. ...@@ -162,8 +159,7 @@ Section constrained.
unfold lsuFree, get_instr_in_stage. unfold lsuFree, get_instr_in_stage.
rewrite (not_existsb_means_cannot_find _ _ t'); rewrite (not_existsb_means_cannot_find _ _ t');
destruct opc; now destruct opc.
reflexivity || exact HconstT'.
Qed. Qed.
(* If a constrained Lsu can advance, an unconstrained Lsu can advance. *) (* If a constrained Lsu can advance, an unconstrained Lsu can advance. *)
...@@ -187,8 +183,7 @@ Section constrained. ...@@ -187,8 +183,7 @@ Section constrained.
unfold luFree, get_instr_in_stage. unfold luFree, get_instr_in_stage.
rewrite (not_existsb_means_cannot_find _ _ t'). rewrite (not_existsb_means_cannot_find _ _ t').
- rewrite HconstT'2. - now rewrite HconstT'2.
reflexivity.
- exact HconstT'. - exact HconstT'.
Qed. Qed.
...@@ -204,8 +199,6 @@ Section constrained. ...@@ -204,8 +199,6 @@ Section constrained.
constraint_delve He. constraint_delve He.
unfold suFree, get_instr_in_stage. unfold suFree, get_instr_in_stage.
rewrite (not_existsb_means_cannot_find _ _ t'). now rewrite (not_existsb_means_cannot_find _ _ t').
- reflexivity.
- exact HconstT'.
Qed. Qed.
End constrained. End constrained.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment