#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 */
typedef int /*<<< orphan*/ array;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  int array[] = {34, 56, 4, 10, 77, 51, 93, 30, 5, 52};
  printf("Unsorted Array\n");
  for (int i = 0; i < sizeof(array) / sizeof(array[0]); i++) {
    printf("%d ", array[i]);
  }
  for (int i = 0; i < sizeof(array) / sizeof(array[0]) - 1; i++) {
    for (int j = i + 1; j < sizeof(array) / sizeof(array[0]); j++) {
      if (array[i] > array[j]) {
        int temp = array[i];
        array[i] = array[j];
        array[j] = temp;
      }
    }
  }
  printf("\n\nSorted Array\n");
  for (int i = 0; i < sizeof(array) / sizeof(array[0]); i++) {
    printf("%d ", array[i]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%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>
movl   $0x0,-0x34(%rbp)
movslq -0x34(%rbp),%rax
cmp    $0xa,%rax
jae    118b <main+0x6b>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1159 <main+0x39>
movl   $0x0,-0x38(%rbp)
movslq -0x38(%rbp),%rax
cmp    $0x9,%rax
jae    1219 <main+0xf9>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
movslq -0x3c(%rbp),%rax
cmp    $0xa,%rax
jae    1206 <main+0xe6>
movslq -0x38(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
movslq -0x3c(%rbp),%rcx
cmp    -0x30(%rbp,%rcx,4),%eax
jle    11f3 <main+0xd3>
movslq -0x38(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
mov    %eax,-0x40(%rbp)
movslq -0x3c(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%ecx
movslq -0x38(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
mov    -0x40(%rbp),%ecx
movslq -0x3c(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
jmp    11f8 <main+0xd8>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11a9 <main+0x89>
jmp    120b <main+0xeb>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1192 <main+0x72>
lea    0xe1c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x44(%rbp)
movslq -0x44(%rbp),%rax
cmp    $0xa,%rax
jae    1260 <main+0x140>
movslq -0x44(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    122e <main+0x10e>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
mov    0xef4(%rip),%rax
mov    %rax,0x20(%rsp)
movaps 0xed8(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xebc(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xedd(%rip),%rdi
call   1030 <puts@plt>
lea    0xecd(%rip),%rbx
mov    %rbx,%rdi
mov    $0x22,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x38,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x4d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x33,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x5d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x1e,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x34,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%eax
mov    (%rsp),%ecx
jmp    120a <main+0xea>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rax
cmp    $0xa,%rax
je     121b <main+0xfb>
mov    (%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1200 <main+0xe0>
mov    %edx,(%rsp)
mov    %ecx,(%rsp,%rax,4)
mov    %edx,%ecx
jmp    1200 <main+0xe0>
xor    %eax,%eax
jmp    122a <main+0x10a>
nop
add    $0x1,%rax
cmp    $0x8,%rax
je     1240 <main+0x120>
mov    0x4(%rsp),%ecx
mov    0x8(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1220 <main+0x100>
mov    %edx,0x4(%rsp)
mov    %ecx,0x8(%rsp,%rax,4)
jmp    1220 <main+0x100>
xor    %eax,%eax
jmp    125a <main+0x13a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x7,%rax
je     1270 <main+0x150>
mov    0x8(%rsp),%ecx
mov    0xc(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1250 <main+0x130>
mov    %edx,0x8(%rsp)
mov    %ecx,0xc(%rsp,%rax,4)
jmp    1250 <main+0x130>
xor    %eax,%eax
jmp    128a <main+0x16a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x6,%rax
je     12a0 <main+0x180>
mov    0xc(%rsp),%ecx
mov    0x10(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1280 <main+0x160>
mov    %edx,0xc(%rsp)
mov    %ecx,0x10(%rsp,%rax,4)
jmp    1280 <main+0x160>
xor    %eax,%eax
jmp    12ba <main+0x19a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x5,%rax
je     12d0 <main+0x1b0>
mov    0x10(%rsp),%ecx
mov    0x14(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    12b0 <main+0x190>
mov    %edx,0x10(%rsp)
mov    %ecx,0x14(%rsp,%rax,4)
jmp    12b0 <main+0x190>
xor    %eax,%eax
jmp    12ea <main+0x1ca>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x4,%rax
je     1300 <main+0x1e0>
mov    0x14(%rsp),%ecx
mov    0x18(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    12e0 <main+0x1c0>
mov    %edx,0x14(%rsp)
mov    %ecx,0x18(%rsp,%rax,4)
jmp    12e0 <main+0x1c0>
xor    %eax,%eax
jmp    131a <main+0x1fa>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x3,%rax
je     1330 <main+0x210>
mov    0x18(%rsp),%ecx
mov    0x1c(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1310 <main+0x1f0>
mov    %edx,0x18(%rsp)
mov    %ecx,0x1c(%rsp,%rax,4)
jmp    1310 <main+0x1f0>
xor    %eax,%eax
jmp    134a <main+0x22a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x2,%rax
je     1360 <main+0x240>
mov    0x1c(%rsp),%ecx
mov    0x20(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1340 <main+0x220>
mov    %edx,0x1c(%rsp)
mov    %ecx,0x20(%rsp,%rax,4)
jmp    1340 <main+0x220>
xor    %eax,%eax
jmp    137a <main+0x25a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x1,%rax
je     1390 <main+0x270>
mov    0x20(%rsp),%ecx
mov    0x24(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1370 <main+0x250>
mov    %edx,0x20(%rsp)
mov    %ecx,0x24(%rsp,%rax,4)
jmp    1370 <main+0x250>
lea    0xca4(%rip),%rdi
call   1030 <puts@plt>
mov    (%rsp),%esi
lea    0xc82(%rip),%rbx
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>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
ret

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

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