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

correct_sb: define cycle_on_more_advanced


Signed-off-by: default avatarAlban Gruin <alban.gruin@irit.fr>
parent 23412a35
Branches
No related tags found
No related merge requests found
...@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment