#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*/ data;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
int main(void) {
  int data[] = {7, 12, 89, 5, 33, 67, 21, 46, 58}, i;
  int count = sizeof(data) / sizeof(int);
  printf("[0]\n");
  for (int i = 0; i < count; i++)
    if (i == -1 || i == -1)
      printf("[%4d]", data[i]);
    else
      printf("%6d", data[i]);
  putchar('\n');
  ;
  for (int i = count; i > 1; i--) {
    int is_switch = 0;
    printf("[%d]\n", count - i + 1);
    for (int j = 0; j < i - 1; j++) {
      if (data[j] > data[j + 1]) {
        int t = data[j];
        data[j] = data[j + 1];
        data[j + 1] = t;
        is_switch = 1;
        for (int i = 0; i < count; i++)
          if (i == j || i == j + 1)
            printf("[%4d]", data[i]);
          else
            printf("%6d", data[i]);
        putchar('\n');
        ;
      }
    }
    if (0 == is_switch)
      break;
  }
  for (int i = 0; i < count; i++)
    if (i == -1 || i == -1)
      printf("[%4d]", data[i]);
    else
      printf("%6d", data[i]);
  putchar('\n');
  ;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xeb6(%rip),%rsi
mov    $0x24,%edx
call   1050 <memcpy@plt>
movl   $0x9,-0x38(%rbp)
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    11d4 <main+0xa4>
cmpl   $0xffffffff,-0x3c(%rbp)
je     1190 <main+0x60>
cmpl   $0xffffffff,-0x3c(%rbp)
jne    11ab <main+0x7b>
movslq -0x3c(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11c1 <main+0x91>
movslq -0x3c(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11c6 <main+0x96>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1170 <main+0x40>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x38(%rbp),%eax
mov    %eax,-0x40(%rbp)
cmpl   $0x1,-0x40(%rbp)
jle    1328 <main+0x1f8>
movl   $0x0,-0x44(%rbp)
mov    -0x38(%rbp),%esi
sub    -0x40(%rbp),%esi
add    $0x1,%esi
lea    0xe2e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
mov    -0x40(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1305 <main+0x1d5>
movslq -0x48(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
mov    -0x48(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmp    -0x30(%rbp,%rcx,4),%eax
jle    12f2 <main+0x1c2>
movslq -0x48(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0x30(%rbp,%rax,4),%ecx
movslq -0x48(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
mov    -0x4c(%rbp),%ecx
mov    -0x48(%rbp),%eax
add    $0x1,%eax
cltq
mov    %ecx,-0x30(%rbp,%rax,4)
movl   $0x1,-0x44(%rbp)
movl   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    12e8 <main+0x1b8>
mov    -0x50(%rbp),%eax
cmp    -0x48(%rbp),%eax
je     12a4 <main+0x174>
mov    -0x50(%rbp),%eax
mov    -0x48(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jne    12bf <main+0x18f>
movslq -0x50(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xd76(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12d5 <main+0x1a5>
movslq -0x50(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12da <main+0x1aa>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    127b <main+0x14b>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    12f7 <main+0x1c7>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1213 <main+0xe3>
xor    %eax,%eax
cmp    -0x44(%rbp),%eax
jne    1315 <main+0x1e5>
jmp    1328 <main+0x1f8>
jmp    131a <main+0x1ea>
mov    -0x40(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x40(%rbp)
jmp    11e4 <main+0xb4>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    1393 <main+0x263>
cmpl   $0xffffffff,-0x54(%rbp)
je     134f <main+0x21f>
cmpl   $0xffffffff,-0x54(%rbp)
jne    136a <main+0x23a>
movslq -0x54(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xccb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1380 <main+0x250>
movslq -0x54(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xcb6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1385 <main+0x255>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    132f <main+0x1ff>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    0xedc(%rip),%eax
mov    %eax,0x40(%rsp)
movaps 0xec1(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xea5(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
lea    0xecd(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb7(%rip),%r15
movl   $0x7,0x4(%rsp)
mov    %r15,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movl   $0xc,(%rsp)
mov    %r15,%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movl   $0x59,0x18(%rsp)
mov    %r15,%rdi
mov    $0x59,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movl   $0x5,0x14(%rsp)
mov    %r15,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movl   $0x21,0x10(%rsp)
mov    %r15,%rdi
mov    $0x21,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movl   $0x43,0xc(%rsp)
mov    %r15,%rdi
mov    $0x43,%esi
xor    %eax,%eax
call   1050 <printf@plt>
movl   $0x15,0x8(%rsp)
mov    %r15,%rdi
mov    $0x15,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x2e,%ebp
mov    %r15,%rdi
mov    $0x2e,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x3a,%ebx
mov    %r15,%rdi
mov    $0x3a,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x9,%r14d
mov    $0x20,%eax
mov    %rax,0x50(%rsp)
lea    0xdc8(%rip),%r13
nopl   0x0(%rax)
mov    $0xa,%esi
sub    %r14d,%esi
lea    0xdbf(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0xffffffff,%r14d
mov    %r14d,0x1c(%rsp)
xor    %r12d,%r12d
mov    0x4(%rsp),%r14d
xor    %eax,%eax
jmp    12a2 <main+0x172>
nopl   0x0(%rax,%rax,1)
mov    %ecx,%r14d
add    $0x4,%r12
cmp    %r12,0x50(%rsp)
je     1410 <main+0x2e0>
mov    0x24(%rsp,%r12,1),%ecx
cmp    %ecx,%r14d
jle    1290 <main+0x160>
mov    %ecx,0x20(%rsp,%r12,1)
mov    %r14d,0x24(%rsp,%r12,1)
mov    0x20(%rsp),%esi
test   %r12,%r12
mov    %esi,0x4(%rsp)
je     12dc <main+0x1ac>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    $0x4,%r12
je     12e6 <main+0x1b6>
mov    0x24(%rsp),%esi
mov    %r15,%rdi
jmp    12ed <main+0x1bd>
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rsp),%esi
mov    %r13,%rdi
mov    %esi,(%rsp)
xor    %eax,%eax
call   1050 <printf@plt>
cmp    $0x4,%r12
mov    0x28(%rsp),%esi
mov    %r15,%rdi
cmove  %r13,%rdi
cmp    $0x8,%r12
cmove  %r13,%rdi
mov    %r15,%rbx
cmove  %r13,%rbx
mov    %esi,0x18(%rsp)
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rsp),%esi
cmp    $0xc,%r12
cmove  %r13,%rbx
mov    %r15,%rbp
cmove  %r13,%rbp
mov    %rbx,%rdi
mov    %esi,0x14(%rsp)
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rsp),%esi
cmp    $0x10,%r12
cmove  %r13,%rbp
mov    %r15,%rbx
cmove  %r13,%rbx
mov    %rbp,%rdi
mov    %esi,0x10(%rsp)
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x34(%rsp),%esi
cmp    $0x14,%r12
cmove  %r13,%rbx
mov    %r15,%rbp
cmove  %r13,%rbp
mov    %rbx,%rdi
mov    %esi,0xc(%rsp)
xor    %eax,%eax
call   1050 <printf@plt>
cmp    $0x18,%r12
mov    0x38(%rsp),%esi
cmove  %r13,%rbp
mov    %rbp,%rdi
mov    %esi,0x8(%rsp)
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x3c(%rsp),%ebp
cmp    $0x1c,%r12
je     13c0 <main+0x290>
cmp    $0x18,%r12
je     13c0 <main+0x290>
mov    %r15,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    13e0 <main+0x2b0>
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    $0x1c,%r12
jne    13e0 <main+0x2b0>
mov    0x40(%rsp),%ebx
mov    %r13,%rdi
jmp    13e7 <main+0x2b7>
nopl   0x0(%rax,%rax,1)
mov    0x40(%rsp),%ebx
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x1,%eax
jmp    1293 <main+0x163>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
test   %eax,%eax
mov    0x1c(%rsp),%r14d
je     1429 <main+0x2f9>
addq   $0xfffffffffffffffc,0x50(%rsp)
cmp    $0x1,%r14d
ja     1260 <main+0x130>
lea    0xbfa(%rip),%r15
mov    %r15,%rdi
mov    0x4(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    (%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    0x18(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    0x14(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    0x10(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    0xc(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    0x8(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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