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

definitions: add a function to compare the whole pipeline


Signed-off-by: default avatarAlban Gruin <alban.gruin@irit.fr>
parent 2b6149c0
Branches
No related tags found
No related merge requests found
......@@ -229,6 +229,15 @@ Proof.
+ contradiction.
Qed.
(* Pipeline comparison. *)
Definition pipeline_leb p1 p2 :=
let comb := List.combine p1 p2 in
Nat.eqb (List.length p1) (List.length p2)
&& List.forallb (fun instrs =>
match instrs with
| ((o1, st1), (o2, st2)) => opcode_beq o1 o2 && state_leb st1 st2
end) comb.
(* Pipeline validity. *)
Definition single_in_stage trace st :=
List.count_occ stage_eq_dec (get_stg trace) st <=? 1.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment