#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*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strlen(char *);
main() {
  int c;
  int i = 0;
  int x = 0;
  int wordLength[30];
  char currentWord[20];
  for (x = 0; x < 30; x++) {
    wordLength[x] = 0;
  }
  while ((c = getchar()) != EOF) {
    if (c == ' ' || c == '\n' || c == '\t') {
      printf("found word %s of length %d \n", currentWord,
             (int)strlen(currentWord));
      wordLength[(int)strlen(currentWord)]++;
      i = 0;
      memset(currentWord, 0, 20);
    } else {
      currentWord[i] = c;
      ++i;
    }
  }
  for (x = 0; x < 30; x++) {
    printf("length %d : %d words \n", x, wordLength[x]);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x1e,-0x10(%rbp)
jge    118e <main+0x4e>
movslq -0x10(%rbp),%rax
movl   $0x0,-0x90(%rbp,%rax,4)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1167 <main+0x27>
jmp    1193 <main+0x53>
mov    $0x0,%al
call   1060 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    0x2e44(%rip),%rcx
cmp    (%rcx),%eax
je     1257 <main+0x117>
cmpl   $0x20,-0x8(%rbp)
je     11ca <main+0x8a>
cmpl   $0xa,-0x8(%rbp)
je     11ca <main+0x8a>
cmpl   $0x9,-0x8(%rbp)
jne    1239 <main+0xf9>
lea    -0xb0(%rbp),%rax
mov    %rax,-0xb8(%rbp)
lea    -0xb0(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xb8(%rbp),%rsi
mov    %eax,%edx
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0xb0(%rbp),%rdi
call   1030 <strlen@plt>
cltq
mov    -0x90(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x90(%rbp,%rax,4)
movl   $0x0,-0xc(%rbp)
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1050 <memset@plt>
jmp    1252 <main+0x112>
mov    -0x8(%rbp),%eax
mov    %al,%cl
movslq -0xc(%rbp),%rax
mov    %cl,-0xb0(%rbp,%rax,1)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1193 <main+0x53>
movl   $0x0,-0x10(%rbp)
cmpl   $0x1e,-0x10(%rbp)
jge    1292 <main+0x152>
mov    -0x10(%rbp),%esi
movslq -0x10(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%edx
lea    0xda0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    125e <main+0x11e>
mov    -0x4(%rbp),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa0,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x60(%rsp)
movq   $0x0,0x70(%rsp)
xor    %eax,%eax
call   1060 <getchar@plt>
mov    0x2e5c(%rip),%r15
cmp    (%r15),%eax
jne    13e5 <main+0x2a5>
mov    (%rsp),%edx
lea    0xe7e(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%edx
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%edx
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%edx
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%edx
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%edx
mov    %rbx,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%edx
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%edx
mov    %rbx,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%edx
mov    %rbx,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp),%edx
mov    %rbx,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x28(%rsp),%edx
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2c(%rsp),%edx
mov    %rbx,%rdi
mov    $0xb,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x30(%rsp),%edx
mov    %rbx,%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x34(%rsp),%edx
mov    %rbx,%rdi
mov    $0xd,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x38(%rsp),%edx
mov    %rbx,%rdi
mov    $0xe,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x3c(%rsp),%edx
mov    %rbx,%rdi
mov    $0xf,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x40(%rsp),%edx
mov    %rbx,%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x44(%rsp),%edx
mov    %rbx,%rdi
mov    $0x11,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x48(%rsp),%edx
mov    %rbx,%rdi
mov    $0x12,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4c(%rsp),%edx
mov    %rbx,%rdi
mov    $0x13,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x50(%rsp),%edx
mov    %rbx,%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x54(%rsp),%edx
mov    %rbx,%rdi
mov    $0x15,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x58(%rsp),%edx
mov    %rbx,%rdi
mov    $0x16,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x5c(%rsp),%edx
mov    %rbx,%rdi
mov    $0x17,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x60(%rsp),%edx
mov    %rbx,%rdi
mov    $0x18,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x64(%rsp),%edx
mov    %rbx,%rdi
mov    $0x19,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x68(%rsp),%edx
mov    %rbx,%rdi
mov    $0x1a,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x6c(%rsp),%edx
mov    %rbx,%rdi
mov    $0x1b,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x70(%rsp),%edx
mov    %rbx,%rdi
mov    $0x1c,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x74(%rsp),%edx
mov    %rbx,%rdi
mov    $0x1d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
movabs $0x100000600,%r12
lea    0x80(%rsp),%r13
lea    0xc02(%rip),%r14
xor    %ebx,%ebx
jmp    142d <main+0x2ed>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movslq %ebx,%rbx
mov    %al,0x80(%rsp,%rbx,1)
add    $0x1,%ebx
xor    %eax,%eax
call   1060 <getchar@plt>
cmp    (%r15),%eax
je     1195 <main+0x55>
cmp    $0x20,%eax
ja     1410 <main+0x2d0>
mov    %eax,%ecx
bt     %rcx,%r12
jae    1410 <main+0x2d0>
mov    %r13,%rdi
call   1030 <strlen@plt>
xor    %ebx,%ebx
mov    %r14,%rdi
mov    %r13,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
call   1030 <strlen@plt>
cltq
addl   $0x1,(%rsp,%rax,4)
mov    %r13,%rdi
xor    %esi,%esi
mov    $0x14,%edx
call   1050 <memset@plt>
jmp    141d <main+0x2dd>

LLVM IR (-O0):
@EOF = global i32 0
@.str = [29 x i8] c"found word %s of length %d \0A\00"
@.str.1 = [23 x i8] c"length %d : %d words \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [30 x i32]
%6 = alloca [20 x i8]
store i32 0, i32* %1
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %4
br label %7
7: ; preds = %14, %0
%8 = load i32, i32* %4
%9 = icmp slt i32 %8, 30
br i1 %9, label %10, label %17
10: ; preds = %7
%11 = load i32, i32* %4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [30 x i32], [30 x i32]* %5, i64 0, i64 %12
store i32 0, i32* %13
br label %14
14: ; preds = %10
%15 = load i32, i32* %4
%16 = add nsw i32 %15, 1
store i32 %16, i32* %4
br label %7
17: ; preds = %7
br label %18
18: ; preds = %54, %17
%19 = call i32 (...) @getchar()
store i32 %19, i32* %2
%20 = load i32, i32* @EOF
%21 = icmp ne i32 %19, %20
br i1 %21, label %22, label %55
22: ; preds = %18
%23 = load i32, i32* %2
%24 = icmp eq i32 %23, 32
br i1 %24, label %31, label %25
25: ; preds = %22
%26 = load i32, i32* %2
%27 = icmp eq i32 %26, 10
br i1 %27, label %31, label %28
28: ; preds = %25
%29 = load i32, i32* %2
%30 = icmp eq i32 %29, 9
br i1 %30, label %31, label %46
31: ; preds = %28, %25, %22
%32 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%33 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%34 = call i64 @strlen(i8* %33)
%35 = trunc i64 %34 to i32
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %32, i32 %35)
%37 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%38 = call i64 @strlen(i8* %37)
%39 = trunc i64 %38 to i32
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [30 x i32], [30 x i32]* %5, i64 0, i64 %40
%42 = load i32, i32* %41
%43 = add nsw i32 %42, 1
store i32 %43, i32* %41
store i32 0, i32* %3
%44 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%45 = call i32 @memset(i8* %44, i32 0, i32 20)
br label %54
46: ; preds = %28
%47 = load i32, i32* %2
%48 = trunc i32 %47 to i8
%49 = load i32, i32* %3
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 %50
store i8 %48, i8* %51
%52 = load i32, i32* %3
%53 = add nsw i32 %52, 1
store i32 %53, i32* %3
br label %54
54: ; preds = %46, %31
br label %18
55: ; preds = %18
store i32 0, i32* %4
br label %56
56: ; preds = %66, %55
%57 = load i32, i32* %4
%58 = icmp slt i32 %57, 30
br i1 %58, label %59, label %69
59: ; preds = %56
%60 = load i32, i32* %4
%61 = load i32, i32* %4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [30 x i32], [30 x i32]* %5, i64 0, i64 %62
%64 = load i32, i32* %63
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32 %60, i32 %64)
br label %66
66: ; preds = %59
%67 = load i32, i32* %4
%68 = add nsw i32 %67, 1
store i32 %68, i32* %4
br label %56
69: ; preds = %56
%70 = load i32, i32* %1
ret i32 %70
}

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