#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 /*<<< orphan*/ system(char *);
main() {
  system("title 39_Cascallar_Autrán_Manuel");
  system("color 1F");
  system("cls");
  printf("METODO BURBUJA\n");
  printf("==============\n");
  int a[10], x, z, c = 0;
  for (x = 0; x < 10; x++) {
    printf("Introduce un n\243mero:\n");
    scanf("%d", &a[x]);
  }
  for (c = 0; c < 9; c++) {
    for (x = 0; x < 9; x++) {
      if (a[x] > a[x + 1]) {
        z = a[x + 1];
        a[x + 1] = a[x];
        a[x] = z;
      }
    }
  }
  printf("\n");
  for (x = 0; x < 10; x++) {
    printf("%d\n", a[x]);
  }
  system("pause");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1030 <system@plt>
lea    0xed0(%rip),%rdi
call   1030 <system@plt>
lea    0xecd(%rip),%rdi
call   1030 <system@plt>
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    11ce <main+0x9e>
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x34(%rbp),%rax
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xeaa(%rip),%rdi
call   1050 <scanf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    118d <main+0x5d>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x9,-0x3c(%rbp)
jge    125f <main+0x12f>
movl   $0x0,-0x34(%rbp)
cmpl   $0x9,-0x34(%rbp)
jge    124c <main+0x11c>
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    1239 <main+0x109>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0x30(%rbp,%rax,4),%eax
mov    %eax,-0x38(%rbp)
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%ecx
mov    -0x34(%rbp),%eax
add    $0x1,%eax
cltq
mov    %ecx,-0x30(%rbp,%rax,4)
mov    -0x38(%rbp),%ecx
movslq -0x34(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
jmp    123e <main+0x10e>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11e6 <main+0xb6>
jmp    1251 <main+0x121>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11d5 <main+0xa5>
lea    0xdfd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    12a2 <main+0x172>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xddb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1274 <main+0x144>
lea    0xdc3(%rip),%rdi
call   1030 <system@plt>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x28,%rsp
lea    0xe9f(%rip),%rdi
call   1050 <system@plt>
lea    0xeb5(%rip),%rdi
call   1050 <system@plt>
lea    0xeb2(%rip),%rdi
call   1050 <system@plt>
lea    0xeb7(%rip),%rdi
call   1040 <puts@plt>
lea    0xeba(%rip),%rdi
call   1040 <puts@plt>
lea    0xebd(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xe83(%rip),%r14
mov    %rsp,%rsi
mov    %r14,%rdi
call   1070 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x4(%rsp),%rsi
mov    %r14,%rdi
call   1070 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x8(%rsp),%rsi
mov    %r14,%rdi
call   1070 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xc(%rsp),%rsi
mov    %r14,%rdi
call   1070 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x10(%rsp),%rsi
mov    %r14,%rdi
call   1070 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x14(%rsp),%rsi
mov    %r14,%rdi
call   1070 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x18(%rsp),%rsi
mov    %r14,%rdi
call   1070 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x1c(%rsp),%rsi
mov    %r14,%rdi
call   1070 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x20(%rsp),%rsi
mov    %r14,%rdi
call   1070 <scanf@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x24(%rsp),%rsi
mov    %r14,%rdi
call   1070 <scanf@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    12c7 <main+0x177>
nopl   0x0(%rax,%rax,1)
mov    %eax,0x24(%rsp)
mov    %edx,0x20(%rsp)
mov    %eax,%ebx
mov    %edx,%ebp
mov    %ebx,%edx
add    $0xffffffff,%ecx
je     13dd <main+0x28d>
cmp    %r9d,%r8d
jle    1340 <main+0x1f0>
mov    %r8d,0x4(%rsp)
mov    %r9d,(%rsp)
mov    %r8d,%ebx
mov    %r9d,%r8d
cmp    %r10d,%ebx
jg     1348 <main+0x1f8>
mov    %r10d,%eax
mov    %ebx,%r9d
cmp    %r11d,%eax
jg     135b <main+0x20b>
mov    %r11d,%ebx
mov    %eax,%r10d
cmp    %r14d,%ebx
jg     136e <main+0x21e>
mov    %r14d,%eax
mov    %ebx,%r11d
cmp    %r15d,%eax
jg     1381 <main+0x231>
mov    %r15d,%ebx
mov    %eax,%r14d
cmp    %esi,%ebx
jg     1397 <main+0x247>
mov    %esi,%eax
mov    %ebx,%r15d
cmp    %edi,%eax
jg     13ac <main+0x25c>
mov    %edi,%ebx
mov    %eax,%esi
cmp    %ebp,%ebx
jg     13c0 <main+0x270>
mov    %ebp,%eax
mov    %ebx,%edi
cmp    %edx,%eax
jg     12b0 <main+0x160>
jmp    13d4 <main+0x284>
nopl   (%rax)
mov    %r9d,%ebx
cmp    %r10d,%ebx
jle    12e0 <main+0x190>
mov    %ebx,0x8(%rsp)
mov    %r10d,0x4(%rsp)
mov    %ebx,%eax
mov    %r10d,%r9d
cmp    %r11d,%eax
jle    12eb <main+0x19b>
mov    %eax,0xc(%rsp)
mov    %r11d,0x8(%rsp)
mov    %eax,%ebx
mov    %r11d,%r10d
cmp    %r14d,%ebx
jle    12f6 <main+0x1a6>
mov    %ebx,0x10(%rsp)
mov    %r14d,0xc(%rsp)
mov    %ebx,%eax
mov    %r14d,%r11d
cmp    %r15d,%eax
jle    1305 <main+0x1b5>
mov    %eax,0x14(%rsp)
mov    %r15d,0x10(%rsp)
mov    %eax,%ebx
mov    %r15d,%r14d
cmp    %esi,%ebx
jle    1313 <main+0x1c3>
mov    %ebx,0x18(%rsp)
mov    %esi,0x14(%rsp)
mov    %ebx,%eax
mov    %esi,%r15d
cmp    %edi,%eax
jle    1320 <main+0x1d0>
mov    %eax,0x1c(%rsp)
mov    %edi,0x18(%rsp)
mov    %eax,%ebx
mov    %edi,%esi
cmp    %ebp,%ebx
jle    132c <main+0x1dc>
mov    %ebx,0x20(%rsp)
mov    %ebp,0x1c(%rsp)
mov    %ebx,%eax
mov    %ebp,%edi
cmp    %edx,%eax
jg     12b0 <main+0x160>
mov    %edx,%ebx
mov    %eax,%edx
jmp    12ba <main+0x16a>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    (%rsp),%esi
lea    0xc41(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xbb6(%rip),%rdi
call   1050 <system@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [34 x i8] c"title 39_Cascallar_Autr\C3\A1n_Manuel\00"
@.str.1 = [9 x i8] c"color 1F\00"
@.str.2 = [4 x i8] c"cls\00"
@.str.3 = [16 x i8] c"METODO BURBUJA\0A\00"
@.str.4 = [16 x i8] c"==============\0A\00"
@.str.5 = [22 x i8] c"Introduce un n\A3mero:\0A\00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [2 x i8] c"\0A\00"
@.str.8 = [4 x i8] c"%d\0A\00"
@.str.9 = [6 x i8] c"pause\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 = call i32 @system(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @system(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %5
store i32 0, i32* %3
br label %11
11: ; preds = %20, %0
%12 = load i32, i32* %3
%13 = icmp slt i32 %12, 10
br i1 %13, label %14, label %23
14: ; preds = %11
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%16 = load i32, i32* %3
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %17
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, 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 %11
23: ; preds = %11
store i32 0, i32* %5
br label %24
24: ; preds = %65, %23
%25 = load i32, i32* %5
%26 = icmp slt i32 %25, 9
br i1 %26, label %27, label %68
27: ; preds = %24
store i32 0, i32* %3
br label %28
28: ; preds = %61, %27
%29 = load i32, i32* %3
%30 = icmp slt i32 %29, 9
br i1 %30, label %31, label %64
31: ; preds = %28
%32 = load i32, i32* %3
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %33
%35 = load i32, i32* %34
%36 = load i32, i32* %3
%37 = add nsw i32 %36, 1
%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 %35, %40
br i1 %41, label %42, label %60
42: ; preds = %31
%43 = load i32, i32* %3
%44 = add nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %45
%47 = load i32, i32* %46
store i32 %47, i32* %4
%48 = load i32, i32* %3
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %49
%51 = load i32, i32* %50
%52 = load i32, i32* %3
%53 = add nsw i32 %52, 1
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %54
store i32 %51, i32* %55
%56 = load i32, i32* %4
%57 = load i32, i32* %3
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %58
store i32 %56, i32* %59
br label %60
60: ; preds = %42, %31
br label %61
61: ; preds = %60
%62 = load i32, i32* %3
%63 = add nsw i32 %62, 1
store i32 %63, i32* %3
br label %28
64: ; preds = %28
br label %65
65: ; preds = %64
%66 = load i32, i32* %5
%67 = add nsw i32 %66, 1
store i32 %67, i32* %5
br label %24
68: ; preds = %24
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %3
br label %70
70: ; preds = %79, %68
%71 = load i32, i32* %3
%72 = icmp slt i32 %71, 10
br i1 %72, label %73, label %82
73: ; preds = %70
%74 = load i32, i32* %3
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %75
%77 = load i32, i32* %76
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 %77)
br label %79
79: ; preds = %73
%80 = load i32, i32* %3
%81 = add nsw i32 %80, 1
store i32 %81, i32* %3
br label %70
82: ; preds = %70
%83 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%84 = load i32, i32* %1
ret i32 %84
}

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