#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*/ create_random_array(int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ process(int /*<<< orphan*/, int);
void main() {
  printf(
      "\"Алгоритм сортировки\",\"Сортировка исходного массива\",\"Количество "
      "элементов\",\"Присваиваний\",\"Сравнений\",\"Время выполнения "
      "(мс)\"\r\n");
  process(create_random_array(10000), 10000);
  process(create_random_array(1000), 1000);
  process(create_random_array(100), 100);
  process(create_random_array(10), 10);
  return;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1040 <printf@plt>
mov    $0x2710,%edi
call   1030 <create_random_array@plt>
mov    %eax,%edi
mov    $0x2710,%esi
call   1050 <process@plt>
mov    $0x3e8,%edi
call   1030 <create_random_array@plt>
mov    %eax,%edi
mov    $0x3e8,%esi
call   1050 <process@plt>
mov    $0x64,%edi
call   1030 <create_random_array@plt>
mov    %eax,%edi
mov    $0x64,%esi
call   1050 <process@plt>
mov    $0xa,%edi
call   1030 <create_random_array@plt>
mov    %eax,%edi
mov    $0xa,%esi
call   1050 <process@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x2710,%edi
call   1040 <create_random_array@plt>
mov    %eax,%edi
mov    $0x2710,%esi
call   1050 <process@plt>
mov    $0x3e8,%edi
call   1040 <create_random_array@plt>
mov    %eax,%edi
mov    $0x3e8,%esi
call   1050 <process@plt>
mov    $0x64,%edi
call   1040 <create_random_array@plt>
mov    %eax,%edi
mov    $0x64,%esi
call   1050 <process@plt>
mov    $0xa,%edi
call   1040 <create_random_array@plt>
mov    %eax,%edi
mov    $0xa,%esi
pop    %rax
jmp    1050 <process@plt>

LLVM IR (-O0):
@.str = [230 x i8] c"\22\D0\90\D0\BB\D0\B3\D0\BE\D1\80\D0\B8\D1\82\D0\BC \D1\81\D0\BE\D1\80\D1\82\D0\B8\D1\80\D0\BE\D0\B2\D0\BA\D0\B8\22,\22\D0\A1\D0\BE\D1\80\D1\82\D0\B8\D1\80\D0\BE\D0\B2\D0\BA\D0\B0 \D0\B8\D1\81\D1\85\D0\BE\D0\B4\D0\BD\D0\BE\D0\B3\D0\BE \D0\BC\D0\B0\D1\81\D1\81\D0\B8\D0\B2\D0\B0\22,\22\D0\9A\D0\BE\D0\BB\D0\B8\D1\87\D0\B5\D1\81\D1\82\D0\B2\D0\BE \D1\8D\D0\BB\D0\B5\D0\BC\D0\B5\D0\BD\D1\82\D0\BE\D0\B2\22,\22\D0\9F\D1\80\D0\B8\D1\81\D0\B2\D0\B0\D0\B8\D0\B2\D0\B0\D0\BD\D0\B8\D0\B9\22,\22\D0\A1\D1\80\D0\B0\D0\B2\D0\BD\D0\B5\D0\BD\D0\B8\D0\B9\22,\22\D0\92\D1\80\D0\B5\D0\BC\D1\8F \D0\B2\D1\8B\D0\BF\D0\BE\D0\BB\D0\BD\D0\B5\D0\BD\D0\B8\D1\8F (\D0\BC\D1\81)\22\0D\0A\00"
define void @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([230 x i8], [230 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @create_random_array(i32 10000)
%3 = call i32 @process(i32 %2, i32 10000)
%4 = call i32 @create_random_array(i32 1000)
%5 = call i32 @process(i32 %4, i32 1000)
%6 = call i32 @create_random_array(i32 100)
%7 = call i32 @process(i32 %6, i32 100)
%8 = call i32 @create_random_array(i32 10)
%9 = call i32 @process(i32 %8, i32 10)
ret void
}

LLVM IR (-O2):
@str = [229 x i8] c"\22\D0\90\D0\BB\D0\B3\D0\BE\D1\80\D0\B8\D1\82\D0\BC \D1\81\D0\BE\D1\80\D1\82\D0\B8\D1\80\D0\BE\D0\B2\D0\BA\D0\B8\22,\22\D0\A1\D0\BE\D1\80\D1\82\D0\B8\D1\80\D0\BE\D0\B2\D0\BA\D0\B0 \D0\B8\D1\81\D1\85\D0\BE\D0\B4\D0\BD\D0\BE\D0\B3\D0\BE \D0\BC\D0\B0\D1\81\D1\81\D0\B8\D0\B2\D0\B0\22,\22\D0\9A\D0\BE\D0\BB\D0\B8\D1\87\D0\B5\D1\81\D1\82\D0\B2\D0\BE \D1\8D\D0\BB\D0\B5\D0\BC\D0\B5\D0\BD\D1\82\D0\BE\D0\B2\22,\22\D0\9F\D1\80\D0\B8\D1\81\D0\B2\D0\B0\D0\B8\D0\B2\D0\B0\D0\BD\D0\B8\D0\B9\22,\22\D0\A1\D1\80\D0\B0\D0\B2\D0\BD\D0\B5\D0\BD\D0\B8\D0\B9\22,\22\D0\92\D1\80\D0\B5\D0\BC\D1\8F \D0\B2\D1\8B\D0\BF\D0\BE\D0\BB\D0\BD\D0\B5\D0\BD\D0\B8\D1\8F (\D0\BC\D1\81)\22\0D\00"
define void @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([229 x i8], [229 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @create_random_array(i32 10000)
%3 = tail call i32 @process(i32 %2, i32 10000)
%4 = tail call i32 @create_random_array(i32 1000)
%5 = tail call i32 @process(i32 %4, i32 1000)
%6 = tail call i32 @create_random_array(i32 100)
%7 = tail call i32 @process(i32 %6, i32 100)
%8 = tail call i32 @create_random_array(i32 10)
%9 = tail call i32 @process(i32 %8, i32 10)
ret void
}