#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 EOF;
int getchar();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
main() {
  int lengths[10];
  int c, i, j, state, len, max;
  for (i = 0; i < 10; i++) {
    lengths[i] = 0;
  }
  state = 0;
  len = max = 0;
  while ((c = getchar()) != EOF) {
    if (c == ' ' || c == '\t' || c == '\n') {
      if (state == 1 && len <= 10) {
        lengths[len - 1]++;
        if (lengths[len - 1] > max) {
          max = lengths[len - 1];
        }
        len = 0;
      }
      state = 0;
    } else {
      state = 1;
      len++;
    }
  }
  for (i = 0; i < 10; i++) {
    printf("%3d", i + 1);
  }
  putchar('\n');
  for (i = 0; i < max; i++) {
    for (j = 0; j < 10; j++) {
      if (lengths[j] == 0) {
        printf("   ");
      } else {
        printf("  *");
        lengths[j]--;
      }
    }
    putchar('\n');
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0xa,-0x38(%rbp)
jge    116a <main+0x3a>
movslq -0x38(%rbp),%rax
movl   $0x0,-0x30(%rbp,%rax,4)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1146 <main+0x16>
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x44(%rbp)
mov    $0x0,%al
call   1050 <getchar@plt>
mov    %eax,-0x34(%rbp)
mov    0x2e58(%rip),%rcx
cmp    (%rcx),%eax
je     1229 <main+0xf9>
cmpl   $0x20,-0x34(%rbp)
je     11b6 <main+0x86>
cmpl   $0x9,-0x34(%rbp)
je     11b6 <main+0x86>
cmpl   $0xa,-0x34(%rbp)
jne    1214 <main+0xe4>
cmpl   $0x1,-0x40(%rbp)
jne    1208 <main+0xd8>
cmpl   $0xa,-0x44(%rbp)
jg     1208 <main+0xd8>
mov    -0x44(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x30(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x30(%rbp,%rax,4)
mov    -0x44(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x30(%rbp,%rax,4),%eax
cmp    -0x48(%rbp),%eax
jle    1201 <main+0xd1>
mov    -0x44(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x30(%rbp,%rax,4),%eax
mov    %eax,-0x48(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x40(%rbp)
jmp    1224 <main+0xf4>
movl   $0x1,-0x40(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    117f <main+0x4f>
movl   $0x0,-0x38(%rbp)
cmpl   $0xa,-0x38(%rbp)
jge    125c <main+0x12c>
mov    -0x38(%rbp),%esi
add    $0x1,%esi
lea    0xdb9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1230 <main+0x100>
mov    $0xa,%edi
call   1030 <putchar@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    12f4 <main+0x1c4>
movl   $0x0,-0x3c(%rbp)
cmpl   $0xa,-0x3c(%rbp)
jge    12dc <main+0x1ac>
movslq -0x3c(%rbp),%rax
cmpl   $0x0,-0x30(%rbp,%rax,4)
jne    12ac <main+0x17c>
lea    0xd64(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12c9 <main+0x199>
lea    0xd55(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x3c(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x30(%rbp,%rax,4)
jmp    12ce <main+0x19e>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1280 <main+0x150>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    126d <main+0x13d>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movq   $0x0,0x40(%rsp)
xor    %r15d,%r15d
xor    %eax,%eax
call   1050 <getchar@plt>
mov    0x2e83(%rip),%r12
cmp    (%r12),%eax
jne    1500 <main+0x3d0>
lea    0xe8a(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
test   %r15d,%r15d
jle    14ef <main+0x3bf>
mov    %r15d,0x50(%rsp)
mov    0x20(%rsp),%ecx
mov    0x24(%rsp),%ebp
mov    0x28(%rsp),%eax
mov    %eax,0x8(%rsp)
mov    0x2c(%rsp),%eax
mov    %eax,0x4(%rsp)
mov    0x30(%rsp),%r15d
mov    0x34(%rsp),%r14d
mov    0x38(%rsp),%r13d
mov    0x3c(%rsp),%edx
mov    0x40(%rsp),%eax
mov    %eax,0xc(%rsp)
mov    0x44(%rsp),%r12d
mov    %ecx,0x14(%rsp)
jmp    12a5 <main+0x175>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0xd8d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
addl   $0xffffffff,0x50(%rsp)
mov    %r13d,%edx
mov    %r14d,%r13d
mov    %r15d,%r14d
mov    0x54(%rsp),%r15d
mov    0x18(%rsp),%ecx
je     14b3 <main+0x383>
mov    %edx,0x10(%rsp)
mov    %r12d,0x1c(%rsp)
test   %ecx,%ecx
je     12e0 <main+0x1b0>
lea    0xd4f(%rip),%rdi
mov    %ecx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%eax
add    $0xffffffff,%ebx
mov    %ebx,0x18(%rsp)
mov    %ebx,0x14(%rsp)
jmp    12f8 <main+0x1c8>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movl   $0x0,0x18(%rsp)
lea    0xd15(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%eax
mov    0xc(%rsp),%r12d
test   %eax,%eax
je     1320 <main+0x1f0>
lea    0xd00(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0xffffffff,%ebp
jmp    132e <main+0x1fe>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0xcdd(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%ebx
test   %ebx,%ebx
je     1350 <main+0x220>
lea    0xccb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0xffffffff,%ebx
mov    %ebx,0x8(%rsp)
jmp    135e <main+0x22e>
nopl   (%rax)
lea    0xcad(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
test   %eax,%eax
je     1380 <main+0x250>
lea    0xc9b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
add    $0xffffffff,%eax
jmp    1392 <main+0x262>
nopl   (%rax)
lea    0xc7d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
mov    %r12d,%ebx
test   %r15d,%r15d
mov    %eax,0x4(%rsp)
je     13e0 <main+0x2b0>
lea    0xc63(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0xffffffff,%r15d
test   %r14d,%r14d
je     13f3 <main+0x2c3>
lea    0xc4c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0xffffffff,%r14d
test   %r13d,%r13d
je     1406 <main+0x2d6>
lea    0xc35(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0xffffffff,%r13d
jmp    1414 <main+0x2e4>
lea    0xc1d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
test   %r14d,%r14d
jne    13b5 <main+0x285>
lea    0xc0a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
test   %r13d,%r13d
jne    13cc <main+0x29c>
lea    0xbf7(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%eax
test   %eax,%eax
je     1440 <main+0x310>
lea    0xbe5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%r12d
add    $0xffffffff,%r12d
jmp    1453 <main+0x323>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0xbbd(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%r12d
test   %ebx,%ebx
mov    %r15d,0x54(%rsp)
mov    %r14d,%r15d
mov    %r13d,%r14d
mov    %r12d,%r13d
je     1480 <main+0x350>
lea    0xb9c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0xffffffff,%ebx
mov    %ebx,0xc(%rsp)
jmp    148e <main+0x35e>
nopl   0x0(%rax)
lea    0xb7d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%r12d
test   %r12d,%r12d
je     1270 <main+0x140>
lea    0xb65(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0xffffffff,%r12d
jmp    127e <main+0x14e>
mov    0x14(%rsp),%eax
mov    %eax,0x20(%rsp)
mov    %ebp,0x24(%rsp)
mov    0x8(%rsp),%eax
mov    %eax,0x28(%rsp)
mov    0x4(%rsp),%eax
mov    %eax,0x2c(%rsp)
mov    %r15d,0x30(%rsp)
mov    %r14d,0x34(%rsp)
mov    %r13d,0x38(%rsp)
mov    %edx,0x3c(%rsp)
mov    0xc(%rsp),%eax
mov    %eax,0x40(%rsp)
mov    %r12d,0x44(%rsp)
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movabs $0x100000600,%r14
xor    %r15d,%r15d
xor    %ebx,%ebx
xor    %ecx,%ecx
jmp    153b <main+0x40b>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%ebx
mov    $0x1,%ebp
xor    %eax,%eax
call   1050 <getchar@plt>
mov    %ebp,%ecx
cmp    (%r12),%eax
je     116f <main+0x3f>
cmp    $0x20,%eax
ja     1520 <main+0x3f0>
mov    %eax,%eax
bt     %rax,%r14
jae    1520 <main+0x3f0>
xor    %ebp,%ebp
cmp    $0x1,%ecx
jne    1528 <main+0x3f8>
cmp    $0xa,%ebx
jg     1528 <main+0x3f8>
movslq %ebx,%rax
mov    0x1c(%rsp,%rax,4),%ecx
lea    0x1(%rcx),%edx
mov    %edx,0x1c(%rsp,%rax,4)
cmp    %r15d,%ecx
cmovge %edx,%r15d
xor    %ebp,%ebp
xor    %ebx,%ebx
jmp    1528 <main+0x3f8>

LLVM IR (-O0):
@EOF = global i32 0
@.str = [4 x i8] c"%3d\00"
@.str.1 = [4 x i8] c" \00"
@.str.2 = [4 x i8] c" *\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
br label %9
9: ; preds = %16, %0
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %19
12: ; preds = %9
%13 = load i32, i32* %4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %14
store i32 0, i32* %15
br label %16
16: ; preds = %12
%17 = load i32, i32* %4
%18 = add nsw i32 %17, 1
store i32 %18, i32* %4
br label %9
19: ; preds = %9
store i32 0, i32* %6
store i32 0, i32* %8
store i32 0, i32* %7
br label %20
20: ; preds = %64, %19
%21 = call i32 (...) @getchar()
store i32 %21, i32* %3
%22 = load i32, i32* @EOF
%23 = icmp ne i32 %21, %22
br i1 %23, label %24, label %65
24: ; preds = %20
%25 = load i32, i32* %3
%26 = icmp eq i32 %25, 32
br i1 %26, label %33, label %27
27: ; preds = %24
%28 = load i32, i32* %3
%29 = icmp eq i32 %28, 9
br i1 %29, label %33, label %30
30: ; preds = %27
%31 = load i32, i32* %3
%32 = icmp eq i32 %31, 10
br i1 %32, label %33, label %61
33: ; preds = %30, %27, %24
%34 = load i32, i32* %6
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %60
36: ; preds = %33
%37 = load i32, i32* %7
%38 = icmp sle i32 %37, 10
br i1 %38, label %39, label %60
39: ; preds = %36
%40 = load i32, i32* %7
%41 = sub nsw i32 %40, 1
%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 = add nsw i32 %44, 1
store i32 %45, i32* %43
%46 = load i32, i32* %7
%47 = sub nsw i32 %46, 1
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %48
%50 = load i32, i32* %49
%51 = load i32, i32* %8
%52 = icmp sgt i32 %50, %51
br i1 %52, label %53, label %59
53: ; preds = %39
%54 = load i32, i32* %7
%55 = sub nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %56
%58 = load i32, i32* %57
store i32 %58, i32* %8
br label %59
59: ; preds = %53, %39
store i32 0, i32* %7
br label %60
60: ; preds = %59, %36, %33
store i32 0, i32* %6
br label %64
61: ; preds = %30
store i32 1, i32* %6
%62 = load i32, i32* %7
%63 = add nsw i32 %62, 1
store i32 %63, i32* %7
br label %64
64: ; preds = %61, %60
br label %20
65: ; preds = %20
store i32 0, i32* %4
br label %66
66: ; preds = %73, %65
%67 = load i32, i32* %4
%68 = icmp slt i32 %67, 10
br i1 %68, label %69, label %76
69: ; preds = %66
%70 = load i32, i32* %4
%71 = add nsw i32 %70, 1
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %71)
br label %73
73: ; preds = %69
%74 = load i32, i32* %4
%75 = add nsw i32 %74, 1
store i32 %75, i32* %4
br label %66
76: ; preds = %66
%77 = call i32 @putchar(i8 signext 10)
store i32 0, i32* %4
br label %78
78: ; preds = %107, %76
%79 = load i32, i32* %4
%80 = load i32, i32* %8
%81 = icmp slt i32 %79, %80
br i1 %81, label %82, label %110
82: ; preds = %78
store i32 0, i32* %5
br label %83
83: ; preds = %102, %82
%84 = load i32, i32* %5
%85 = icmp slt i32 %84, 10
br i1 %85, label %86, label %105
86: ; preds = %83
%87 = load i32, i32* %5
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %88
%90 = load i32, i32* %89
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %86
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %101
94: ; preds = %86
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%96 = load i32, i32* %5
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %97
%99 = load i32, i32* %98
%100 = add nsw i32 %99, -1
store i32 %100, i32* %98
br label %101
101: ; preds = %94, %92
br label %102
102: ; preds = %101
%103 = load i32, i32* %5
%104 = add nsw i32 %103, 1
store i32 %104, i32* %5
br label %83
105: ; preds = %83
%106 = call i32 @putchar(i8 signext 10)
br label %107
107: ; preds = %105
%108 = load i32, i32* %4
%109 = add nsw i32 %108, 1
store i32 %109, i32* %4
br label %78
110: ; preds = %78
%111 = load i32, i32* %1
ret i32 %111
}

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