#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 produce_a_very_large_symbol(int x) {
  return f(f(f(f(f(f(f(f(f(f(f(f(
      f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(f(x))))))))))))))))))))))))))))))));
}


x86 assembly (clang, -O0):
<produce_a_very_large_symbol>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<produce_a_very_large_symbol>:
push   %rax
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
call   1030 <f@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <f@plt>

LLVM IR (-O0):
define i32 @produce_a_very_large_symbol(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @f(i32 %3)
%5 = call i32 @f(i32 %4)
%6 = call i32 @f(i32 %5)
%7 = call i32 @f(i32 %6)
%8 = call i32 @f(i32 %7)
%9 = call i32 @f(i32 %8)
%10 = call i32 @f(i32 %9)
%11 = call i32 @f(i32 %10)
%12 = call i32 @f(i32 %11)
%13 = call i32 @f(i32 %12)
%14 = call i32 @f(i32 %13)
%15 = call i32 @f(i32 %14)
%16 = call i32 @f(i32 %15)
%17 = call i32 @f(i32 %16)
%18 = call i32 @f(i32 %17)
%19 = call i32 @f(i32 %18)
%20 = call i32 @f(i32 %19)
%21 = call i32 @f(i32 %20)
%22 = call i32 @f(i32 %21)
%23 = call i32 @f(i32 %22)
%24 = call i32 @f(i32 %23)
%25 = call i32 @f(i32 %24)
%26 = call i32 @f(i32 %25)
%27 = call i32 @f(i32 %26)
%28 = call i32 @f(i32 %27)
%29 = call i32 @f(i32 %28)
%30 = call i32 @f(i32 %29)
%31 = call i32 @f(i32 %30)
%32 = call i32 @f(i32 %31)
%33 = call i32 @f(i32 %32)
%34 = call i32 @f(i32 %33)
%35 = call i32 @f(i32 %34)
ret i32 %35
}

LLVM IR (-O2):
define i32 @produce_a_very_large_symbol(i32 %0) {
%2 = tail call i32 @f(i32 %0)
%3 = tail call i32 @f(i32 %2)
%4 = tail call i32 @f(i32 %3)
%5 = tail call i32 @f(i32 %4)
%6 = tail call i32 @f(i32 %5)
%7 = tail call i32 @f(i32 %6)
%8 = tail call i32 @f(i32 %7)
%9 = tail call i32 @f(i32 %8)
%10 = tail call i32 @f(i32 %9)
%11 = tail call i32 @f(i32 %10)
%12 = tail call i32 @f(i32 %11)
%13 = tail call i32 @f(i32 %12)
%14 = tail call i32 @f(i32 %13)
%15 = tail call i32 @f(i32 %14)
%16 = tail call i32 @f(i32 %15)
%17 = tail call i32 @f(i32 %16)
%18 = tail call i32 @f(i32 %17)
%19 = tail call i32 @f(i32 %18)
%20 = tail call i32 @f(i32 %19)
%21 = tail call i32 @f(i32 %20)
%22 = tail call i32 @f(i32 %21)
%23 = tail call i32 @f(i32 %22)
%24 = tail call i32 @f(i32 %23)
%25 = tail call i32 @f(i32 %24)
%26 = tail call i32 @f(i32 %25)
%27 = tail call i32 @f(i32 %26)
%28 = tail call i32 @f(i32 %27)
%29 = tail call i32 @f(i32 %28)
%30 = tail call i32 @f(i32 %29)
%31 = tail call i32 @f(i32 %30)
%32 = tail call i32 @f(i32 %31)
%33 = tail call i32 @f(i32 %32)
ret i32 %33
}