#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*/ swap(int *, int, int);
void qsort(int *arr, int l, int u) {
  printf("#############################################\n");
  printf("l is: %d +++ u is: %d\n", l, u);
  if (l >= u)
    return;
  int i = l, j = u, t = arr[l];
  int tmp = 0;
  int k = 0;
  while (i <= j) {
    i++;
    while (i <= j && arr[i] < t)
      i++;
    printf("new more than {%d} i is: %d and arr[%d] is: %d\n", t, i, i, arr[i]);
    while (i <= j && arr[j] > t)
      j--;
    printf("new less than {%d} j is: %d and arr[%d] is: %d\n", t, j, j, arr[j]);
    if (i > j)
      break;
    printf("swap i:%d and j:%d\n", i, j);
    swap(arr, i, j);
  }
  swap(arr, l, j);
  printf("-------------------\n");
  for (k = 0; k < 9; k++)
    printf("%d\n", arr[k]);
  printf("-------------------\n");
  printf("#############################################\n");
  qsort(arr, l, j - 1);
  qsort(arr, j + 1, u);
}


x86 assembly (clang, -O0):
<qsort>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
lea    0xeb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jl     1175 <qsort+0x45>
jmp    134c <qsort+0x21c>
mov    -0xc(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     12b7 <qsort+0x187>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%ecx
xor    %eax,%eax
cmp    -0x18(%rbp),%ecx
mov    %al,-0x25(%rbp)
jg     11d7 <qsort+0xa7>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x1c(%rbp),%eax
setl   %al
mov    %al,-0x25(%rbp)
mov    -0x25(%rbp),%al
test   $0x1,%al
jne    11e7 <qsort+0xb7>
jmp    11f5 <qsort+0xc5>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11b2 <qsort+0x82>
mov    -0x1c(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rdi
mov    (%rax,%rdi,4),%r8d
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%ecx
xor    %eax,%eax
cmp    -0x18(%rbp),%ecx
mov    %al,-0x26(%rbp)
jg     123d <qsort+0x10d>
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x1c(%rbp),%eax
setg   %al
mov    %al,-0x26(%rbp)
mov    -0x26(%rbp),%al
test   $0x1,%al
jne    124d <qsort+0x11d>
jmp    125b <qsort+0x12b>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
jmp    1218 <qsort+0xe8>
mov    -0x1c(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rdi
mov    (%rax,%rdi,4),%r8d
lea    0xdff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jle    128f <qsort+0x15f>
jmp    12b7 <qsort+0x187>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1050 <swap@plt>
jmp    119d <qsort+0x6d>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%edx
call   1050 <swap@plt>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x9,-0x24(%rbp)
jge    130c <qsort+0x1dc>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12db <qsort+0x1ab>
lea    0xda7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcdf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%edx
sub    $0x1,%edx
call   1040 <qsort@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%edx
call   1040 <qsort@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<qsort>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,%r14d
mov    %esi,%ebp
mov    %rdi,%rbx
lea    0xf45(%rip),%rdi
call   1030 <puts@plt>
lea    0xe9a(%rip),%rdi
mov    %ebp,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %r14d,%ebp
jge    13ba <qsort+0x27a>
mov    %r14d,(%rsp)
jmp    12a8 <qsort+0x168>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r15d,%r12d
sar    $0x20,%rax
mov    %rax,%r15
mov    (%rbx,%r15,4),%r8d
lea    0xea2(%rip),%rdi
mov    %r13d,%esi
mov    %r12d,%edx
mov    %r12d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12d,%r15d
mov    (%rsp),%r14d
mov    0x4(%rsp),%ebp
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r15d,%edx
call   1060 <swap@plt>
lea    0xeb7(%rip),%r12
mov    %r12,%rdi
call   1030 <puts@plt>
mov    (%rbx),%esi
lea    0xe5e(%rip),%r13
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rbx),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rbx),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rbx),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rbx),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rbx),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rbx),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rbx),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rbx),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
call   1030 <puts@plt>
lea    0xe39(%rip),%r12
mov    %r12,%rdi
call   1030 <puts@plt>
lea    -0x1(%r15),%edx
mov    %rbx,%rdi
mov    %ebp,%esi
call   1050 <qsort@plt>
add    $0x1,%r15d
mov    %r12,%rdi
call   1030 <puts@plt>
lea    0xd71(%rip),%rdi
mov    %r15d,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15d,%ebp
cmp    %r14d,%r15d
jge    13ba <qsort+0x27a>
mov    %r14d,%r15d
cmp    %r14d,%ebp
jg     11c0 <qsort+0x80>
movslq %ebp,%rax
mov    (%rbx,%rax,4),%r13d
mov    %ebp,%eax
mov    %r14d,%r12d
mov    %ebp,0x4(%rsp)
cltq
movslq %r12d,%r15
cmp    %r15d,%eax
mov    %r12d,%r14d
cmovg  %eax,%r14d
lea    0x1(%r14),%edx
nopw   0x0(%rax,%rax,1)
cmp    %r15,%rax
jge    12f9 <qsort+0x1b9>
lea    0x1(%rax),%rcx
cmp    %r13d,0x4(%rbx,%rax,4)
mov    %rcx,%rax
jl     12e0 <qsort+0x1a0>
lea    -0x1(%rcx),%r14d
mov    %ecx,%edx
mov    %edx,%ebp
movslq %edx,%rcx
mov    (%rbx,%rcx,4),%r8d
lea    0xd0e(%rip),%rdi
mov    %r13d,%esi
mov    %ecx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %r12d,%r14d
jge    119a <qsort+0x5a>
movslq %r14d,%rcx
mov    %r15,%rax
shl    $0x20,%rax
movabs $0xffffffff00000000,%rdx
ff ff ff
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    %r13d,(%rbx,%r15,4)
jle    1360 <qsort+0x220>
add    $0xffffffffffffffff,%r15
add    %rdx,%rax
cmp    %rcx,%r15
jg     1340 <qsort+0x200>
jmp    1190 <qsort+0x50>
nopw   0x0(%rax,%rax,1)
sar    $0x1e,%rax
mov    (%rbx,%rax,1),%r8d
lea    0xcd8(%rip),%rdi
mov    %r13d,%esi
mov    %r15d,%edx
mov    %r15d,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xcf1(%rip),%rdi
mov    %ebp,%esi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r15d,%edx
call   1060 <swap@plt>
mov    %ebp,%eax
mov    %r15d,%r12d
cmp    %r15d,%r14d
mov    (%rsp),%r14d
mov    0x4(%rsp),%ebp
jl     12c4 <qsort+0x184>
jmp    11c0 <qsort+0x80>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [47 x i8] c"#############################################\0A\00"
@.str.1 = [23 x i8] c"l is: %d +++ u is: %d\0A\00"
@.str.2 = [48 x i8] c"new more than {%d} i is: %d and arr[%d] is: %d\0A\00"
@.str.3 = [48 x i8] c"new less than {%d} j is: %d and arr[%d] is: %d\0A\00"
@.str.4 = [20 x i8] c"swap i:%d and j:%d\0A\00"
@.str.5 = [21 x i8] c"-------------------\0A\00"
@.str.6 = [4 x i8] c"%d\0A\00"
define void @qsort(i32* %0, i32 %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%13 = load i32, i32* %5
%14 = load i32, i32* %6
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %13, i32 %14)
%16 = load i32, i32* %5
%17 = load i32, i32* %6
%18 = icmp sge i32 %16, %17
br i1 %18, label %19, label %20
19: ; preds = %3
br label %131
20: ; preds = %3
%21 = load i32, i32* %5
store i32 %21, i32* %7
%22 = load i32, i32* %6
store i32 %22, i32* %8
%23 = load i32*, i32** %4
%24 = load i32, i32* %5
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, i32* %23, i64 %25
%27 = load i32, i32* %26
store i32 %27, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
br label %28
28: ; preds = %93, %20
%29 = load i32, i32* %7
%30 = load i32, i32* %8
%31 = icmp sle i32 %29, %30
br i1 %31, label %32, label %101
32: ; preds = %28
%33 = load i32, i32* %7
%34 = add nsw i32 %33, 1
store i32 %34, i32* %7
br label %35
35: ; preds = %49, %32
%36 = load i32, i32* %7
%37 = load i32, i32* %8
%38 = icmp sle i32 %36, %37
br i1 %38, label %39, label %47
39: ; preds = %35
%40 = load i32*, i32** %4
%41 = load i32, i32* %7
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, i32* %40, i64 %42
%44 = load i32, i32* %43
%45 = load i32, i32* %9
%46 = icmp slt i32 %44, %45
br label %47
47: ; preds = %39, %35
%48 = phi i1 [ false, %35 ], [ %46, %39 ]
br i1 %48, label %49, label %52
49: ; preds = %47
%50 = load i32, i32* %7
%51 = add nsw i32 %50, 1
store i32 %51, i32* %7
br label %35
52: ; preds = %47
%53 = load i32, i32* %9
%54 = load i32, i32* %7
%55 = load i32, i32* %7
%56 = load i32*, i32** %4
%57 = load i32, i32* %7
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, i32* %56, i64 %58
%60 = load i32, i32* %59
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i32 %53, i32 %54, i32 %55, i32 %60)
br label %62
62: ; preds = %76, %52
%63 = load i32, i32* %7
%64 = load i32, i32* %8
%65 = icmp sle i32 %63, %64
br i1 %65, label %66, label %74
66: ; preds = %62
%67 = load i32*, i32** %4
%68 = load i32, i32* %8
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, i32* %67, i64 %69
%71 = load i32, i32* %70
%72 = load i32, i32* %9
%73 = icmp sgt i32 %71, %72
br label %74
74: ; preds = %66, %62
%75 = phi i1 [ false, %62 ], [ %73, %66 ]
br i1 %75, label %76, label %79
76: ; preds = %74
%77 = load i32, i32* %8
%78 = add nsw i32 %77, -1
store i32 %78, i32* %8
br label %62
79: ; preds = %74
%80 = load i32, i32* %9
%81 = load i32, i32* %8
%82 = load i32, i32* %8
%83 = load i32*, i32** %4
%84 = load i32, i32* %8
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i32, i32* %83, i64 %85
%87 = load i32, i32* %86
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), i32 %80, i32 %81, i32 %82, i32 %87)
%89 = load i32, i32* %7
%90 = load i32, i32* %8
%91 = icmp sgt i32 %89, %90
br i1 %91, label %92, label %93
92: ; preds = %79
br label %101
93: ; preds = %79
%94 = load i32, i32* %7
%95 = load i32, i32* %8
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 %94, i32 %95)
%97 = load i32*, i32** %4
%98 = load i32, i32* %7
%99 = load i32, i32* %8
%100 = call i32 @swap(i32* %97, i32 %98, i32 %99)
br label %28
101: ; preds = %92, %28
%102 = load i32*, i32** %4
%103 = load i32, i32* %5
%104 = load i32, i32* %8
%105 = call i32 @swap(i32* %102, i32 %103, i32 %104)
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %11
br label %107
107: ; preds = %117, %101
%108 = load i32, i32* %11
%109 = icmp slt i32 %108, 9
br i1 %109, label %110, label %120
110: ; preds = %107
%111 = load i32*, i32** %4
%112 = load i32, i32* %11
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i32, i32* %111, i64 %113
%115 = load i32, i32* %114
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %115)
br label %117
117: ; preds = %110
%118 = load i32, i32* %11
%119 = add nsw i32 %118, 1
store i32 %119, i32* %11
br label %107
120: ; preds = %107
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
%123 = load i32*, i32** %4
%124 = load i32, i32* %5
%125 = load i32, i32* %8
%126 = sub nsw i32 %125, 1
%127 = load i32*, i32** %4
%128 = load i32, i32* %8
%129 = add nsw i32 %128, 1
%130 = load i32, i32* %6
br label %131
131: ; preds = %120, %19
ret void
}

