#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*/ countingSort(int *, int *, int, int);
int findMaxForCountingSort(int *, int);
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int main(void) {
  int array[20] = {13, 19, 9,  5,  12, 8,  7,  10, 21, 2,
                   0,  11, 26, 59, 18, 62, 54, 32, 59, 12},
      B[20], max = 0;
  unsigned int i = 0;
  if (!(max = findMaxForCountingSort(array, 20))) {
    printf("Counting sort is incompatible with this array");
    return -1;
  }
  puts("Before sorting");
  for (i = 0; i < 20; i++) {
    printf("%d ", array[i]);
    B[i] = 0;
  }
  countingSort(array, B, 20, max);
  puts("\n\n\nAfter sorting");
  for (i = 0; i < 20; i++) {
    printf("%d ", B[i]);
  }
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x60(%rbp),%rdi
lea    0xe83(%rip),%rsi
mov    $0x50,%edx
call   1060 <memcpy@plt>
movl   $0x0,-0xb4(%rbp)
movl   $0x0,-0xb8(%rbp)
lea    -0x60(%rbp),%rdi
mov    $0x14,%esi
call   1080 <findMaxForCountingSort@plt>
mov    %eax,-0xb4(%rbp)
cmp    $0x0,%eax
jne    11d2 <main+0x72>
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    12ad <main+0x14d>
lea    0xea5(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,-0xb8(%rbp)
cmpl   $0x14,-0xb8(%rbp)
jae    1232 <main+0xd2>
mov    -0xb8(%rbp),%eax
mov    -0x60(%rbp,%rax,4),%esi
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xb8(%rbp),%eax
movl   $0x0,-0xb0(%rbp,%rax,4)
mov    -0xb8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb8(%rbp)
jmp    11e8 <main+0x88>
lea    -0x60(%rbp),%rdi
lea    -0xb0(%rbp),%rsi
mov    -0xb4(%rbp),%ecx
mov    $0x14,%edx
call   1070 <countingSort@plt>
lea    0xe3d(%rip),%rdi
call   1030 <puts@plt>
movl   $0x0,-0xb8(%rbp)
cmpl   $0x14,-0xb8(%rbp)
jae    129f <main+0x13f>
mov    -0xb8(%rbp),%eax
mov    -0xb0(%rbp,%rax,4),%esi
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xb8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb8(%rbp)
jmp    1263 <main+0x103>
mov    $0x0,%al
call   1050 <getchar@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0xa0,%rsp
movaps 0xede(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xebf(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xea0(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xe84(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xe68(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
lea    0x50(%rsp),%rdi
mov    $0x14,%esi
call   1070 <findMaxForCountingSort@plt>
test   %eax,%eax
je     14db <main+0x38b>
mov    %eax,%ebp
lea    0xec1(%rip),%rdi
call   1030 <puts@plt>
mov    0x50(%rsp),%esi
lea    0xec0(%rip),%rbx
xor    %r14d,%r14d
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,(%rsp)
mov    0x54(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x4(%rsp)
mov    0x58(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x8(%rsp)
mov    0x5c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0xc(%rsp)
mov    0x60(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x10(%rsp)
mov    0x64(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x14(%rsp)
mov    0x68(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x18(%rsp)
mov    0x6c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x1c(%rsp)
mov    0x70(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x20(%rsp)
mov    0x74(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x24(%rsp)
mov    0x78(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x28(%rsp)
mov    0x7c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x2c(%rsp)
mov    0x80(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x30(%rsp)
mov    0x84(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x34(%rsp)
mov    0x88(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x38(%rsp)
mov    0x8c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x3c(%rsp)
mov    0x90(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x40(%rsp)
mov    0x94(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x44(%rsp)
mov    0x98(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x48(%rsp)
mov    0x9c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x4c(%rsp)
lea    0x50(%rsp),%rdi
mov    %rsp,%rsi
mov    $0x14,%edx
mov    %ebp,%ecx
call   1060 <countingSort@plt>
lea    0xcdb(%rip),%rdi
call   1030 <puts@plt>
mov    (%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x28(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x30(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x34(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x38(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x3c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x40(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x44(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x48(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
jmp    14ef <main+0x39f>
lea    0xb6e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xffffffff,%r14d
mov    %r14d,%eax
add    $0xa0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.array = [20 x i32] [i32 13, i32 19, i32 9, i32 5, i32 12, i32 8, i32 7, i32 10, i32 21, i32 2, i32 0, i32 11, i32 26, i32 59, i32 18, i32 62, i32 54, i32 32, i32 59, i32 12]
@.str = [46 x i8] c"Counting sort is incompatible with this array\00"
@.str.1 = [15 x i8] c"Before sorting\00"
@.str.2 = [4 x i8] c"%d \00"
@.str.3 = [17 x i8] c"\0A\0A\0AAfter sorting\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [20 x i32]
%3 = alloca [20 x i32]
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = bitcast [20 x i32]* %2 to i8*
store i32 0, i32* %4
store i32 0, i32* %5
%7 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 0
%8 = call i32 @findMaxForCountingSort(i32* %7, i32 20)
store i32 %8, i32* %4
%9 = icmp ne i32 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %0
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
store i32 -1, i32* %1
br label %49
12: ; preds = %0
%13 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %5
br label %14
14: ; preds = %26, %12
%15 = load i32, i32* %5
%16 = icmp ult i32 %15, 20
br i1 %16, label %17, label %29
17: ; preds = %14
%18 = load i32, i32* %5
%19 = zext i32 %18 to i64
%20 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 %19
%21 = load i32, i32* %20
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %21)
%23 = load i32, i32* %5
%24 = zext i32 %23 to i64
%25 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 %24
store i32 0, i32* %25
br label %26
26: ; preds = %17
%27 = load i32, i32* %5
%28 = add i32 %27, 1
store i32 %28, i32* %5
br label %14
29: ; preds = %14
%30 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 0
%31 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 0
%32 = load i32, i32* %4
%33 = call i32 @countingSort(i32* %30, i32* %31, i32 20, i32 %32)
%34 = call i32 @puts(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %5
br label %35
35: ; preds = %44, %29
%36 = load i32, i32* %5
%37 = icmp ult i32 %36, 20
br i1 %37, label %38, label %47
38: ; preds = %35
%39 = load i32, i32* %5
%40 = zext i32 %39 to i64
%41 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 %40
%42 = load i32, i32* %41
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %42)
br label %44
44: ; preds = %38
%45 = load i32, i32* %5
%46 = add i32 %45, 1
store i32 %46, i32* %5
br label %35
47: ; preds = %35
%48 = call i32 (...) @getchar()
store i32 0, i32* %1
br label %49
49: ; preds = %47, %10
%50 = load i32, i32* %1
ret i32 %50
}

LLVM IR (-O2):
@__const.main.array = [20 x i32] [i32 13, i32 19, i32 9, i32 5, i32 12, i32 8, i32 7, i32 10, i32 21, i32 2, i32 0, i32 11, i32 26, i32 59, i32 18, i32 62, i32 54, i32 32, i32 59, i32 12]
@.str = [46 x i8] c"Counting sort is incompatible with this array\00"
@.str.1 = [15 x i8] c"Before sorting\00"
@.str.2 = [4 x i8] c"%d \00"
@.str.3 = [17 x i8] c"\0A\0A\0AAfter sorting\00"
define i32 @main() {
%1 = alloca [20 x i32]
%2 = alloca [20 x i32]
%3 = bitcast [20 x i32]* %1 to i8*
%4 = bitcast [20 x i32]* %2 to i8*
%5 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 0
%6 = call i32 @findMaxForCountingSort(i32* %5, i32 20)
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
br label %134
10: ; preds = %0
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%12 = load i32, i32* %5
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %12)
%14 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 0
store i32 0, i32* %14
%15 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 1
%16 = load i32, i32* %15
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %16)
%18 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 1
store i32 0, i32* %18
%19 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 2
%20 = load i32, i32* %19
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %20)
%22 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 2
store i32 0, i32* %22
%23 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 3
%24 = load i32, i32* %23
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %24)
%26 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 3
store i32 0, i32* %26
%27 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 4
%28 = load i32, i32* %27
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %28)
%30 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 4
store i32 0, i32* %30
%31 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 5
%32 = load i32, i32* %31
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %32)
%34 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 5
store i32 0, i32* %34
%35 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 6
%36 = load i32, i32* %35
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %36)
%38 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 6
store i32 0, i32* %38
%39 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 7
%40 = load i32, i32* %39
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %40)
%42 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 7
store i32 0, i32* %42
%43 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 8
%44 = load i32, i32* %43
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %44)
%46 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 8
store i32 0, i32* %46
%47 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 9
%48 = load i32, i32* %47
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %48)
%50 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 9
store i32 0, i32* %50
%51 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 10
%52 = load i32, i32* %51
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %52)
%54 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 10
store i32 0, i32* %54
%55 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 11
%56 = load i32, i32* %55
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %56)
%58 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 11
store i32 0, i32* %58
%59 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 12
%60 = load i32, i32* %59
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %60)
%62 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 12
store i32 0, i32* %62
%63 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 13
%64 = load i32, i32* %63
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %64)
%66 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 13
store i32 0, i32* %66
%67 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 14
%68 = load i32, i32* %67
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %68)
%70 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 14
store i32 0, i32* %70
%71 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 15
%72 = load i32, i32* %71
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %72)
%74 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 15
store i32 0, i32* %74
%75 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 16
%76 = load i32, i32* %75
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %76)
%78 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 16
store i32 0, i32* %78
%79 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 17
%80 = load i32, i32* %79
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %80)
%82 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 17
store i32 0, i32* %82
%83 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 18
%84 = load i32, i32* %83
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %84)
%86 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 18
store i32 0, i32* %86
%87 = getelementptr inbounds [20 x i32], [20 x i32]* %1, i64 0, i64 19
%88 = load i32, i32* %87
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %88)
%90 = getelementptr inbounds [20 x i32], [20 x i32]* %2, i64 0, i64 19
store i32 0, i32* %90
%91 = call i32 @countingSort(i32* %5, i32* %14, i32 20, i32 %6)
%92 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%93 = load i32, i32* %14
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %93)
%95 = load i32, i32* %18
%96 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %95)
%97 = load i32, i32* %22
%98 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %97)
%99 = load i32, i32* %26
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %99)
%101 = load i32, i32* %30
%102 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %101)
%103 = load i32, i32* %34
%104 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %103)
%105 = load i32, i32* %38
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %105)
%107 = load i32, i32* %42
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %107)
%109 = load i32, i32* %46
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %109)
%111 = load i32, i32* %50
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %111)
%113 = load i32, i32* %54
%114 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %113)
%115 = load i32, i32* %58
%116 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %115)
%117 = load i32, i32* %62
%118 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %117)
%119 = load i32, i32* %66
%120 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %119)
%121 = load i32, i32* %70
%122 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %121)
%123 = load i32, i32* %74
%124 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %123)
%125 = load i32, i32* %78
%126 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %125)
%127 = load i32, i32* %82
%128 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %127)
%129 = load i32, i32* %86
%130 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %129)
%131 = load i32, i32* %90
%132 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %131)
%133 = call i32 (...) @getchar()
br label %134
134: ; preds = %10, %8
%135 = phi i32 [ 0, %10 ], [ -1, %8 ]
ret i32 %135
}