Skip to content

Commit 3c4f6cc

Browse files
Simplify Fun.flip invocations
1 parent c13bcc3 commit 3c4f6cc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/analyses/malloc_null.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ struct
164164
let return_addr () = !return_addr_
165165

166166
let return man (exp:exp option) (f:fundec) : D.t =
167-
let remove_var x v = List.fold_left (Fun.flip @@ D.remove) x (to_addrs v) in
167+
let remove_var x v = List.fold_left (Fun.flip D.remove) x (to_addrs v) in
168168
let nst = List.fold_left remove_var man.local (f.slocals @ f.sformals) in
169169
match exp with
170170
| Some ret ->

src/analyses/region.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ struct
5555
| Queries.Regions e ->
5656
let regpart = man.global () in
5757
if is_bullet e regpart man.local then Queries.Result.bot q (* TODO: remove bot *) else
58-
let ls = List.fold_left (Fun.flip @@ Queries.LS.add) (Queries.LS.empty ()) (regions e regpart man.local) in
58+
let ls = List.fold_left (Fun.flip Queries.LS.add) (Queries.LS.empty ()) (regions e regpart man.local) in
5959
ls
6060
| _ -> Queries.Result.top q
6161

src/analyses/symbLocks.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct
4343
let assign man lval rval = invalidate_lval (Analyses.ask_of_man man) lval man.local
4444

4545
let return man exp fundec =
46-
let rm list acc = List.fold_left (Fun.flip @@ D.remove_var) acc list in
46+
let rm list acc = List.fold_left (Fun.flip D.remove_var) acc list in
4747
rm fundec.slocals (rm fundec.sformals man.local)
4848

4949
let enter man lval f args = [(man.local,man.local)]

src/util/library/libraryFunctions.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ let reset_lazy () =
12881288
ResettableLazy.reset activated_library_descs
12891289

12901290
let lib_funs = ref (Set.String.of_list ["__raw_read_unlock"; "__raw_write_unlock"; "spin_trylock"])
1291-
let add_lib_funs funs = lib_funs := List.fold_left (Fun.flip @@ Set.String.add) !lib_funs funs
1291+
let add_lib_funs funs = lib_funs := List.fold_left (Fun.flip Set.String.add) !lib_funs funs
12921292
let use_special fn_name = Set.String.mem fn_name !lib_funs
12931293

12941294
let kernel_safe_uncalled = Set.String.of_list ["__inittest"; "init_module"; "__exittest"; "cleanup_module"]

0 commit comments

Comments
 (0)