#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 rand();
int main() {
  int a[10];
  int i, j;
  int t;
  printf("排序前的数组:\n");
  for (i = 0; i < 10; i++) {
    a[i] = rand() % 100 + 1;
    printf("%4d", a[i]);
  }
  printf("\n排序后的数组:\n");
  for (i = 0; i < 9; i++) {
    for (j = i + 1; j < 10; j++) {
      if (a[i] > a[j]) {
        t = a[i];
        a[i] = a[j];
        a[j] = t;
      }
    }
  }
  for (i = 0; i < 10; i++) {
    printf("%4d", a[i]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    118c <main+0x6c>
mov    $0x0,%al
call   1040 <rand@plt>
mov    $0x64,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
movslq -0x34(%rbp),%rax
mov    %edx,-0x30(%rbp,%rax,4)
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xe9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1144 <main+0x24>
lea    0xe86(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x9,-0x34(%rbp)
jge    1220 <main+0x100>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
cmpl   $0xa,-0x38(%rbp)
jge    120d <main+0xed>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
movslq -0x38(%rbp),%rcx
cmp    -0x30(%rbp,%rcx,4),%eax
jle    11fa <main+0xda>
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    11ff <main+0xdf>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11b4 <main+0x94>
jmp    1212 <main+0xf2>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11a1 <main+0x81>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    1255 <main+0x135>
movslq -0x34(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1227 <main+0x107>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
lea    0xec8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x1,%esi
mov    %esi,(%rsp)
lea    0xe8a(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x1,%esi
mov    %esi,0x4(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x1,%esi
mov    %esi,0x8(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x1,%esi
mov    %esi,0xc(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x1,%esi
mov    %esi,0x10(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x1,%esi
mov    %esi,0x14(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x1,%esi
mov    %esi,0x18(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x1,%esi
mov    %esi,0x1c(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x1,%esi
mov    %esi,0x20(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
neg    %ecx
lea    (%rax,%rcx,1),%esi
add    $0x1,%esi
mov    %esi,0x24(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc90(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%eax
mov    (%rsp),%ecx
jmp    13aa <main+0x27a>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rax
cmp    $0xa,%rax
je     13bb <main+0x28b>
mov    (%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    13a0 <main+0x270>
mov    %edx,(%rsp)
mov    %ecx,(%rsp,%rax,4)
mov    %edx,%ecx
jmp    13a0 <main+0x270>
xor    %eax,%eax
jmp    13ca <main+0x29a>
nop
add    $0x1,%rax
cmp    $0x8,%rax
je     13e0 <main+0x2b0>
mov    0x4(%rsp),%ecx
mov    0x8(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    13c0 <main+0x290>
mov    %edx,0x4(%rsp)
mov    %ecx,0x8(%rsp,%rax,4)
jmp    13c0 <main+0x290>
xor    %eax,%eax
jmp    13fa <main+0x2ca>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x7,%rax
je     1410 <main+0x2e0>
mov    0x8(%rsp),%ecx
mov    0xc(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    13f0 <main+0x2c0>
mov    %edx,0x8(%rsp)
mov    %ecx,0xc(%rsp,%rax,4)
jmp    13f0 <main+0x2c0>
xor    %eax,%eax
jmp    142a <main+0x2fa>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x6,%rax
je     1440 <main+0x310>
mov    0xc(%rsp),%ecx
mov    0x10(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1420 <main+0x2f0>
mov    %edx,0xc(%rsp)
mov    %ecx,0x10(%rsp,%rax,4)
jmp    1420 <main+0x2f0>
xor    %eax,%eax
jmp    145a <main+0x32a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x5,%rax
je     1470 <main+0x340>
mov    0x10(%rsp),%ecx
mov    0x14(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1450 <main+0x320>
mov    %edx,0x10(%rsp)
mov    %ecx,0x14(%rsp,%rax,4)
jmp    1450 <main+0x320>
xor    %eax,%eax
jmp    148a <main+0x35a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x4,%rax
je     14a0 <main+0x370>
mov    0x14(%rsp),%ecx
mov    0x18(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1480 <main+0x350>
mov    %edx,0x14(%rsp)
mov    %ecx,0x18(%rsp,%rax,4)
jmp    1480 <main+0x350>
xor    %eax,%eax
jmp    14ba <main+0x38a>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x3,%rax
je     14d0 <main+0x3a0>
mov    0x18(%rsp),%ecx
mov    0x1c(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    14b0 <main+0x380>
mov    %edx,0x18(%rsp)
mov    %ecx,0x1c(%rsp,%rax,4)
jmp    14b0 <main+0x380>
xor    %eax,%eax
jmp    14ea <main+0x3ba>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x2,%rax
je     1500 <main+0x3d0>
mov    0x1c(%rsp),%ecx
mov    0x20(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    14e0 <main+0x3b0>
mov    %edx,0x1c(%rsp)
mov    %ecx,0x20(%rsp,%rax,4)
jmp    14e0 <main+0x3b0>
xor    %eax,%eax
jmp    151a <main+0x3ea>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
cmp    $0x1,%rax
je     1530 <main+0x400>
mov    0x20(%rsp),%ecx
mov    0x24(%rsp,%rax,4),%edx
cmp    %edx,%ecx
jle    1510 <main+0x3e0>
mov    %edx,0x20(%rsp)
mov    %ecx,0x24(%rsp,%rax,4)
jmp    1510 <main+0x3e0>
mov    (%rsp),%esi
lea    0xac6(%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):
@.str = [21 x i8] c"\E6\8E\92\E5\BA\8F\E5\89\8D\E7\9A\84\E6\95\B0\E7\BB\84:\0A\00"
@.str.1 = [4 x i8] c"%4d\00"
@.str.2 = [22 x i8] c"\0A\E6\8E\92\E5\BA\8F\E5\90\8E\E7\9A\84\E6\95\B0\E7\BB\84:\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 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %7
7: ; preds = %22, %0
%8 = load i32, i32* %3
%9 = icmp slt i32 %8, 10
br i1 %9, label %10, label %25
10: ; preds = %7
%11 = call i32 (...) @rand()
%12 = srem i32 %11, 100
%13 = add nsw i32 %12, 1
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %15
store i32 %13, i32* %16
%17 = load i32, i32* %3
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %18
%20 = load i32, i32* %19
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %20)
br label %22
22: ; preds = %10
%23 = load i32, i32* %3
%24 = add nsw i32 %23, 1
store i32 %24, i32* %3
br label %7
25: ; preds = %7
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %3
br label %27
27: ; preds = %67, %25
%28 = load i32, i32* %3
%29 = icmp slt i32 %28, 9
br i1 %29, label %30, label %70
30: ; preds = %27
%31 = load i32, i32* %3
%32 = add nsw i32 %31, 1
store i32 %32, i32* %4
br label %33
33: ; preds = %63, %30
%34 = load i32, i32* %4
%35 = icmp slt i32 %34, 10
br i1 %35, label %36, label %66
36: ; preds = %33
%37 = load i32, i32* %3
%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 = load i32, i32* %4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %42
%44 = load i32, i32* %43
%45 = icmp sgt i32 %40, %44
br i1 %45, label %46, label %62
46: ; preds = %36
%47 = load i32, i32* %3
%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
store i32 %50, i32* %5
%51 = load i32, i32* %4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %52
%54 = load i32, i32* %53
%55 = load i32, i32* %3
%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
%58 = load i32, i32* %5
%59 = load i32, i32* %4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %60
store i32 %58, i32* %61
br label %62
62: ; preds = %46, %36
br label %63
63: ; preds = %62
%64 = load i32, i32* %4
%65 = add nsw i32 %64, 1
store i32 %65, i32* %4
br label %33
66: ; preds = %33
br label %67
67: ; preds = %66
%68 = load i32, i32* %3
%69 = add nsw i32 %68, 1
store i32 %69, i32* %3
br label %27
70: ; preds = %27
store i32 0, i32* %3
br label %71
71: ; preds = %80, %70
%72 = load i32, i32* %3
%73 = icmp slt i32 %72, 10
br i1 %73, label %74, label %83
74: ; preds = %71
%75 = load i32, i32* %3
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %76
%78 = load i32, i32* %77
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %78)
br label %80
80: ; preds = %74
%81 = load i32, i32* %3
%82 = add nsw i32 %81, 1
store i32 %82, i32* %3
br label %71
83: ; preds = %71
ret i32 0
}

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