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
23412a35
Commit
23412a35
authored
3 years ago
by
Alban Gruin
Browse files
Options
Downloads
Patches
Plain Diff
correct_sb: cleanup proofs
Signed-off-by:
Alban Gruin
<
alban.gruin@irit.fr
>
parent
c59de73d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/correct_store_buffer.v
+7
-9
7 additions, 9 deletions
src/correct_store_buffer.v
with
7 additions
and
9 deletions
src/correct_store_buffer.v
+
7
−
9
View file @
23412a35
...
@@ -110,6 +110,7 @@ Section constrained.
...
@@ -110,6 +110,7 @@ Section constrained.
Hypothesis
Hl
'
:
List
.
length
tpost
'
=
List
.
length
tpost
.
Hypothesis
Hl
'
:
List
.
length
tpost
'
=
List
.
length
tpost
.
Hypothesis
Htc
:
tc
=
cycle
sbState
t
.
Hypothesis
Htc
:
tc
=
cycle
sbState
t
.
Hypothesis
Htc
'
:
tc
'
=
cycle
sbState
'
t
'
.
Hypothesis
Htc
'
:
tc
'
=
cycle
sbState
'
t
'
.
Hypothesis
HconstT
:
is_constrained
e
t
sbState
=
true
.
(
*
Delve
into
tc
,
tc
'
,
cycle
,
cycle_elt
,
etc
.
(
*
Delve
into
tc
,
tc
'
,
cycle
,
cycle_elt
,
etc
.
*
Pretty
specific
to
these
constraints
,
do
not
use
it
outside
this
section
.
*
)
*
Pretty
specific
to
these
constraints
,
do
not
use
it
outside
this
section
.
*
)
...
@@ -136,12 +137,11 @@ Section constrained.
...
@@ -136,12 +137,11 @@ Section constrained.
(
*
If
a
constrained
Sp
can
advance
,
an
unconstrained
Sp
can
advance
.
*
)
(
*
If
a
constrained
Sp
can
advance
,
an
unconstrained
Sp
can
advance
.
*
)
Theorem
constrained_sp_can_advance_unconstrained_too
:
Theorem
constrained_sp_can_advance_unconstrained_too
:
e
=
(
opc
,
(
Sp
,
0
))
->
(
*
t
is
constrained
,
t
'
is
unconstrained
*
)
(
*
t
is
constrained
,
t
'
is
unconstrained
*
)
is_constrained
e
t
sbState
=
true
->
is_constrained
e
t
'
sbState
'
=
false
->
e
=
(
opc
,
(
Sp
,
0
))
->
is_constrained
e
t
'
sbState
'
=
false
->
List
.
nth_error
tc
i
=
Some
(
opc
,
(
Lsu
,
0
))
->
List
.
nth_error
tc
'
i
=
Some
(
opc
,
(
Lsu
,
0
)).
List
.
nth_error
tc
i
=
Some
(
opc
,
(
Lsu
,
0
))
->
List
.
nth_error
tc
'
i
=
Some
(
opc
,
(
Lsu
,
0
)).
Proof
.
Proof
.
intros
He
HconstT
HconstT
'
.
intros
He
HconstT
'
.
rewrite
He
in
HconstT
'
.
rewrite
He
in
HconstT
'
.
constraint_delve
He
.
constraint_delve
He
.
...
@@ -155,12 +155,11 @@ Section constrained.
...
@@ -155,12 +155,11 @@ Section constrained.
(
*
If
a
constrained
Lsu
can
advance
,
an
unconstrained
Lsu
can
advance
.
*
)
(
*
If
a
constrained
Lsu
can
advance
,
an
unconstrained
Lsu
can
advance
.
*
)
(
*
Load
version
*
)
(
*
Load
version
*
)
Theorem
constrained_lsu_load_advance_unconstrained_too
:
Theorem
constrained_lsu_load_advance_unconstrained_too
:
e
=
(
Load
,
(
Lsu
,
0
))
->
(
*
t
is
constrained
,
t
'
is
unconstrained
*
)
(
*
t
is
constrained
,
t
'
is
unconstrained
*
)
is_constrained
e
t
sbState
=
true
->
is_constrained
e
t
'
sbState
'
=
false
->
e
=
(
Load
,
(
Lsu
,
0
))
->
is_constrained
e
t
'
sbState
'
=
false
->
List
.
nth_error
tc
i
=
Some
(
Load
,
(
Lu
,
0
))
->
List
.
nth_error
tc
'
i
=
Some
(
Load
,
(
Lu
,
0
)).
List
.
nth_error
tc
i
=
Some
(
Load
,
(
Lu
,
0
))
->
List
.
nth_error
tc
'
i
=
Some
(
Load
,
(
Lu
,
0
)).
Proof
.
Proof
.
intro
s
He
Hconst
.
intro
He
.
rewrite
He
.
rewrite
He
.
unfold
is_constrained
.
unfold
is_constrained
.
...
@@ -181,12 +180,11 @@ Section constrained.
...
@@ -181,12 +180,11 @@ Section constrained.
(
*
Store
version
*
)
(
*
Store
version
*
)
Theorem
constrained_lsu_store_advance_unconstrained_too
:
Theorem
constrained_lsu_store_advance_unconstrained_too
:
e
=
(
Store
,
(
Lsu
,
0
))
->
(
*
t
is
constrained
,
t
'
is
unconstrained
*
)
(
*
t
is
constrained
,
t
'
is
unconstrained
*
)
is_constrained
e
t
sbState
=
true
->
is_constrained
e
t
'
sbState
'
=
false
->
e
=
(
Store
,
(
Lsu
,
0
))
->
is_constrained
e
t
'
sbState
'
=
false
->
List
.
nth_error
tc
i
=
Some
(
Store
,
(
Su
,
0
))
->
List
.
nth_error
tc
'
i
=
Some
(
Store
,
(
Su
,
0
)).
List
.
nth_error
tc
i
=
Some
(
Store
,
(
Su
,
0
))
->
List
.
nth_error
tc
'
i
=
Some
(
Store
,
(
Su
,
0
)).
Proof
.
Proof
.
intros
He
HconstT
HconstT
'
.
intros
He
HconstT
'
.
rewrite
He
in
HconstT
'
.
rewrite
He
in
HconstT
'
.
constraint_delve
He
.
constraint_delve
He
.
...
...
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