#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*/ async();
int /*<<< orphan*/ huge();
int /*<<< orphan*/ interleaved(int, int, int);
int /*<<< orphan*/ sequential(int, int, int);
int /*<<< orphan*/ simple();
int main() {
  simple();
  async();
  sequential(1024 * 1024 * 16, 1024, 16);
  sequential(1024 * 1024 * 16, 1024, 512);
  sequential(1024 * 1024 * 16, 1024, 1024);
  interleaved(1024 * 1024 * 16, 1024, 16);
  interleaved(1024 * 1024 * 16, 1024, 512);
  interleaved(1024 * 1024 * 16, 1024, 1024);
  huge();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <simple@plt>
mov    $0x0,%al
call   1060 <async@plt>
mov    $0x1000000,%edi
mov    $0x400,%esi
mov    $0x10,%edx
call   1040 <sequential@plt>
mov    $0x1000000,%edi
mov    $0x400,%esi
mov    $0x200,%edx
call   1040 <sequential@plt>
mov    $0x1000000,%edi
mov    $0x400,%edx
mov    %edx,%esi
call   1040 <sequential@plt>
mov    $0x1000000,%edi
mov    $0x400,%esi
mov    $0x10,%edx
call   1050 <interleaved@plt>
mov    $0x1000000,%edi
mov    $0x400,%esi
mov    $0x200,%edx
call   1050 <interleaved@plt>
mov    $0x1000000,%edi
mov    $0x400,%edx
mov    %edx,%esi
call   1050 <interleaved@plt>
mov    $0x0,%al
call   1070 <huge@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <simple@plt>
xor    %eax,%eax
call   1060 <async@plt>
mov    $0x1000000,%edi
mov    $0x400,%esi
mov    $0x10,%edx
call   1040 <sequential@plt>
mov    $0x1000000,%edi
mov    $0x400,%esi
mov    $0x200,%edx
call   1040 <sequential@plt>
mov    $0x1000000,%edi
mov    $0x400,%esi
mov    $0x400,%edx
call   1040 <sequential@plt>
mov    $0x1000000,%edi
mov    $0x400,%esi
mov    $0x10,%edx
call   1050 <interleaved@plt>
mov    $0x1000000,%edi
mov    $0x400,%esi
mov    $0x200,%edx
call   1050 <interleaved@plt>
mov    $0x1000000,%edi
mov    $0x400,%esi
mov    $0x400,%edx
call   1050 <interleaved@plt>
xor    %eax,%eax
call   1070 <huge@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @simple()
%3 = call i32 (...) @async()
%4 = call i32 @sequential(i32 16777216, i32 1024, i32 16)
%5 = call i32 @sequential(i32 16777216, i32 1024, i32 512)
%6 = call i32 @sequential(i32 16777216, i32 1024, i32 1024)
%7 = call i32 @interleaved(i32 16777216, i32 1024, i32 16)
%8 = call i32 @interleaved(i32 16777216, i32 1024, i32 512)
%9 = call i32 @interleaved(i32 16777216, i32 1024, i32 1024)
%10 = call i32 (...) @huge()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @simple()
%2 = tail call i32 (...) @async()
%3 = tail call i32 @sequential(i32 16777216, i32 1024, i32 16)
%4 = tail call i32 @sequential(i32 16777216, i32 1024, i32 512)
%5 = tail call i32 @sequential(i32 16777216, i32 1024, i32 1024)
%6 = tail call i32 @interleaved(i32 16777216, i32 1024, i32 16)
%7 = tail call i32 @interleaved(i32 16777216, i32 1024, i32 512)
%8 = tail call i32 @interleaved(i32 16777216, i32 1024, i32 1024)
%9 = tail call i32 (...) @huge()
ret i32 0
}