2 * Copyright 2010, INRIA, University of Copenhagen
3 * Julia Lawall, Rene Rydhof Hansen, Gilles Muller, Nicolas Palix
4 * Copyright 2005-2009, Ecole des Mines de Nantes, University of Copenhagen
5 * Yoann Padioleau, Julia Lawall, Rene Rydhof Hansen, Henrik Stuart, Gilles Muller, Nicolas Palix
6 * This file is part of Coccinelle.
8 * Coccinelle is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, according to version 2 of the License.
12 * Coccinelle is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Coccinelle. If not, see <http://www.gnu.org/licenses/>.
20 * The authors reserve the right to distribute this or future versions of
21 * Coccinelle under other licenses.
27 * Copyright (C) 2006, 2007 Ecole des Mines de Nantes
29 * This program is free software; you can redistribute it and/or
30 * modify it under the terms of the GNU General Public License (GPL)
31 * version 2 as published by the Free Software Foundation.
33 * This program is distributed in the hope that it will be useful,
34 * but WITHOUT ANY WARRANTY; without even the implied warranty of
35 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 * file license.txt for more details.
38 * This file was part of Coccinelle.
42 module F
= Control_flow_c
44 (*****************************************************************************)
45 (* The functor argument *)
46 (*****************************************************************************)
48 (* info passed recursively in monad in addition to binding *)
50 optional_storage_iso
: bool;
51 optional_qualifier_iso
: bool;
52 value_format_iso
: bool;
53 current_rule_name
: string; (* used for errors *)
54 index
: int list
(* witness tree indices *)
57 module XTRANS
= struct
59 (* ------------------------------------------------------------------------*)
60 (* Combinators history *)
61 (* ------------------------------------------------------------------------*)
64 * type ('a, 'b) transformer =
65 * 'a -> 'b -> Lib_engine.metavars_binding -> 'b
69 * type ('a, 'b) transformer =
70 * 'a -> 'b -> Lib_engine.metavars_binding -> 'b option
71 * use an exception monad
74 * type tin = Lib_engine.metavars_binding
77 (* ------------------------------------------------------------------------*)
78 (* Standard type and operators *)
79 (* ------------------------------------------------------------------------*)
83 binding
: Lib_engine.metavars_binding
;
84 binding0
: Lib_engine.metavars_binding
; (* inherited variable *)
86 type 'x tout
= 'x
option
88 type ('a
, 'b
) matcher
= 'a
-> 'b
-> tin
-> ('a
* 'b
) tout
90 let (>>=) m f
= fun tin
->
93 | Some
(a
,b
) -> f a b tin
95 let return = fun x
-> fun tin
->
98 (* can have fail in transform now that the process is deterministic ? *)
102 let (>||>) m1 m2
= fun tin
->
105 | Some x
-> Some x
(* stop as soon as have found something *)
107 let (>|+|>) m1 m2
= m1
>||> m2
109 let (>&&>) f m
= fun tin
->
110 if f tin
then m tin
else fail tin
112 let optional_storage_flag f
= fun tin
->
113 f
(tin
.extra
.optional_storage_iso
) tin
115 let optional_qualifier_flag f
= fun tin
->
116 f
(tin
.extra
.optional_qualifier_iso
) tin
118 let value_format_flag f
= fun tin
->
119 f
(tin
.extra
.value_format_iso
) tin
121 let mode = Cocci_vs_c.TransformMode
123 (* ------------------------------------------------------------------------*)
125 (* ------------------------------------------------------------------------*)
126 let cocciExp = fun expf expa node
-> fun tin
->
129 Visitor_c.default_visitor_c_s
with
130 Visitor_c.kexpr_s
= (fun (k
, bigf) expb
->
131 match expf expa expb tin
with
132 | None
-> (* failed *) k expb
133 | Some
(x
, expb
) -> expb
);
136 Some
(expa
, Visitor_c.vk_node_s
bigf node
)
139 (* same as cocciExp, but for expressions in an expression, not expressions
141 let cocciExpExp = fun expf expa expb
-> fun tin
->
144 Visitor_c.default_visitor_c_s
with
145 Visitor_c.kexpr_s
= (fun (k
, bigf) expb
->
146 match expf expa expb tin
with
147 | None
-> (* failed *) k expb
148 | Some
(x
, expb
) -> expb
);
151 Some
(expa
, Visitor_c.vk_expr_s
bigf expb
)
154 let cocciTy = fun expf expa node
-> fun tin
->
157 Visitor_c.default_visitor_c_s
with
158 Visitor_c.ktype_s
= (fun (k
, bigf) expb
->
159 match expf expa expb tin
with
160 | None
-> (* failed *) k expb
161 | Some
(x
, expb
) -> expb
);
164 Some
(expa
, Visitor_c.vk_node_s
bigf node
)
166 let cocciInit = fun expf expa node
-> fun tin
->
169 Visitor_c.default_visitor_c_s
with
170 Visitor_c.kini_s
= (fun (k
, bigf) expb
->
171 match expf expa expb tin
with
172 | None
-> (* failed *) k expb
173 | Some
(x
, expb
) -> expb
);
176 Some
(expa
, Visitor_c.vk_node_s
bigf node
)
179 (* ------------------------------------------------------------------------*)
181 (* ------------------------------------------------------------------------*)
182 let check_pos info mck pos
=
184 | Ast_cocci.PLUS _
-> raise Impossible
185 | Ast_cocci.CONTEXT
(Ast_cocci.FixPos
(i1
,i2
),_
)
186 | Ast_cocci.MINUS
(Ast_cocci.FixPos
(i1
,i2
),_
,_
,_
) ->
187 pos
<= i2
&& pos
>= i1
188 | Ast_cocci.CONTEXT
(Ast_cocci.DontCarePos
,_
)
189 | Ast_cocci.MINUS
(Ast_cocci.DontCarePos
,_
,_
,_
) ->
196 "weird: dont have position info for the mcodekind in line %d column %d"
197 info
.Ast_cocci.line info
.Ast_cocci.column
)
199 failwith
"weird: dont have position info for the mcodekind"
202 let tag_with_mck mck ib
= fun tin
->
204 let cocciinforef = ib
.Ast_c.cocci_tag
in
205 let (oldmcode
, oldenvs
) = Ast_c.mcode_and_env_of_cocciref
cocciinforef in
209 if !Flag_parsing_cocci.sgrep_mode
210 then Sgrep.process_sgrep ib mck
215 (match mck, Ast_c.pinfo_of_info ib
with
216 | _
, Ast_c.AbstractLineTok _
-> raise Impossible
217 | Ast_cocci.MINUS
(_
), Ast_c.ExpandedTok _
->
218 failwith
("try to delete an expanded token: " ^
(Ast_c.str_of_info ib
))
222 let many_count = function
223 Ast_cocci.BEFORE
(_
,Ast_cocci.MANY
) | Ast_cocci.AFTER
(_
,Ast_cocci.MANY
)
224 | Ast_cocci.BEFOREAFTER
(_
,_
,Ast_cocci.MANY
) -> true
227 (match (oldmcode
,mck) with
228 | (Ast_cocci.CONTEXT
(_
,Ast_cocci.NOTHING
), _
) ->
229 (* nothing there, so take the new stuff *)
230 let update_inst inst
= function
231 Ast_cocci.MINUS
(pos
,_
,adj
,any_xxs
) ->
232 Ast_cocci.MINUS
(pos
,inst
,adj
,any_xxs
)
234 cocciinforef := Some
(update_inst tin
.extra
.index
mck, [tin
.binding
])
235 | (_
, Ast_cocci.CONTEXT
(_
,Ast_cocci.NOTHING
)) ->
236 (* can this case occur? stay with the old stuff *)
238 | (Ast_cocci.MINUS
(old_pos
,old_inst
,old_adj
,[]),
239 Ast_cocci.MINUS
(new_pos
,new_inst
,new_adj
,[]))
240 when old_pos
= new_pos
&&
241 (List.mem tin
.binding oldenvs
or !Flag.sgrep_mode2
)
242 (* no way to combine adjacency information, just drop one *)
246 (old_pos
,Common.union_set old_inst new_inst
,old_adj
,[]),
248 (if !Flag_matcher.show_misc
249 then pr2
"already tagged but only removed, so safe")
251 | (Ast_cocci.CONTEXT
(old_pos
,old_modif
),
252 Ast_cocci.CONTEXT
(new_pos
,new_modif
))
253 when old_pos
= new_pos
&&
254 old_modif
= new_modif
&& many_count old_modif
->
255 (* iteration only allowed on context; no way to replace something
256 more than once; now no need for iterable; just check a flag *)
259 Some
(Ast_cocci.CONTEXT
(old_pos
,old_modif
),tin
.binding
::oldenvs
)
269 pad: if dont want cocci write:
271 (match Ast_c.pinfo_of_info ib with
272 Ast_c.FakeTok _ -> "already tagged fake token"
274 let pm str mcode env
=
276 "%s modification:\n%s\nAccording to environment %d:\n%s\n"
278 (Common.format_to_string
280 Pretty_print_cocci.print_mcodekind mcode
))
284 (function ((r
,vr
),vl
) ->
285 Printf.sprintf
" %s.%s -> %s" r vr
286 (Common.format_to_string
288 Pretty_print_engine.pp_binding_kind vl
)))
290 flush stdout
; flush stderr
;
292 ("\n"^
(String.concat
"\n"
293 (List.map
(pm "previous" oldmcode
) oldenvs
)) ^
"\n"
294 ^
(pm "current" mck tin
.binding
));
296 (match Ast_c.pinfo_of_info ib
with
298 Common.sprintf
"%s: already tagged fake token\n"
299 tin
.extra
.current_rule_name
302 "%s: already tagged token:\nC code context\n%s"
303 tin
.extra
.current_rule_name
304 (Common.error_message
(Ast_c.file_of_info ib
)
305 (Ast_c.str_of_info ib
, Ast_c.opos_of_info ib
)))
309 let tokenf ia ib
= fun tin
->
310 let (_
,i
,mck,_
) = ia
in
311 let pos = Ast_c.info_to_fixpos ib
in
312 if check_pos (Some i
) mck pos
313 then return (ia
, tag_with_mck mck ib tin
) tin
316 let tokenf_mck mck ib
= fun tin
->
317 let pos = Ast_c.info_to_fixpos ib
in
318 if check_pos None
mck pos
319 then return (mck, tag_with_mck mck ib tin
) tin
323 (* ------------------------------------------------------------------------*)
324 (* Distribute mcode *)
325 (* ------------------------------------------------------------------------*)
327 (* When in the SP we attach something to a metavariable, or delete it, as in
330 * we have to minusize all the token that compose S in the C code, and
331 * attach the 'foo();' to the right token, the one at the very right.
334 type 'a distributer
=
335 (Ast_c.info
-> Ast_c.info
) * (* what to do on left *)
336 (Ast_c.info
-> Ast_c.info
) * (* what to do on middle *)
337 (Ast_c.info
-> Ast_c.info
) * (* what to do on right *)
338 (Ast_c.info
-> Ast_c.info
) -> (* what to do on both *)
341 let distribute_mck mcodekind distributef expr tin
=
343 | Ast_cocci.MINUS
(pos,_
,adj
,any_xxs
) ->
344 let inst = tin
.extra
.index
in
347 tag_with_mck (Ast_cocci.MINUS
(pos,inst,adj
,any_xxs
)) ib tin
),
349 tag_with_mck (Ast_cocci.MINUS
(pos,inst,adj
,[])) ib tin
),
351 tag_with_mck (Ast_cocci.MINUS
(pos,inst,adj
,[])) ib tin
),
353 tag_with_mck (Ast_cocci.MINUS
(pos,inst,adj
,any_xxs
)) ib tin
)
355 | Ast_cocci.CONTEXT
(pos,any_befaft
) ->
356 (match any_befaft
with
357 | Ast_cocci.NOTHING
-> expr
359 | Ast_cocci.BEFORE
(xxs
,c
) ->
361 (fun ib
-> tag_with_mck
362 (Ast_cocci.CONTEXT
(pos,Ast_cocci.BEFORE
(xxs
,c
))) ib tin
),
365 (fun ib
-> tag_with_mck
366 (Ast_cocci.CONTEXT
(pos,Ast_cocci.BEFORE
(xxs
,c
))) ib tin
)
368 | Ast_cocci.AFTER
(xxs
,c
) ->
372 (fun ib
-> tag_with_mck
373 (Ast_cocci.CONTEXT
(pos,Ast_cocci.AFTER
(xxs
,c
))) ib tin
),
374 (fun ib
-> tag_with_mck
375 (Ast_cocci.CONTEXT
(pos,Ast_cocci.AFTER
(xxs
,c
))) ib tin
)
378 | Ast_cocci.BEFOREAFTER
(xxs
, yys
, c
) ->
380 (fun ib
-> tag_with_mck
381 (Ast_cocci.CONTEXT
(pos,Ast_cocci.BEFORE
(xxs
,c
))) ib tin
),
383 (fun ib
-> tag_with_mck
384 (Ast_cocci.CONTEXT
(pos,Ast_cocci.AFTER
(yys
,c
))) ib tin
),
385 (fun ib
-> tag_with_mck
386 (Ast_cocci.CONTEXT
(pos,Ast_cocci.BEFOREAFTER
(xxs
,yys
,c
)))
391 | Ast_cocci.PLUS _
-> raise Impossible
394 (* use new strategy, collect ii, sort, recollect and tag *)
396 let mk_bigf (maxpos
, minpos
) (lop
,mop
,rop
,bop
) =
398 Visitor_c.default_visitor_c_s
with
399 Visitor_c.kinfo_s
= (fun (k
,bigf) i
->
400 let pos = Ast_c.info_to_fixpos i
in
402 | _
when Ast_cocci.equal_pos
pos maxpos
&&
403 Ast_cocci.equal_pos
pos minpos
-> bop i
404 | _
when Ast_cocci.equal_pos
pos maxpos
-> rop i
405 | _
when Ast_cocci.equal_pos
pos minpos
-> lop i
411 let distribute_mck_expr (maxpos
, minpos
) = fun (lop
,mop
,rop
,bop
) -> fun x
->
412 Visitor_c.vk_expr_s
(mk_bigf (maxpos
, minpos
) (lop
,mop
,rop
,bop
)) x
414 let distribute_mck_args (maxpos
, minpos
) = fun (lop
,mop
,rop
,bop
) -> fun x
->
415 Visitor_c.vk_args_splitted_s
(mk_bigf (maxpos
, minpos
) (lop
,mop
,rop
,bop
)) x
417 let distribute_mck_type (maxpos
, minpos
) = fun (lop
,mop
,rop
,bop
) -> fun x
->
418 Visitor_c.vk_type_s
(mk_bigf (maxpos
, minpos
) (lop
,mop
,rop
,bop
)) x
420 let distribute_mck_decl (maxpos
, minpos
) = fun (lop
,mop
,rop
,bop
) -> fun x
->
421 Visitor_c.vk_decl_s
(mk_bigf (maxpos
, minpos
) (lop
,mop
,rop
,bop
)) x
423 let distribute_mck_field (maxpos
, minpos
) = fun (lop
,mop
,rop
,bop
) -> fun x
->
424 Visitor_c.vk_struct_field_s
(mk_bigf (maxpos
, minpos
) (lop
,mop
,rop
,bop
)) x
426 let distribute_mck_ini (maxpos
, minpos
) = fun (lop
,mop
,rop
,bop
) -> fun x
->
427 Visitor_c.vk_ini_s
(mk_bigf (maxpos
, minpos
) (lop
,mop
,rop
,bop
)) x
429 let distribute_mck_inis (maxpos
, minpos
) = fun (lop
,mop
,rop
,bop
) -> fun x
->
430 Visitor_c.vk_inis_splitted_s
(mk_bigf (maxpos
, minpos
) (lop
,mop
,rop
,bop
)) x
432 let distribute_mck_param (maxpos
, minpos
) = fun (lop
,mop
,rop
,bop
) -> fun x
->
433 Visitor_c.vk_param_s
(mk_bigf (maxpos
, minpos
) (lop
,mop
,rop
,bop
)) x
435 let distribute_mck_params (maxpos
, minpos
) = fun (lop
,mop
,rop
,bop
) ->fun x
->
436 Visitor_c.vk_params_splitted_s
(mk_bigf (maxpos
, minpos
) (lop
,mop
,rop
,bop
))
439 let distribute_mck_node (maxpos
, minpos
) = fun (lop
,mop
,rop
,bop
) ->fun x
->
440 Visitor_c.vk_node_s
(mk_bigf (maxpos
, minpos
) (lop
,mop
,rop
,bop
))
443 let distribute_mck_enum_fields (maxpos
, minpos
) =
444 fun (lop
,mop
,rop
,bop
) ->fun x
->
445 Visitor_c.vk_enum_fields_splitted_s
446 (mk_bigf (maxpos
, minpos
) (lop
,mop
,rop
,bop
))
449 let distribute_mck_struct_fields (maxpos
, minpos
) =
450 fun (lop
,mop
,rop
,bop
) ->fun x
->
451 Visitor_c.vk_struct_fields_s
(mk_bigf (maxpos
, minpos
) (lop
,mop
,rop
,bop
))
454 let distribute_mck_cst (maxpos
, minpos
) =
455 fun (lop
,mop
,rop
,bop
) ->fun x
->
456 Visitor_c.vk_cst_s
(mk_bigf (maxpos
, minpos
) (lop
,mop
,rop
,bop
))
460 let distribute_mck_define_params (maxpos
, minpos
) = fun (lop
,mop
,rop
,bop
) ->
462 Visitor_c.vk_define_params_splitted_s
463 (mk_bigf (maxpos
, minpos
) (lop
,mop
,rop
,bop
))
468 | Ast_cocci.PLUS _
-> raise Impossible
469 | Ast_cocci.CONTEXT
(Ast_cocci.FixPos
(i1
,i2
),_
)
470 | Ast_cocci.MINUS
(Ast_cocci.FixPos
(i1
,i2
),_
,_
,_
) ->
471 Ast_cocci.FixPos
(i1
,i2
)
472 | Ast_cocci.CONTEXT
(Ast_cocci.DontCarePos
,_
)
473 | Ast_cocci.MINUS
(Ast_cocci.DontCarePos
,_
,_
,_
) ->
474 Ast_cocci.DontCarePos
475 | _
-> failwith
"weird: dont have position info for the mcodekind 2"
477 let distrf (ii_of_x_f
, distribute_mck_x_f
) =
478 fun ia x
-> fun tin
->
479 let mck = Ast_cocci.get_mcodekind ia
in
480 let (max
, min
) = Lib_parsing_c.max_min_by_pos
(ii_of_x_f x
)
483 (* bug: check_pos mck max && check_pos mck min
485 * if do that then if have - f(...); and in C f(1,2); then we
486 * would get a "already tagged" because the '...' would sucess in
487 * transformaing both '1' and '1,2'. So being in the range is not
488 * enough. We must be equal exactly to the range!
490 (match get_pos mck with
491 | Ast_cocci.DontCarePos
-> true
492 | Ast_cocci.FixPos
(i1
, i2
) ->
493 i1
=*= min
&& i2
=*= max
494 | _
-> raise Impossible
500 distribute_mck mck (distribute_mck_x_f
(max
,min
)) x tin
505 let distrf_e = distrf (Lib_parsing_c.ii_of_expr
, distribute_mck_expr)
506 let distrf_args = distrf (Lib_parsing_c.ii_of_args
, distribute_mck_args)
507 let distrf_type = distrf (Lib_parsing_c.ii_of_type
, distribute_mck_type)
508 let distrf_param = distrf (Lib_parsing_c.ii_of_param
, distribute_mck_param)
509 let distrf_params = distrf (Lib_parsing_c.ii_of_params
,distribute_mck_params)
510 let distrf_ini = distrf (Lib_parsing_c.ii_of_ini
,distribute_mck_ini)
511 let distrf_inis = distrf (Lib_parsing_c.ii_of_inis
,distribute_mck_inis)
512 let distrf_decl = distrf (Lib_parsing_c.ii_of_decl
,distribute_mck_decl)
513 let distrf_field = distrf (Lib_parsing_c.ii_of_field
,distribute_mck_field)
514 let distrf_node = distrf (Lib_parsing_c.ii_of_node
,distribute_mck_node)
515 let distrf_enum_fields =
516 distrf (Lib_parsing_c.ii_of_enum_fields
, distribute_mck_enum_fields)
517 let distrf_struct_fields =
518 distrf (Lib_parsing_c.ii_of_struct_fields
, distribute_mck_struct_fields)
520 distrf (Lib_parsing_c.ii_of_cst
, distribute_mck_cst)
521 let distrf_define_params =
522 distrf (Lib_parsing_c.ii_of_define_params
,distribute_mck_define_params)
525 (* ------------------------------------------------------------------------*)
527 (* ------------------------------------------------------------------------*)
528 let meta_name_to_str (s1
, s2
) = s1 ^
"." ^ s2
530 let envf keep inherited
= fun (s
, value, _
) f tin
->
531 let s = Ast_cocci.unwrap_mcode
s in
533 if keep
=*= Type_cocci.Saved
535 try Some
(List.assoc
s tin
.binding
)
538 "Don't find value for metavariable %s in the environment"
539 (meta_name_to_str s));
542 (* not raise Impossible! *)
549 (* Ex: in cocci_vs_c someone wants to add a binding. Here in
550 * transformation3 the value for this var may be already in the
551 * env, because for instance its value were fixed in a previous
552 * SmPL rule. So here we want to check that this is the same value.
553 * If forget to do the check, what can happen ? Because of Exp
554 * and other disjunctive feature of cocci_vs_c (>||>), we
555 * may accept a match at a wrong position. Maybe later this
556 * will be detected via the pos system on tokens, but maybe
557 * not. So safer to keep the check.
563 then Cocci_vs_c.equal_inh_metavarval
564 else Cocci_vs_c.equal_metavarval
in
565 if equal value value'
570 let check_idconstraint matcher c id
= fun f tin
-> f
() tin
571 let check_constraints_ne matcher constraints exp
= fun f tin
-> f
() tin
573 (* ------------------------------------------------------------------------*)
574 (* Environment, allbounds *)
575 (* ------------------------------------------------------------------------*)
576 let (all_bound
: Ast_cocci.meta_name list
-> tin
-> bool) = fun l tin
->
577 true (* in transform we don't care ? *)
581 (*****************************************************************************)
583 (*****************************************************************************)
584 module TRANS
= Cocci_vs_c.COCCI_VS_C
(XTRANS
)
587 let transform_re_node a b tin
=
588 match TRANS.rule_elem_node a b tin
with
589 | None
-> raise Impossible
590 | Some
(_sp
, b'
) -> b'
592 let (transform2
: string (* rule name *) -> string list
(* dropped_isos *) ->
593 Lib_engine.metavars_binding
(* inherited bindings *) ->
594 Lib_engine.numbered_transformation_info
-> F.cflow
-> F.cflow
) =
595 fun rule_name dropped_isos binding0 xs cflow
->
598 optional_storage_iso
= not
(List.mem
"optional_storage" dropped_isos
);
599 optional_qualifier_iso
= not
(List.mem
"optional_qualifier" dropped_isos
);
600 value_format_iso
= not
(List.mem
"value_format" dropped_isos
);
601 current_rule_name
= rule_name
;
605 (* find the node, transform, update the node, and iter for all elements *)
607 xs
+> List.fold_left
(fun acc
(index
, (nodei
, binding
, rule_elem
)) ->
608 (* subtil: not cflow#nodes but acc#nodes *)
609 let node = acc#nodes#assoc nodei
in
611 if !Flag.show_transinfo
612 then pr2
"transform one node";
615 XTRANS.extra = {extra with index
= index
};
616 XTRANS.binding
= binding0
@binding
;
617 XTRANS.binding0
= []; (* not used - everything constant for trans *)
620 let node'
= transform_re_node rule_elem
node tin in
622 (* assert that have done something. But with metaruleElem sometimes
623 dont modify fake nodes. So special case before on Fake nodes. *)
624 (match F.unwrap
node with
625 | F.Enter
| F.Exit
| F.ErrorExit
626 | F.EndStatement _
| F.CaseNode _
628 | F.TrueNode
| F.FalseNode
| F.AfterNode
| F.FallThroughNode
630 | _
-> () (* assert (not (node =*= node')); *)
633 (* useless, we dont go back from flow to ast now *)
634 (* let node' = lastfix_comma_struct node' in *)
636 acc#replace_node
(nodei
, node'
);
642 let transform a b c d e
=
643 Common.profile_code
"Transformation3.transform"
644 (fun () -> transform2 a b c d e
)