LLVM IR (-O2):
@.str.1 = [23 x i8] c"l is: %d +++ u is: %d\0A\00"
@.str.2 = [48 x i8] c"new more than {%d} i is: %d and arr[%d] is: %d\0A\00"
@.str.3 = [48 x i8] c"new less than {%d} j is: %d and arr[%d] is: %d\0A\00"
@.str.4 = [20 x i8] c"swap i:%d and j:%d\0A\00"
@.str.6 = [4 x i8] c"%d\0A\00"
@str.8 = [20 x i8] c"-------------------\00"
@str.9 = [46 x i8] c"#############################################\00"
define void @qsort(i32* %0, i32 %1, i32 %2) {
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.9, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %1, i32 %2)
%6 = icmp slt i32 %1, %2
br i1 %6, label %7, label %109
7: ; preds = %3
%8 = getelementptr inbounds i32, i32* %0, i64 1
%9 = getelementptr inbounds i32, i32* %0, i64 2
%10 = getelementptr inbounds i32, i32* %0, i64 3
%11 = getelementptr inbounds i32, i32* %0, i64 4
%12 = getelementptr inbounds i32, i32* %0, i64 5
%13 = getelementptr inbounds i32, i32* %0, i64 6
%14 = getelementptr inbounds i32, i32* %0, i64 7
%15 = getelementptr inbounds i32, i32* %0, i64 8
br label %16
16: ; preds = %7, %80
%17 = phi i32 [ %105, %80 ], [ %1, %7 ]
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, i32* %0, i64 %18
%20 = load i32, i32* %19
%21 = icmp sgt i32 %17, %2
br i1 %21, label %80, label %22
22: ; preds = %16, %68
%23 = phi i32 [ %42, %68 ], [ %17, %16 ]
%24 = phi i32 [ %69, %68 ], [ %2, %16 ]
%25 = sext i32 %23 to i64
%26 = sext i32 %24 to i64
%27 = call i32 @llvm.smax.i32(i32 %23, i32 %24)
%28 = add i32 %27, 1
br label %29
29: ; preds = %22, %33
%30 = phi i64 [ %25, %22 ], [ %31, %33 ]
%31 = add nsw i64 %30, 1
%32 = icmp slt i64 %30, %26
br i1 %32, label %33, label %40
33: ; preds = %29
%34 = getelementptr inbounds i32, i32* %0, i64 %31
%35 = load i32, i32* %34
%36 = icmp slt i32 %35, %20
br i1 %36, label %29, label %37
37: ; preds = %33
%38 = trunc i64 %30 to i32
%39 = trunc i64 %31 to i32
br label %40
40: ; preds = %29, %37
%41 = phi i32 [ %38, %37 ], [ %27, %29 ]
%42 = phi i32 [ %39, %37 ], [ %28, %29 ]
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, i32* %0, i64 %43
%45 = load i32, i32* %44
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i32 %20, i32 %42, i32 %42, i32 %45)
%47 = icmp slt i32 %41, %24
br i1 %47, label %48, label %62
48: ; preds = %40
%49 = sext i32 %41 to i64
br label %50
50: ; preds = %48, %55
%51 = phi i64 [ %26, %48 ], [ %56, %55 ]
%52 = getelementptr inbounds i32, i32* %0, i64 %51
%53 = load i32, i32* %52
%54 = icmp sgt i32 %53, %20
br i1 %54, label %55, label %68
55: ; preds = %50
%56 = add nsw i64 %51, -1
%57 = icmp sgt i64 %56, %49
br i1 %57, label %50, label %58
58: ; preds = %55
%59 = trunc i64 %56 to i32
%60 = shl i64 %56, 32
%61 = ashr exact i64 %60, 32
br label %62
62: ; preds = %40, %58
%63 = phi i64 [ %61, %58 ], [ %26, %40 ]
%64 = phi i32 [ %59, %58 ], [ %24, %40 ]
%65 = getelementptr inbounds i32, i32* %0, i64 %63
%66 = load i32, i32* %65
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), i32 %20, i32 %64, i32 %64, i32 %66)
br label %80
68: ; preds = %50
%69 = trunc i64 %51 to i32
%70 = shl i64 %51, 32
%71 = ashr exact i64 %70, 32
%72 = getelementptr inbounds i32, i32* %0, i64 %71
%73 = load i32, i32* %72
%74 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), i32 %20, i32 %69, i32 %69, i32 %73)
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 %42, i32 %69)
%76 = tail call i32 @swap(i32* %0, i32 %42, i32 %69)
%77 = icmp slt i32 %41, %69
br i1 %77, label %22, label %78
78: ; preds = %68
%79 = trunc i64 %51 to i32
br label %80
80: ; preds = %78, %16, %62
%81 = phi i32 [ %64, %62 ], [ %2, %16 ], [ %79, %78 ]
%82 = tail call i32 @swap(i32* %0, i32 %17, i32 %81)
%83 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.8, i64 0, i64 0))
%84 = load i32, i32* %0
%85 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %84)
%86 = load i32, i32* %8
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %86)
%88 = load i32, i32* %9
%89 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %88)
%90 = load i32, i32* %10
%91 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %90)
%92 = load i32, i32* %11
%93 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %92)
%94 = load i32, i32* %12
%95 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %94)
%96 = load i32, i32* %13
%97 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %96)
%98 = load i32, i32* %14
%99 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %98)
%100 = load i32, i32* %15
%101 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %100)
%102 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.8, i64 0, i64 0))
%103 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.9, i64 0, i64 0))
%104 = add nsw i32 %81, -1
tail call void @qsort(i32* %0, i32 %17, i32 %104)
%105 = add nsw i32 %81, 1
%106 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.9, i64 0, i64 0))
%107 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %105, i32 %2)
%108 = icmp slt i32 %105, %2
br i1 %108, label %16, label %109
109: ; preds = %80, %3
ret void
}