#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 main_w2(int);
int main_w4(int);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  printf(
      "Hello, "
      "ABCDEFGHPPP!\n\n================================================\n\n");
  int result;
  result = main_w2(10);
  printf("main_w2 return code is "
         "%d\n\n================================================\n\n\n",
         result);
  result = main_w2(16);
  printf("main_w2 return code is "
         "%d\n\n================================================\n\n\n",
         result);
  result = main_w2(22);
  printf("main_w2 return code is "
         "%d\n\n================================================\n\n\n",
         result);
  result = main_w2(28);
  printf("main_w2 return code is "
         "%d\n\n================================================\n\n\n",
         result);
  result = main_w2(34);
  printf("main_w2 return code is "
         "%d\n\n================================================\n\n\n",
         result);
  result = main_w4(17);
  printf("main_w4(17) return code is "
         "%d\n\n================================================\n\n\n",
         result);
  result = main_w4(21);
  printf("main_w4(21) return code is "
         "%d\n\n================================================\n\n\n",
         result);
  result = main_w4(25);
  printf("main_w4(25) return code is "
         "%d\n\n================================================\n\n\n",
         result);
  result = main_w4(29);
  printf("main_w4(29) return code is "
         "%d\n\n================================================\n\n\n",
         result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xa,%edi
call   1040 <main_w2@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xee4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x10,%edi
call   1040 <main_w2@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x16,%edi
call   1040 <main_w2@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xea8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1c,%edi
call   1040 <main_w2@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x22,%edi
call   1040 <main_w2@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x11,%edi
call   1050 <main_w4@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x15,%edi
call   1050 <main_w4@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x19,%edi
call   1050 <main_w4@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xf07(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1d,%edi
call   1050 <main_w4@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xf3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0x1053(%rip),%rdi
call   1030 <puts@plt>
mov    $0xa,%edi
call   1050 <main_w2@plt>
lea    0xea2(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x10,%edi
call   1050 <main_w2@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x16,%edi
call   1050 <main_w2@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1c,%edi
call   1050 <main_w2@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x22,%edi
call   1050 <main_w2@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x11,%edi
call   1060 <main_w4@plt>
lea    0xe7c(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x15,%edi
call   1060 <main_w4@plt>
lea    0xeb5(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x19,%edi
call   1060 <main_w4@plt>
lea    0xeee(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1d,%edi
call   1060 <main_w4@plt>
lea    0xf27(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [72 x i8] c"Hello, ABCDEFGHPPP!\0A\0A================================================\0A\0A\00"
@.str.1 = [79 x i8] c"main_w2 return code is %d\0A\0A================================================\0A\0A\0A\00"
@.str.2 = [83 x i8] c"main_w4(17) return code is %d\0A\0A================================================\0A\0A\0A\00"
@.str.3 = [83 x i8] c"main_w4(21) return code is %d\0A\0A================================================\0A\0A\0A\00"
@.str.4 = [83 x i8] c"main_w4(25) return code is %d\0A\0A================================================\0A\0A\0A\00"
@.str.5 = [83 x i8] c"main_w4(29) return code is %d\0A\0A================================================\0A\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @main_w2(i32 10)
store i32 %4, i32* %2
%5 = load i32, i32* %2
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = call i32 @main_w2(i32 16)
store i32 %7, i32* %2
%8 = load i32, i32* %2
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%10 = call i32 @main_w2(i32 22)
store i32 %10, i32* %2
%11 = load i32, i32* %2
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%13 = call i32 @main_w2(i32 28)
store i32 %13, i32* %2
%14 = load i32, i32* %2
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%16 = call i32 @main_w2(i32 34)
store i32 %16, i32* %2
%17 = load i32, i32* %2
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0), i32 %17)
%19 = call i32 @main_w4(i32 17)
store i32 %19, i32* %2
%20 = load i32, i32* %2
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.2, i64 0, i64 0), i32 %20)
%22 = call i32 @main_w4(i32 21)
store i32 %22, i32* %2
%23 = load i32, i32* %2
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.3, i64 0, i64 0), i32 %23)
%25 = call i32 @main_w4(i32 25)
store i32 %25, i32* %2
%26 = load i32, i32* %2
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.4, i64 0, i64 0), i32 %26)
%28 = call i32 @main_w4(i32 29)
store i32 %28, i32* %2
%29 = load i32, i32* %2
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.5, i64 0, i64 0), i32 %29)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [79 x i8] c"main_w2 return code is %d\0A\0A================================================\0A\0A\0A\00"
@.str.2 = [83 x i8] c"main_w4(17) return code is %d\0A\0A================================================\0A\0A\0A\00"
@.str.3 = [83 x i8] c"main_w4(21) return code is %d\0A\0A================================================\0A\0A\0A\00"
@.str.4 = [83 x i8] c"main_w4(25) return code is %d\0A\0A================================================\0A\0A\0A\00"
@.str.5 = [83 x i8] c"main_w4(29) return code is %d\0A\0A================================================\0A\0A\0A\00"
@str = [71 x i8] c"Hello, ABCDEFGHPPP!\0A\0A================================================\0A\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @main_w2(i32 10)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0), i32 %2)
%4 = tail call i32 @main_w2(i32 16)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = tail call i32 @main_w2(i32 22)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%8 = tail call i32 @main_w2(i32 28)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%10 = tail call i32 @main_w2(i32 34)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%12 = tail call i32 @main_w4(i32 17)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.2, i64 0, i64 0), i32 %12)
%14 = tail call i32 @main_w4(i32 21)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.3, i64 0, i64 0), i32 %14)
%16 = tail call i32 @main_w4(i32 25)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.4, i64 0, i64 0), i32 %16)
%18 = tail call i32 @main_w4(i32 29)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @.str.5, i64 0, i64 0), i32 %18)
ret i32 0
}