@@ -60,51 +60,51 @@ module M1 = struct
6060 print_fun_decl generated (Some " caml_call2" );
6161 [% expect
6262 {|
63- function f(g){return caml_call2(f_prime(g), 3 , 4 );}
64- // end
65- function f_prime(g){
66- try {var _i_ = caml_call2(g, 1 , 2 ); return _i_;}
67- catch(e$ 0 ){
68- var e = caml_wrap_exception(e$ 0 );
69- throw caml_maybe_attach_backtrace(e, 0 );
70- }
71- }
72- // end
73- function g(param){
74- return f
75- (function(a, b, c, d){
76- return caml_call1(Stdlib [44 ], ((a + b | 0 ) + c | 0 ) + d | 0 );
77- });
78- }
79- // end
80- function h(param){
81- return f
82- (function(a, b, c, d){
83- return caml_call1(Stdlib [44 ], ((a + b | 0 ) + c | 0 ) + d | 0 );
84- });
85- }
86- // end
87- function k(a, b, c, d){
88- return caml_call1(Stdlib [44 ], ((a + b | 0 ) + c | 0 ) + d | 0 );
89- }
90- // end
91- function l(_g_, _h_){return k(_b_, _a_, _g_, _h_);}
92- // end
93- function m(_e_, _f_){return k(_d_, _c_, _e_, _f_);}
94- // end
95- function caml_call1(f, a0){
96- return (f.l > = 0 ? f.l : f.l = f.length ) == 1
97- ? f(a0)
98- : runtime.caml_call_gen(f, [a0]);
99- }
100- // end
101- function caml_call2(f, a0, a1){
102- return (f.l > = 0 ? f.l : f.l = f.length ) == 2
103- ? f(a0, a1)
104- : runtime.caml_call_gen(f, [a0, a1]);
105- }
106- // end
107- | }]
63+ function f(g){return caml_call2(f_prime(g), 3 , 4 );}
64+ // end
65+ function f_prime(g){
66+ try {var _i_ = caml_call2(g, 1 , 2 ); return _i_;}
67+ catch(e$ 0 ){
68+ var e = caml_wrap_exception(e$ 0 );
69+ throw caml_maybe_attach_backtrace(e, 0 );
70+ }
71+ }
72+ // end
73+ function g(param){
74+ return f
75+ (function(a, b, c, d){
76+ return caml_call1(Stdlib [44 ], ((a + b | 0 ) + c | 0 ) + d | 0 );
77+ });
78+ }
79+ // end
80+ function h(param){
81+ return f
82+ (function(a, b, c, d){
83+ return caml_call1(Stdlib [44 ], ((a + b | 0 ) + c | 0 ) + d | 0 );
84+ });
85+ }
86+ // end
87+ function k(a, b, c, d){
88+ return caml_call1(Stdlib [44 ], ((a + b | 0 ) + c | 0 ) + d | 0 );
89+ }
90+ // end
91+ function l(_g_, _h_){return k(_b_, _a_, _g_, _h_);}
92+ // end
93+ function m(_e_, _f_){return k(_d_, _c_, _e_, _f_);}
94+ // end
95+ function caml_call1(f, a0){
96+ return (f.l > = 0 ? f.l : f.l = f.length ) = == 1
97+ ? f(a0)
98+ : runtime.caml_call_gen(f, [a0]);
99+ }
100+ // end
101+ function caml_call2(f, a0, a1){
102+ return (f.l > = 0 ? f.l : f.l = f.length ) = == 2
103+ ? f(a0, a1)
104+ : runtime.caml_call_gen(f, [a0, a1]);
105+ }
106+ // end
107+ | }]
108108end
109109
110110module M2 = struct
0 commit comments