Skip to content

Commit d6f8152

Browse files
committed
removed hb
1 parent f0375d2 commit d6f8152

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tracedAtomic.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,14 @@ let do_run init_func init_schedule =
225225
atomics_counter := 1;
226226
{ procs; enabled = current_enabled; run_proc = last_element init_schedule; backtrack = IntSet.empty }
227227

228-
let rec explore depth func state clock last_access =
228+
let rec explore func state clock last_access =
229229
let s = last_element state in
230230
List.iter (fun proc ->
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
234234
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
235+
if i != 0 (*&& i > last_hb_p*) then begin
236236
let pre_s = List.nth state (i-1) in
237237
if IntSet.mem j pre_s.enabled then
238238
pre_s.backtrack <- IntSet.add j pre_s.backtrack
@@ -254,7 +254,7 @@ let rec explore depth func state clock last_access =
254254
let j_proc = List.nth s.procs j in
255255
let new_last_access = match j_proc.obj_ptr with Some(ptr) -> IntMap.add ptr state_time last_access | None -> last_access in
256256
let new_clock = IntMap.add j state_time clock in
257-
explore (depth+1) func statedash new_clock new_last_access
257+
explore func statedash new_clock new_last_access
258258
done
259259
end
260260

@@ -291,4 +291,4 @@ let trace func =
291291
let empty_state = do_run func [0] :: [] in
292292
let empty_clock = IntMap.empty in
293293
let empty_last_access = IntMap.empty in
294-
explore 0 func empty_state empty_clock empty_last_access
294+
explore func empty_state empty_clock empty_last_access

0 commit comments

Comments
 (0)