#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ foo001(int);
int /*<<< orphan*/ foo002(int);
int /*<<< orphan*/ foo003(int);
int /*<<< orphan*/ foo004(int);
int /*<<< orphan*/ foo005(int);
int /*<<< orphan*/ foo006(int);
int /*<<< orphan*/ foo007(int);
int /*<<< orphan*/ foo008(int);
int /*<<< orphan*/ foo009(int);
int /*<<< orphan*/ foo010(int);
int /*<<< orphan*/ foo011(int);
int /*<<< orphan*/ foo012(int);
int /*<<< orphan*/ foo013(int);
int /*<<< orphan*/ foo014(int);
int /*<<< orphan*/ foo015(int);
int /*<<< orphan*/ foo016(int);
int /*<<< orphan*/ foo017(int);
int /*<<< orphan*/ foo018(int);
int /*<<< orphan*/ foo019(int);
int /*<<< orphan*/ foo020(int);
int /*<<< orphan*/ foo021(int);
int /*<<< orphan*/ foo022(int);
int /*<<< orphan*/ foo023(int);
int /*<<< orphan*/ foo024(int);
int /*<<< orphan*/ foo025(int);
int /*<<< orphan*/ foo026(int);
int /*<<< orphan*/ foo027(int);
int /*<<< orphan*/ foo028(int);
int /*<<< orphan*/ foo029(int);
int /*<<< orphan*/ foo030(int);
int /*<<< orphan*/ foo031(int);
int /*<<< orphan*/ foo032(int);
void *callAll(void *p) {
  foo001(0x12345678);
  foo002(0x12345678);
  foo003(0x12345678);
  foo004(0x12345678);
  foo005(0x12345678);
  foo006(0x12345678);
  foo007(0x12345678);
  foo008(0x12345678);
  foo009(0x12345678);
  foo010(0x12345678);
  foo011(0x12345678);
  foo012(0x12345678);
  foo013(0x12345678);
  foo014(0x12345678);
  foo015(0x12345678);
  foo016(0x12345678);
  foo017(0x12345678);
  foo018(0x12345678);
  foo019(0x12345678);
  foo020(0x12345678);
  foo021(0x12345678);
  foo022(0x12345678);
  foo023(0x12345678);
  foo024(0x12345678);
  foo025(0x12345678);
  foo026(0x12345678);
  foo027(0x12345678);
  foo028(0x12345678);
  foo029(0x12345678);
  foo030(0x12345678);
  foo031(0x12345678);
  foo032(0x12345678);
  return NULL;
}


