@@ -129,7 +129,7 @@ let%expect_test "direct calls with --effects=double-translation" =
129129 var
130130 dummy = 0 ,
131131 global_data = runtime.caml_get_global_data() ,
132- _z_ = [0 , [4 , 0 , 0 , 0 , 0 ], caml_string_of_jsbytes(" %d" )],
132+ a = [0 , [4 , 0 , 0 , 0 , 0 ], caml_string_of_jsbytes(" %d" )],
133133 cst_a$ 0 = caml_string_of_jsbytes(" a" ),
134134 cst_a = caml_string_of_jsbytes(" a" ),
135135 Stdlib = global_data.Stdlib ,
@@ -161,46 +161,41 @@ let%expect_test "direct calls with --effects=double-translation" =
161161 return raise(e);
162162 });
163163 return caml_exact_trampoline_cps_call
164- (g, x, function(_K_ ){caml_pop_trap() ; return cont() ;});
164+ (g, x, function(a ){caml_pop_trap() ; return cont() ;});
165165 }
166166 var f = caml_cps_closure(f$ 0 , f$ 1 );
167167 return f;
168168 }
169- function _h_ () {return function(x){};}
170- function _j_ () {
169+ function b () {return function(x){};}
170+ function c () {
171171 return caml_cps_closure
172172 (function(x){return caml_call2(Stdlib [28 ], x, cst_a$ 0 );},
173173 function(x, cont){
174174 return caml_trampoline_cps_call3(Stdlib [28 ], x, cst_a$ 0 , cont);
175175 });
176176 }
177- function test2$ 0 (param){
178- var f = f$ 0 () ;
179- f(_h_() , 7 );
180- f(_j_() , cst_a);
181- return 0 ;
182- }
177+ function test2$ 0 (param){var f = f$ 0 () ; f(b() , 7 ); f(c() , cst_a); return 0 ;}
183178 function test2$ 1 (param, cont){
184179 var f = f$ 0 () ;
185180 return caml_exact_trampoline_cps_call$ 0
186181 (f,
187- _h_ () ,
182+ b () ,
188183 7 ,
189- function(_I_ ){
184+ function(a ){
190185 return caml_exact_trampoline_cps_call$ 0
191- (f, _j_ () , cst_a, function(_J_ ){return cont(0 );});
186+ (f, c () , cst_a, function(a ){return cont(0 );});
192187 });
193188 }
194189 var test2 = caml_cps_closure(test2$ 0 , test2$ 1 );
195190 function test3(x){
196191 function F (symbol){function f(x){return x + 1 | 0 ;} return [0 , f];}
197- var M1 = F () , M2 = F () , _H_ = caml_call1(M2 [1 ], 2 );
198- return [0 , caml_call1(M1 [1 ], 1 ), _H_ ];
192+ var M1 = F () , M2 = F () , a = caml_call1(M2 [1 ], 2 );
193+ return [0 , caml_call1(M1 [1 ], 1 ), a ];
199194 }
200195 function f() {
201- function f$ 0 (x){return caml_call2(Stdlib_Printf [2 ], _z_ , x);}
196+ function f$ 0 (x){return caml_call2(Stdlib_Printf [2 ], a , x);}
202197 function f$ 1 (x, cont){
203- return caml_trampoline_cps_call3(Stdlib_Printf [2 ], _z_ , x, cont);
198+ return caml_trampoline_cps_call3(Stdlib_Printf [2 ], a , x, cont);
204199 }
205200 var f = caml_cps_closure(f$ 0 , f$ 1 );
206201 return f;
@@ -216,7 +211,7 @@ let%expect_test "direct calls with --effects=double-translation" =
216211 return caml_exact_trampoline_cps_call
217212 (M1 [1 ],
218213 1 ,
219- function(_G_ ){
214+ function(a ){
220215 return caml_exact_trampoline_cps_call(M2 [1 ], 2 , cont);
221216 });
222217 }
@@ -233,18 +228,18 @@ let%expect_test "direct calls with --effects=double-translation" =
233228 tuple = recfuncs(x),
234229 f = tuple[2 ],
235230 h = tuple[1 ],
236- _E_ = h(100 ),
237- _F_ = f(12 ) + _E_ | 0 ;
238- return caml_call1(Stdlib [44 ], _F_ );
231+ a = h(100 ),
232+ b = f(12 ) + a | 0 ;
233+ return caml_call1(Stdlib [44 ], b );
239234 }
240235 function g$ 1 (x, cont){
241236 var
242237 tuple = recfuncs(x),
243238 f = tuple[2 ],
244239 h = tuple[1 ],
245- _C_ = h(100 ),
246- _D_ = f(12 ) + _C_ | 0 ;
247- return caml_trampoline_cps_call2(Stdlib [44 ], _D_ , cont);
240+ a = h(100 ),
241+ b = f(12 ) + a | 0 ;
242+ return caml_trampoline_cps_call2(Stdlib [44 ], b , cont);
248243 }
249244 var g = caml_cps_closure(g$ 0 , g$ 1 );
250245 return g;
@@ -255,9 +250,9 @@ let%expect_test "direct calls with --effects=double-translation" =
255250 return caml_exact_trampoline_cps_call
256251 (g$ 0 ,
257252 42 ,
258- function(_A_ ){
253+ function(a ){
259254 return caml_exact_trampoline_cps_call
260- (g$ 0 , - 5 , function(_B_ ){return cont(0 );});
255+ (g$ 0 , - 5 , function(a ){return cont(0 );});
261256 });
262257 }
263258 var
0 commit comments