#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*/ putchar(char);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int i = 0;
  int j = 0;
  int num = 0;
  int max = 0;
  int persons[80] = {0};
  int stat[11] = {0};
  printf("请输入学生人数: ");
  do {
    scanf("%d", &num);
    if (num < 1 || num > 80) {
      printf("\a请输入1~%d的数: ", 80);
    }
  } while (num < 1 || num > 80);
  printf("请输入%d人的分数\n", num);
  for (i = 0; i < num; i++) {
    printf("%2d号: ", i + 1);
    do {
      scanf("%d", &persons[i]);
      if (persons[i] < 0 || persons[i] > 100) {
        printf("\a请输入1~100的数: ");
      }
    } while (persons[i] < 0 || persons[i] > 100);
    if (stat[persons[i] / 10]++ > max) {
      max = stat[persons[i] / 10];
    }
  }
  for (i = max; i > 0; i--) {
    for (j = 0; j < 11; j++) {
      if (stat[j] >= i) {
        printf("   *");
      } else {
        printf("    ");
      }
    }
    putchar('\n');
  }
  puts("--------------------------------------------");
  for (i = 0; i < 11; i++) {
    printf("%4d", i * 10);
  }
  putchar('\n');
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    -0x160(%rbp),%rdi
xor    %esi,%esi
mov    $0x140,%edx
call   1060 <memset@plt>
lea    -0x190(%rbp),%rdi
xor    %esi,%esi
mov    $0x2c,%edx
call   1060 <memset@plt>
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe5f(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1070 <scanf@plt>
cmpl   $0x1,-0x10(%rbp)
jl     11d6 <main+0x86>
cmpl   $0x50,-0x10(%rbp)
jle    11e9 <main+0x99>
lea    0xe3e(%rip),%rdi
mov    $0x50,%esi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    11ee <main+0x9e>
mov    $0x1,%al
cmpl   $0x1,-0x10(%rbp)
mov    %al,-0x191(%rbp)
jl     120d <main+0xbd>
cmpl   $0x50,-0x10(%rbp)
setg   %al
mov    %al,-0x191(%rbp)
mov    -0x191(%rbp),%al
test   $0x1,%al
jne    11b2 <main+0x62>
mov    -0x10(%rbp),%esi
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1349 <main+0x1f9>
mov    -0x8(%rbp),%esi
add    $0x1,%esi
lea    0xdff(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movslq -0x8(%rbp),%rax
lea    -0x160(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xdac(%rip),%rdi
call   1070 <scanf@plt>
movslq -0x8(%rbp),%rax
cmpl   $0x0,-0x160(%rbp,%rax,4)
jl     1295 <main+0x145>
movslq -0x8(%rbp),%rax
cmpl   $0x64,-0x160(%rbp,%rax,4)
64
jle    12a3 <main+0x153>
lea    0xdb8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12a8 <main+0x158>
movslq -0x8(%rbp),%rcx
mov    $0x1,%al
cmpl   $0x0,-0x160(%rbp,%rcx,4)
mov    %al,-0x192(%rbp)
jl     12d7 <main+0x187>
movslq -0x8(%rbp),%rax
cmpl   $0x64,-0x160(%rbp,%rax,4)
64
setg   %al
mov    %al,-0x192(%rbp)
mov    -0x192(%rbp),%al
test   $0x1,%al
jne    1253 <main+0x103>
movslq -0x8(%rbp),%rax
mov    -0x160(%rbp,%rax,4),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
movslq %eax,%rcx
mov    -0x190(%rbp,%rcx,4),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x190(%rbp,%rcx,4)
cmp    -0x14(%rbp),%eax
jle    1336 <main+0x1e6>
movslq -0x8(%rbp),%rax
mov    -0x160(%rbp,%rax,4),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cltq
mov    -0x190(%rbp,%rax,4),%eax
mov    %eax,-0x14(%rbp)
jmp    133b <main+0x1eb>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1233 <main+0xe3>
mov    -0x14(%rbp),%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    13ca <main+0x27a>
movl   $0x0,-0xc(%rbp)
cmpl   $0xb,-0xc(%rbp)
jge    13b2 <main+0x262>
movslq -0xc(%rbp),%rax
mov    -0x190(%rbp,%rax,4),%eax
cmp    -0x8(%rbp),%eax
jl     1391 <main+0x241>
lea    0xce7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    139f <main+0x24f>
lea    0xcd9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13a4 <main+0x254>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1360 <main+0x210>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    134f <main+0x1ff>
lea    0xca5(%rip),%rdi
call   1040 <puts@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xb,-0x8(%rbp)
jge    1407 <main+0x2b7>
imul   $0xa,-0x8(%rbp),%esi
lea    0xcb1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    13dd <main+0x28d>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1a8,%rsp
movl   $0x0,0x8(%rsp)
lea    0x60(%rsp),%rdi
mov    $0x140,%edx
xor    %esi,%esi
call   1060 <memset@plt>
pxor   %xmm0,%xmm0
movdqu %xmm0,0x2c(%rsp)
movdqa %xmm0,0x20(%rsp)
movdqa %xmm0,0x10(%rsp)
lea    0xe69(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe73(%rip),%r14
lea    0x8(%rsp),%rbx
lea    0xe6a(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <scanf@plt>
mov    0x8(%rsp),%esi
lea    -0x51(%rsi),%eax
cmp    $0xffffffaf,%eax
ja     11f2 <main+0xa2>
mov    %r15,%rdi
mov    $0x50,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%esi
lea    -0x51(%rsi),%eax
cmp    $0xffffffb0,%eax
jb     11c0 <main+0x70>
lea    0xe39(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0x8(%rsp)
jle    13f2 <main+0x2a2>
lea    0xe39(%rip),%r14
lea    0xdff(%rip),%r13
lea    0xe34(%rip),%r15
xor    %r12d,%r12d
xor    %ebp,%ebp
jmp    1259 <main+0x109>
nopw   0x0(%rax,%rax,1)
movzbl %al,%eax
imul   $0xcd,%eax,%eax
shr    $0x9,%eax
and    $0xfffffffc,%eax
mov    0x10(%rsp,%rax,1),%ecx
lea    0x1(%rcx),%edx
mov    %edx,0x10(%rsp,%rax,1)
cmp    %ebp,%ecx
cmovg  %edx,%ebp
movslq 0x8(%rsp),%rax
cmp    %rax,%r12
jge    12a5 <main+0x155>
mov    %r12,%rbx
add    $0x1,%r12
mov    %r14,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    (%rsp,%rbx,4),%rbx
add    $0x60,%rbx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r13,%rdi
mov    %rbx,%rsi
call   1070 <scanf@plt>
mov    (%rbx),%eax
cmp    $0x65,%eax
jb     1230 <main+0xe0>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rbx),%eax
cmp    $0x64,%eax
ja     1280 <main+0x130>
jmp    1230 <main+0xe0>
test   %ebp,%ebp
jle    13f2 <main+0x2a2>
mov    0x10(%rsp),%eax
mov    %eax,0xc(%rsp)
mov    0x14(%rsp),%r15d
mov    0x18(%rsp),%r12d
movups 0x2c(%rsp),%xmm0
movaps %xmm0,0x50(%rsp)
movdqu 0x1c(%rsp),%xmm0
movdqa %xmm0,0x40(%rsp)
lea    0xd95(%rip),%r13
lea    0xd89(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    %ebp,0xc(%rsp)
mov    %rbx,%rdi
cmovl  %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %ebp,%r15d
mov    %rbx,%rdi
cmovl  %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %ebp,%r12d
mov    %rbx,%rdi
cmovl  %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movd   %ebp,%xmm0
pshufd $0x0,%xmm0,%xmm0
movdqa %xmm0,%xmm1
pcmpgtd 0x50(%rsp),%xmm1
pcmpgtd 0x40(%rsp),%xmm0
packssdw %xmm1,%xmm0
packsswb %xmm0,%xmm0
pmovmskb %xmm0,%r14d
test   $0x1,%r14b
mov    %rbx,%rdi
cmovne %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x2,%r14b
mov    %rbx,%rdi
cmovne %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x4,%r14b
mov    %rbx,%rdi
cmovne %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x8,%r14b
mov    %rbx,%rdi
cmovne %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x10,%r14b
mov    %rbx,%rdi
cmovne %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x20,%r14b
mov    %rbx,%rdi
cmovne %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x40,%r14b
mov    %rbx,%rdi
cmovne %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x80,%r14b
mov    %rbx,%rdi
cmovne %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0x1(%rbp),%eax
cmp    $0x1,%ebp
mov    %eax,%ebp
jg     12f0 <main+0x1a0>
lea    0xc7d(%rip),%rdi
call   1040 <puts@plt>
lea    0xc9e(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x1e,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x28,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x32,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x3c,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x46,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x50,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x5a,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x1a8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [24 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E5\AD\A6\E7\94\9F\E4\BA\BA\E6\95\B0: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [23 x i8] c"\07\E8\AF\B7\E8\BE\93\E5\85\A51~%d\E7\9A\84\E6\95\B0: \00"
@.str.3 = [25 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5%d\E4\BA\BA\E7\9A\84\E5\88\86\E6\95\B0\0A\00"
@.str.4 = [9 x i8] c"%2d\E5\8F\B7: \00"
@.str.5 = [24 x i8] c"\07\E8\AF\B7\E8\BE\93\E5\85\A51~100\E7\9A\84\E6\95\B0: \00"
@.str.6 = [5 x i8] c" *\00"
@.str.7 = [5 x i8] c" \00"
@.str.8 = [45 x i8] c"--------------------------------------------\00"
@.str.9 = [4 x i8] c"%4d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [80 x i32]
%7 = alloca [11 x i32]
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
%8 = bitcast [80 x i32]* %6 to i8*
%9 = bitcast [11 x i32]* %7 to i8*
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
br label %11
11: ; preds = %27, %0
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 1
br i1 %14, label %18, label %15
15: ; preds = %11
%16 = load i32, i32* %4
%17 = icmp sgt i32 %16, 80
br i1 %17, label %18, label %20
18: ; preds = %15, %11
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 80)
br label %20
20: ; preds = %18, %15
br label %21
21: ; preds = %20
%22 = load i32, i32* %4
%23 = icmp slt i32 %22, 1
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = load i32, i32* %4
%26 = icmp sgt i32 %25, 80
br label %27
27: ; preds = %24, %21
%28 = phi i1 [ true, %21 ], [ %26, %24 ]
br i1 %28, label %11, label %29
29: ; preds = %27
%30 = load i32, i32* %4
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 %30)
store i32 0, i32* %2
br label %32
32: ; preds = %95, %29
%33 = load i32, i32* %2
%34 = load i32, i32* %4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %98
36: ; preds = %32
%37 = load i32, i32* %2
%38 = add nsw i32 %37, 1
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %38)
br label %40
40: ; preds = %71, %36
%41 = load i32, i32* %2
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [80 x i32], [80 x i32]* %6, i64 0, i64 %42
%44 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %43)
%45 = load i32, i32* %2
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [80 x i32], [80 x i32]* %6, i64 0, i64 %46
%48 = load i32, i32* %47
%49 = icmp slt i32 %48, 0
br i1 %49, label %56, label %50
50: ; preds = %40
%51 = load i32, i32* %2
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [80 x i32], [80 x i32]* %6, i64 0, i64 %52
%54 = load i32, i32* %53
%55 = icmp sgt i32 %54, 100
br i1 %55, label %56, label %58
56: ; preds = %50, %40
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
br label %58
58: ; preds = %56, %50
br label %59
59: ; preds = %58
%60 = load i32, i32* %2
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [80 x i32], [80 x i32]* %6, i64 0, i64 %61
%63 = load i32, i32* %62
%64 = icmp slt i32 %63, 0
br i1 %64, label %71, label %65
65: ; preds = %59
%66 = load i32, i32* %2
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [80 x i32], [80 x i32]* %6, i64 0, i64 %67
%69 = load i32, i32* %68
%70 = icmp sgt i32 %69, 100
br label %71
71: ; preds = %65, %59
%72 = phi i1 [ true, %59 ], [ %70, %65 ]
br i1 %72, label %40, label %73
73: ; preds = %71
%74 = load i32, i32* %2
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [80 x i32], [80 x i32]* %6, i64 0, i64 %75
%77 = load i32, i32* %76
%78 = sdiv i32 %77, 10
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [11 x i32], [11 x i32]* %7, i64 0, i64 %79
%81 = load i32, i32* %80
%82 = add nsw i32 %81, 1
store i32 %82, i32* %80
%83 = load i32, i32* %5
%84 = icmp sgt i32 %81, %83
br i1 %84, label %85, label %94
85: ; preds = %73
%86 = load i32, i32* %2
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [80 x i32], [80 x i32]* %6, i64 0, i64 %87
%89 = load i32, i32* %88
%90 = sdiv i32 %89, 10
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [11 x i32], [11 x i32]* %7, i64 0, i64 %91
%93 = load i32, i32* %92
store i32 %93, i32* %5
br label %94
94: ; preds = %85, %73
br label %95
95: ; preds = %94
%96 = load i32, i32* %2
%97 = add nsw i32 %96, 1
store i32 %97, i32* %2
br label %32
98: ; preds = %32
%99 = load i32, i32* %5
store i32 %99, i32* %2
br label %100
100: ; preds = %124, %98
%101 = load i32, i32* %2
%102 = icmp sgt i32 %101, 0
br i1 %102, label %103, label %127
103: ; preds = %100
store i32 0, i32* %3
br label %104
104: ; preds = %119, %103
%105 = load i32, i32* %3
%106 = icmp slt i32 %105, 11
br i1 %106, label %107, label %122
107: ; preds = %104
%108 = load i32, i32* %3
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [11 x i32], [11 x i32]* %7, i64 0, i64 %109
%111 = load i32, i32* %110
%112 = load i32, i32* %2
%113 = icmp sge i32 %111, %112
br i1 %113, label %114, label %116
114: ; preds = %107
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %118
116: ; preds = %107
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %118
118: ; preds = %116, %114
br label %119
119: ; preds = %118
%120 = load i32, i32* %3
%121 = add nsw i32 %120, 1
store i32 %121, i32* %3
br label %104
122: ; preds = %104
%123 = call i32 @putchar(i8 signext 10)
br label %124
124: ; preds = %122
%125 = load i32, i32* %2
%126 = add nsw i32 %125, -1
store i32 %126, i32* %2
br label %100
127: ; preds = %100
%128 = call i32 @puts(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %2
br label %129
129: ; preds = %136, %127
%130 = load i32, i32* %2
%131 = icmp slt i32 %130, 11
br i1 %131, label %132, label %139
132: ; preds = %129
%133 = load i32, i32* %2
%134 = mul nsw i32 %133, 10
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %134)
br label %136
136: ; preds = %132
%137 = load i32, i32* %2
%138 = add nsw i32 %137, 1
store i32 %138, i32* %2
br label %129
139: ; preds = %129
%140 = call i32 @putchar(i8 signext 10)
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E5\AD\A6\E7\94\9F\E4\BA\BA\E6\95\B0: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [23 x i8] c"\07\E8\AF\B7\E8\BE\93\E5\85\A51~%d\E7\9A\84\E6\95\B0: \00"
@.str.3 = [25 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5%d\E4\BA\BA\E7\9A\84\E5\88\86\E6\95\B0\0A\00"
@.str.4 = [9 x i8] c"%2d\E5\8F\B7: \00"
@.str.5 = [24 x i8] c"\07\E8\AF\B7\E8\BE\93\E5\85\A51~100\E7\9A\84\E6\95\B0: \00"
@.str.6 = [5 x i8] c" *\00"
@.str.7 = [5 x i8] c" \00"
@.str.8 = [45 x i8] c"--------------------------------------------\00"
@.str.9 = [4 x i8] c"%4d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [80 x i32]
%3 = alloca [11 x i32]
%4 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%5 = bitcast [80 x i32]* %2 to i8*
%6 = bitcast [11 x i32]* %3 to i8*
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %13, %0
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%10 = load i32, i32* %1
%11 = add i32 %10, -81
%12 = icmp ult i32 %11, -80
br i1 %12, label %13, label %18
13: ; preds = %8
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 80)
%15 = load i32, i32* %1
%16 = add i32 %15, -81
%17 = icmp ult i32 %16, -80
br i1 %17, label %8, label %18
18: ; preds = %8, %13
%19 = phi i32 [ %15, %13 ], [ %10, %8 ]
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 %19)
%21 = load i32, i32* %1
%22 = icmp sgt i32 %21, 0
br i1 %22, label %35, label %104
23: ; preds = %50
%24 = icmp sgt i32 %59, 0
br i1 %24, label %25, label %104
25: ; preds = %23
%26 = getelementptr inbounds [11 x i32], [11 x i32]* %3, i64 0, i64 0
%27 = load i32, i32* %26
%28 = getelementptr inbounds [11 x i32], [11 x i32]* %3, i64 0, i64 1
%29 = load i32, i32* %28
%30 = getelementptr inbounds [11 x i32], [11 x i32]* %3, i64 0, i64 2
%31 = load i32, i32* %30
%32 = getelementptr inbounds [11 x i32], [11 x i32]* %3, i64 0, i64 3
%33 = bitcast i32* %32 to <8 x i32>*
%34 = load <8 x i32>, <8 x i32>* %33
br label %63
35: ; preds = %18, %50
%36 = phi i64 [ %38, %50 ], [ 0, %18 ]
%37 = phi i32 [ %59, %50 ], [ 0, %18 ]
%38 = add nuw nsw i64 %36, 1
%39 = trunc i64 %38 to i32
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %39)
%41 = getelementptr inbounds [80 x i32], [80 x i32]* %2, i64 0, i64 %36
br label %42
42: ; preds = %46, %35
%43 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %41)
%44 = load i32, i32* %41
%45 = icmp ugt i32 %44, 100
br i1 %45, label %46, label %50
46: ; preds = %42
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%48 = load i32, i32* %41
%49 = icmp ugt i32 %48, 100
br i1 %49, label %42, label %50
50: ; preds = %42, %46
%51 = phi i32 [ %48, %46 ], [ %44, %42 ]
%52 = trunc i32 %51 to i8
%53 = udiv i8 %52, 10
%54 = zext i8 %53 to i64
%55 = getelementptr inbounds [11 x i32], [11 x i32]* %3, i64 0, i64 %54
%56 = load i32, i32* %55
%57 = add nsw i32 %56, 1
store i32 %57, i32* %55
%58 = icmp sgt i32 %56, %37
%59 = select i1 %58, i32 %57, i32 %37
%60 = load i32, i32* %1
%61 = sext i32 %60 to i64
%62 = icmp slt i64 %38, %61
br i1 %62, label %35, label %23
63: ; preds = %25, %63
%64 = phi i32 [ %102, %63 ], [ %59, %25 ]
%65 = icmp slt i32 %27, %64
%66 = select i1 %65, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0)
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %66)
%68 = icmp slt i32 %29, %64
%69 = select i1 %68, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0)
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %69)
%71 = icmp slt i32 %31, %64
%72 = select i1 %71, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0)
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %72)
%74 = insertelement <8 x i32> poison, i32 %64, i64 0
%75 = shufflevector <8 x i32> %74, <8 x i32> poison, <8 x i32> zeroinitializer
%76 = icmp slt <8 x i32> %34, %75
%77 = extractelement <8 x i1> %76, i64 0
%78 = select i1 %77, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0)
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %78)
%80 = extractelement <8 x i1> %76, i64 1
%81 = select i1 %80, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0)
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %81)
%83 = extractelement <8 x i1> %76, i64 2
%84 = select i1 %83, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0)
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %84)
%86 = extractelement <8 x i1> %76, i64 3
%87 = select i1 %86, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0)
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %87)
%89 = extractelement <8 x i1> %76, i64 4
%90 = select i1 %89, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0)
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %90)
%92 = extractelement <8 x i1> %76, i64 5
%93 = select i1 %92, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0)
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %93)
%95 = extractelement <8 x i1> %76, i64 6
%96 = select i1 %95, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0)
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %96)
%98 = extractelement <8 x i1> %76, i64 7
%99 = select i1 %98, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0)
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %99)
%101 = call i32 @putchar(i8 signext 10)
%102 = add nsw i32 %64, -1
%103 = icmp sgt i32 %64, 1
br i1 %103, label %63, label %104
104: ; preds = %63, %18, %23
%105 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0))
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 0)
%107 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 10)
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 20)
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 30)
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 40)
%111 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 50)
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 60)
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 70)
%114 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 80)
%115 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 90)
%116 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 100)
%117 = call i32 @putchar(i8 signext 10)
ret i32 0
}