#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 */
typedef int /*<<< orphan*/ alphabet;

/* Variables and functions */
int EOF;
int getchar();
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  int c, i, j, alphabet[26], other, ws, max;
  double scale = 0.0;
  other = ws = max = 0;
  for (i = 0; i < (sizeof(alphabet) / sizeof(alphabet[0])); ++i) {
    alphabet[i] = 0;
  }
  while ((c = getchar()) != EOF) {
    if (c >= 'a' && c <= 'z') {
      ++alphabet[c - 'a'];
    } else if (c >= 'A' && c <= 'Z') {
      c = c + 32;
      ++alphabet[c - 'a'];
    } else if (c == '\t' || c == '\n' || c == ' ') {
      ++ws;
    } else {
      ++other;
    }
  }
  for (i = 0; i < (sizeof(alphabet) / sizeof(alphabet[0])); ++i) {
    if (max < alphabet[i]) {
      max = alphabet[i];
    }
  }
  if (max < ws) {
    max = ws;
  }
  if (max < other) {
    max = other;
  }
  scale = (double)max / 70.0;
  printf("Results are case independent:\n");
  for (i = 0; i < (sizeof(alphabet) / sizeof(alphabet[0])); ++i) {
    printf("  %c - %d\n", i + 'a', alphabet[i]);
  }
  printf("  white space - %d\n", ws);
  printf("  other - %d\n", other);
  printf("  max - %d\n", max);
  printf("  scale - %f\n\n", scale);
  printf("Histogram:\n");
  for (i = 0; i < (sizeof(alphabet) / sizeof(alphabet[0])); ++i) {
    printf("    %c \u2502 ", i + 'a');
    for (j = 0; j < (alphabet[i] / scale); ++j) {
      printf("\u2501");
    }
    printf("\n");
  }
  printf("   ws \u2502 ");
  for (i = 0; i < ws / scale; ++i) {
    printf("\u2501");
  }
  printf("\n");
  printf("other \u2502 ");
  for (i = 0; i < other / scale; ++i) {
    printf("\u2501");
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movl   $0x0,-0x8c(%rbp)
movl   $0x0,-0x88(%rbp)
movl   $0x0,-0x84(%rbp)
movl   $0x0,-0xc(%rbp)
movslq -0xc(%rbp),%rax
cmp    $0x1a,%rax
jae    118a <main+0x6a>
movslq -0xc(%rbp),%rax
movl   $0x0,-0x80(%rbp,%rax,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1162 <main+0x42>
jmp    118f <main+0x6f>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    0x2e48(%rip),%rcx
cmp    (%rcx),%eax
je     1259 <main+0x139>
cmpl   $0x61,-0x8(%rbp)
jl     11d4 <main+0xb4>
cmpl   $0x7a,-0x8(%rbp)
jg     11d4 <main+0xb4>
mov    -0x8(%rbp),%eax
sub    $0x61,%eax
cltq
mov    -0x80(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x80(%rbp,%rax,4)
jmp    1254 <main+0x134>
cmpl   $0x41,-0x8(%rbp)
jl     1209 <main+0xe9>
cmpl   $0x5a,-0x8(%rbp)
jg     1209 <main+0xe9>
mov    -0x8(%rbp),%eax
add    $0x20,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
sub    $0x61,%eax
cltq
mov    -0x80(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x80(%rbp,%rax,4)
jmp    124f <main+0x12f>
cmpl   $0x9,-0x8(%rbp)
je     1227 <main+0x107>
cmpl   $0xa,-0x8(%rbp)
je     1227 <main+0x107>
cmpl   $0x20,-0x8(%rbp)
jne    123b <main+0x11b>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    124a <main+0x12a>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    124f <main+0x12f>
jmp    1254 <main+0x134>
jmp    118f <main+0x6f>
movl   $0x0,-0xc(%rbp)
movslq -0xc(%rbp),%rax
cmp    $0x1a,%rax
jae    12a3 <main+0x183>
mov    -0x8c(%rbp),%eax
movslq -0xc(%rbp),%rcx
cmp    -0x80(%rbp,%rcx,4),%eax
jge    1290 <main+0x170>
movslq -0xc(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%eax
mov    %eax,-0x8c(%rbp)
jmp    1295 <main+0x175>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1260 <main+0x140>
mov    -0x8c(%rbp),%eax
cmp    -0x88(%rbp),%eax
jge    12c1 <main+0x1a1>
mov    -0x88(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    -0x84(%rbp),%eax
jge    12df <main+0x1bf>
mov    -0x84(%rbp),%eax
mov    %eax,-0x8c(%rbp)
cvtsi2sdl -0x8c(%rbp),%xmm0
ff
movsd  0xd11(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
lea    0xd06(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
movslq -0xc(%rbp),%rax
cmp    $0x1a,%rax
jae    1348 <main+0x228>
mov    -0xc(%rbp),%esi
add    $0x61,%esi
movslq -0xc(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%edx
lea    0xcf4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1310 <main+0x1f0>
mov    -0x88(%rbp),%esi
lea    0xcdd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x84(%rbp),%esi
lea    0xcdd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8c(%rbp),%esi
lea    0xcd7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x98(%rbp),%xmm0
ff
lea    0xccd(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xcce(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
movslq -0xc(%rbp),%rax
cmp    $0x1a,%rax
jae    1431 <main+0x311>
mov    -0xc(%rbp),%esi
add    $0x61,%esi
lea    0xcb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x10(%rbp)
cvtsi2sdl -0x10(%rbp),%xmm1
movslq -0xc(%rbp),%rax
cvtsi2sdl -0x80(%rbp,%rax,4),%xmm0
divsd  -0x98(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1415 <main+0x2f5>
lea    0xc87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    13d8 <main+0x2b8>
lea    0xc51(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    13af <main+0x28f>
lea    0xc53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm1
cvtsi2sdl -0x88(%rbp),%xmm0
ff
divsd  -0x98(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1481 <main+0x361>
lea    0xc1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1446 <main+0x326>
lea    0xbe5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc00(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm1
cvtsi2sdl -0x84(%rbp),%xmm0
ff
divsd  -0x98(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    14df <main+0x3bf>
lea    0xbbd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    14a4 <main+0x384>
lea    0xb87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
pxor   %xmm0,%xmm0
movdqa %xmm0,0x60(%rsp)
movdqa %xmm0,0x50(%rsp)
movdqa %xmm0,0x40(%rsp)
movdqa %xmm0,0x30(%rsp)
movdqa %xmm0,0x20(%rsp)
movdqa %xmm0,0x10(%rsp)
movq   $0x0,0x70(%rsp)
xor    %r12d,%r12d
xor    %eax,%eax
call   1060 <getchar@plt>
mov    0x2e58(%rip),%rbx
cmp    (%rbx),%eax
jne    11c1 <main+0x81>
xor    %r14d,%r14d
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %r10d,%r10d
xor    %esi,%esi
xor    %ebp,%ebp
xor    %eax,%eax
xor    %ecx,%ecx
xor    %ebx,%ebx
xor    %edi,%edi
pxor   %xmm0,%xmm0
pxor   %xmm2,%xmm2
pxor   %xmm1,%xmm1
pxor   %xmm4,%xmm4
jmp    1261 <main+0x121>
movabs $0x100000600,%rbp
xor    %r12d,%r12d
xor    %r14d,%r14d
jmp    11f2 <main+0xb2>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ecx,%eax
addl   $0x1,0x10(%rsp,%rax,4)
xor    %eax,%eax
call   1060 <getchar@plt>
cmp    (%rbx),%eax
je     121b <main+0xdb>
lea    -0x61(%rax),%ecx
cmp    $0x19,%ecx
jbe    11e0 <main+0xa0>
lea    -0x41(%rax),%ecx
cmp    $0x19,%ecx
jbe    11e0 <main+0xa0>
cmp    $0x20,%eax
ja     1215 <main+0xd5>
mov    %eax,%eax
bt     %rax,%rbp
jae    1215 <main+0xd5>
add    $0x1,%r12d
jmp    11e7 <main+0xa7>
add    $0x1,%r14d
jmp    11e7 <main+0xa7>
mov    0x10(%rsp),%edx
mov    0x14(%rsp),%r8d
mov    0x18(%rsp),%r9d
mov    0x1c(%rsp),%r10d
mov    0x20(%rsp),%esi
mov    0x24(%rsp),%ebp
mov    0x28(%rsp),%eax
mov    0x2c(%rsp),%ecx
mov    0x30(%rsp),%ebx
movdqu 0x64(%rsp),%xmm1
movdqu 0x54(%rsp),%xmm2
movdqu 0x44(%rsp),%xmm0
movdqu 0x34(%rsp),%xmm4
xor    %edi,%edi
test   %edx,%edx
cmovns %edx,%edi
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    %ecx,%ebx
cmovle %ecx,%ebx
cmp    %eax,%ebx
cmovle %eax,%ebx
cmp    %ebp,%ebx
cmovle %ebp,%ebx
cmp    %esi,%ebx
cmovle %esi,%ebx
cmp    %r10d,%ebx
cmovle %r10d,%ebx
cmp    %r9d,%ebx
cmovle %r9d,%ebx
cmp    %r8d,%ebx
cmovle %r8d,%ebx
cmp    %edi,%ebx
cmovle %edi,%ebx
mov    0x74(%rsp),%r15d
cmp    %r14d,%ebx
cmovle %r14d,%ebx
cmp    %r12d,%ebx
cmovle %r12d,%ebx
cmp    %r15d,%ebx
cmovle %r15d,%ebx
xorps  %xmm0,%xmm0
cvtsi2sd %ebx,%xmm0
movsd  %xmm0,(%rsp)
lea    0xd4b(%rip),%rdi
call   1040 <puts@plt>
mov    0x10(%rsp),%edx
lea    0xccd(%rip),%rbp
mov    %rbp,%rdi
mov    $0x61,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rsp),%edx
mov    %rbp,%rdi
mov    $0x62,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rsp),%edx
mov    %rbp,%rdi
mov    $0x63,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rsp),%edx
mov    %rbp,%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp),%edx
mov    %rbp,%rdi
mov    $0x65,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rsp),%edx
mov    %rbp,%rdi
mov    $0x66,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rsp),%edx
mov    %rbp,%rdi
mov    $0x67,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rsp),%edx
mov    %rbp,%rdi
mov    $0x68,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rsp),%edx
mov    %rbp,%rdi
mov    $0x69,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x34(%rsp),%edx
mov    %rbp,%rdi
mov    $0x6a,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x38(%rsp),%edx
mov    %rbp,%rdi
mov    $0x6b,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x3c(%rsp),%edx
mov    %rbp,%rdi
mov    $0x6c,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x40(%rsp),%edx
mov    %rbp,%rdi
mov    $0x6d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x44(%rsp),%edx
mov    %rbp,%rdi
mov    $0x6e,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x48(%rsp),%edx
mov    %rbp,%rdi
mov    $0x6f,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4c(%rsp),%edx
mov    %rbp,%rdi
mov    $0x70,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x50(%rsp),%edx
mov    %rbp,%rdi
mov    $0x71,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x54(%rsp),%edx
mov    %rbp,%rdi
mov    $0x72,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x58(%rsp),%edx
mov    %rbp,%rdi
mov    $0x73,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x5c(%rsp),%edx
mov    %rbp,%rdi
mov    $0x74,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x60(%rsp),%edx
mov    %rbp,%rdi
mov    $0x75,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x64(%rsp),%edx
mov    %rbp,%rdi
mov    $0x76,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x68(%rsp),%edx
mov    %rbp,%rdi
mov    $0x77,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x6c(%rsp),%edx
mov    %rbp,%rdi
mov    $0x78,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x70(%rsp),%edx
mov    %rbp,%rdi
mov    $0x79,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x7a,%esi
mov    %r15d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
movsd  (%rsp),%xmm0
divsd  0xac7(%rip),%xmm0
movsd  %xmm0,(%rsp)
lea    0xad6(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xad9(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xad6(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xad2(%rip),%rdi
movsd  (%rsp),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xb12(%rip),%rdi
call   1040 <puts@plt>
lea    0xac2(%rip),%r15
lea    0xac7(%rip),%r13
xor    %ebx,%ebx
jmp    15c4 <main+0x484>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    $0x1a,%rbx
je     1622 <main+0x4e2>
lea    0x61(%rbx),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2sdl 0x10(%rsp,%rbx,4),%xmm0
divsd  (%rsp),%xmm0
ucomisd 0xa21(%rip),%xmm0
jbe    15b0 <main+0x470>
mov    $0x1,%ebp
movsd  %xmm0,0x8(%rsp)
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
add    $0x1,%ebp
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
ja     1600 <main+0x4c0>
jmp    15b0 <main+0x470>
lea    0xa3f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %r12d,%xmm1
divsd  (%rsp),%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jbe    1680 <main+0x540>
mov    $0x1,%ebp
lea    0xa11(%rip),%rbx
movsd  %xmm1,0x8(%rsp)
nopl   0x0(%rax)
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movsd  0x8(%rsp),%xmm1
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
add    $0x1,%ebp
ucomisd %xmm0,%xmm1
ja     1660 <main+0x520>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x9e2(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %r14d,%xmm0
divsd  (%rsp),%xmm0
ucomisd 0x95b(%rip),%xmm0
jbe    16f0 <main+0x5b0>
mov    $0x1,%ebp
lea    0x9a9(%rip),%rbx
movsd  %xmm0,0x8(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
add    $0x1,%ebp
movsd  0x8(%rsp),%xmm1
ucomisd %xmm0,%xmm1
ja     16d0 <main+0x590>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@EOF = global i32 0
@.str = [31 x i8] c"Results are case independent:\0A\00"
@.str.1 = [11 x i8] c" %c - %d\0A\00"
@.str.2 = [20 x i8] c" white space - %d\0A\00"
@.str.3 = [14 x i8] c" other - %d\0A\00"
@.str.4 = [12 x i8] c" max - %d\0A\00"
@.str.5 = [15 x i8] c" scale - %f\0A\0A\00"
@.str.6 = [12 x i8] c"Histogram:\0A\00"
@.str.7 = [12 x i8] c" %c \E2\94\82 \00"
@.str.8 = [4 x i8] c"\E2\94\81\00"
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [11 x i8] c" ws \E2\94\82 \00"
@.str.11 = [11 x i8] c"other \E2\94\82 \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [26 x i32]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca double
store i32 0, i32* %1
store double 0.000000e+00, double* %9
store i32 0, i32* %8
store i32 0, i32* %7
store i32 0, i32* %6
store i32 0, i32* %3
br label %10
10: ; preds = %18, %0
%11 = load i32, i32* %3
%12 = sext i32 %11 to i64
%13 = icmp ult i64 %12, 26
br i1 %13, label %14, label %21
14: ; preds = %10
%15 = load i32, i32* %3
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 %16
store i32 0, i32* %17
br label %18
18: ; preds = %14
%19 = load i32, i32* %3
%20 = add nsw i32 %19, 1
store i32 %20, i32* %3
br label %10
21: ; preds = %10
br label %22
22: ; preds = %71, %21
%23 = call i32 (...) @getchar()
store i32 %23, i32* %2
%24 = load i32, i32* @EOF
%25 = icmp ne i32 %23, %24
br i1 %25, label %26, label %72
26: ; preds = %22
%27 = load i32, i32* %2
%28 = icmp sge i32 %27, 97
br i1 %28, label %29, label %39
29: ; preds = %26
%30 = load i32, i32* %2
%31 = icmp sle i32 %30, 122
br i1 %31, label %32, label %39
32: ; preds = %29
%33 = load i32, i32* %2
%34 = sub nsw i32 %33, 97
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 %35
%37 = load i32, i32* %36
%38 = add nsw i32 %37, 1
store i32 %38, i32* %36
br label %71
39: ; preds = %29, %26
%40 = load i32, i32* %2
%41 = icmp sge i32 %40, 65
br i1 %41, label %42, label %54
42: ; preds = %39
%43 = load i32, i32* %2
%44 = icmp sle i32 %43, 90
br i1 %44, label %45, label %54
45: ; preds = %42
%46 = load i32, i32* %2
%47 = add nsw i32 %46, 32
store i32 %47, i32* %2
%48 = load i32, i32* %2
%49 = sub nsw i32 %48, 97
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 %50
%52 = load i32, i32* %51
%53 = add nsw i32 %52, 1
store i32 %53, i32* %51
br label %70
54: ; preds = %42, %39
%55 = load i32, i32* %2
%56 = icmp eq i32 %55, 9
br i1 %56, label %63, label %57
57: ; preds = %54
%58 = load i32, i32* %2
%59 = icmp eq i32 %58, 10
br i1 %59, label %63, label %60
60: ; preds = %57
%61 = load i32, i32* %2
%62 = icmp eq i32 %61, 32
br i1 %62, label %63, label %66
63: ; preds = %60, %57, %54
%64 = load i32, i32* %7
%65 = add nsw i32 %64, 1
store i32 %65, i32* %7
br label %69
66: ; preds = %60
%67 = load i32, i32* %6
%68 = add nsw i32 %67, 1
store i32 %68, i32* %6
br label %69
69: ; preds = %66, %63
br label %70
70: ; preds = %69, %45
br label %71
71: ; preds = %70, %32
br label %22
72: ; preds = %22
store i32 0, i32* %3
br label %73
73: ; preds = %90, %72
%74 = load i32, i32* %3
%75 = sext i32 %74 to i64
%76 = icmp ult i64 %75, 26
br i1 %76, label %77, label %93
77: ; preds = %73
%78 = load i32, i32* %8
%79 = load i32, i32* %3
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 %80
%82 = load i32, i32* %81
%83 = icmp slt i32 %78, %82
br i1 %83, label %84, label %89
84: ; preds = %77
%85 = load i32, i32* %3
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 %86
%88 = load i32, i32* %87
store i32 %88, i32* %8
br label %89
89: ; preds = %84, %77
br label %90
90: ; preds = %89
%91 = load i32, i32* %3
%92 = add nsw i32 %91, 1
store i32 %92, i32* %3
br label %73
93: ; preds = %73
%94 = load i32, i32* %8
%95 = load i32, i32* %7
%96 = icmp slt i32 %94, %95
br i1 %96, label %97, label %99
97: ; preds = %93
%98 = load i32, i32* %7
store i32 %98, i32* %8
br label %99
99: ; preds = %97, %93
%100 = load i32, i32* %8
%101 = load i32, i32* %6
%102 = icmp slt i32 %100, %101
br i1 %102, label %103, label %105
103: ; preds = %99
%104 = load i32, i32* %6
store i32 %104, i32* %8
br label %105
105: ; preds = %103, %99
%106 = load i32, i32* %8
%107 = sitofp i32 %106 to double
%108 = fdiv double %107, 7.000000e+01
store double %108, double* %9
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %110
110: ; preds = %122, %105
%111 = load i32, i32* %3
%112 = sext i32 %111 to i64
%113 = icmp ult i64 %112, 26
br i1 %113, label %114, label %125
114: ; preds = %110
%115 = load i32, i32* %3
%116 = add nsw i32 %115, 97
%117 = load i32, i32* %3
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 %118
%120 = load i32, i32* %119
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %116, i32 %120)
br label %122
122: ; preds = %114
%123 = load i32, i32* %3
%124 = add nsw i32 %123, 1
store i32 %124, i32* %3
br label %110
125: ; preds = %110
%126 = load i32, i32* %7
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %126)
%128 = load i32, i32* %6
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %128)
%130 = load i32, i32* %8
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %130)
%132 = load double, double* %9
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), double %132)
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %3
br label %135
135: ; preds = %161, %125
%136 = load i32, i32* %3
%137 = sext i32 %136 to i64
%138 = icmp ult i64 %137, 26
br i1 %138, label %139, label %164
139: ; preds = %135
%140 = load i32, i32* %3
%141 = add nsw i32 %140, 97
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 %141)
store i32 0, i32* %4
br label %143
143: ; preds = %156, %139
%144 = load i32, i32* %4
%145 = sitofp i32 %144 to double
%146 = load i32, i32* %3
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [26 x i32], [26 x i32]* %5, i64 0, i64 %147
%149 = load i32, i32* %148
%150 = sitofp i32 %149 to double
%151 = load double, double* %9
%152 = fdiv double %150, %151
%153 = fcmp olt double %145, %152
br i1 %153, label %154, label %159
154: ; preds = %143
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
br label %156
156: ; preds = %154
%157 = load i32, i32* %4
%158 = add nsw i32 %157, 1
store i32 %158, i32* %4
br label %143
159: ; preds = %143
%160 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %161
161: ; preds = %159
%162 = load i32, i32* %3
%163 = add nsw i32 %162, 1
store i32 %163, i32* %3
br label %135
164: ; preds = %135
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %3
br label %166
166: ; preds = %176, %164
%167 = load i32, i32* %3
%168 = sitofp i32 %167 to double
%169 = load i32, i32* %7
%170 = sitofp i32 %169 to double
%171 = load double, double* %9
%172 = fdiv double %170, %171
%173 = fcmp olt double %168, %172
br i1 %173, label %174, label %179
174: ; preds = %166
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
br label %176
176: ; preds = %174
%177 = load i32, i32* %3
%178 = add nsw i32 %177, 1
store i32 %178, i32* %3
br label %166
179: ; preds = %166
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%181 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
store i32 0, i32* %3
br label %182
182: ; preds = %192, %179
%183 = load i32, i32* %3
%184 = sitofp i32 %183 to double
%185 = load i32, i32* %6
%186 = sitofp i32 %185 to double
%187 = load double, double* %9
%188 = fdiv double %186, %187
%189 = fcmp olt double %184, %188
br i1 %189, label %190, label %195
190: ; preds = %182
%191 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
br label %192
192: ; preds = %190
%193 = load i32, i32* %3
%194 = add nsw i32 %193, 1
store i32 %194, i32* %3
br label %182
195: ; preds = %182
%196 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@EOF = global i32 0
@.str.1 = [11 x i8] c" %c - %d\0A\00"
@.str.2 = [20 x i8] c" white space - %d\0A\00"
@.str.3 = [14 x i8] c" other - %d\0A\00"
@.str.4 = [12 x i8] c" max - %d\0A\00"
@.str.5 = [15 x i8] c" scale - %f\0A\0A\00"
@.str.7 = [12 x i8] c" %c \E2\94\82 \00"
@.str.8 = [4 x i8] c"\E2\94\81\00"
@.str.10 = [11 x i8] c" ws \E2\94\82 \00"
@.str.11 = [11 x i8] c"other \E2\94\82 \00"
@str = [30 x i8] c"Results are case independent:\00"
@str.12 = [11 x i8] c"Histogram:\00"
define i32 @main() {
%1 = alloca [26 x i32]
%2 = bitcast [26 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 %30, label %154
6: ; preds = %178
%7 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 0
%8 = load i32, i32* %7
%9 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 1
%10 = load i32, i32* %9
%11 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 2
%12 = load i32, i32* %11
%13 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 3
%14 = load i32, i32* %13
%15 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 4
%16 = load i32, i32* %15
%17 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 5
%18 = load i32, i32* %17
%19 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 6
%20 = load i32, i32* %19
%21 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 7
%22 = load i32, i32* %21
%23 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 8
%24 = load i32, i32* %23
%25 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 9
%26 = bitcast i32* %25 to <16 x i32>*
%27 = load <16 x i32>, <16 x i32>* %26
%28 = icmp sgt i32 %8, 0
%29 = select i1 %28, i32 %8, i32 0
br label %30
30: ; preds = %0, %6
%31 = phi i32 [ %180, %6 ], [ 0, %0 ]
%32 = phi i32 [ %179, %6 ], [ 0, %0 ]
%33 = phi i32 [ %10, %6 ], [ 0, %0 ]
%34 = phi i32 [ %12, %6 ], [ 0, %0 ]
%35 = phi i32 [ %14, %6 ], [ 0, %0 ]
%36 = phi i32 [ %16, %6 ], [ 0, %0 ]
%37 = phi i32 [ %18, %6 ], [ 0, %0 ]
%38 = phi i32 [ %20, %6 ], [ 0, %0 ]
%39 = phi i32 [ %22, %6 ], [ 0, %0 ]
%40 = phi i32 [ %24, %6 ], [ 0, %0 ]
%41 = phi i32 [ %29, %6 ], [ 0, %0 ]
%42 = phi <16 x i32> [ %27, %6 ], [ zeroinitializer, %0 ]
%43 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 0
%44 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 1
%45 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 2
%46 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 3
%47 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 4
%48 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 5
%49 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 6
%50 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 7
%51 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 8
%52 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 9
%53 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 10
%54 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 11
%55 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 12
%56 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 13
%57 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 14
%58 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 15
%59 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 16
%60 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 17
%61 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 18
%62 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 19
%63 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 20
%64 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 21
%65 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 22
%66 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 23
%67 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 24
%68 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 25
%69 = load i32, i32* %68
%70 = call i32 @llvm.vector.reduce.smax.v16i32(<16 x i32> %42)
%71 = icmp sgt i32 %70, %40
%72 = select i1 %71, i32 %70, i32 %40
%73 = icmp sgt i32 %72, %39
%74 = select i1 %73, i32 %72, i32 %39
%75 = icmp sgt i32 %74, %38
%76 = select i1 %75, i32 %74, i32 %38
%77 = icmp sgt i32 %76, %37
%78 = select i1 %77, i32 %76, i32 %37
%79 = icmp sgt i32 %78, %36
%80 = select i1 %79, i32 %78, i32 %36
%81 = icmp sgt i32 %80, %35
%82 = select i1 %81, i32 %80, i32 %35
%83 = icmp sgt i32 %82, %34
%84 = select i1 %83, i32 %82, i32 %34
%85 = icmp sgt i32 %84, %33
%86 = select i1 %85, i32 %84, i32 %33
%87 = icmp sgt i32 %86, %41
%88 = select i1 %87, i32 %86, i32 %41
%89 = icmp sgt i32 %88, %32
%90 = select i1 %89, i32 %88, i32 %32
%91 = icmp sgt i32 %90, %31
%92 = select i1 %91, i32 %90, i32 %31
%93 = icmp sgt i32 %92, %69
%94 = select i1 %93, i32 %92, i32 %69
%95 = sitofp i32 %94 to double
%96 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%97 = load i32, i32* %43
%98 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 97, i32 %97)
%99 = load i32, i32* %44
%100 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 98, i32 %99)
%101 = load i32, i32* %45
%102 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 99, i32 %101)
%103 = load i32, i32* %46
%104 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 100, i32 %103)
%105 = load i32, i32* %47
%106 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 101, i32 %105)
%107 = load i32, i32* %48
%108 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 102, i32 %107)
%109 = load i32, i32* %49
%110 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 103, i32 %109)
%111 = load i32, i32* %50
%112 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 104, i32 %111)
%113 = load i32, i32* %51
%114 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 105, i32 %113)
%115 = load i32, i32* %52
%116 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 106, i32 %115)
%117 = load i32, i32* %53
%118 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 107, i32 %117)
%119 = load i32, i32* %54
%120 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 108, i32 %119)
%121 = load i32, i32* %55
%122 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 109, i32 %121)
%123 = load i32, i32* %56
%124 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 110, i32 %123)
%125 = load i32, i32* %57
%126 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 111, i32 %125)
%127 = load i32, i32* %58
%128 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 112, i32 %127)
%129 = load i32, i32* %59
%130 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 113, i32 %129)
%131 = load i32, i32* %60
%132 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 114, i32 %131)
%133 = load i32, i32* %61
%134 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 115, i32 %133)
%135 = load i32, i32* %62
%136 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 116, i32 %135)
%137 = load i32, i32* %63
%138 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 117, i32 %137)
%139 = load i32, i32* %64
%140 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 118, i32 %139)
%141 = load i32, i32* %65
%142 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 119, i32 %141)
%143 = load i32, i32* %66
%144 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 120, i32 %143)
%145 = load i32, i32* %67
%146 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 121, i32 %145)
%147 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 122, i32 %69)
%148 = fdiv double %95, 7.000000e+01
%149 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %31)
%150 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %32)
%151 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 %94)
%152 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), double %148)
%153 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.12, i64 0, i64 0))
br label %184
154: ; preds = %0, %178
%155 = phi i32 [ %181, %178 ], [ %3, %0 ]
%156 = phi i32 [ %180, %178 ], [ 0, %0 ]
%157 = phi i32 [ %179, %178 ], [ 0, %0 ]
%158 = add i32 %155, -97
%159 = icmp ult i32 %158, 26
br i1 %159, label %160, label %165
160: ; preds = %154
%161 = zext i32 %158 to i64
%162 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 %161
%163 = load i32, i32* %162
%164 = add nsw i32 %163, 1
store i32 %164, i32* %162
br label %178
165: ; preds = %154
%166 = add i32 %155, -65
%167 = icmp ult i32 %166, 26
br i1 %167, label %168, label %173
168: ; preds = %165
%169 = zext i32 %166 to i64
%170 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 %169
%171 = load i32, i32* %170
%172 = add nsw i32 %171, 1
store i32 %172, i32* %170
br label %178
173: ; preds = %165
switch i32 %155, label %176 [
i32 32, label %174
i32 10, label %174
i32 9, label %174
]
174: ; preds = %173, %173, %173
%175 = add nsw i32 %156, 1
br label %178
176: ; preds = %173
%177 = add nsw i32 %157, 1
br label %178
178: ; preds = %168, %176, %174, %160
%179 = phi i32 [ %157, %160 ], [ %157, %168 ], [ %157, %174 ], [ %177, %176 ]
%180 = phi i32 [ %156, %160 ], [ %156, %168 ], [ %175, %174 ], [ %156, %176 ]
%181 = tail call i32 (...) @getchar()
%182 = load i32, i32* @EOF
%183 = icmp eq i32 %181, %182
br i1 %183, label %6, label %154
184: ; preds = %30, %200
%185 = phi i64 [ 0, %30 ], [ %202, %200 ]
%186 = trunc i64 %185 to i32
%187 = add i32 %186, 97
%188 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 %187)
%189 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 %185
%190 = load i32, i32* %189
%191 = sitofp i32 %190 to double
%192 = fdiv double %191, %148
%193 = fcmp ogt double %192, 0.000000e+00
br i1 %193, label %194, label %200
194: ; preds = %184, %194
%195 = phi i32 [ %197, %194 ], [ 0, %184 ]
%196 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%197 = add nuw nsw i32 %195, 1
%198 = sitofp i32 %197 to double
%199 = fcmp ogt double %192, %198
br i1 %199, label %194, label %200
200: ; preds = %194, %184
%201 = tail call i32 @putchar(i32 10)
%202 = add nuw nsw i64 %185, 1
%203 = icmp eq i64 %202, 26
br i1 %203, label %204, label %184
204: ; preds = %200
%205 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
%206 = sitofp i32 %31 to double
%207 = fdiv double %206, %148
%208 = fcmp ogt double %207, 0.000000e+00
br i1 %208, label %209, label %215
209: ; preds = %204, %209
%210 = phi i32 [ %212, %209 ], [ 0, %204 ]
%211 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%212 = add nuw nsw i32 %210, 1
%213 = sitofp i32 %212 to double
%214 = fcmp ogt double %207, %213
br i1 %214, label %209, label %215
215: ; preds = %209, %204
%216 = tail call i32 @putchar(i32 10)
%217 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%218 = sitofp i32 %32 to double
%219 = fdiv double %218, %148
%220 = fcmp ogt double %219, 0.000000e+00
br i1 %220, label %221, label %227
221: ; preds = %215, %221
%222 = phi i32 [ %224, %221 ], [ 0, %215 ]
%223 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%224 = add nuw nsw i32 %222, 1
%225 = sitofp i32 %224 to double
%226 = fcmp ogt double %219, %225
br i1 %226, label %221, label %227
227: ; preds = %221, %215
%228 = tail call i32 @putchar(i32 10)
ret i32 0
}