#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*/ v_u;
typedef int /*<<< orphan*/ v_o;
typedef int /*<<< orphan*/ v_i;
typedef int /*<<< orphan*/ v_e;
typedef int /*<<< orphan*/ v_c;
typedef int /*<<< orphan*/ v_a;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EOF;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int getc(int /*<<< orphan*/ *);
scalar_t__ in_array(int, int *, int);
int /*<<< orphan*/ printf(char *, ...);
int tolower(int);
int main() {
  FILE *f;
  int v_a[8] = {192, 193, 194, 195, 224, 225, 226, 227};
  int v_e[4] = {201, 202, 233, 234};
  int v_i[2] = {205, 237};
  int v_o[6] = {211, 212, 213, 243, 244, 245};
  int v_u[2] = {218, 250};
  int v_c[2] = {199, 231};
  f = fopen("enunciado/lusiadas.txt", "r");
  int c, i = 0;
  int freq[26] = {};
  while (1) {
    c = getc(f);
    if (c == EOF) {
      break;
    }
    if (in_array(c, v_a, sizeof(v_a) / sizeof(int))) {
      c = 'a';
    } else if (in_array(c, v_e, sizeof(v_e) / sizeof(int))) {
      c = 'e';
    } else if (in_array(c, v_i, sizeof(v_i) / sizeof(int))) {
      c = 'i';
    } else if (in_array(c, v_o, sizeof(v_o) / sizeof(int))) {
      c = 'o';
    } else if (in_array(c, v_u, sizeof(v_u) / sizeof(int))) {
      c = 'u';
    } else if (in_array(c, v_c, sizeof(v_c) / sizeof(int))) {
      c = 'c';
    }
    c = tolower(c);
    c -= 97;
    if (c <= 25 && c >= 0) {
      freq[c]++;
      i++;
    }
  };
  int nl = i;
  fclose(f);
  printf("\n\n");
  printf("Numero de carateres lidos: %i.\n", i);
  for (i = 0; i <= 25; i++) {
    printf("Letra %c = %005.2f%%\n", i + 97, (float)freq[i] / nl * 100);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xe87(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe84(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xe81(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe7e(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xe7b(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe78(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xe75(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xe8a(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xe87(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xe84(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xe51(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0xe4e(%rip),%rax
mov    %rax,-0x70(%rbp)
lea    0xe6b(%rip),%rdi
lea    0xe7b(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x78(%rbp)
lea    -0xe0(%rbp),%rdi
xor    %esi,%esi
mov    $0x68,%edx
call   1050 <memset@plt>
mov    -0x10(%rbp),%rdi
call   1080 <getc@plt>
mov    %eax,-0x74(%rbp)
mov    -0x74(%rbp),%eax
mov    0x2d9b(%rip),%rcx
cmp    (%rcx),%eax
jne    125a <main+0xea>
jmp    13a3 <main+0x233>
mov    -0x74(%rbp),%edi
lea    -0x30(%rbp),%rsi
mov    $0x8,%edx
call   1090 <in_array@plt>
cmp    $0x0,%rax
je     1281 <main+0x111>
movl   $0x61,-0x74(%rbp)
jmp    1358 <main+0x1e8>
mov    -0x74(%rbp),%edi
lea    -0x40(%rbp),%rsi
mov    $0x4,%edx
call   1090 <in_array@plt>
cmp    $0x0,%rax
je     12a8 <main+0x138>
movl   $0x65,-0x74(%rbp)
jmp    1353 <main+0x1e3>
mov    -0x74(%rbp),%edi
lea    -0x48(%rbp),%rsi
mov    $0x2,%edx
call   1090 <in_array@plt>
cmp    $0x0,%rax
je     12cf <main+0x15f>
movl   $0x69,-0x74(%rbp)
jmp    134e <main+0x1de>
mov    -0x74(%rbp),%edi
lea    -0x60(%rbp),%rsi
mov    $0x6,%edx
call   1090 <in_array@plt>
cmp    $0x0,%rax
je     12f6 <main+0x186>
movl   $0x6f,-0x74(%rbp)
jmp    1349 <main+0x1d9>
mov    -0x74(%rbp),%edi
lea    -0x68(%rbp),%rsi
mov    $0x2,%edx
call   1090 <in_array@plt>
cmp    $0x0,%rax
je     131d <main+0x1ad>
movl   $0x75,-0x74(%rbp)
jmp    1344 <main+0x1d4>
mov    -0x74(%rbp),%edi
lea    -0x70(%rbp),%rsi
mov    $0x2,%edx
call   1090 <in_array@plt>
cmp    $0x0,%rax
je     133f <main+0x1cf>
movl   $0x63,-0x74(%rbp)
jmp    1344 <main+0x1d4>
jmp    1349 <main+0x1d9>
jmp    134e <main+0x1de>
jmp    1353 <main+0x1e3>
jmp    1358 <main+0x1e8>
mov    -0x74(%rbp),%edi
call   1060 <tolower@plt>
mov    %eax,-0x74(%rbp)
mov    -0x74(%rbp),%eax
sub    $0x61,%eax
mov    %eax,-0x74(%rbp)
cmpl   $0x19,-0x74(%rbp)
jg     139e <main+0x22e>
cmpl   $0x0,-0x74(%rbp)
jl     139e <main+0x22e>
movslq -0x74(%rbp),%rax
mov    -0xe0(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0xe0(%rbp,%rax,4)
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    1237 <main+0xc7>
mov    -0x78(%rbp),%eax
mov    %eax,-0xe4(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xcd5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x78(%rbp),%esi
lea    0xcc7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x78(%rbp)
cmpl   $0x19,-0x78(%rbp)
jg     1430 <main+0x2c0>
mov    -0x78(%rbp),%esi
add    $0x61,%esi
movslq -0x78(%rbp),%rax
cvtsi2ssl -0xe0(%rbp,%rax,4),%xmm0
ff ff
cvtsi2ssl -0xe4(%rbp),%xmm1
ff
divss  %xmm1,%xmm0
movss  0xbf4(%rip),%xmm1
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc99(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    13db <main+0x26b>
xor    %eax,%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
movaps 0xe98(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xe7c(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xe90(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movabs $0xed000000cd,%rax
mov    %rax,0x18(%rsp)
mov    0xe95(%rip),%rax
mov    %rax,0x30(%rsp)
movaps 0xe79(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movabs $0xfa000000da,%rax
mov    %rax,0x10(%rsp)
movabs $0xe7000000c7,%rax
mov    %rax,0x8(%rsp)
lea    0xe67(%rip),%rdi
lea    0xe77(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%rbx
xorps  %xmm0,%xmm0
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movq   $0x0,0xd0(%rsp)
mov    %rax,%rdi
call   1080 <getc@plt>
mov    0x2d9d(%rip),%r12
xor    %r15d,%r15d
cmp    (%r12),%eax
jne    12e6 <main+0x176>
mov    %rbx,%rdi
call   1040 <fclose@plt>
lea    0xe3e(%rip),%rdi
call   1030 <puts@plt>
lea    0xdfe(%rip),%rdi
xor    %ebp,%ebp
mov    %r15d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %r15d,%xmm0
movss  %xmm0,0x4(%rsp)
lea    0xdfd(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xorps  %xmm0,%xmm0
cvtsi2ssl 0x70(%rsp,%rbp,4),%xmm0
divss  0x4(%rsp),%xmm0
mulss  0xd49(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0x61(%rbp),%esi
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
add    $0x1,%rbp
cmp    $0x1a,%rbp
jne    12a0 <main+0x130>
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %eax,%r13d
xor    %r15d,%r15d
lea    0x50(%rsp),%r14
lea    0x40(%rsp),%rbp
jmp    1315 <main+0x1a5>
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1080 <getc@plt>
mov    %eax,%r13d
cmp    (%r12),%eax
je     1258 <main+0xe8>
mov    %r13d,%edi
mov    %r14,%rsi
mov    $0x8,%edx
call   1090 <in_array@plt>
mov    $0x61,%edi
test   %rax,%rax
jne    13d0 <main+0x260>
mov    %r13d,%edi
mov    %rbp,%rsi
mov    $0x4,%edx
call   1090 <in_array@plt>
mov    $0x65,%edi
test   %rax,%rax
jne    13d0 <main+0x260>
mov    %r13d,%edi
lea    0x18(%rsp),%rsi
mov    $0x2,%edx
call   1090 <in_array@plt>
mov    $0x69,%edi
test   %rax,%rax
jne    13d0 <main+0x260>
mov    %r13d,%edi
lea    0x20(%rsp),%rsi
mov    $0x6,%edx
call   1090 <in_array@plt>
mov    $0x6f,%edi
test   %rax,%rax
jne    13d0 <main+0x260>
mov    %r13d,%edi
lea    0x10(%rsp),%rsi
mov    $0x2,%edx
call   1090 <in_array@plt>
mov    $0x75,%edi
test   %rax,%rax
jne    13d0 <main+0x260>
mov    %r13d,%edi
lea    0x8(%rsp),%rsi
mov    $0x2,%edx
call   1090 <in_array@plt>
test   %rax,%rax
mov    $0x63,%eax
cmovne %eax,%r13d
mov    %r13d,%edi
cs nopw 0x0(%rax,%rax,1)
call   1060 <tolower@plt>
add    $0xffffff9f,%eax
cmp    $0x19,%eax
ja     1300 <main+0x190>
mov    %eax,%eax
addl   $0x1,0x70(%rsp,%rax,4)
add    $0x1,%r15d
jmp    1300 <main+0x190>

LLVM IR (-O0):
@__const.main.v_a = [8 x i32] [i32 192, i32 193, i32 194, i32 195, i32 224, i32 225, i32 226, i32 227]
@__const.main.v_e = [4 x i32] [i32 201, i32 202, i32 233, i32 234]
@__const.main.v_i = [2 x i32] [i32 205, i32 237]
@__const.main.v_o = [6 x i32] [i32 211, i32 212, i32 213, i32 243, i32 244, i32 245]
@__const.main.v_u = [2 x i32] [i32 218, i32 250]
@__const.main.v_c = [2 x i32] [i32 199, i32 231]
@.str = [23 x i8] c"enunciado/lusiadas.txt\00"
@.str.1 = [2 x i8] c"r\00"
@EOF = global i32 0
@.str.2 = [3 x i8] c"\0A\0A\00"
@.str.3 = [32 x i8] c"Numero de carateres lidos: %i.\0A\00"
@.str.4 = [22 x i8] c"Letra %c = %005.2f%%\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca [8 x i32]
%4 = alloca [4 x i32]
%5 = alloca [2 x i32]
%6 = alloca [6 x i32]
%7 = alloca [2 x i32]
%8 = alloca [2 x i32]
%9 = alloca i32
%10 = alloca i32
%11 = alloca [26 x i32]
%12 = alloca i32
store i32 0, i32* %1
%13 = bitcast [8 x i32]* %3 to i8*
%14 = bitcast [4 x i32]* %4 to i8*
%15 = bitcast [2 x i32]* %5 to i8*
%16 = bitcast [6 x i32]* %6 to i8*
%17 = bitcast [2 x i32]* %7 to i8*
%18 = bitcast [2 x i32]* %8 to i8*
%19 = call i32* @fopen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %19, i32** %2
store i32 0, i32* %10
%20 = bitcast [26 x i32]* %11 to i8*
br label %21
21: ; preds = %0, %87
%22 = load i32*, i32** %2
%23 = call i32 @getc(i32* %22)
store i32 %23, i32* %9
%24 = load i32, i32* %9
%25 = load i32, i32* @EOF
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %28
27: ; preds = %21
br label %88
28: ; preds = %21
%29 = load i32, i32* %9
%30 = getelementptr inbounds [8 x i32], [8 x i32]* %3, i64 0, i64 0
%31 = call i64 @in_array(i32 %29, i32* %30, i32 8)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %28
store i32 97, i32* %9
br label %69
34: ; preds = %28
%35 = load i32, i32* %9
%36 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 0
%37 = call i64 @in_array(i32 %35, i32* %36, i32 4)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %40
39: ; preds = %34
store i32 101, i32* %9
br label %68
40: ; preds = %34
%41 = load i32, i32* %9
%42 = getelementptr inbounds [2 x i32], [2 x i32]* %5, i64 0, i64 0
%43 = call i64 @in_array(i32 %41, i32* %42, i32 2)
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %40
store i32 105, i32* %9
br label %67
46: ; preds = %40
%47 = load i32, i32* %9
%48 = getelementptr inbounds [6 x i32], [6 x i32]* %6, i64 0, i64 0
%49 = call i64 @in_array(i32 %47, i32* %48, i32 6)
%50 = icmp ne i64 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %46
store i32 111, i32* %9
br label %66
52: ; preds = %46
%53 = load i32, i32* %9
%54 = getelementptr inbounds [2 x i32], [2 x i32]* %7, i64 0, i64 0
%55 = call i64 @in_array(i32 %53, i32* %54, i32 2)
%56 = icmp ne i64 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %52
store i32 117, i32* %9
br label %65
58: ; preds = %52
%59 = load i32, i32* %9
%60 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 0
%61 = call i64 @in_array(i32 %59, i32* %60, i32 2)
%62 = icmp ne i64 %61, 0
br i1 %62, label %63, label %64
63: ; preds = %58
store i32 99, i32* %9
br label %64
64: ; preds = %63, %58
br label %65
65: ; preds = %64, %57
br label %66
66: ; preds = %65, %51
br label %67
67: ; preds = %66, %45
br label %68
68: ; preds = %67, %39
br label %69
69: ; preds = %68, %33
%70 = load i32, i32* %9
%71 = call i32 @tolower(i32 %70)
store i32 %71, i32* %9
%72 = load i32, i32* %9
%73 = sub nsw i32 %72, 97
store i32 %73, i32* %9
%74 = load i32, i32* %9
%75 = icmp sle i32 %74, 25
br i1 %75, label %76, label %87
76: ; preds = %69
%77 = load i32, i32* %9
%78 = icmp sge i32 %77, 0
br i1 %78, label %79, label %87
79: ; preds = %76
%80 = load i32, i32* %9
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [26 x i32], [26 x i32]* %11, i64 0, i64 %81
%83 = load i32, i32* %82
%84 = add nsw i32 %83, 1
store i32 %84, i32* %82
%85 = load i32, i32* %10
%86 = add nsw i32 %85, 1
store i32 %86, i32* %10
br label %87
87: ; preds = %79, %76, %69
br label %21
88: ; preds = %27
%89 = load i32, i32* %10
store i32 %89, i32* %12
%90 = load i32*, i32** %2
%91 = call i32 @fclose(i32* %90)
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%93 = load i32, i32* %10
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), i32 %93)
store i32 0, i32* %10
br label %95
95: ; preds = %112, %88
%96 = load i32, i32* %10
%97 = icmp sle i32 %96, 25
br i1 %97, label %98, label %115
98: ; preds = %95
%99 = load i32, i32* %10
%100 = add nsw i32 %99, 97
%101 = load i32, i32* %10
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [26 x i32], [26 x i32]* %11, i64 0, i64 %102
%104 = load i32, i32* %103
%105 = sitofp i32 %104 to float
%106 = load i32, i32* %12
%107 = sitofp i32 %106 to float
%108 = fdiv float %105, %107
%109 = fmul float %108, 1.000000e+02
%110 = fpext float %109 to double
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i32 %100, double %110)
br label %112
112: ; preds = %98
%113 = load i32, i32* %10
%114 = add nsw i32 %113, 1
store i32 %114, i32* %10
br label %95
115: ; preds = %95
ret i32 0
}

LLVM IR (-O2):
@__const.main.v_a = [8 x i32] [i32 192, i32 193, i32 194, i32 195, i32 224, i32 225, i32 226, i32 227]
@__const.main.v_e = [4 x i32] [i32 201, i32 202, i32 233, i32 234]
@__const.main.v_o = [6 x i32] [i32 211, i32 212, i32 213, i32 243, i32 244, i32 245]
@.str = [23 x i8] c"enunciado/lusiadas.txt\00"
@.str.1 = [2 x i8] c"r\00"
@EOF = global i32 0
@.str.3 = [32 x i8] c"Numero de carateres lidos: %i.\0A\00"
@.str.4 = [22 x i8] c"Letra %c = %005.2f%%\0A\00"
@str = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca [8 x i32]
%2 = alloca [4 x i32]
%3 = alloca i64
%4 = alloca [6 x i32]
%5 = alloca i64
%6 = alloca i64
%7 = alloca [26 x i32]
%8 = bitcast [8 x i32]* %1 to i8*
%9 = bitcast [4 x i32]* %2 to i8*
%10 = bitcast i64* %3 to i8*
store i64 1017907249357, i64* %3
%11 = bitcast [6 x i32]* %4 to i8*
%12 = bitcast i64* %5 to i8*
store i64 1073741824218, i64* %5
%13 = bitcast i64* %6 to i8*
store i64 992137445575, i64* %6
%14 = tail call i32* @fopen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%15 = bitcast [26 x i32]* %7 to i8*
%16 = call i32 @getc(i32* %14)
%17 = load i32, i32* @EOF
%18 = icmp eq i32 %16, %17
br i1 %18, label %63, label %19
19: ; preds = %0
%20 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 0
%21 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 0
%22 = bitcast i64* %3 to i32*
%23 = getelementptr inbounds [6 x i32], [6 x i32]* %4, i64 0, i64 0
%24 = bitcast i64* %5 to i32*
%25 = bitcast i64* %6 to i32*
br label %26
26: ; preds = %19, %58
%27 = phi i32 [ %16, %19 ], [ %60, %58 ]
%28 = phi i32 [ 0, %19 ], [ %59, %58 ]
%29 = call i64 @in_array(i32 %27, i32* %20, i32 8)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %47
31: ; preds = %26
%32 = call i64 @in_array(i32 %27, i32* %21, i32 4)
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %47
34: ; preds = %31
%35 = call i64 @in_array(i32 %27, i32* %22, i32 2)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %47
37: ; preds = %34
%38 = call i64 @in_array(i32 %27, i32* %23, i32 6)
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %47
40: ; preds = %37
%41 = call i64 @in_array(i32 %27, i32* %24, i32 2)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %47
43: ; preds = %40
%44 = call i64 @in_array(i32 %27, i32* %25, i32 2)
%45 = icmp eq i64 %44, 0
%46 = select i1 %45, i32 %27, i32 99
br label %47
47: ; preds = %43, %40, %37, %34, %31, %26
%48 = phi i32 [ 97, %26 ], [ 101, %31 ], [ 105, %34 ], [ 111, %37 ], [ 117, %40 ], [ %46, %43 ]
%49 = call i32 @tolower(i32 %48)
%50 = add i32 %49, -97
%51 = icmp ult i32 %50, 26
br i1 %51, label %52, label %58
52: ; preds = %47
%53 = zext i32 %50 to i64
%54 = getelementptr inbounds [26 x i32], [26 x i32]* %7, i64 0, i64 %53
%55 = load i32, i32* %54
%56 = add nsw i32 %55, 1
store i32 %56, i32* %54
%57 = add nsw i32 %28, 1
br label %58
58: ; preds = %52, %47
%59 = phi i32 [ %57, %52 ], [ %28, %47 ]
%60 = call i32 @getc(i32* %14)
%61 = load i32, i32* @EOF
%62 = icmp eq i32 %60, %61
br i1 %62, label %63, label %26
63: ; preds = %58, %0
%64 = phi i32 [ 0, %0 ], [ %59, %58 ]
%65 = call i32 @fclose(i32* %14)
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), i32 %64)
%68 = sitofp i32 %64 to float
br label %69
69: ; preds = %63, %69
%70 = phi i64 [ 0, %63 ], [ %80, %69 ]
%71 = getelementptr inbounds [26 x i32], [26 x i32]* %7, i64 0, i64 %70
%72 = load i32, i32* %71
%73 = sitofp i32 %72 to float
%74 = fdiv float %73, %68
%75 = fmul float %74, 1.000000e+02
%76 = fpext float %75 to double
%77 = trunc i64 %70 to i32
%78 = add i32 %77, 97
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i32 %78, double %76)
%80 = add nuw nsw i64 %70, 1
%81 = icmp eq i64 %80, 26
br i1 %81, label %82, label %69
82: ; preds = %69
ret i32 0
}