Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
storebuffer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tacoq
storebuffer
Commits
c6795c42
Commit
c6795c42
authored
2 years ago
by
Alban Gruin
Committed by
Alban Gruin
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
correct_store_buffer: prove that an unconstrained Load in Lsu can advance
Signed-off-by:
Alban Gruin
<
alban@pa1ch.fr
>
parent
7ee4f352
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/correct_store_buffer.v
+28
-2
28 additions, 2 deletions
src/correct_store_buffer.v
with
28 additions
and
2 deletions
src/correct_store_buffer.v
+
28
−
2
View file @
c6795c42
...
...
@@ -157,9 +157,35 @@ Section constrained.
constraint_delve
He
.
unfold
lsuFree
,
get_instr_in_stage
.
rewrite
(
not_existsb_means_cannot_find
_
_
t
'
);
destruct
opc
;
reflexivity
||
exact
HconstT
'
.
Qed
.
(
*
If
a
constrained
Lsu
can
advance
,
an
unconstrained
Lsu
can
advance
.
*
)
(
*
Load
version
*
)
Theorem
constrained_lsu_load_advance_unconstrained_too
:
e
=
(
Load
,
(
Lsu
,
0
))
->
(
*
t
is
constrained
,
t
'
is
unconstrained
*
)
is_constrained
e
t
sbState
=
true
->
is_constrained
e
t
'
sbState
'
=
false
->
List
.
nth_error
tc
i
=
Some
(
Load
,
(
Lu
,
0
))
->
List
.
nth_error
tc
'
i
=
Some
(
Load
,
(
Lu
,
0
)).
Proof
.
intros
He
Hconst
.
rewrite
He
.
unfold
is_constrained
.
destruct
sbState
'
;
try
discriminate
.
intro
HconstT
'
.
apply
orb_false_elim
in
HconstT
'
.
destruct
HconstT
'
as
[
HconstT
'
HconstT
'
2
].
constraint_delve
He
.
unfold
luFree
,
get_instr_in_stage
.
rewrite
(
not_existsb_means_cannot_find
_
_
t
'
).
-
destruct
opc
;
reflexivity
.
-
rewrite
HconstT
'
2.
reflexivity
.
-
exact
HconstT
'
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment