#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(100);
  printf("\n");
  test_sort(1000);
  printf("\n");
  test_sort(10000);
  printf("\n");
  test_sort(15000);
  printf("\n");
  test_sort(20000);
  printf("\n");
  test_sort(25000);
  printf("\n");
  test_sort(30000);
  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    $0x64,%edi
call   1040 <test_sort@plt>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
mov    $0x3e8,%edi
call   1040 <test_sort@plt>
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
mov    $0x2710,%edi
call   1040 <test_sort@plt>
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
mov    $0x3a98,%edi
call   1040 <test_sort@plt>
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
mov    $0x4e20,%edi
call   1040 <test_sort@plt>
lea    0xe61(%rip),%rdi
call   1030 <printf@plt>
mov    $0x61a8,%edi
call   1040 <test_sort@plt>
lea    0xe4b(%rip),%rdi
call   1030 <printf@plt>
mov    $0x7530,%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    $0x64,%edi
call   1040 <test_sort@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x3e8,%edi
call   1040 <test_sort@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x2710,%edi
call   1040 <test_sort@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x3a98,%edi
call   1040 <test_sort@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x4e20,%edi
call   1040 <test_sort@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x61a8,%edi
call   1040 <test_sort@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x7530,%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 100)
%7 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @test_sort(i32 1000)
%9 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @test_sort(i32 10000)
%11 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @test_sort(i32 15000)
%13 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @test_sort(i32 20000)
%15 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @test_sort(i32 25000)
%17 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @test_sort(i32 30000)
%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 100)
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @test_sort(i32 1000)
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @test_sort(i32 10000)
%8 = tail call i32 @putchar(i32 10)
%9 = tail call i32 @test_sort(i32 15000)
%10 = tail call i32 @putchar(i32 10)
%11 = tail call i32 @test_sort(i32 20000)
%12 = tail call i32 @putchar(i32 10)
%13 = tail call i32 @test_sort(i32 25000)
%14 = tail call i32 @putchar(i32 10)
%15 = tail call i32 @test_sort(i32 30000)
%16 = tail call i32 @putchar(i32 10)
ret i32 0
}