#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 *, ...);
main() {
  int c, i, j, nwhite, nother;
  int ndigit[10], nchars[26];
  nwhite = nother = 0;
  for (i = 0; i < 10; i++)
    ndigit[i] = 0;
  for (i = 0; i < 26; i++)
    nchars[i] = 0;
  while ((c = getchar()) != EOF)
    if (c >= '0' && c <= '9')
      ++ndigit[c - '0'];
    else if (c >= 'a' && c <= 'z')
      ++nchars[c - 'a'];
    else if (c == ' ' || c == '\n' || c == '\t')
      ++nwhite;
    else
      ++nother;
  printf("digits = ");
  for (i = 0; i < 10; i++)
    printf(" %d", ndigit[i]);
  printf(", white space = %d, other = %d\n", nwhite, nother);
  printf("\n\n and now here is a histogram of it...\n\n");
  for (i = 0; i < 10; i++) {
    printf("%d = ", i);
    for (j = 0; j < ndigit[i]; j++)
      printf("-");
    printf("\n");
  }
  for (i = 0; i < 26; i++) {
    printf("%c = ", i + 'a');
    for (j = 0; j < nchars[i]; j++)
      printf("-");
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    116b <main+0x4b>
movslq -0xc(%rbp),%rax
movl   $0x0,-0x40(%rbp,%rax,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1147 <main+0x27>
movl   $0x0,-0xc(%rbp)
cmpl   $0x1a,-0xc(%rbp)
jge    1199 <main+0x79>
movslq -0xc(%rbp),%rax
movl   $0x0,-0xb0(%rbp,%rax,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1172 <main+0x52>
jmp    119e <main+0x7e>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    0x2e39(%rip),%rcx
cmp    (%rcx),%eax
je     1259 <main+0x139>
cmpl   $0x30,-0x8(%rbp)
jl     11e3 <main+0xc3>
cmpl   $0x39,-0x8(%rbp)
jg     11e3 <main+0xc3>
mov    -0x8(%rbp),%eax
sub    $0x30,%eax
cltq
mov    -0x40(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x40(%rbp,%rax,4)
jmp    1254 <main+0x134>
cmpl   $0x61,-0x8(%rbp)
jl     1215 <main+0xf5>
cmpl   $0x7a,-0x8(%rbp)
jg     1215 <main+0xf5>
mov    -0x8(%rbp),%eax
sub    $0x61,%eax
cltq
mov    -0xb0(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0xb0(%rbp,%rax,4)
jmp    124f <main+0x12f>
cmpl   $0x20,-0x8(%rbp)
je     1233 <main+0x113>
cmpl   $0xa,-0x8(%rbp)
je     1233 <main+0x113>
cmpl   $0x9,-0x8(%rbp)
jne    1241 <main+0x121>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    124a <main+0x12a>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    124f <main+0x12f>
jmp    1254 <main+0x134>
jmp    119e <main+0x7e>
lea    0xda0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    129c <main+0x17c>
movslq -0xc(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%esi
lea    0xd83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    126e <main+0x14e>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
lea    0xd65(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd77(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    1330 <main+0x210>
mov    -0xc(%rbp),%esi
lea    0xd7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
movslq -0xc(%rbp),%rcx
cmp    -0x40(%rbp,%rcx,4),%eax
jge    1314 <main+0x1f4>
lea    0xd5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12e7 <main+0x1c7>
lea    0xd3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12c5 <main+0x1a5>
movl   $0x0,-0xc(%rbp)
cmpl   $0x1a,-0xc(%rbp)
jge    13a8 <main+0x288>
mov    -0xc(%rbp),%esi
add    $0x61,%esi
lea    0xd12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
movslq -0xc(%rbp),%rcx
cmp    -0xb0(%rbp,%rcx,4),%eax
jge    138c <main+0x26c>
lea    0xce7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    135c <main+0x23c>
lea    0xcc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1337 <main+0x217>
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movq   $0x0,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0xa0(%rsp)
movq   $0x0,0xb0(%rsp)
xor    %r14d,%r14d
xor    %eax,%eax
call   1060 <getchar@plt>
mov    0x2e3d(%rip),%rbx
mov    $0x0,%edx
mov    $0x0,%esi
mov    $0x0,%edi
mov    $0x0,%r8d
mov    $0x0,%r11d
mov    $0x0,%r12d
mov    $0x0,%r15d
mov    $0x0,%r9d
mov    $0x0,%r13d
mov    $0x0,%ebp
mov    $0x0,%ecx
cmp    (%rbx),%eax
je     128a <main+0x14a>
movabs $0x100000600,%r14
xor    %r15d,%r15d
xor    %ebp,%ebp
jmp    1222 <main+0xe2>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %ecx,%eax
addl   $0x1,0x20(%rsp,%rax,4)
xor    %eax,%eax
call   1060 <getchar@plt>
cmp    (%rbx),%eax
je     1258 <main+0x118>
lea    -0x30(%rax),%ecx
cmp    $0x9,%ecx
jbe    1210 <main+0xd0>
lea    -0x61(%rax),%ecx
cmp    $0x19,%ecx
ja     1240 <main+0x100>
mov    %ecx,%eax
addl   $0x1,0x50(%rsp,%rax,4)
jmp    1217 <main+0xd7>
nopl   0x0(%rax,%rax,1)
cmp    $0x20,%eax
ja     1252 <main+0x112>
mov    %eax,%eax
bt     %rax,%r14
jae    1252 <main+0x112>
add    $0x1,%ebp
jmp    1217 <main+0xd7>
add    $0x1,%r15d
jmp    1217 <main+0xd7>
mov    %r15d,%ecx
mov    0x20(%rsp),%r13d
mov    0x24(%rsp),%r9d
mov    0x28(%rsp),%r15d
mov    0x2c(%rsp),%r12d
mov    0x30(%rsp),%r11d
mov    0x34(%rsp),%r8d
mov    0x38(%rsp),%edi
mov    0x3c(%rsp),%esi
mov    0x40(%rsp),%edx
mov    0x44(%rsp),%r14d
mov    %r11d,0x4(%rsp)
mov    %r8d,0x8(%rsp)
mov    %edi,0xc(%rsp)
mov    %esi,0x10(%rsp)
mov    %edx,0x14(%rsp)
mov    %r14d,0x18(%rsp)
mov    %ecx,0x1c(%rsp)
lea    0xd50(%rip),%rdi
xor    %eax,%eax
mov    %r9d,%ebx
call   1050 <printf@plt>
lea    0xd49(%rip),%r14
mov    %r14,%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    0x4(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    0x8(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    0xc(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    0x10(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    0x14(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    0x18(%rsp),%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xcbf(%rip),%rdi
mov    %ebp,%esi
mov    0x1c(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xcd7(%rip),%rdi
call   1040 <puts@plt>
lea    0xcbf(%rip),%r14
xor    %ebp,%ebp
jmp    1394 <main+0x254>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbp
cmp    $0xa,%rbp
je     13c1 <main+0x281>
mov    %r14,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp,%rbp,4),%ebx
test   %ebx,%ebx
jle    1380 <main+0x240>
nopl   0x0(%rax,%rax,1)
mov    $0x2d,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
jne    13b0 <main+0x270>
jmp    1380 <main+0x240>
lea    0xc6c(%rip),%r14
xor    %ebp,%ebp
jmp    13e4 <main+0x2a4>
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbp
cmp    $0x1a,%rbp
je     1411 <main+0x2d1>
lea    0x61(%rbp),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x50(%rsp,%rbp,4),%ebx
test   %ebx,%ebx
jle    13d0 <main+0x290>
nopl   0x0(%rax)
mov    $0x2d,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
jne    1400 <main+0x2c0>
jmp    13d0 <main+0x290>
xor    %eax,%eax
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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