#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 */
char EOF;
int EXIT_SUCCESS;
char getchar();
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, const char *argv[]) {
  char input;
  input = getchar();
  int counter;
  int lettercounter, upperCounter, lowerCounter, lfCounter, spaceCounter,
      vowelCounter;
  lettercounter = upperCounter = lowerCounter = lfCounter = spaceCounter =
      vowelCounter = 0;
  counter = 1;
  int analysis[26];
  int i = 0;
  while (i < 26) {
    analysis[i] = 0;
    i++;
  }
  while (input != EOF) {
    if (input >= 'a' && input <= 'z') {
      input = input - 32;
      lowerCounter++;
    } else if (input == '\n') {
      lfCounter++;
    } else if (input == ' ') {
      spaceCounter++;
    }
    if (input == 'A' || input == 'E' || input == 'I' || input == 'O' ||
        input == 'U') {
      vowelCounter++;
    }
    input = input - 65;
    if (input >= 0 && input <= 25) {
      int inputIndex = (int)input;
      lettercounter++;
      analysis[inputIndex]++;
    }
    upperCounter = lettercounter - lowerCounter;
    input = getchar();
    counter++;
  }
  printf("########################################\n");
  printf("%d Characters were inputted\n", counter);
  printf("%d Letters were inputted\n", lettercounter);
  printf("%d Were lowercase & %d were uppercase\n", lowerCounter, upperCounter);
  printf("%d Linefeeds were inputted\n", lfCounter);
  printf("%d Spaces were inputted\n", spaceCounter);
  printf("%d Vowels were inputted\n", vowelCounter);
  printf("%f Vowels were inputted\n", vowelCounter / (float)lettercounter);
  printf("########################################\n");
  i = 0;
  if (lettercounter > 0) {
    while (i < 26) {
      printf("%c: %f | %d occurrences\n", i + 65,
             analysis[i] / (float)lettercounter * 100, analysis[i]);
      i++;
    }
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %al,-0x11(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x1,-0x18(%rbp)
movl   $0x0,-0xa4(%rbp)
cmpl   $0x1a,-0xa4(%rbp)
jge    11b1 <main+0x91>
movslq -0xa4(%rbp),%rax
movl   $0x0,-0xa0(%rbp,%rax,4)
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    117e <main+0x5e>
jmp    11b6 <main+0x96>
movsbl -0x11(%rbp),%eax
mov    0x2e27(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     12f3 <main+0x1d3>
movsbl -0x11(%rbp),%eax
cmp    $0x61,%eax
jl     11fe <main+0xde>
movsbl -0x11(%rbp),%eax
cmp    $0x7a,%eax
jg     11fe <main+0xde>
movsbl -0x11(%rbp),%eax
sub    $0x20,%eax
mov    %al,-0x11(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1239 <main+0x119>
movsbl -0x11(%rbp),%eax
cmp    $0xa,%eax
jne    1219 <main+0xf9>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1234 <main+0x114>
movsbl -0x11(%rbp),%eax
cmp    $0x20,%eax
jne    122f <main+0x10f>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1234 <main+0x114>
jmp    1239 <main+0x119>
movsbl -0x11(%rbp),%eax
cmp    $0x41,%eax
je     127a <main+0x15a>
movsbl -0x11(%rbp),%eax
cmp    $0x45,%eax
je     127a <main+0x15a>
movsbl -0x11(%rbp),%eax
cmp    $0x49,%eax
je     127a <main+0x15a>
movsbl -0x11(%rbp),%eax
cmp    $0x4f,%eax
je     127a <main+0x15a>
movsbl -0x11(%rbp),%eax
cmp    $0x55,%eax
jne    1283 <main+0x163>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
movsbl -0x11(%rbp),%eax
sub    $0x41,%eax
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x0,%eax
jl     12d2 <main+0x1b2>
movsbl -0x11(%rbp),%eax
cmp    $0x19,%eax
jg     12d2 <main+0x1b2>
movsbl -0x11(%rbp),%eax
mov    %eax,-0xa8(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
movslq -0xa8(%rbp),%rax
mov    -0xa0(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0xa0(%rbp,%rax,4)
mov    -0x1c(%rbp),%eax
sub    -0x24(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %al,-0x11(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11b6 <main+0x96>
lea    0xd0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xd23(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xd2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%esi
mov    -0x20(%rbp),%edx
lea    0xd35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%esi
lea    0xd4b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2c(%rbp),%esi
lea    0xd56(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
lea    0xd5e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cvtsi2ssl -0x30(%rbp),%xmm0
cvtsi2ssl -0x1c(%rbp),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd57(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xc73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xa4(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jle    1425 <main+0x305>
jmp    13b1 <main+0x291>
cmpl   $0x1a,-0xa4(%rbp)
jge    1420 <main+0x300>
mov    -0xa4(%rbp),%esi
add    $0x41,%esi
movslq -0xa4(%rbp),%rax
cvtsi2ssl -0xa0(%rbp,%rax,4),%xmm0
ff ff
cvtsi2ssl -0x1c(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  0xc18(%rip),%xmm1
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movslq -0xa4(%rbp),%rax
mov    -0xa0(%rbp,%rax,4),%edx
lea    0xcee(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    13b1 <main+0x291>
jmp    1425 <main+0x305>
mov    0x2bac(%rip),%rax
mov    (%rax),%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    $0x78,%rsp
xor    %r12d,%r12d
xor    %eax,%eax
call   1050 <getchar@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movq   $0x0,0x70(%rsp)
mov    0x2e6f(%rip),%rcx
mov    $0x1,%ebx
mov    $0x0,%r14d
mov    $0x0,%r13d
mov    $0x0,%r15d
mov    $0x0,%edx
mov    $0x0,%ebp
cmp    (%rcx),%al
je     124a <main+0x11a>
mov    $0x1,%ebx
xor    %ebp,%ebp
xor    %edx,%edx
xor    %r15d,%r15d
xor    %r13d,%r13d
xor    %r12d,%r12d
jmp    11d8 <main+0xa8>
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1050 <getchar@plt>
add    $0x1,%ebx
mov    0x2e17(%rip),%rcx
cmp    (%rcx),%al
mov    %r14d,%edx
je     1244 <main+0x114>
lea    -0x61(%rax),%ecx
cmp    $0x19,%cl
ja     11f0 <main+0xc0>
add    $0xe0,%al
add    $0x1,%r13d
jmp    1210 <main+0xe0>
nopl   0x0(%rax,%rax,1)
cmp    $0x20,%al
je     1200 <main+0xd0>
cmp    $0xa,%al
jne    1210 <main+0xe0>
add    $0x1,%r15d
mov    $0xa,%al
jmp    1210 <main+0xe0>
add    $0x1,%edx
mov    $0x20,%al
cs nopw 0x0(%rax,%rax,1)
nop
add    $0xbf,%al
mov    %eax,%ecx
ror    %cl
cmp    $0xa,%cl
ja     122c <main+0xfc>
movzbl %cl,%ecx
mov    $0x495,%edi
bt     %rcx,%rdi
jae    122c <main+0xfc>
add    $0x1,%ebp
mov    %edx,%r14d
cmp    $0x19,%al
ja     11c0 <main+0x90>
add    $0x1,%r12d
movzbl %al,%eax
addl   $0x1,0x10(%rsp,%rax,4)
jmp    11c0 <main+0x90>
mov    %r12d,%r14d
sub    %r13d,%r14d
mov    %edx,0xc(%rsp)
lea    0xe8d(%rip),%rdi
call   1030 <puts@plt>
lea    0xda3(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdb0(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdb9(%rip),%rdi
mov    %r13d,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdcc(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdd7(%rip),%rdi
mov    0xc(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdde(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
cvtsi2ss %r12d,%xmm1
movss  %xmm1,0xc(%rsp)
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdcd(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xdf1(%rip),%rdi
call   1030 <puts@plt>
test   %r12d,%r12d
jle    1344 <main+0x214>
xor    %ebp,%ebp
lea    0xdc5(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x10(%rsp,%rbp,4),%edx
xorps  %xmm0,%xmm0
cvtsi2ss %edx,%xmm0
divss  0xc(%rsp),%xmm0
mulss  0xcd7(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x41(%rbp),%esi
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x1,%rbp
cmp    $0x1a,%rbp
jne    1310 <main+0x1e0>
mov    0x2c8d(%rip),%rax
mov    (%rax),%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@EOF = global i8 0
@.str.1 = [29 x i8] c"%d Characters were inputted\0A\00"
@.str.2 = [26 x i8] c"%d Letters were inputted\0A\00"
@.str.3 = [39 x i8] c"%d Were lowercase & %d were uppercase\0A\00"
@.str.4 = [28 x i8] c"%d Linefeeds were inputted\0A\00"
@.str.5 = [25 x i8] c"%d Spaces were inputted\0A\00"
@.str.6 = [25 x i8] c"%d Vowels were inputted\0A\00"
@.str.7 = [25 x i8] c"%f Vowels were inputted\0A\00"
@.str.8 = [25 x i8] c"%c: %f | %d occurrences\0A\00"
@EXIT_SUCCESS = global i32 0
@str.9 = [41 x i8] c"########################################\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [26 x i32]
%4 = bitcast [26 x i32]* %3 to i8*
%5 = tail call signext i8 (...) @getchar()
%6 = load i8, i8* @EOF
%7 = icmp eq i8 %5, %6
br i1 %7, label %52, label %8
8: ; preds = %2, %44
%9 = phi i32 [ %36, %44 ], [ 0, %2 ]
%10 = phi i32 [ %30, %44 ], [ 0, %2 ]
%11 = phi i32 [ %29, %44 ], [ 0, %2 ]
%12 = phi i32 [ %28, %44 ], [ 0, %2 ]
%13 = phi i32 [ %45, %44 ], [ 0, %2 ]
%14 = phi i32 [ %47, %44 ], [ 1, %2 ]
%15 = phi i8 [ %46, %44 ], [ %5, %2 ]
%16 = add i8 %15, -97
%17 = icmp ult i8 %16, 26
br i1 %17, label %18, label %21
18: ; preds = %8
%19 = add nsw i8 %15, -32
%20 = add nsw i32 %12, 1
br label %26
21: ; preds = %8
switch i8 %15, label %26 [
i8 10, label %22
i8 32, label %24
]
22: ; preds = %21
%23 = add nsw i32 %11, 1
br label %26
24: ; preds = %21
%25 = add nsw i32 %10, 1
br label %26
26: ; preds = %21, %22, %24, %18
%27 = phi i8 [ %19, %18 ], [ 10, %22 ], [ 32, %24 ], [ %15, %21 ]
%28 = phi i32 [ %20, %18 ], [ %12, %22 ], [ %12, %24 ], [ %12, %21 ]
%29 = phi i32 [ %11, %18 ], [ %23, %22 ], [ %11, %24 ], [ %11, %21 ]
%30 = phi i32 [ %10, %18 ], [ %10, %22 ], [ %25, %24 ], [ %10, %21 ]
%31 = add i8 %27, -65
%32 = tail call i8 @llvm.fshl.i8(i8 %31, i8 %31, i8 7)
switch i8 %32, label %35 [
i8 10, label %33
i8 7, label %33
i8 4, label %33
i8 2, label %33
i8 0, label %33
]
33: ; preds = %26, %26, %26, %26, %26
%34 = add nsw i32 %9, 1
br label %35
35: ; preds = %26, %33
%36 = phi i32 [ %34, %33 ], [ %9, %26 ]
%37 = icmp ult i8 %31, 26
br i1 %37, label %38, label %44
38: ; preds = %35
%39 = add nsw i32 %13, 1
%40 = zext i8 %31 to i64
%41 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 %40
%42 = load i32, i32* %41
%43 = add nsw i32 %42, 1
store i32 %43, i32* %41
br label %44
44: ; preds = %38, %35
%45 = phi i32 [ %39, %38 ], [ %13, %35 ]
%46 = tail call signext i8 (...) @getchar()
%47 = add nuw nsw i32 %14, 1
%48 = load i8, i8* @EOF
%49 = icmp eq i8 %46, %48
br i1 %49, label %50, label %8
50: ; preds = %44
%51 = sub nsw i32 %45, %28
br label %52
52: ; preds = %50, %2
%53 = phi i32 [ %47, %50 ], [ 1, %2 ]
%54 = phi i32 [ %45, %50 ], [ 0, %2 ]
%55 = phi i32 [ %51, %50 ], [ 0, %2 ]
%56 = phi i32 [ %28, %50 ], [ 0, %2 ]
%57 = phi i32 [ %29, %50 ], [ 0, %2 ]
%58 = phi i32 [ %30, %50 ], [ 0, %2 ]
%59 = phi i32 [ %36, %50 ], [ 0, %2 ]
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.9, i64 0, i64 0))
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %53)
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 %54)
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 %56, i32 %55)
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i32 %57)
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i32 %58)
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i32 %59)
%67 = sitofp i32 %59 to float
%68 = sitofp i32 %54 to float
%69 = fdiv float %67, %68
%70 = fpext float %69 to double
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), double %70)
%72 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.9, i64 0, i64 0))
%73 = icmp sgt i32 %54, 0
br i1 %73, label %74, label %87
74: ; preds = %52, %74
%75 = phi i64 [ %85, %74 ], [ 0, %52 ]
%76 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 %75
%77 = load i32, i32* %76
%78 = sitofp i32 %77 to float
%79 = fdiv float %78, %68
%80 = fmul float %79, 1.000000e+02
%81 = fpext float %80 to double
%82 = trunc i64 %75 to i32
%83 = add i32 %82, 65
%84 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i32 %83, double %81, i32 %77)
%85 = add nuw nsw i64 %75, 1
%86 = icmp eq i64 %85, 26
br i1 %86, label %87, label %74
87: ; preds = %74, %52
%88 = load i32, i32* @EXIT_SUCCESS
ret i32 %88
}