#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*/ scanf(char *, int *);
int main() {
  int nums[10], i, j, temp;
  for (i = 0; i < 10; i++) {
    printf("Enter a number --> \n");
    scanf("%d", &nums[i]);
  }
  printf("Numbers unsorted :\n");
  for (i = 0; i < 10; i++) {
    printf("%6d", nums[i]);
    printf("\n");
  }
  for (j = 0; j < 10 - 1; j++)
    for (i = 0; i < 10 - 1; i++) {
      if (nums[i] > nums[i + 1]) {
        temp = nums[i];
        nums[i] = nums[i + 1];
        nums[i + 1] = temp;
      }
    }
  printf("Numbers sorted :\n");
  for (i = 0; i < 10; i++) {
    printf("%6d", nums[i]);
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    1177 <main+0x57>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x34(%rbp),%rax
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xeb1(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1136 <main+0x16>
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    11c8 <main+0xa8>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe60(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    118c <main+0x6c>
movl   $0x0,-0x38(%rbp)
cmpl   $0x9,-0x38(%rbp)
jge    1259 <main+0x139>
movl   $0x0,-0x34(%rbp)
cmpl   $0x9,-0x34(%rbp)
jge    1246 <main+0x126>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
mov    -0x34(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmp    -0x30(%rbp,%rcx,4),%eax
jle    1233 <main+0x113>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0x30(%rbp,%rax,4),%ecx
movslq -0x34(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
mov    -0x3c(%rbp),%ecx
mov    -0x34(%rbp),%eax
add    $0x1,%eax
cltq
mov    %ecx,-0x30(%rbp,%rax,4)
jmp    1238 <main+0x118>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11e0 <main+0xc0>
jmp    124b <main+0x12b>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11cf <main+0xaf>
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    12aa <main+0x18a>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xda5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd7e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    126e <main+0x14e>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x28,%rsp
lea    0xeda(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xea0(%rip),%r14
mov    %rsp,%rsi
mov    %r14,%rdi
call   1060 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x4(%rsp),%rsi
mov    %r14,%rdi
call   1060 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   1060 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xc(%rsp),%rsi
mov    %r14,%rdi
call   1060 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x10(%rsp),%rsi
mov    %r14,%rdi
call   1060 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x14(%rsp),%rsi
mov    %r14,%rdi
call   1060 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x18(%rsp),%rsi
mov    %r14,%rdi
call   1060 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x1c(%rsp),%rsi
mov    %r14,%rdi
call   1060 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x20(%rsp),%rsi
mov    %r14,%rdi
call   1060 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x24(%rsp),%rsi
mov    %r14,%rdi
call   1060 <scanf@plt>
lea    0xdd8(%rip),%rdi
call   1040 <puts@plt>
mov    (%rsp),%esi
lea    0xdc5(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    (%rsp),%r8d
mov    0x4(%rsp),%r9d
mov    0x8(%rsp),%r10d
mov    0xc(%rsp),%r11d
mov    0x10(%rsp),%r14d
mov    0x14(%rsp),%r15d
mov    0x18(%rsp),%esi
mov    0x1c(%rsp),%edi
mov    0x20(%rsp),%ebp
mov    $0x9,%ecx
mov    0x24(%rsp),%edx
jmp    1377 <main+0x237>
xchg   %ax,%ax
mov    %edx,0x20(%rsp)
mov    %eax,0x24(%rsp)
mov    %eax,%ebx
mov    %edx,%ebp
mov    %ebx,%edx
add    $0xffffffff,%ecx
je     148d <main+0x34d>
cmp    %r9d,%r8d
jle    13f0 <main+0x2b0>
mov    %r9d,(%rsp)
mov    %r8d,0x4(%rsp)
mov    %r8d,%ebx
mov    %r9d,%r8d
cmp    %r10d,%ebx
jg     13f8 <main+0x2b8>
mov    %r10d,%eax
mov    %ebx,%r9d
cmp    %r11d,%eax
jg     140b <main+0x2cb>
mov    %r11d,%ebx
mov    %eax,%r10d
cmp    %r14d,%ebx
jg     141e <main+0x2de>
mov    %r14d,%eax
mov    %ebx,%r11d
cmp    %r15d,%eax
jg     1431 <main+0x2f1>
mov    %r15d,%ebx
mov    %eax,%r14d
cmp    %esi,%ebx
jg     1447 <main+0x307>
mov    %esi,%eax
mov    %ebx,%r15d
cmp    %edi,%eax
jg     145c <main+0x31c>
mov    %edi,%ebx
mov    %eax,%esi
cmp    %ebp,%ebx
jg     1470 <main+0x330>
mov    %ebp,%eax
mov    %ebx,%edi
cmp    %edx,%eax
jg     1360 <main+0x220>
jmp    1484 <main+0x344>
nopl   (%rax)
mov    %r9d,%ebx
cmp    %r10d,%ebx
jle    1390 <main+0x250>
mov    %r10d,0x4(%rsp)
mov    %ebx,0x8(%rsp)
mov    %ebx,%eax
mov    %r10d,%r9d
cmp    %r11d,%eax
jle    139b <main+0x25b>
mov    %r11d,0x8(%rsp)
mov    %eax,0xc(%rsp)
mov    %eax,%ebx
mov    %r11d,%r10d
cmp    %r14d,%ebx
jle    13a6 <main+0x266>
mov    %r14d,0xc(%rsp)
mov    %ebx,0x10(%rsp)
mov    %ebx,%eax
mov    %r14d,%r11d
cmp    %r15d,%eax
jle    13b5 <main+0x275>
mov    %r15d,0x10(%rsp)
mov    %eax,0x14(%rsp)
mov    %eax,%ebx
mov    %r15d,%r14d
cmp    %esi,%ebx
jle    13c3 <main+0x283>
mov    %esi,0x14(%rsp)
mov    %ebx,0x18(%rsp)
mov    %ebx,%eax
mov    %esi,%r15d
cmp    %edi,%eax
jle    13d0 <main+0x290>
mov    %edi,0x18(%rsp)
mov    %eax,0x1c(%rsp)
mov    %eax,%ebx
mov    %edi,%esi
cmp    %ebp,%ebx
jle    13dc <main+0x29c>
mov    %ebp,0x1c(%rsp)
mov    %ebx,0x20(%rsp)
mov    %ebx,%eax
mov    %ebp,%edi
cmp    %edx,%eax
jg     1360 <main+0x220>
mov    %edx,%ebx
mov    %eax,%edx
jmp    136a <main+0x22a>
lea    0xb86(%rip),%rdi
call   1040 <puts@plt>
mov    (%rsp),%esi
lea    0xb60(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@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    $0x28,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [21 x i8] c"Enter a number --> \0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [20 x i8] c"Numbers unsorted :\0A\00"
@.str.3 = [4 x i8] c"%6d\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [18 x i8] c"Numbers sorted :\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
store i32 0, i32* %3
br label %6
6: ; preds = %15, %0
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 10
br i1 %8, label %9, label %18
9: ; preds = %6
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* %3
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %12
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %13)
br label %15
15: ; preds = %9
%16 = load i32, i32* %3
%17 = add nsw i32 %16, 1
store i32 %17, i32* %3
br label %6
18: ; preds = %6
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %3
br label %20
20: ; preds = %30, %18
%21 = load i32, i32* %3
%22 = icmp slt i32 %21, 10
br i1 %22, label %23, label %33
23: ; preds = %20
%24 = load i32, i32* %3
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %25
%27 = load i32, i32* %26
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %27)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %30
30: ; preds = %23
%31 = load i32, i32* %3
%32 = add nsw i32 %31, 1
store i32 %32, i32* %3
br label %20
33: ; preds = %20
store i32 0, i32* %4
br label %34
34: ; preds = %75, %33
%35 = load i32, i32* %4
%36 = icmp slt i32 %35, 9
br i1 %36, label %37, label %78
37: ; preds = %34
store i32 0, i32* %3
br label %38
38: ; preds = %71, %37
%39 = load i32, i32* %3
%40 = icmp slt i32 %39, 9
br i1 %40, label %41, label %74
41: ; preds = %38
%42 = load i32, i32* %3
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %43
%45 = load i32, i32* %44
%46 = load i32, i32* %3
%47 = add nsw i32 %46, 1
%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 = icmp sgt i32 %45, %50
br i1 %51, label %52, label %70
52: ; preds = %41
%53 = load i32, i32* %3
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %54
%56 = load i32, i32* %55
store i32 %56, i32* %5
%57 = load i32, i32* %3
%58 = add nsw i32 %57, 1
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %59
%61 = load i32, i32* %60
%62 = load i32, i32* %3
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %63
store i32 %61, i32* %64
%65 = load i32, i32* %5
%66 = load i32, i32* %3
%67 = add nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %68
store i32 %65, i32* %69
br label %70
70: ; preds = %52, %41
br label %71
71: ; preds = %70
%72 = load i32, i32* %3
%73 = add nsw i32 %72, 1
store i32 %73, i32* %3
br label %38
74: ; preds = %38
br label %75
75: ; preds = %74
%76 = load i32, i32* %4
%77 = add nsw i32 %76, 1
store i32 %77, i32* %4
br label %34
78: ; preds = %34
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %3
br label %80
80: ; preds = %90, %78
%81 = load i32, i32* %3
%82 = icmp slt i32 %81, 10
br i1 %82, label %83, label %93
83: ; preds = %80
%84 = load i32, i32* %3
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %85
%87 = load i32, i32* %86
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %87)
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %90
90: ; preds = %83
%91 = load i32, i32* %3
%92 = add nsw i32 %91, 1
store i32 %92, i32* %3
br label %80
93: ; preds = %80
ret i32 0
}

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