#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 f(int, int, int, int, int);
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  printf("%d\n",
         f(f(f(15, 25, 35, 45, 55), 66, 77, 88, 99),
           f(1000, 2000, 3000, 4000, 5000), f(9323, 2504, 7732, 203, 123),
           f(f(44, 1990, 3003, 101, 102), 843, 12, 1200, 388), 729));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0xf,%edi
mov    $0x19,%esi
mov    $0x23,%edx
mov    $0x2d,%ecx
mov    $0x37,%r8d
call   1030 <f@plt>
mov    %eax,%edi
mov    $0x42,%esi
mov    $0x4d,%edx
mov    $0x58,%ecx
mov    $0x63,%r8d
call   1030 <f@plt>
mov    %eax,-0x10(%rbp)
mov    $0x3e8,%edi
mov    $0x7d0,%esi
mov    $0xbb8,%edx
mov    $0xfa0,%ecx
mov    $0x1388,%r8d
call   1030 <f@plt>
mov    %eax,-0xc(%rbp)
mov    $0x246b,%edi
mov    $0x9c8,%esi
mov    $0x1e34,%edx
mov    $0xcb,%ecx
mov    $0x7b,%r8d
call   1030 <f@plt>
mov    %eax,-0x8(%rbp)
mov    $0x2c,%edi
mov    $0x7c6,%esi
mov    $0xbbb,%edx
mov    $0x65,%ecx
mov    $0x66,%r8d
call   1030 <f@plt>
mov    %eax,%edi
mov    $0x34b,%esi
mov    $0xc,%edx
mov    $0x4b0,%ecx
mov    $0x184,%r8d
call   1030 <f@plt>
mov    -0x10(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    %eax,%ecx
mov    $0x2d9,%r8d
call   1030 <f@plt>
mov    %eax,%esi
lea    0xdf5(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    $0xf,%edi
mov    $0x19,%esi
mov    $0x23,%edx
mov    $0x2d,%ecx
mov    $0x37,%r8d
call   1030 <f@plt>
mov    %eax,%edi
mov    $0x42,%esi
mov    $0x4d,%edx
mov    $0x58,%ecx
mov    $0x63,%r8d
call   1030 <f@plt>
mov    %eax,%r14d
mov    $0x3e8,%edi
mov    $0x7d0,%esi
mov    $0xbb8,%edx
mov    $0xfa0,%ecx
mov    $0x1388,%r8d
call   1030 <f@plt>
mov    %eax,%ebp
mov    $0x246b,%edi
mov    $0x9c8,%esi
mov    $0x1e34,%edx
mov    $0xcb,%ecx
mov    $0x7b,%r8d
call   1030 <f@plt>
mov    %eax,%ebx
mov    $0x2c,%edi
mov    $0x7c6,%esi
mov    $0xbbb,%edx
mov    $0x65,%ecx
mov    $0x66,%r8d
call   1030 <f@plt>
mov    %eax,%edi
mov    $0x34b,%esi
mov    $0xc,%edx
mov    $0x4b0,%ecx
mov    $0x184,%r8d
call   1030 <f@plt>
mov    %r14d,%edi
mov    %ebp,%esi
mov    %ebx,%edx
mov    %eax,%ecx
mov    $0x2d9,%r8d
call   1030 <f@plt>
lea    0xe06(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @f(i32 15, i32 25, i32 35, i32 45, i32 55)
%3 = call i32 @f(i32 %2, i32 66, i32 77, i32 88, i32 99)
%4 = call i32 @f(i32 1000, i32 2000, i32 3000, i32 4000, i32 5000)
%5 = call i32 @f(i32 9323, i32 2504, i32 7732, i32 203, i32 123)
%6 = call i32 @f(i32 44, i32 1990, i32 3003, i32 101, i32 102)
%7 = call i32 @f(i32 %6, i32 843, i32 12, i32 1200, i32 388)
%8 = call i32 @f(i32 %3, i32 %4, i32 %5, i32 %7, i32 729)
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %8)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @f(i32 15, i32 25, i32 35, i32 45, i32 55)
%2 = tail call i32 @f(i32 %1, i32 66, i32 77, i32 88, i32 99)
%3 = tail call i32 @f(i32 1000, i32 2000, i32 3000, i32 4000, i32 5000)
%4 = tail call i32 @f(i32 9323, i32 2504, i32 7732, i32 203, i32 123)
%5 = tail call i32 @f(i32 44, i32 1990, i32 3003, i32 101, i32 102)
%6 = tail call i32 @f(i32 %5, i32 843, i32 12, i32 1200, i32 388)
%7 = tail call i32 @f(i32 %2, i32 %3, i32 %4, i32 %6, i32 729)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %7)
ret i32 0
}