@@ -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
@@ -1026,6 +993,11 @@ let get_rf_value test read =
1026993 S. simplify_vars_in_rfmap sol rfm,
1027994 csn )
1028995 with Contradiction -> None
996+ | e ->
997+ let module PP = Pretty. Make (S ) in
998+ eprintf " Coucou\n %!" ;
999+ PP. show_es_rfm test es S.RFMap. empty ;
1000+ raise e
10291001
10301002 let solve_regs test es csn =
10311003 profile " solve_regs" @@ fun () ->
@@ -1840,7 +1812,7 @@ let get_rf_value test read =
18401812
18411813 let make_atomic_load_store es =
18421814 let atms,spurious = U. collect_atomics es in
1843- let module StoreSet = EvtSetByPo (struct let es = es end ) in
1815+ let module StoreSet = U. EvtSetByPo (struct let es = es end ) in
18441816 let make_atomic_pairs es k =
18451817 let rs,ws = List. partition E. is_load es in
18461818 let ws = StoreSet. of_list ws
0 commit comments