#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 main(void) {
  int arr[10] = {26, 34543, 17, 31, 13, 543, 456, 1, 0, 2};
  int idx, target, tmp;
  printf("Selection Sort\n");
  printf("Before Sorting: \n");
  for (idx = 0; idx < 10; idx++) {
    printf("%d\t", arr[idx]);
  }
  printf("\n");
  for (idx = 0; idx < 10 - 1; idx++) {
    for (target = idx + 1; target < 10; target++) {
      if (arr[idx] > arr[target]) {
        tmp = arr[idx];
        arr[idx] = arr[target];
        arr[target] = tmp;
      }
    }
  }
  printf("After Sorting: \n");
  for (idx = 0; idx < 10; idx++) {
    printf("%d\t", arr[idx]);
  }
  printf("\n");
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xec6(%rip),%rsi
mov    $0x28,%edx
call   1040 <memcpy@plt>
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    1195 <main+0x75>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1167 <main+0x47>
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x9,-0x34(%rbp)
jge    1229 <main+0x109>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
cmpl   $0xa,-0x38(%rbp)
jge    1216 <main+0xf6>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
movslq -0x38(%rbp),%rcx
cmp    -0x30(%rbp,%rcx,4),%eax
jle    1203 <main+0xe3>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
mov    %eax,-0x3c(%rbp)
movslq -0x38(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%ecx
movslq -0x34(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
mov    -0x3c(%rbp),%ecx
movslq -0x38(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
jmp    1208 <main+0xe8>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11bd <main+0x9d>
jmp    121b <main+0xfb>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11aa <main+0x8a>
lea    0xe1e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    126c <main+0x14c>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xdf3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    123e <main+0x11e>
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
mov    0xee4(%rip),%rax
mov    %rax,0x20(%rsp)
movaps 0xec8(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeac(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xecd(%rip),%rdi
call   1040 <puts@plt>
lea    0xed0(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb1(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1a,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x86ef,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x11,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x1f,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x21f,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x1c8,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x1,%eax
mov    (%rsp),%ecx
jmp    122a <main+0xfa>
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0xa,%rax
je     123b <main+0x10b>
mov    (%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1220 <main+0xf0>
mov    %edx,(%rsp)
mov    %ecx,(%rsp,%rax,4)
mov    %edx,%ecx
jmp    1220 <main+0xf0>
xor    %eax,%eax
jmp    124a <main+0x11a>
nop
add    $0x1,%rax
cmp    $0x8,%rax
je     1260 <main+0x130>
mov    0x4(%rsp),%ecx
mov    0x8(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1240 <main+0x110>
mov    %edx,0x4(%rsp)
mov    %ecx,0x8(%rsp,%rax,4)
jmp    1240 <main+0x110>
xor    %eax,%eax
jmp    127a <main+0x14a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x7,%rax
je     1290 <main+0x160>
mov    0x8(%rsp),%ecx
mov    0xc(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1270 <main+0x140>
mov    %edx,0x8(%rsp)
mov    %ecx,0xc(%rsp,%rax,4)
jmp    1270 <main+0x140>
xor    %eax,%eax
jmp    12aa <main+0x17a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x6,%rax
je     12c0 <main+0x190>
mov    0xc(%rsp),%ecx
mov    0x10(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    12a0 <main+0x170>
mov    %edx,0xc(%rsp)
mov    %ecx,0x10(%rsp,%rax,4)
jmp    12a0 <main+0x170>
xor    %eax,%eax
jmp    12da <main+0x1aa>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x5,%rax
je     12f0 <main+0x1c0>
mov    0x10(%rsp),%ecx
mov    0x14(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    12d0 <main+0x1a0>
mov    %edx,0x10(%rsp)
mov    %ecx,0x14(%rsp,%rax,4)
jmp    12d0 <main+0x1a0>
xor    %eax,%eax
jmp    130a <main+0x1da>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x4,%rax
je     1320 <main+0x1f0>
mov    0x14(%rsp),%ecx
mov    0x18(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1300 <main+0x1d0>
mov    %edx,0x14(%rsp)
mov    %ecx,0x18(%rsp,%rax,4)
jmp    1300 <main+0x1d0>
xor    %eax,%eax
jmp    133a <main+0x20a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x3,%rax
je     1350 <main+0x220>
mov    0x18(%rsp),%ecx
mov    0x1c(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1330 <main+0x200>
mov    %edx,0x18(%rsp)
mov    %ecx,0x1c(%rsp,%rax,4)
jmp    1330 <main+0x200>
xor    %eax,%eax
jmp    136a <main+0x23a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x2,%rax
je     1380 <main+0x250>
mov    0x1c(%rsp),%ecx
mov    0x20(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1360 <main+0x230>
mov    %edx,0x1c(%rsp)
mov    %ecx,0x20(%rsp,%rax,4)
jmp    1360 <main+0x230>
xor    %eax,%eax
jmp    139a <main+0x26a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x1,%rax
je     13b0 <main+0x280>
mov    0x20(%rsp),%ecx
mov    0x24(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1390 <main+0x260>
mov    %edx,0x20(%rsp)
mov    %ecx,0x24(%rsp,%rax,4)
jmp    1390 <main+0x260>
lea    0xc95(%rip),%rdi
call   1040 <puts@plt>
mov    (%rsp),%esi
lea    0xc62(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.arr = [10 x i32] [i32 26, i32 34543, i32 17, i32 31, i32 13, i32 543, i32 456, i32 1, i32 0, i32 2]
@.str = [16 x i8] c"Selection Sort\0A\00"
@.str.1 = [18 x i8] c"Before Sorting: \0A\00"
@.str.2 = [4 x i8] c"%d\09\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [17 x i8] c"After Sorting: \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = bitcast [10 x i32]* %2 to i8*
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %9
9: ; preds = %18, %0
%10 = load i32, i32* %3
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %21
12: ; preds = %9
%13 = load i32, i32* %3
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %14
%16 = load i32, i32* %15
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %16)
br label %18
18: ; preds = %12
%19 = load i32, i32* %3
%20 = add nsw i32 %19, 1
store i32 %20, i32* %3
br label %9
21: ; preds = %9
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %3
br label %23
23: ; preds = %63, %21
%24 = load i32, i32* %3
%25 = icmp slt i32 %24, 9
br i1 %25, label %26, label %66
26: ; preds = %23
%27 = load i32, i32* %3
%28 = add nsw i32 %27, 1
store i32 %28, i32* %4
br label %29
29: ; preds = %59, %26
%30 = load i32, i32* %4
%31 = icmp slt i32 %30, 10
br i1 %31, label %32, label %62
32: ; preds = %29
%33 = load i32, i32* %3
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %34
%36 = load i32, i32* %35
%37 = load i32, i32* %4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %38
%40 = load i32, i32* %39
%41 = icmp sgt i32 %36, %40
br i1 %41, label %42, label %58
42: ; preds = %32
%43 = load i32, i32* %3
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %44
%46 = load i32, i32* %45
store i32 %46, i32* %5
%47 = load i32, i32* %4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %48
%50 = load i32, i32* %49
%51 = load i32, i32* %3
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %52
store i32 %50, i32* %53
%54 = load i32, i32* %5
%55 = load i32, i32* %4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %56
store i32 %54, i32* %57
br label %58
58: ; preds = %42, %32
br label %59
59: ; preds = %58
%60 = load i32, i32* %4
%61 = add nsw i32 %60, 1
store i32 %61, i32* %4
br label %29
62: ; preds = %29
br label %63
63: ; preds = %62
%64 = load i32, i32* %3
%65 = add nsw i32 %64, 1
store i32 %65, i32* %3
br label %23
66: ; preds = %23
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %3
br label %68
68: ; preds = %77, %66
%69 = load i32, i32* %3
%70 = icmp slt i32 %69, 10
br i1 %70, label %71, label %80
71: ; preds = %68
%72 = load i32, i32* %3
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %73
%75 = load i32, i32* %74
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %75)
br label %77
77: ; preds = %71
%78 = load i32, i32* %3
%79 = add nsw i32 %78, 1
store i32 %79, i32* %3
br label %68
80: ; preds = %68
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@__const.main.arr = [10 x i32] [i32 26, i32 34543, i32 17, i32 31, i32 13, i32 543, i32 456, i32 1, i32 0, i32 2]
@.str.2 = [4 x i8] c"%d\09\00"
@str = [15 x i8] c"Selection Sort\00"
@str.5 = [17 x i8] c"Before Sorting: \00"
@str.6 = [16 x i8] c"After Sorting: \00"
define i32 @main() {
%1 = alloca [10 x i32]
%2 = bitcast [10 x i32]* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.5, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 26)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 34543)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 17)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 31)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 13)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 543)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 456)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 1)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 0)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 2)
%15 = tail call i32 @putchar(i32 10)
%16 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%17 = load i32, i32* %16
br label %147
18: ; preds = %154
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
br label %20
20: ; preds = %27, %18
%21 = phi i64 [ 2, %18 ], [ %28, %27 ]
%22 = load i32, i32* %19
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %21
%24 = load i32, i32* %23
%25 = icmp sgt i32 %22, %24
br i1 %25, label %26, label %27
26: ; preds = %20
store i32 %24, i32* %19
store i32 %22, i32* %23
br label %27
27: ; preds = %26, %20
%28 = add nuw nsw i64 %21, 1
%29 = icmp eq i64 %28, 10
br i1 %29, label %30, label %20
30: ; preds = %27
%31 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
br label %32
32: ; preds = %39, %30
%33 = phi i64 [ 3, %30 ], [ %40, %39 ]
%34 = load i32, i32* %31
%35 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %33
%36 = load i32, i32* %35
%37 = icmp sgt i32 %34, %36
br i1 %37, label %38, label %39
38: ; preds = %32
store i32 %36, i32* %31
store i32 %34, i32* %35
br label %39
39: ; preds = %38, %32
%40 = add nuw nsw i64 %33, 1
%41 = icmp eq i64 %40, 10
br i1 %41, label %42, label %32
42: ; preds = %39
%43 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
br label %44
44: ; preds = %51, %42
%45 = phi i64 [ 4, %42 ], [ %52, %51 ]
%46 = load i32, i32* %43
%47 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %45
%48 = load i32, i32* %47
%49 = icmp sgt i32 %46, %48
br i1 %49, label %50, label %51
50: ; preds = %44
store i32 %48, i32* %43
store i32 %46, i32* %47
br label %51
51: ; preds = %50, %44
%52 = add nuw nsw i64 %45, 1
%53 = icmp eq i64 %52, 10
br i1 %53, label %54, label %44
54: ; preds = %51
%55 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
br label %56
56: ; preds = %63, %54
%57 = phi i64 [ 5, %54 ], [ %64, %63 ]
%58 = load i32, i32* %55
%59 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %57
%60 = load i32, i32* %59
%61 = icmp sgt i32 %58, %60
br i1 %61, label %62, label %63
62: ; preds = %56
store i32 %60, i32* %55
store i32 %58, i32* %59
br label %63
63: ; preds = %62, %56
%64 = add nuw nsw i64 %57, 1
%65 = icmp eq i64 %64, 10
br i1 %65, label %66, label %56
66: ; preds = %63
%67 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
br label %68
68: ; preds = %75, %66
%69 = phi i64 [ 6, %66 ], [ %76, %75 ]
%70 = load i32, i32* %67
%71 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %69
%72 = load i32, i32* %71
%73 = icmp sgt i32 %70, %72
br i1 %73, label %74, label %75
74: ; preds = %68
store i32 %72, i32* %67
store i32 %70, i32* %71
br label %75
75: ; preds = %74, %68
%76 = add nuw nsw i64 %69, 1
%77 = icmp eq i64 %76, 10
br i1 %77, label %78, label %68
78: ; preds = %75
%79 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
br label %80
80: ; preds = %87, %78
%81 = phi i64 [ 7, %78 ], [ %88, %87 ]
%82 = load i32, i32* %79
%83 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %81
%84 = load i32, i32* %83
%85 = icmp sgt i32 %82, %84
br i1 %85, label %86, label %87
86: ; preds = %80
store i32 %84, i32* %79
store i32 %82, i32* %83
br label %87
87: ; preds = %86, %80
%88 = add nuw nsw i64 %81, 1
%89 = icmp eq i64 %88, 10
br i1 %89, label %90, label %80
90: ; preds = %87
%91 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
br label %92
92: ; preds = %99, %90
%93 = phi i64 [ 8, %90 ], [ %100, %99 ]
%94 = load i32, i32* %91
%95 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %93
%96 = load i32, i32* %95
%97 = icmp sgt i32 %94, %96
br i1 %97, label %98, label %99
98: ; preds = %92
store i32 %96, i32* %91
store i32 %94, i32* %95
br label %99
99: ; preds = %98, %92
%100 = add nuw nsw i64 %93, 1
%101 = icmp eq i64 %100, 10
br i1 %101, label %102, label %92
102: ; preds = %99
%103 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
br label %104
104: ; preds = %111, %102
%105 = phi i64 [ 9, %102 ], [ %112, %111 ]
%106 = load i32, i32* %103
%107 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %105
%108 = load i32, i32* %107
%109 = icmp sgt i32 %106, %108
br i1 %109, label %110, label %111
110: ; preds = %104
store i32 %108, i32* %103
store i32 %106, i32* %107
br label %111
111: ; preds = %110, %104
%112 = add nuw nsw i64 %105, 1
%113 = icmp eq i64 %112, 10
br i1 %113, label %114, label %104
114: ; preds = %111
%115 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
%116 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
%117 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
%118 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%119 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%120 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%121 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
%122 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
%123 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%124 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%125 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.6, i64 0, i64 0))
%126 = load i32, i32* %124
%127 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %126)
%128 = load i32, i32* %123
%129 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %128)
%130 = load i32, i32* %122
%131 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %130)
%132 = load i32, i32* %121
%133 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %132)
%134 = load i32, i32* %120
%135 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %134)
%136 = load i32, i32* %119
%137 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %136)
%138 = load i32, i32* %118
%139 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %138)
%140 = load i32, i32* %117
%141 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %140)
%142 = load i32, i32* %116
%143 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %142)
%144 = load i32, i32* %115
%145 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %144)
%146 = tail call i32 @putchar(i32 10)
ret i32 0
147: ; preds = %0, %154
%148 = phi i32 [ %17, %0 ], [ %155, %154 ]
%149 = phi i64 [ 1, %0 ], [ %156, %154 ]
%150 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %149
%151 = load i32, i32* %150
%152 = icmp sgt i32 %148, %151
br i1 %152, label %153, label %154
153: ; preds = %147
store i32 %151, i32* %16
store i32 %148, i32* %150
br label %154
154: ; preds = %147, %153
%155 = phi i32 [ %148, %147 ], [ %151, %153 ]
%156 = add nuw nsw i64 %149, 1
%157 = icmp eq i64 %156, 10
br i1 %157, label %18, label %147
}