@@ -866,43 +866,10 @@ and get_written e = match E.written_of e with
866866
867867let map_loc_find loc m = U.LocEnv. safe_find [] loc m
868868
869- (* Event set ordered by to (generalised) program order *)
870-
871- module
872- EvtSetByPo
873- (I :sig val es : S.event_structure end ) =
874- struct
875-
876- let is_before_strict = U. is_before_strict I. es
877-
878- include Set. Make
879- (struct
880-
881- type t = E .event
882-
883- let compare e1 e2 =
884- if is_before_strict e1 e2 then - 1
885- else if is_before_strict e2 e1 then 1
886- else
887- let () =
888- Printf. eprintf " Not ordered stores %a and %a\n " E. debug_event e1
889- E. debug_event e2
890- in
891- assert false
892-
893- end )
894-
895- let find_last_before set e =
896- find_last_opt (fun e' -> is_before_strict e' e) set
897-
898- let find_first_after e set =
899- find_first_opt (fun e' -> is_before_strict e e') set
900-
901- end
902869
903870let match_reg_events add_eq es csn =
904871 let loc_loads_stores = U. collect_reg_loads_stores es in
905- let module StoreSet = EvtSetByPo (struct let es = es end ) in
872+ let module StoreSet = U. EvtSetByPo (struct let es = es end ) in
906873 let add wt rf (rfm , csn ) = (S.RFMap. add wt rf rfm, add_eq rfm wt rf csn) in
907874 (* For all loads find the right store, the one "just before" the load *)
908875 U.LocEnv. fold
@@ -1840,7 +1807,7 @@ let get_rf_value test read =
18401807
18411808 let make_atomic_load_store es =
18421809 let atms,spurious = U. collect_atomics es in
1843- let module StoreSet = EvtSetByPo (struct let es = es end ) in
1810+ let module StoreSet = U. EvtSetByPo (struct let es = es end ) in
18441811 let make_atomic_pairs es k =
18451812 let rs,ws = List. partition E. is_load es in
18461813 let ws = StoreSet. of_list ws
0 commit comments