Source file
test/inline_big.go
1
2
3
4
5
6
7
8
9
10 package foo
11
12 func small(a []int) int {
13
14
15 return a[0] + a[1] + a[2] + a[3]
16 }
17 func medium(a []int) int {
18
19
20 return a[0] + a[1] + a[2] + a[3] + a[4] + a[5] + a[6] + a[7]
21 }
22
23 func f(a []int) int {
24
25
26 a[0] = 0
27 a[1] = 0
28 a[2] = 0
29 a[3] = 0
30 a[4] = 0
31 a[5] = 0
32 a[6] = 0
33 a[7] = 0
34 a[8] = 0
35 a[9] = 0
36 a[10] = 0
37 a[11] = 0
38 a[12] = 0
39 a[13] = 0
40 a[14] = 0
41 a[15] = 0
42 a[16] = 0
43 a[17] = 0
44 a[18] = 0
45 a[19] = 0
46 a[20] = 0
47 a[21] = 0
48 a[22] = 0
49 a[23] = 0
50 a[24] = 0
51 a[25] = 0
52 a[26] = 0
53 a[27] = 0
54 a[28] = 0
55 a[29] = 0
56 a[30] = 0
57 a[31] = 0
58 a[32] = 0
59 a[33] = 0
60 a[34] = 0
61 a[35] = 0
62 a[36] = 0
63 a[37] = 0
64 a[38] = 0
65 a[39] = 0
66 a[40] = 0
67 a[41] = 0
68 a[42] = 0
69 a[43] = 0
70 a[44] = 0
71 a[45] = 0
72 a[46] = 0
73 a[47] = 0
74 a[48] = 0
75 a[49] = 0
76 a[50] = 0
77 a[51] = 0
78 a[52] = 0
79 a[53] = 0
80 a[54] = 0
81 a[55] = 0
82 a[56] = 0
83 a[57] = 0
84 a[58] = 0
85 a[59] = 0
86 a[60] = 0
87 a[61] = 0
88 a[62] = 0
89 a[63] = 0
90 a[64] = 0
91 a[65] = 0
92 a[66] = 0
93 a[67] = 0
94 a[68] = 0
95 a[69] = 0
96 a[70] = 0
97 a[71] = 0
98 a[72] = 0
99 a[73] = 0
100 a[74] = 0
101 a[75] = 0
102 a[76] = 0
103 a[77] = 0
104 a[78] = 0
105 a[79] = 0
106 a[80] = 0
107 a[81] = 0
108 a[82] = 0
109 a[83] = 0
110 a[84] = 0
111 a[85] = 0
112 a[86] = 0
113 a[87] = 0
114 a[88] = 0
115 a[89] = 0
116 a[90] = 0
117 a[91] = 0
118 a[92] = 0
119 a[93] = 0
120 a[94] = 0
121 a[95] = 0
122 a[96] = 0
123 a[97] = 0
124 a[98] = 0
125 a[99] = 0
126 a[100] = 0
127 a[101] = 0
128 a[102] = 0
129 a[103] = 0
130 a[104] = 0
131 a[105] = 0
132 a[106] = 0
133 a[107] = 0
134 a[108] = 0
135 a[109] = 0
136 a[110] = 0
137 a[111] = 0
138 a[112] = 0
139 a[113] = 0
140 a[114] = 0
141 a[115] = 0
142 a[116] = 0
143 a[117] = 0
144 a[118] = 0
145 a[119] = 0
146 a[120] = 0
147 a[121] = 0
148 a[122] = 0
149 a[123] = 0
150 a[124] = 0
151 a[125] = 0
152 a[126] = 0
153 a[127] = 0
154 a[128] = 0
155 a[129] = 0
156 a[130] = 0
157 a[131] = 0
158 a[132] = 0
159 a[133] = 0
160 a[134] = 0
161 a[135] = 0
162 a[136] = 0
163 a[137] = 0
164 a[138] = 0
165 a[139] = 0
166 a[140] = 0
167 a[141] = 0
168 a[142] = 0
169 a[143] = 0
170 a[144] = 0
171 a[145] = 0
172 a[146] = 0
173 a[147] = 0
174 a[148] = 0
175 a[149] = 0
176 a[150] = 0
177 a[151] = 0
178 a[152] = 0
179 a[153] = 0
180 a[154] = 0
181 a[155] = 0
182 a[156] = 0
183 a[157] = 0
184 a[158] = 0
185 a[159] = 0
186 a[160] = 0
187 a[161] = 0
188 a[162] = 0
189 a[163] = 0
190 a[164] = 0
191 a[165] = 0
192 a[166] = 0
193 a[167] = 0
194 a[168] = 0
195 a[169] = 0
196 a[170] = 0
197 a[171] = 0
198 a[172] = 0
199 a[173] = 0
200 a[174] = 0
201 a[175] = 0
202 a[176] = 0
203 a[177] = 0
204 a[178] = 0
205 a[179] = 0
206 a[180] = 0
207 a[181] = 0
208 a[182] = 0
209 a[183] = 0
210 a[184] = 0
211 a[185] = 0
212 a[186] = 0
213 a[187] = 0
214 a[188] = 0
215 a[189] = 0
216 a[190] = 0
217 a[191] = 0
218 a[192] = 0
219 a[193] = 0
220 a[194] = 0
221 a[195] = 0
222 a[196] = 0
223 a[197] = 0
224 a[198] = 0
225 a[199] = 0
226 a[200] = 0
227 a[201] = 0
228 a[202] = 0
229 a[203] = 0
230 a[204] = 0
231 a[205] = 0
232 a[206] = 0
233 a[207] = 0
234 a[208] = 0
235 a[209] = 0
236 a[210] = 0
237 a[211] = 0
238 a[212] = 0
239 a[213] = 0
240 a[214] = 0
241 a[215] = 0
242 a[216] = 0
243 a[217] = 0
244 a[218] = 0
245 a[219] = 0
246 a[220] = 0
247 a[221] = 0
248 a[222] = 0
249 a[223] = 0
250 a[224] = 0
251 a[225] = 0
252 a[226] = 0
253 a[227] = 0
254 a[228] = 0
255 a[229] = 0
256 a[230] = 0
257 a[231] = 0
258 a[232] = 0
259 a[233] = 0
260 a[234] = 0
261 a[235] = 0
262 a[236] = 0
263 a[237] = 0
264 a[238] = 0
265 a[239] = 0
266 a[240] = 0
267 a[241] = 0
268 a[242] = 0
269 a[243] = 0
270 a[244] = 0
271 a[245] = 0
272 a[246] = 0
273 a[247] = 0
274 a[248] = 0
275 a[249] = 0
276 a[250] = 0
277 a[251] = 0
278 a[252] = 0
279 a[253] = 0
280 a[254] = 0
281 a[255] = 0
282 a[256] = 0
283 a[257] = 0
284 a[258] = 0
285 a[259] = 0
286 a[260] = 0
287 a[261] = 0
288 a[262] = 0
289 a[263] = 0
290 a[264] = 0
291 a[265] = 0
292 a[266] = 0
293 a[267] = 0
294 a[268] = 0
295 a[269] = 0
296 a[270] = 0
297 a[271] = 0
298 a[272] = 0
299 a[273] = 0
300 a[274] = 0
301 a[275] = 0
302 a[276] = 0
303 a[277] = 0
304 a[278] = 0
305 a[279] = 0
306 a[280] = 0
307 a[281] = 0
308 a[282] = 0
309 a[283] = 0
310 a[284] = 0
311 a[285] = 0
312 a[286] = 0
313 a[287] = 0
314 a[288] = 0
315 a[289] = 0
316 a[290] = 0
317 a[291] = 0
318 a[292] = 0
319 a[293] = 0
320 a[294] = 0
321 a[295] = 0
322 a[296] = 0
323 a[297] = 0
324 a[298] = 0
325 a[299] = 0
326 a[300] = 0
327 a[301] = 0
328 a[302] = 0
329 a[303] = 0
330 a[304] = 0
331 a[305] = 0
332 a[306] = 0
333 a[307] = 0
334 a[308] = 0
335 a[309] = 0
336 a[310] = 0
337 a[311] = 0
338 a[312] = 0
339 a[313] = 0
340 a[314] = 0
341 a[315] = 0
342 a[316] = 0
343 a[317] = 0
344 a[318] = 0
345 a[319] = 0
346 a[320] = 0
347 a[321] = 0
348 a[322] = 0
349 a[323] = 0
350 a[324] = 0
351 a[325] = 0
352 a[326] = 0
353 a[327] = 0
354 a[328] = 0
355 a[329] = 0
356 a[330] = 0
357 a[331] = 0
358 a[332] = 0
359 a[333] = 0
360 a[334] = 0
361 a[335] = 0
362 a[336] = 0
363 a[337] = 0
364 a[338] = 0
365 a[339] = 0
366 a[340] = 0
367 a[341] = 0
368 a[342] = 0
369 a[343] = 0
370 a[344] = 0
371 a[345] = 0
372 a[346] = 0
373 a[347] = 0
374 a[348] = 0
375 a[349] = 0
376 a[350] = 0
377 a[351] = 0
378 a[352] = 0
379 a[353] = 0
380 a[354] = 0
381 a[355] = 0
382 a[356] = 0
383 a[357] = 0
384 a[358] = 0
385 a[359] = 0
386 a[360] = 0
387 a[361] = 0
388 a[362] = 0
389 a[363] = 0
390 a[364] = 0
391 a[365] = 0
392 a[366] = 0
393 a[367] = 0
394 a[368] = 0
395 a[369] = 0
396 a[370] = 0
397 a[371] = 0
398 a[372] = 0
399 a[373] = 0
400 a[374] = 0
401 a[375] = 0
402 a[376] = 0
403 a[377] = 0
404 a[378] = 0
405 a[379] = 0
406 a[380] = 0
407 a[381] = 0
408 a[382] = 0
409 a[383] = 0
410 a[384] = 0
411 a[385] = 0
412 a[386] = 0
413 a[387] = 0
414 a[388] = 0
415 a[389] = 0
416 a[390] = 0
417 a[391] = 0
418 a[392] = 0
419 a[393] = 0
420 a[394] = 0
421 a[395] = 0
422 a[396] = 0
423 a[397] = 0
424 a[398] = 0
425 a[399] = 0
426 a[400] = 0
427 a[401] = 0
428 a[402] = 0
429 a[403] = 0
430 a[404] = 0
431 a[405] = 0
432 a[406] = 0
433 a[407] = 0
434 a[408] = 0
435 a[409] = 0
436 a[410] = 0
437 a[411] = 0
438 a[412] = 0
439 a[413] = 0
440 a[414] = 0
441 a[415] = 0
442 a[416] = 0
443 a[417] = 0
444 a[418] = 0
445 a[419] = 0
446 a[420] = 0
447 a[421] = 0
448 a[422] = 0
449 a[423] = 0
450 a[424] = 0
451 a[425] = 0
452 a[426] = 0
453 a[427] = 0
454 a[428] = 0
455 a[429] = 0
456 a[430] = 0
457 a[431] = 0
458 a[432] = 0
459 a[433] = 0
460 a[434] = 0
461 a[435] = 0
462 a[436] = 0
463 a[437] = 0
464 a[438] = 0
465 a[439] = 0
466 a[440] = 0
467 a[441] = 0
468 a[442] = 0
469 a[443] = 0
470 a[444] = 0
471 a[445] = 0
472 a[446] = 0
473 a[447] = 0
474 a[448] = 0
475 a[449] = 0
476 a[450] = 0
477 a[451] = 0
478 a[452] = 0
479 a[453] = 0
480 a[454] = 0
481 a[455] = 0
482 a[456] = 0
483 a[457] = 0
484 a[458] = 0
485 a[459] = 0
486 a[460] = 0
487 a[461] = 0
488 a[462] = 0
489 a[463] = 0
490 a[464] = 0
491 a[465] = 0
492 a[466] = 0
493 a[467] = 0
494 a[468] = 0
495 a[469] = 0
496 a[470] = 0
497 a[471] = 0
498 a[472] = 0
499 a[473] = 0
500 a[474] = 0
501 a[475] = 0
502 a[476] = 0
503 a[477] = 0
504 a[478] = 0
505 a[479] = 0
506 a[480] = 0
507 a[481] = 0
508 a[482] = 0
509 a[483] = 0
510 a[484] = 0
511 a[485] = 0
512 a[486] = 0
513 a[487] = 0
514 a[488] = 0
515 a[489] = 0
516 a[490] = 0
517 a[491] = 0
518 a[492] = 0
519 a[493] = 0
520 a[494] = 0
521 a[495] = 0
522 a[496] = 0
523 a[497] = 0
524 a[498] = 0
525 a[499] = 0
526 a[500] = 0
527 a[501] = 0
528 a[502] = 0
529 a[503] = 0
530 a[504] = 0
531 a[505] = 0
532 a[506] = 0
533 a[507] = 0
534 a[508] = 0
535 a[509] = 0
536 a[510] = 0
537 a[511] = 0
538 a[512] = 0
539 a[513] = 0
540 a[514] = 0
541 a[515] = 0
542 a[516] = 0
543 a[517] = 0
544 a[518] = 0
545 a[519] = 0
546 a[520] = 0
547 a[521] = 0
548 a[522] = 0
549 a[523] = 0
550 a[524] = 0
551 a[525] = 0
552 a[526] = 0
553 a[527] = 0
554 a[528] = 0
555 a[529] = 0
556 a[530] = 0
557 a[531] = 0
558 a[532] = 0
559 a[533] = 0
560 a[534] = 0
561 a[535] = 0
562 a[536] = 0
563 a[537] = 0
564 a[538] = 0
565 a[539] = 0
566 a[540] = 0
567 a[541] = 0
568 a[542] = 0
569 a[543] = 0
570 a[544] = 0
571 a[545] = 0
572 a[546] = 0
573 a[547] = 0
574 a[548] = 0
575 a[549] = 0
576 a[550] = 0
577 a[551] = 0
578 a[552] = 0
579 a[553] = 0
580 a[554] = 0
581 a[555] = 0
582 a[556] = 0
583 a[557] = 0
584 a[558] = 0
585 a[559] = 0
586 a[560] = 0
587 a[561] = 0
588 a[562] = 0
589 a[563] = 0
590 a[564] = 0
591 a[565] = 0
592 a[566] = 0
593 a[567] = 0
594 a[568] = 0
595 a[569] = 0
596 a[570] = 0
597 a[571] = 0
598 a[572] = 0
599 a[573] = 0
600 a[574] = 0
601 a[575] = 0
602 a[576] = 0
603 a[577] = 0
604 a[578] = 0
605 a[579] = 0
606 a[580] = 0
607 a[581] = 0
608 a[582] = 0
609 a[583] = 0
610 a[584] = 0
611 a[585] = 0
612 a[586] = 0
613 a[587] = 0
614 a[588] = 0
615 a[589] = 0
616 a[590] = 0
617 a[591] = 0
618 a[592] = 0
619 a[593] = 0
620 a[594] = 0
621 a[595] = 0
622 a[596] = 0
623 a[597] = 0
624 a[598] = 0
625 a[599] = 0
626 a[600] = 0
627 a[601] = 0
628 a[602] = 0
629 a[603] = 0
630 a[604] = 0
631 a[605] = 0
632 a[606] = 0
633 a[607] = 0
634 a[608] = 0
635 a[609] = 0
636 a[610] = 0
637 a[611] = 0
638 a[612] = 0
639 a[613] = 0
640 a[614] = 0
641 a[615] = 0
642 a[616] = 0
643 a[617] = 0
644 a[618] = 0
645 a[619] = 0
646 a[620] = 0
647 a[621] = 0
648 a[622] = 0
649 a[623] = 0
650 a[624] = 0
651 a[625] = 0
652 a[626] = 0
653 a[627] = 0
654 a[628] = 0
655 a[629] = 0
656 a[630] = 0
657 a[631] = 0
658 a[632] = 0
659 a[633] = 0
660 a[634] = 0
661 a[635] = 0
662 a[636] = 0
663 a[637] = 0
664 a[638] = 0
665 a[639] = 0
666 a[640] = 0
667 a[641] = 0
668 a[642] = 0
669 a[643] = 0
670 a[644] = 0
671 a[645] = 0
672 a[646] = 0
673 a[647] = 0
674 a[648] = 0
675 a[649] = 0
676 a[650] = 0
677 a[651] = 0
678 a[652] = 0
679 a[653] = 0
680 a[654] = 0
681 a[655] = 0
682 a[656] = 0
683 a[657] = 0
684 a[658] = 0
685 a[659] = 0
686 a[660] = 0
687 a[661] = 0
688 a[662] = 0
689 a[663] = 0
690 a[664] = 0
691 a[665] = 0
692 a[666] = 0
693 a[667] = 0
694 a[668] = 0
695 a[669] = 0
696 a[670] = 0
697 a[671] = 0
698 a[672] = 0
699 a[673] = 0
700 a[674] = 0
701 a[675] = 0
702 a[676] = 0
703 a[677] = 0
704 a[678] = 0
705 a[679] = 0
706 a[680] = 0
707 a[681] = 0
708 a[682] = 0
709 a[683] = 0
710 a[684] = 0
711 a[685] = 0
712 a[686] = 0
713 a[687] = 0
714 a[688] = 0
715 a[689] = 0
716 a[690] = 0
717 a[691] = 0
718 a[692] = 0
719 a[693] = 0
720 a[694] = 0
721 a[695] = 0
722 a[696] = 0
723 a[697] = 0
724 a[698] = 0
725 a[699] = 0
726 a[700] = 0
727 a[701] = 0
728 a[702] = 0
729 a[703] = 0
730 a[704] = 0
731 a[705] = 0
732 a[706] = 0
733 a[707] = 0
734 a[708] = 0
735 a[709] = 0
736 a[710] = 0
737 a[711] = 0
738 a[712] = 0
739 a[713] = 0
740 a[714] = 0
741 a[715] = 0
742 a[716] = 0
743 a[717] = 0
744 a[718] = 0
745 a[719] = 0
746 a[720] = 0
747 a[721] = 0
748 a[722] = 0
749 a[723] = 0
750 a[724] = 0
751 a[725] = 0
752 a[726] = 0
753 a[727] = 0
754 a[728] = 0
755 a[729] = 0
756 a[730] = 0
757 a[731] = 0
758 a[732] = 0
759 a[733] = 0
760 a[734] = 0
761 a[735] = 0
762 a[736] = 0
763 a[737] = 0
764 a[738] = 0
765 a[739] = 0
766 a[740] = 0
767 a[741] = 0
768 a[742] = 0
769 a[743] = 0
770 a[744] = 0
771 a[745] = 0
772 a[746] = 0
773 a[747] = 0
774 a[748] = 0
775 a[749] = 0
776 a[750] = 0
777 a[751] = 0
778 a[752] = 0
779 a[753] = 0
780 a[754] = 0
781 a[755] = 0
782 a[756] = 0
783 a[757] = 0
784 a[758] = 0
785 a[759] = 0
786 a[760] = 0
787 a[761] = 0
788 a[762] = 0
789 a[763] = 0
790 a[764] = 0
791 a[765] = 0
792 a[766] = 0
793 a[767] = 0
794 a[768] = 0
795 a[769] = 0
796 a[770] = 0
797 a[771] = 0
798 a[772] = 0
799 a[773] = 0
800 a[774] = 0
801 a[775] = 0
802 a[776] = 0
803 a[777] = 0
804 a[778] = 0
805 a[779] = 0
806 a[780] = 0
807 a[781] = 0
808 a[782] = 0
809 a[783] = 0
810 a[784] = 0
811 a[785] = 0
812 a[786] = 0
813 a[787] = 0
814 a[788] = 0
815 a[789] = 0
816 a[790] = 0
817 a[791] = 0
818 a[792] = 0
819 a[793] = 0
820 a[794] = 0
821 a[795] = 0
822 a[796] = 0
823 a[797] = 0
824 a[798] = 0
825 a[799] = 0
826 a[800] = 0
827 a[801] = 0
828 a[802] = 0
829 a[803] = 0
830 a[804] = 0
831 a[805] = 0
832 a[806] = 0
833 a[807] = 0
834 a[808] = 0
835 a[809] = 0
836 a[810] = 0
837 a[811] = 0
838 a[812] = 0
839 a[813] = 0
840 a[814] = 0
841 a[815] = 0
842 a[816] = 0
843 a[817] = 0
844 a[818] = 0
845 a[819] = 0
846 a[820] = 0
847 a[821] = 0
848 a[822] = 0
849 a[823] = 0
850 a[824] = 0
851 a[825] = 0
852 a[826] = 0
853 a[827] = 0
854 a[828] = 0
855 a[829] = 0
856 a[830] = 0
857 a[831] = 0
858 a[832] = 0
859 a[833] = 0
860 a[834] = 0
861 a[835] = 0
862 a[836] = 0
863 a[837] = 0
864 a[838] = 0
865 a[839] = 0
866 a[840] = 0
867 a[841] = 0
868 a[842] = 0
869 a[843] = 0
870 a[844] = 0
871 a[845] = 0
872 a[846] = 0
873 a[847] = 0
874 a[848] = 0
875 a[849] = 0
876 a[850] = 0
877 a[851] = 0
878 a[852] = 0
879 a[853] = 0
880 a[854] = 0
881 a[855] = 0
882 a[856] = 0
883 a[857] = 0
884 a[858] = 0
885 a[859] = 0
886 a[860] = 0
887 a[861] = 0
888 a[862] = 0
889 a[863] = 0
890 a[864] = 0
891 a[865] = 0
892 a[866] = 0
893 a[867] = 0
894 a[868] = 0
895 a[869] = 0
896 a[870] = 0
897 a[871] = 0
898 a[872] = 0
899 a[873] = 0
900 a[874] = 0
901 a[875] = 0
902 a[876] = 0
903 a[877] = 0
904 a[878] = 0
905 a[879] = 0
906 a[880] = 0
907 a[881] = 0
908 a[882] = 0
909 a[883] = 0
910 a[884] = 0
911 a[885] = 0
912 a[886] = 0
913 a[887] = 0
914 a[888] = 0
915 a[889] = 0
916 a[890] = 0
917 a[891] = 0
918 a[892] = 0
919 a[893] = 0
920 a[894] = 0
921 a[895] = 0
922 a[896] = 0
923 a[897] = 0
924 a[898] = 0
925 a[899] = 0
926 a[900] = 0
927 a[901] = 0
928 a[902] = 0
929 a[903] = 0
930 a[904] = 0
931 a[905] = 0
932 a[906] = 0
933 a[907] = 0
934 a[908] = 0
935 a[909] = 0
936 a[910] = 0
937 a[911] = 0
938 a[912] = 0
939 a[913] = 0
940 a[914] = 0
941 a[915] = 0
942 a[916] = 0
943 a[917] = 0
944 a[918] = 0
945 a[919] = 0
946 a[920] = 0
947 a[921] = 0
948 a[922] = 0
949 a[923] = 0
950 a[924] = 0
951 a[925] = 0
952 a[926] = 0
953 a[927] = 0
954 a[928] = 0
955 a[929] = 0
956 a[930] = 0
957 a[931] = 0
958 a[932] = 0
959 a[933] = 0
960 a[934] = 0
961 a[935] = 0
962 a[936] = 0
963 a[937] = 0
964 a[938] = 0
965 a[939] = 0
966 a[940] = 0
967 a[941] = 0
968 a[942] = 0
969 a[943] = 0
970 a[944] = 0
971 a[945] = 0
972 a[946] = 0
973 a[947] = 0
974 a[948] = 0
975 a[949] = 0
976 a[950] = 0
977 a[951] = 0
978 a[952] = 0
979 a[953] = 0
980 a[954] = 0
981 a[955] = 0
982 a[956] = 0
983 a[957] = 0
984 a[958] = 0
985 a[959] = 0
986 a[960] = 0
987 a[961] = 0
988 a[962] = 0
989 a[963] = 0
990 a[964] = 0
991 a[965] = 0
992 a[966] = 0
993 a[967] = 0
994 a[968] = 0
995 a[969] = 0
996 a[970] = 0
997 a[971] = 0
998 a[972] = 0
999 a[973] = 0
1000 a[974] = 0
1001 a[975] = 0
1002 a[976] = 0
1003 a[977] = 0
1004 a[978] = 0
1005 a[979] = 0
1006 a[980] = 0
1007 a[981] = 0
1008 a[982] = 0
1009 a[983] = 0
1010 a[984] = 0
1011 a[985] = 0
1012 a[986] = 0
1013 a[987] = 0
1014 a[988] = 0
1015 a[989] = 0
1016 a[990] = 0
1017 a[991] = 0
1018 a[992] = 0
1019 a[993] = 0
1020 a[994] = 0
1021 a[995] = 0
1022 a[996] = 0
1023 a[997] = 0
1024 a[998] = 0
1025 a[999] = 0
1026 x := small(a)
1027 y := medium(a)
1028 return x + y
1029 }
1030
View as plain text