@@ -57,7 +57,7 @@ let%expect_test "direct calls without --enable effects" =
5757 [% expect
5858 {|
5959 function test1(param){
60- function f(g, x){caml_call1(g, x); return ;}
60+ function f(g, x){return caml_call1(g, x);}
6161 var _d_ = 7 ;
6262 f(function(x){return x + 1 | 0 ;}, _d_);
6363 var _e_ = 4. ;
@@ -66,7 +66,7 @@ let%expect_test "direct calls without --enable effects" =
6666 }
6767 // end
6868 function test2(param){
69- function f(g, x){caml_call1(g, x); return ;}
69+ function f(g, x){return caml_call1(g, x);}
7070 var _c_ = 7 ;
7171 f(function(x){return x + 1 | 0 ;}, _c_);
7272 f(function(x){return caml_call2(Stdlib [28 ], x, cst_a$ 0 );}, cst_a);
@@ -130,16 +130,14 @@ let%expect_test "direct calls with --enable effects" =
130130 [% expect
131131 {|
132132 function test1(param, cont){
133- function f(g, x){g(undef); return ;}
133+ function f(g, x){return g(undef);}
134134 f(function(x){return;}, undef);
135135 f(function(x){return;}, undef);
136136 return cont(0 );
137137 }
138138 // end
139139 function test2(param, cont){
140- function f(g, x, cont){
141- return caml_cps_exact_call2(g, x, function(_m_){return cont(undef);});
142- }
140+ function f(g, x, cont){return caml_cps_exact_call2(g, x, cont);}
143141 var _f_ = 7 ;
144142 function _g_(x, cont){return cont(undef);}
145143 return caml_cps_exact_call3
@@ -148,9 +146,7 @@ let%expect_test "direct calls with --enable effects" =
148146 _f_,
149147 function(_h_){
150148 function _i_(x, cont){
151- var _k_ = Stdlib [28 ];
152- return caml_cps_call3
153- (_k_, x, cst_a$ 0 , function(_l_){return cont(undef);});
149+ return caml_cps_call3(Stdlib [28 ], x, cst_a$ 0 , cont);
154150 }
155151 return caml_cps_exact_call3
156152 (f, _i_, cst_a, function(_j_){return cont(0 );});
0 commit comments