#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 main(void) {
  int character, state, length, i, max_height, j;
  max_height = 0;
  int wordsize[20] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                      0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
  state = 0;
  length = 0;
  while ((character = getchar()) != EOF) {
    if (state == 0) {
      if (character != ' ' && character != '\t' && character != '\n') {
        state = 1;
        length++;
      }
    } else if (state == 1) {
      if (character == ' ' || character == '\t' || character == '\n') {
        wordsize[length - 1]++;
        state = 0;
        length = 0;
      } else {
        length++;
      }
    }
  }
  for (i = 0; i < 20; i++) {
    if (wordsize[i] > max_height) {
      max_height = wordsize[i];
    }
  }
  for (i = max_height; i > 0; i--) {
    for (j = 1; j <= 20; j++) {
      if (wordsize[j - 1] >= i) {
        printf(" #");
      } else {
        printf("  ");
      }
    }
    printf("\n");
  }
  for (j = 1; j <= 20; j++) {
    printf(" %d", j);
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x18(%rbp)
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1040 <memset@plt>
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    $0x0,%al
call   1050 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    0x2e73(%rip),%rcx
cmp    (%rcx),%eax
je     1220 <main+0xf0>
cmpl   $0x0,-0xc(%rbp)
jne    11ba <main+0x8a>
cmpl   $0x20,-0x8(%rbp)
je     11b5 <main+0x85>
cmpl   $0x9,-0x8(%rbp)
je     11b5 <main+0x85>
cmpl   $0xa,-0x8(%rbp)
je     11b5 <main+0x85>
movl   $0x1,-0xc(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    121b <main+0xeb>
cmpl   $0x1,-0xc(%rbp)
jne    1216 <main+0xe6>
cmpl   $0x20,-0x8(%rbp)
je     11e2 <main+0xb2>
cmpl   $0x9,-0x8(%rbp)
je     11e2 <main+0xb2>
cmpl   $0xa,-0x8(%rbp)
jne    1208 <main+0xd8>
mov    -0x10(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x70(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x70(%rbp,%rax,4)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
jmp    1211 <main+0xe1>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1216 <main+0xe6>
jmp    121b <main+0xeb>
jmp    1164 <main+0x34>
movl   $0x0,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jge    1260 <main+0x130>
movslq -0x14(%rbp),%rax
mov    -0x70(%rbp,%rax,4),%eax
cmp    -0x18(%rbp),%eax
jle    124d <main+0x11d>
movslq -0x14(%rbp),%rax
mov    -0x70(%rbp,%rax,4),%eax
mov    %eax,-0x18(%rbp)
jmp    1252 <main+0x122>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1227 <main+0xf7>
mov    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jle    12e6 <main+0x1b6>
movl   $0x1,-0x1c(%rbp)
cmpl   $0x14,-0x1c(%rbp)
jg     12ca <main+0x19a>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x70(%rbp,%rax,4),%eax
cmp    -0x14(%rbp),%eax
jl     12a9 <main+0x179>
lea    0xd63(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12b7 <main+0x187>
lea    0xd53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12bc <main+0x18c>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1277 <main+0x147>
lea    0xd35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    1266 <main+0x136>
movl   $0x1,-0x1c(%rbp)
cmpl   $0x14,-0x1c(%rbp)
jg     1316 <main+0x1e6>
mov    -0x1c(%rbp),%esi
lea    0xd07(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12ed <main+0x1bd>
lea    0xce9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
pxor   %xmm0,%xmm0
movdqa %xmm0,0x90(%rsp)
movdqa %xmm0,0x80(%rsp)
movdqa %xmm0,0x70(%rsp)
movdqa %xmm0,0x60(%rsp)
movdqa %xmm0,0x50(%rsp)
xor    %ebp,%ebp
xor    %eax,%eax
call   1050 <getchar@plt>
mov    0x2e6f(%rip),%r15
cmp    (%r15),%eax
jne    1199 <main+0x69>
xor    %eax,%eax
xor    %ebx,%ebx
xor    %ecx,%ecx
pxor   %xmm0,%xmm0
pxor   %xmm2,%xmm2
pxor   %xmm1,%xmm1
pxor   %xmm4,%xmm4
jmp    1236 <main+0x106>
movabs $0x100000600,%r14
xor    %ebp,%ebp
xor    %ebx,%ebx
jmp    11c4 <main+0x94>
nopl   0x0(%rax)
add    $0x1,%ebp
mov    $0x1,%ebx
xor    %eax,%eax
call   1050 <getchar@plt>
cmp    (%r15),%eax
je     1201 <main+0xd1>
test   %ebx,%ebx
je     11f0 <main+0xc0>
cmp    $0x20,%eax
ja     11b0 <main+0x80>
mov    %eax,%eax
bt     %rax,%r14
jae    11b0 <main+0x80>
movslq %ebp,%rax
addl   $0x1,0x4c(%rsp,%rax,4)
xor    %ebx,%ebx
xor    %ebp,%ebp
jmp    11b8 <main+0x88>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    $0x20,%eax
ja     11b0 <main+0x80>
xor    %ebx,%ebx
mov    %eax,%eax
bt     %rax,%r14
jb     11b8 <main+0x88>
jmp    11b0 <main+0x80>
mov    0x50(%rsp),%edx
mov    0x54(%rsp),%ebp
mov    0x58(%rsp),%eax
mov    0x5c(%rsp),%ebx
movdqa 0x90(%rsp),%xmm1
movdqa 0x80(%rsp),%xmm2
movdqa 0x70(%rsp),%xmm0
movdqa 0x60(%rsp),%xmm4
xor    %ecx,%ecx
test   %edx,%edx
cmovns %edx,%ecx
movdqa %xmm4,%xmm3
pcmpgtd %xmm2,%xmm3
pand   %xmm3,%xmm4
pandn  %xmm2,%xmm3
por    %xmm4,%xmm3
movdqa %xmm0,%xmm2
pcmpgtd %xmm1,%xmm2
pand   %xmm2,%xmm0
pandn  %xmm1,%xmm2
por    %xmm0,%xmm2
movdqa %xmm3,%xmm0
pcmpgtd %xmm2,%xmm0
pand   %xmm0,%xmm3
pandn  %xmm2,%xmm0
por    %xmm3,%xmm0
pshufd $0xee,%xmm0,%xmm1
movdqa %xmm0,%xmm2
pcmpgtd %xmm1,%xmm2
pand   %xmm2,%xmm0
pandn  %xmm1,%xmm2
por    %xmm0,%xmm2
pshufd $0x55,%xmm2,%xmm0
movdqa %xmm2,%xmm1
pcmpgtd %xmm0,%xmm1
pand   %xmm1,%xmm2
pandn  %xmm0,%xmm1
por    %xmm2,%xmm1
movd   %xmm1,%edx
cmp    %ebx,%edx
cmovg  %edx,%ebx
cmp    %eax,%ebx
cmovle %eax,%ebx
cmp    %ebp,%ebx
cmovle %ebp,%ebx
cmp    %ecx,%ebx
cmovle %ecx,%ebx
test   %ebx,%ebx
je     14fc <main+0x3cc>
mov    0x50(%rsp),%eax
mov    %eax,0x4c(%rsp)
mov    0x54(%rsp),%eax
mov    %eax,0x48(%rsp)
mov    0x58(%rsp),%eax
mov    %eax,0x44(%rsp)
mov    0x5c(%rsp),%eax
mov    %eax,0x40(%rsp)
mov    0x60(%rsp),%eax
mov    %eax,0x3c(%rsp)
mov    0x64(%rsp),%eax
mov    %eax,0x38(%rsp)
mov    0x68(%rsp),%eax
mov    %eax,0x34(%rsp)
mov    0x6c(%rsp),%eax
mov    %eax,0x30(%rsp)
mov    0x70(%rsp),%eax
mov    %eax,0x2c(%rsp)
mov    0x74(%rsp),%eax
mov    %eax,0x28(%rsp)
mov    0x78(%rsp),%eax
mov    %eax,0x24(%rsp)
mov    0x7c(%rsp),%eax
mov    %eax,0x20(%rsp)
mov    0x80(%rsp),%eax
mov    %eax,0x1c(%rsp)
mov    0x84(%rsp),%eax
mov    %eax,0x18(%rsp)
mov    0x88(%rsp),%eax
mov    %eax,0x14(%rsp)
mov    0x8c(%rsp),%eax
mov    %eax,0x10(%rsp)
mov    0x90(%rsp),%eax
mov    %eax,0xc(%rsp)
mov    0x94(%rsp),%r12d
mov    0x98(%rsp),%r13d
mov    0x9c(%rsp),%ebp
lea    0xc8a(%rip),%r14
lea    0xc80(%rip),%r15
cmp    %ebx,0x4c(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x48(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x44(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x40(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x3c(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x38(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x34(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x30(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x2c(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x28(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x24(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x20(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x1c(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x18(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x14(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0x10(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,0xc(%rsp)
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,%r12d
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,%r13d
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    %ebx,%ebp
mov    %r15,%rdi
cmovl  %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0x1(%rbx),%eax
cmp    $0x1,%ebx
mov    %eax,%ebx
jg     1380 <main+0x250>
lea    0xb03(%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    %rbx,%rdi
mov    $0xb,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xe,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xf,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x11,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x12,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x13,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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