Skip to content

Commit f0375d2

Browse files
committed
fix hb clock
1 parent 509281b commit f0375d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tracedAtomic.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ let rec explore depth func state clock last_access =
231231
let j = proc.proc_id in
232232
let i = Option.bind proc.obj_ptr (fun ptr -> IntMap.find_opt ptr last_access) |> Option.value ~default:0 in
233233
let last_hb_p = IntMap.find_opt j clock |> Option.value ~default:0 in
234-
if i != 0 && i < last_hb_p then begin
234+
Printf.printf "Checking proc: %d, i: %d, last_hb_p: %d\n" j i last_hb_p;
235+
if i != 0 && i > last_hb_p then begin
235236
let pre_s = List.nth state (i-1) in
236237
if IntSet.mem j pre_s.enabled then
237238
pre_s.backtrack <- IntSet.add j pre_s.backtrack

0 commit comments

Comments
 (0)