#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 /*<<< orphan*/ function_declaration_both_after();
int /*<<< orphan*/ function_declaration_both_before();
int /*<<< orphan*/ function_declaration_inline_before();
int /*<<< orphan*/ function_declaration_inline_noinline_after();
int /*<<< orphan*/ function_declaration_inline_noinline_before();
int /*<<< orphan*/ function_declaration_noinline_after();
int /*<<< orphan*/ function_declaration_noinline_before();
int /*<<< orphan*/ function_declaration_noinline_inline_before();
int /*<<< orphan*/ function_definition();
void f() {
  function_definition();
  function_declaration_both_before();
  function_declaration_both_after();
  function_declaration_noinline_before();
  function_declaration_noinline_after();
  function_declaration_inline_before();
  function_declaration_inline_noinline_before();
  function_declaration_inline_noinline_after();
  function_declaration_noinline_inline_before();
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <function_definition@plt>
mov    $0x0,%al
call   10a0 <function_declaration_both_before@plt>
mov    $0x0,%al
call   1050 <function_declaration_both_after@plt>
mov    $0x0,%al
call   1060 <function_declaration_noinline_before@plt>
mov    $0x0,%al
call   10b0 <function_declaration_noinline_after@plt>
mov    $0x0,%al
call   1070 <function_declaration_inline_before@plt>
mov    $0x0,%al
call   1080 <function_declaration_inline_noinline_before@plt>
mov    $0x0,%al
call   1040 <function_declaration_inline_noinline_after@plt>
mov    $0x0,%al
call   1090 <function_declaration_noinline_inline_before@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
push   %rax
xor    %eax,%eax
call   1030 <function_definition@plt>
xor    %eax,%eax
call   10a0 <function_declaration_both_before@plt>
xor    %eax,%eax
call   1050 <function_declaration_both_after@plt>
xor    %eax,%eax
call   1060 <function_declaration_noinline_before@plt>
xor    %eax,%eax
call   10b0 <function_declaration_noinline_after@plt>
xor    %eax,%eax
call   1070 <function_declaration_inline_before@plt>
xor    %eax,%eax
call   1080 <function_declaration_inline_noinline_before@plt>
xor    %eax,%eax
call   1040 <function_declaration_inline_noinline_after@plt>
xor    %eax,%eax
pop    %rcx
jmp    1090 <function_declaration_noinline_inline_before@plt>

LLVM IR (-O0):
define void @f() {
%1 = call i32 (...) @function_definition()
%2 = call i32 (...) @function_declaration_both_before()
%3 = call i32 (...) @function_declaration_both_after()
%4 = call i32 (...) @function_declaration_noinline_before()
%5 = call i32 (...) @function_declaration_noinline_after()
%6 = call i32 (...) @function_declaration_inline_before()
%7 = call i32 (...) @function_declaration_inline_noinline_before()
%8 = call i32 (...) @function_declaration_inline_noinline_after()
%9 = call i32 (...) @function_declaration_noinline_inline_before()
ret void
}

LLVM IR (-O2):
define void @f() {
%1 = tail call i32 (...) @function_definition()
%2 = tail call i32 (...) @function_declaration_both_before()
%3 = tail call i32 (...) @function_declaration_both_after()
%4 = tail call i32 (...) @function_declaration_noinline_before()
%5 = tail call i32 (...) @function_declaration_noinline_after()
%6 = tail call i32 (...) @function_declaration_inline_before()
%7 = tail call i32 (...) @function_declaration_inline_noinline_before()
%8 = tail call i32 (...) @function_declaration_inline_noinline_after()
%9 = tail call i32 (...) @function_declaration_noinline_inline_before()
ret void
}