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
53b81285
Commit
53b81285
authored
2 years ago
by
Alban Gruin
Browse files
Options
Downloads
Patches
Plain Diff
correct_sb: define cycle_on_more_advanced
Signed-off-by:
Alban Gruin
<
alban.gruin@irit.fr
>
parent
23412a35
Branches
Branches containing commit
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
+10
-0
10 additions, 0 deletions
src/correct_store_buffer.v
with
10 additions
and
0 deletions
src/correct_store_buffer.v
+
10
−
0
View file @
53b81285
...
@@ -65,6 +65,16 @@ Definition is_constrained (elt : instr_kind) trace sbState :=
...
@@ -65,6 +65,16 @@ Definition is_constrained (elt : instr_kind) trace sbState :=
|
_
,
_
=>
false
|
_
,
_
=>
false
end
.
end
.
Definition
cycle_on_more_advanced
(
t
:
trace_kind
)
(
instr
:
instr_kind
)
sbState
:=
let
(
_
,
state
)
:=
instr
in
let
isSuUsed
:=
List
.
existsb
is_in_su
t
in
List
.
map
(
fun
(
elt
:
instr_kind
)
=>
let
(
_
,
state
'
)
:=
elt
in
if
state_leb
state
state
'
&&
negb
(
state_leb
state
'
state
)
then
cycle_elt
isSuUsed
sbState
t
elt
else
elt
)
t
.
Section
can_advance
.
Section
can_advance
.
Variable
isSuUsed
:
bool
.
Variable
isSuUsed
:
bool
.
Variable
sbState
:
sbStateT
.
Variable
sbState
:
sbStateT
.
...
...
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