@@ -256,7 +256,7 @@ module Input = struct
256256 let dedup xs =
257257 List. rev @@ fst
258258 @@ List. fold xs ~init: ([] , String.Set. empty) ~f: (fun (xs , mems ) x ->
259- if Set. mem mems x then (xs, mems) else (x :: xs, Set. add mems x))
259+ if Set. mem mems x then (xs, mems) else (x :: xs, Set. add mems x))
260260
261261 let provide_bias = Toplevel. var " provide-bias"
262262
@@ -470,7 +470,7 @@ let compute_unit ?package ?state input =
470470 if KB.Domain. is_empty (KB.Slot. domain State. slot) state then
471471 Memmap. to_sequence code |> Seq. to_list_rev
472472 |> KB.List. fold ~init: State. empty ~f: (fun k (mem , _ ) ->
473- State. disassemble k mem)
473+ State. disassemble k mem)
474474 >> = State. partition
475475 >> = fun state ->
476476 KB. provide State. slot unit state >> | fun () -> state
@@ -588,9 +588,7 @@ let substitute project mem tag value : t =
588588 let find_tag tag mem =
589589 Memmap. dominators (memory project) mem
590590 |> Seq. find_map ~f: (fun (mem , v ) ->
591- match Value. get tag v with
592- | Some reg -> Some (mem, reg)
593- | None -> None )
591+ match Value. get tag v with Some reg -> Some (mem, reg) | None -> None )
594592 in
595593 let find_section = find_tag Image. section in
596594 let find_symbol mem =
@@ -601,10 +599,10 @@ let substitute project mem tag value : t =
601599 let find_block mem =
602600 Symtab. dominators (symbols project) mem
603601 |> List. find_map ~f: (fun (_ , _ , cfg ) ->
604- Seq. find_map (Cfg. nodes cfg) ~f: (fun block ->
605- if Addr. (Block. addr block = Memory. min_addr mem) then
606- Some (Block. memory block, block)
607- else None ))
602+ Seq. find_map (Cfg. nodes cfg) ~f: (fun block ->
603+ if Addr. (Block. addr block = Memory. min_addr mem) then
604+ Some (Block. memory block, block)
605+ else None ))
608606 in
609607 let subst_section (mem , name ) = function
610608 | #bound as b -> addr b mem
0 commit comments