@@ -1454,7 +1454,7 @@ let mkCompInfo
1454
1454
comp.ckey < - ! nextCompinfoKey;
1455
1455
incr nextCompinfoKey;
1456
1456
let flds =
1457
- List. map (fun (fn , ft , fb , fa , fl ) ->
1457
+ Util. list_map (fun (fn , ft , fb , fa , fl ) ->
1458
1458
{ fcomp = comp;
1459
1459
ftype = ft;
1460
1460
fname = fn;
@@ -1471,7 +1471,7 @@ let copyCompInfo (ci: compinfo) (n: string) : compinfo =
1471
1471
ckey = ! nextCompinfoKey; } in
1472
1472
incr nextCompinfoKey;
1473
1473
(* Copy the fields and set the new pointers to parents *)
1474
- ci'.cfields < - List. map (fun f -> {f with fcomp = ci'}) ci'.cfields;
1474
+ ci'.cfields < - Util. list_map (fun f -> {f with fcomp = ci'}) ci'.cfields;
1475
1475
ci'
1476
1476
1477
1477
(* *** Utility functions ******)
@@ -1558,7 +1558,7 @@ let rec unrollTypeDeep (t: typ) : typ =
1558
1558
(match args with
1559
1559
None -> None
1560
1560
| Some argl ->
1561
- Some (List. map (fun (an ,at ,aa ) ->
1561
+ Some (Util. list_map (fun (an ,at ,aa ) ->
1562
1562
(an, unrollTypeDeep at, aa)) argl)),
1563
1563
isva,
1564
1564
addAttributes al a')
@@ -1808,7 +1808,7 @@ let separateStorageModifiers (al: attribute list) =
1808
1808
(* Put back the declspec. Put it without the leading __ since these will
1809
1809
* be added later *)
1810
1810
let stom' =
1811
- List. map (fun (Attr(an , args )) ->
1811
+ Util. list_map (fun (Attr(an , args )) ->
1812
1812
Attr (" declspec" , [ACons (an, args)])) stom in
1813
1813
stom', rest
1814
1814
@@ -4802,7 +4802,7 @@ let setFormals (f: fundec) (forms: varinfo list) =
4802
4802
TFun (rt , _ , isva , fa ) ->
4803
4803
f.svar.vtype < -
4804
4804
TFun (rt,
4805
- Some (List. map (fun a -> (a.vname, a.vtype, a.vattr)) forms),
4805
+ Some (Util. list_map (fun a -> (a.vname, a.vtype, a.vattr)) forms),
4806
4806
isva, fa)
4807
4807
| _ -> E. s (E. bug " Set formals. %s does not have function type\n "
4808
4808
f.svar.vname)
@@ -4838,7 +4838,7 @@ let setFunctionTypeMakeFormals (f: fundec) (t: typ) =
4838
4838
f.svar.vtype < - t;
4839
4839
f.sformals < - [] ;
4840
4840
4841
- f.sformals < - List. map (fun (n ,t ,a ) -> makeLocal f n t) args;
4841
+ f.sformals < - Util. list_map (fun (n ,t ,a ) -> makeLocal f n t) args;
4842
4842
4843
4843
setFunctionType f t
4844
4844
@@ -5667,7 +5667,7 @@ let getGlobInit ?(main_name="main") (fl: file) =
5667
5667
(* Fold over all globals, including the global initializer *)
5668
5668
let mapGlobals (fl : file )
5669
5669
(doone : global -> global ) : unit =
5670
- fl.globals < - List. map doone fl.globals;
5670
+ fl.globals < - Util. list_map doone fl.globals;
5671
5671
(match fl.globinit with
5672
5672
None -> ()
5673
5673
| Some g -> begin
@@ -5852,7 +5852,7 @@ let rec typeSigWithAttrs ?(ignoreSign=false) doattr t =
5852
5852
TSComp (comp.cstruct, comp.cname, doattr (addAttributes comp.cattr a))
5853
5853
| TFun (rt ,args ,isva ,a ) ->
5854
5854
TSFun (typeSig rt,
5855
- List. map (fun (_ , atype , _ ) -> (typeSig atype)) (argsToList args),
5855
+ Util. list_map (fun (_ , atype , _ ) -> (typeSig atype)) (argsToList args),
5856
5856
isva, doattr a)
5857
5857
| TNamed (t , a ) -> typeSigAddAttrs (doattr a) (typeSig t.ttype)
5858
5858
| TBuiltin_va_list al -> TSBase (TBuiltin_va_list (doattr al))
@@ -6292,7 +6292,7 @@ class copyFunctionVisitor (newname: string) = object (self)
6292
6292
s.skind < - Goto (sr',l)
6293
6293
| Switch (e , body , cases , l ) ->
6294
6294
s.skind < - Switch (e, body,
6295
- List. map (fun cs -> findStmt cs.sid) cases, l)
6295
+ Util. list_map (fun cs -> findStmt cs.sid) cases, l)
6296
6296
| _ -> ()
6297
6297
in
6298
6298
List. iter patchstmt ! patches;
@@ -6454,7 +6454,7 @@ let get_switch_count () =
6454
6454
let switch_label = ref (- 1 )
6455
6455
6456
6456
let rec xform_switch_stmt s break_dest cont_dest label_index = begin
6457
- s.labels < - List. map (fun lab -> match lab with
6457
+ s.labels < - Util. list_map (fun lab -> match lab with
6458
6458
Label _ -> lab
6459
6459
| Case (e ,l ) ->
6460
6460
let suffix =
0 commit comments