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


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

x86 assembly (clang, -O2):
<caller2>:
push   %rbp
push   %rbx
push   %rax
mov    $0xfeeb,%edi
call   1030 <increment@plt>
mov    %eax,%ebp
mov    %eax,%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    %ebp,%ebx
add    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

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