#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 callee0(int);
int callee1(int);
int callee2(int);
int callee3(int);
int callee4(int);
int callee5(int);
int increment(int);
int caller1(void) {
  register int l1 = increment(0xfeeb);
  register int n;
  n = callee0(l1);
  n = callee1(n + l1);
  n = callee2(n + l1);
  n = callee3(n + l1);
  n = callee4(n + l1);
  n = callee5(n + l1);
  return n + l1;
}


x86 assembly (clang, -O0):
<caller1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0xfeeb,%edi
call   1030 <increment@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1070 <callee0@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
add    -0x4(%rbp),%edi
call   1060 <callee1@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
add    -0x4(%rbp),%edi
call   1080 <callee2@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
add    -0x4(%rbp),%edi
call   1040 <callee3@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
add    -0x4(%rbp),%edi
call   1090 <callee4@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
add    -0x4(%rbp),%edi
call   1050 <callee5@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<caller1>:
push   %rbx
mov    $0xfeeb,%edi
call   1030 <increment@plt>
mov    %eax,%ebx
mov    %eax,%edi
call   1070 <callee0@plt>
lea    (%rax,%rbx,1),%edi
call   1060 <callee1@plt>
lea    (%rax,%rbx,1),%edi
call   1080 <callee2@plt>
lea    (%rax,%rbx,1),%edi
call   1040 <callee3@plt>
lea    (%rax,%rbx,1),%edi
call   1090 <callee4@plt>
lea    (%rax,%rbx,1),%edi
call   1050 <callee5@plt>
add    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @caller1() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @increment(i32 65259)
store i32 %3, i32* %1
%4 = load i32, i32* %1
%5 = call i32 @callee0(i32 %4)
store i32 %5, i32* %2
%6 = load i32, i32* %2
%7 = load i32, i32* %1
%8 = add nsw i32 %6, %7
%9 = call i32 @callee1(i32 %8)
store i32 %9, i32* %2
%10 = load i32, i32* %2
%11 = load i32, i32* %1
%12 = add nsw i32 %10, %11
%13 = call i32 @callee2(i32 %12)
store i32 %13, i32* %2
%14 = load i32, i32* %2
%15 = load i32, i32* %1
%16 = add nsw i32 %14, %15
%17 = call i32 @callee3(i32 %16)
store i32 %17, i32* %2
%18 = load i32, i32* %2
%19 = load i32, i32* %1
%20 = add nsw i32 %18, %19
%21 = call i32 @callee4(i32 %20)
store i32 %21, i32* %2
%22 = load i32, i32* %2
%23 = load i32, i32* %1
%24 = add nsw i32 %22, %23
%25 = call i32 @callee5(i32 %24)
store i32 %25, i32* %2
%26 = load i32, i32* %2
%27 = load i32, i32* %1
%28 = add nsw i32 %26, %27
ret i32 %28
}

LLVM IR (-O2):
define i32 @caller1() {
%1 = tail call i32 @increment(i32 65259)
%2 = tail call i32 @callee0(i32 %1)
%3 = add nsw i32 %2, %1
%4 = tail call i32 @callee1(i32 %3)
%5 = add nsw i32 %4, %1
%6 = tail call i32 @callee2(i32 %5)
%7 = add nsw i32 %6, %1
%8 = tail call i32 @callee3(i32 %7)
%9 = add nsw i32 %8, %1
%10 = tail call i32 @callee4(i32 %9)
%11 = add nsw i32 %10, %1
%12 = tail call i32 @callee5(i32 %11)
%13 = add nsw i32 %12, %1
ret i32 %13
}