#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*/ printf(char *);
int /*<<< orphan*/ test_sort(int);
int main(int argc, char *argv[]) {
  test_sort(3000000);
  printf("\n");
  test_sort(4000000);
  printf("\n");
  test_sort(5000000);
  printf("\n");
  test_sort(6000000);
  printf("\n");
  test_sort(7000000);
  printf("\n");
  test_sort(8000000);
  printf("\n");
  test_sort(9000000);
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x2dc6c0,%edi
call   1040 <test_sort@plt>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
mov    $0x3d0900,%edi
call   1040 <test_sort@plt>
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
mov    $0x4c4b40,%edi
call   1040 <test_sort@plt>
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
mov    $0x5b8d80,%edi
call   1040 <test_sort@plt>
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
mov    $0x6acfc0,%edi
call   1040 <test_sort@plt>
lea    0xe61(%rip),%rdi
call   1030 <printf@plt>
mov    $0x7a1200,%edi
call   1040 <test_sort@plt>
lea    0xe4b(%rip),%rdi
call   1030 <printf@plt>
mov    $0x895440,%edi
call   1040 <test_sort@plt>
lea    0xe35(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x2dc6c0,%edi
call   1040 <test_sort@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x3d0900,%edi
call   1040 <test_sort@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x4c4b40,%edi
call   1040 <test_sort@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x5b8d80,%edi
call   1040 <test_sort@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x6acfc0,%edi
call   1040 <test_sort@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x7a1200,%edi
call   1040 <test_sort@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x895440,%edi
call   1040 <test_sort@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @test_sort(i32 3000000)
%7 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @test_sort(i32 4000000)
%9 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @test_sort(i32 5000000)
%11 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @test_sort(i32 6000000)
%13 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @test_sort(i32 7000000)
%15 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @test_sort(i32 8000000)
%17 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @test_sort(i32 9000000)
%19 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @test_sort(i32 3000000)
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @test_sort(i32 4000000)
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @test_sort(i32 5000000)
%8 = tail call i32 @putchar(i32 10)
%9 = tail call i32 @test_sort(i32 6000000)
%10 = tail call i32 @putchar(i32 10)
%11 = tail call i32 @test_sort(i32 7000000)
%12 = tail call i32 @putchar(i32 10)
%13 = tail call i32 @test_sort(i32 8000000)
%14 = tail call i32 @putchar(i32 10)
%15 = tail call i32 @test_sort(i32 9000000)
%16 = tail call i32 @putchar(i32 10)
ret i32 0
}