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
3d4f7f60
Commit
3d4f7f60
authored
3 years ago
by
Alban Gruin
Browse files
Options
Downloads
Patches
Plain Diff
store_buffer: move compare_two to definitions
Signed-off-by:
Alban Gruin
<
alban.gruin@irit.fr
>
parent
3c6048ba
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/definitions.v
+9
-0
9 additions, 0 deletions
src/definitions.v
src/store_buffer.v
+0
-7
0 additions, 7 deletions
src/store_buffer.v
with
9 additions
and
7 deletions
src/definitions.v
+
9
−
0
View file @
3d4f7f60
...
@@ -110,6 +110,15 @@ Definition state_leb st1 st2 :=
...
@@ -110,6 +110,15 @@ Definition state_leb st1 st2 :=
Definition
instr_kind
:=
(
opcode
*
state
)
%
type
.
Definition
instr_kind
:=
(
opcode
*
state
)
%
type
.
Definition
trace_kind
:=
list
instr_kind
.
Definition
trace_kind
:=
list
instr_kind
.
(
*
Compare
two
with
options
.
This
will
be
necessary
for
proofs
since
we
will
*
make
heavy
use
of
List
.
nth_error
.
*
)
Definition
compare_two
(
e1
e2
:
option
instr_kind
)
:=
match
e1
,
e2
with
|
None
,
_
|
_
,
None
=>
false
|
Some
(
_
,
st1
),
Some
(
_
,
st2
)
=>
state_leb
st1
st2
end
.
Definition
get_opc
(
trace
:
trace_kind
)
:=
Definition
get_opc
(
trace
:
trace_kind
)
:=
fst
(
List
.
split
trace
).
fst
(
List
.
split
trace
).
...
...
This diff is collapsed.
Click to expand it.
src/store_buffer.v
+
0
−
7
View file @
3d4f7f60
...
@@ -57,13 +57,6 @@ Definition cycle dchit busTaken wbFull trace :=
...
@@ -57,13 +57,6 @@ Definition cycle dchit busTaken wbFull trace :=
let
isSuUsed
:=
List
.
existsb
is_in_su
trace
in
let
isSuUsed
:=
List
.
existsb
is_in_su
trace
in
List
.
map
(
cycle_elt
isSuUsed
dchit
busTaken
wbFull
trace
)
trace
.
List
.
map
(
cycle_elt
isSuUsed
dchit
busTaken
wbFull
trace
)
trace
.
Definition
compare_two
(
e1
e2
:
option
instr_kind
)
:=
match
e1
,
e2
with
|
None
,
_
|
_
,
None
=>
false
|
Some
(
_
,
st1
),
Some
(
_
,
st2
)
=>
state_leb
st1
st2
end
.
Section
can_advance
.
Section
can_advance
.
Variable
isSuUsed
dchit
busTaken
wbFull
:
bool
.
Variable
isSuUsed
dchit
busTaken
wbFull
:
bool
.
Variable
n
:
nat
.
Variable
n
:
nat
.
...
...
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