x86 assembly (clang, -O0):
<callAll>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x12345678,%edi
call   1100 <foo001@plt>
mov    $0x12345678,%edi
call   1200 <foo002@plt>
mov    $0x12345678,%edi
call   1110 <foo003@plt>
mov    $0x12345678,%edi
call   1210 <foo004@plt>
mov    $0x12345678,%edi
call   10f0 <foo005@plt>
mov    $0x12345678,%edi
call   11f0 <foo006@plt>
mov    $0x12345678,%edi
call   1130 <foo007@plt>
mov    $0x12345678,%edi
call   1220 <foo008@plt>
mov    $0x12345678,%edi
call   1120 <foo009@plt>
mov    $0x12345678,%edi
call   10c0 <foo010@plt>
mov    $0x12345678,%edi
call   11c0 <foo011@plt>
mov    $0x12345678,%edi
call   10b0 <foo012@plt>
mov    $0x12345678,%edi
call   11b0 <foo013@plt>
mov    $0x12345678,%edi
call   10d0 <foo014@plt>
mov    $0x12345678,%edi
call   11d0 <foo015@plt>
mov    $0x12345678,%edi
call   10a0 <foo016@plt>
mov    $0x12345678,%edi
call   11a0 <foo017@plt>
mov    $0x12345678,%edi
call   10e0 <foo018@plt>
mov    $0x12345678,%edi
call   11e0 <foo019@plt>
mov    $0x12345678,%edi
call   1160 <foo020@plt>
mov    $0x12345678,%edi
call   1070 <foo021@plt>
mov    $0x12345678,%edi
call   1170 <foo022@plt>
mov    $0x12345678,%edi
call   1060 <foo023@plt>
mov    $0x12345678,%edi
call   1150 <foo024@plt>
mov    $0x12345678,%edi
call   1090 <foo025@plt>
mov    $0x12345678,%edi
call   1190 <foo026@plt>
mov    $0x12345678,%edi
call   1080 <foo027@plt>
mov    $0x12345678,%edi
call   1180 <foo028@plt>
mov    $0x12345678,%edi
call   1050 <foo029@plt>
mov    $0x12345678,%edi
call   1030 <foo030@plt>
mov    $0x12345678,%edi
call   1140 <foo031@plt>
mov    $0x12345678,%edi
call   1040 <foo032@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<callAll>:
push   %rax
mov    $0x12345678,%edi
call   1100 <foo001@plt>
mov    $0x12345678,%edi
call   1200 <foo002@plt>
mov    $0x12345678,%edi
call   1110 <foo003@plt>
mov    $0x12345678,%edi
call   1210 <foo004@plt>
mov    $0x12345678,%edi
call   10f0 <foo005@plt>
mov    $0x12345678,%edi
call   11f0 <foo006@plt>
mov    $0x12345678,%edi
call   1130 <foo007@plt>
mov    $0x12345678,%edi
call   1220 <foo008@plt>
mov    $0x12345678,%edi
call   1120 <foo009@plt>
mov    $0x12345678,%edi
call   10c0 <foo010@plt>
mov    $0x12345678,%edi
call   11c0 <foo011@plt>
mov    $0x12345678,%edi
call   10b0 <foo012@plt>
mov    $0x12345678,%edi
call   11b0 <foo013@plt>
mov    $0x12345678,%edi
call   10d0 <foo014@plt>
mov    $0x12345678,%edi
call   11d0 <foo015@plt>
mov    $0x12345678,%edi
call   10a0 <foo016@plt>
mov    $0x12345678,%edi
call   11a0 <foo017@plt>
mov    $0x12345678,%edi
call   10e0 <foo018@plt>
mov    $0x12345678,%edi
call   11e0 <foo019@plt>
mov    $0x12345678,%edi
call   1160 <foo020@plt>
mov    $0x12345678,%edi
call   1070 <foo021@plt>
mov    $0x12345678,%edi
call   1170 <foo022@plt>
mov    $0x12345678,%edi
call   1060 <foo023@plt>
mov    $0x12345678,%edi
call   1150 <foo024@plt>
mov    $0x12345678,%edi
call   1090 <foo025@plt>
mov    $0x12345678,%edi
call   1190 <foo026@plt>
mov    $0x12345678,%edi
call   1080 <foo027@plt>
mov    $0x12345678,%edi
call   1180 <foo028@plt>
mov    $0x12345678,%edi
call   1050 <foo029@plt>
mov    $0x12345678,%edi
call   1030 <foo030@plt>
mov    $0x12345678,%edi
call   1140 <foo031@plt>
mov    $0x12345678,%edi
call   1040 <foo032@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i8* @callAll(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @foo001(i32 305419896)
%4 = call i32 @foo002(i32 305419896)
%5 = call i32 @foo003(i32 305419896)
%6 = call i32 @foo004(i32 305419896)
%7 = call i32 @foo005(i32 305419896)
%8 = call i32 @foo006(i32 305419896)
%9 = call i32 @foo007(i32 305419896)
%10 = call i32 @foo008(i32 305419896)
%11 = call i32 @foo009(i32 305419896)
%12 = call i32 @foo010(i32 305419896)
%13 = call i32 @foo011(i32 305419896)
%14 = call i32 @foo012(i32 305419896)
%15 = call i32 @foo013(i32 305419896)
%16 = call i32 @foo014(i32 305419896)
%17 = call i32 @foo015(i32 305419896)
%18 = call i32 @foo016(i32 305419896)
%19 = call i32 @foo017(i32 305419896)
%20 = call i32 @foo018(i32 305419896)
%21 = call i32 @foo019(i32 305419896)
%22 = call i32 @foo020(i32 305419896)
%23 = call i32 @foo021(i32 305419896)
%24 = call i32 @foo022(i32 305419896)
%25 = call i32 @foo023(i32 305419896)
%26 = call i32 @foo024(i32 305419896)
%27 = call i32 @foo025(i32 305419896)
%28 = call i32 @foo026(i32 305419896)
%29 = call i32 @foo027(i32 305419896)
%30 = call i32 @foo028(i32 305419896)
%31 = call i32 @foo029(i32 305419896)
%32 = call i32 @foo030(i32 305419896)
%33 = call i32 @foo031(i32 305419896)
%34 = call i32 @foo032(i32 305419896)
ret i8* null
}

LLVM IR (-O2):
define noalias i8* @callAll(i8* nocapture readnone %0) {
%2 = tail call i32 @foo001(i32 305419896)
%3 = tail call i32 @foo002(i32 305419896)
%4 = tail call i32 @foo003(i32 305419896)
%5 = tail call i32 @foo004(i32 305419896)
%6 = tail call i32 @foo005(i32 305419896)
%7 = tail call i32 @foo006(i32 305419896)
%8 = tail call i32 @foo007(i32 305419896)
%9 = tail call i32 @foo008(i32 305419896)
%10 = tail call i32 @foo009(i32 305419896)
%11 = tail call i32 @foo010(i32 305419896)
%12 = tail call i32 @foo011(i32 305419896)
%13 = tail call i32 @foo012(i32 305419896)
%14 = tail call i32 @foo013(i32 305419896)
%15 = tail call i32 @foo014(i32 305419896)
%16 = tail call i32 @foo015(i32 305419896)
%17 = tail call i32 @foo016(i32 305419896)
%18 = tail call i32 @foo017(i32 305419896)
%19 = tail call i32 @foo018(i32 305419896)
%20 = tail call i32 @foo019(i32 305419896)
%21 = tail call i32 @foo020(i32 305419896)
%22 = tail call i32 @foo021(i32 305419896)
%23 = tail call i32 @foo022(i32 305419896)
%24 = tail call i32 @foo023(i32 305419896)
%25 = tail call i32 @foo024(i32 305419896)
%26 = tail call i32 @foo025(i32 305419896)
%27 = tail call i32 @foo026(i32 305419896)
%28 = tail call i32 @foo027(i32 305419896)
%29 = tail call i32 @foo028(i32 305419896)
%30 = tail call i32 @foo029(i32 305419896)
%31 = tail call i32 @foo030(i32 305419896)
%32 = tail call i32 @foo031(i32 305419896)
%33 = tail call i32 @foo032(i32 305419896)
ret i8* null
}