#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 func1(int volatile);
int func2(int volatile);
int func3a(int volatile);
int func4a(int volatile);
int func5a(int volatile);
int func6a(int volatile);
int func7a(int volatile);
int func7b(int volatile);
int func8a(int volatile);
int func8b(int volatile);
int /*<<< orphan*/ func_extern_caller(int);
int not_inline_func3(int);
int main(int argc, char *argv[]) {
  volatile int x = argc;
  x = func1(x);
  x = func2(x);
  x = func3a(x);
  x = func4a(x);
  x = func5a(x);
  x = func6a(x);
  x = func7a(x) + func7b(x);
  x = func8a(x) + func8b(x);
  x = not_inline_func3(-21);
  func_extern_caller(1);
  return x;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1040 <func1@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   10b0 <func2@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <func3a@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1090 <func4a@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   10d0 <func5a@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1060 <func6a@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   10a0 <func7a@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <func7b@plt>
mov    %eax,%ecx
mov    -0x1c(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   10e0 <func8a@plt>
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%edi
call   1080 <func8b@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    $0xffffffeb,%edi
call   1070 <not_inline_func3@plt>
mov    %eax,-0x14(%rbp)
mov    $0x1,%edi
call   10c0 <func_extern_caller@plt>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,0xc(%rsp)
mov    0xc(%rsp),%edi
call   1040 <func1@plt>
mov    %eax,0xc(%rsp)
mov    0xc(%rsp),%edi
call   10b0 <func2@plt>
mov    %eax,0xc(%rsp)
mov    0xc(%rsp),%edi
call   1050 <func3a@plt>
mov    %eax,0xc(%rsp)
mov    0xc(%rsp),%edi
call   1090 <func4a@plt>
mov    %eax,0xc(%rsp)
mov    0xc(%rsp),%edi
call   10d0 <func5a@plt>
mov    %eax,0xc(%rsp)
mov    0xc(%rsp),%edi
call   1060 <func6a@plt>
mov    %eax,0xc(%rsp)
mov    0xc(%rsp),%edi
call   10a0 <func7a@plt>
mov    %eax,%ebx
mov    0xc(%rsp),%edi
call   1030 <func7b@plt>
add    %ebx,%eax
mov    %eax,0xc(%rsp)
mov    0xc(%rsp),%edi
call   10e0 <func8a@plt>
mov    %eax,%ebx
mov    0xc(%rsp),%edi
call   1080 <func8b@plt>
add    %ebx,%eax
mov    %eax,0xc(%rsp)
mov    $0xffffffeb,%edi
call   1070 <not_inline_func3@plt>
mov    %eax,0xc(%rsp)
mov    $0x1,%edi
call   10c0 <func_extern_caller@plt>
mov    0xc(%rsp),%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
store volatile i32 %7, i32* %6
%8 = load volatile i32, i32* %6
%9 = call i32 @func1(i32 %8)
store volatile i32 %9, i32* %6
%10 = load volatile i32, i32* %6
%11 = call i32 @func2(i32 %10)
store volatile i32 %11, i32* %6
%12 = load volatile i32, i32* %6
%13 = call i32 @func3a(i32 %12)
store volatile i32 %13, i32* %6
%14 = load volatile i32, i32* %6
%15 = call i32 @func4a(i32 %14)
store volatile i32 %15, i32* %6
%16 = load volatile i32, i32* %6
%17 = call i32 @func5a(i32 %16)
store volatile i32 %17, i32* %6
%18 = load volatile i32, i32* %6
%19 = call i32 @func6a(i32 %18)
store volatile i32 %19, i32* %6
%20 = load volatile i32, i32* %6
%21 = call i32 @func7a(i32 %20)
%22 = load volatile i32, i32* %6
%23 = call i32 @func7b(i32 %22)
%24 = add nsw i32 %21, %23
store volatile i32 %24, i32* %6
%25 = load volatile i32, i32* %6
%26 = call i32 @func8a(i32 %25)
%27 = load volatile i32, i32* %6
%28 = call i32 @func8b(i32 %27)
%29 = add nsw i32 %26, %28
store volatile i32 %29, i32* %6
%30 = call i32 @not_inline_func3(i32 -21)
store volatile i32 %30, i32* %6
%31 = call i32 @func_extern_caller(i32 1)
%32 = load volatile i32, i32* %6
ret i32 %32
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
store volatile i32 %0, i32* %3
%5 = load volatile i32, i32* %3
%6 = tail call i32 @func1(i32 %5)
store volatile i32 %6, i32* %3
%7 = load volatile i32, i32* %3
%8 = tail call i32 @func2(i32 %7)
store volatile i32 %8, i32* %3
%9 = load volatile i32, i32* %3
%10 = tail call i32 @func3a(i32 %9)
store volatile i32 %10, i32* %3
%11 = load volatile i32, i32* %3
%12 = tail call i32 @func4a(i32 %11)
store volatile i32 %12, i32* %3
%13 = load volatile i32, i32* %3
%14 = tail call i32 @func5a(i32 %13)
store volatile i32 %14, i32* %3
%15 = load volatile i32, i32* %3
%16 = tail call i32 @func6a(i32 %15)
store volatile i32 %16, i32* %3
%17 = load volatile i32, i32* %3
%18 = tail call i32 @func7a(i32 %17)
%19 = load volatile i32, i32* %3
%20 = tail call i32 @func7b(i32 %19)
%21 = add nsw i32 %20, %18
store volatile i32 %21, i32* %3
%22 = load volatile i32, i32* %3
%23 = tail call i32 @func8a(i32 %22)
%24 = load volatile i32, i32* %3
%25 = tail call i32 @func8b(i32 %24)
%26 = add nsw i32 %25, %23
store volatile i32 %26, i32* %3
%27 = tail call i32 @not_inline_func3(i32 -21)
store volatile i32 %27, i32* %3
%28 = tail call i32 @func_extern_caller(i32 1)
%29 = load volatile i32, i32* %3
ret i32 %29
}