#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*/ FILE;

/* Variables and functions */
char EOF;
int /*<<< orphan*/ exit(int);
char fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
char toupper(char);
int main(int argc, char *argv[]) {
  FILE *fp;
  int count[26];
  char curr;
  for (int i = 0; i < 26; i++) {
    count[i] = 0;
  }
  if (argc != 2) {
    printf("Usage: <file>\n");
    exit(1);
  }
  if ((fp = fopen(argv[1], "r")) == NULL) {
    printf("Cannot open file");
    exit(1);
  }
  while ((curr = fgetc(fp)) != EOF) {
    curr = toupper(curr);
    if ('A' <= curr && curr <= 'Z') {
      curr -= 'A';
      count[curr]++;
    }
  }
  for (int i = 0; i < 26; i++) {
    printf("'%c': %d\n", (i + 'A'), count[i]);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x88(%rbp)
cmpl   $0x1a,-0x88(%rbp)
jge    11a3 <main+0x53>
movslq -0x88(%rbp),%rax
movl   $0x0,-0x80(%rbp,%rax,4)
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    1173 <main+0x23>
cmpl   $0x2,-0x8(%rbp)
je     11c5 <main+0x75>
lea    0xe4c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe3b(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    11ff <main+0xaf>
lea    0xe23(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
jmp    1204 <main+0xb4>
mov    -0x18(%rbp),%rdi
call   1050 <fgetc@plt>
mov    %al,-0x81(%rbp)
movsbl %al,%eax
mov    0x2dcb(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     1286 <main+0x136>
movsbl -0x81(%rbp),%edi
call   1030 <toupper@plt>
mov    %al,-0x81(%rbp)
movsbl -0x81(%rbp),%ecx
mov    $0x41,%eax
cmp    %ecx,%eax
jg     1281 <main+0x131>
movsbl -0x81(%rbp),%eax
cmp    $0x5a,%eax
jg     1281 <main+0x131>
movsbl -0x81(%rbp),%eax
sub    $0x41,%eax
mov    %al,-0x81(%rbp)
movsbq -0x81(%rbp),%rax
ff
mov    -0x80(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x80(%rbp,%rax,4)
jmp    1204 <main+0xb4>
movl   $0x0,-0x8c(%rbp)
cmpl   $0x1a,-0x8c(%rbp)
jge    12d3 <main+0x183>
mov    -0x8c(%rbp),%esi
add    $0x41,%esi
movslq -0x8c(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%edx
lea    0xd6a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1290 <main+0x140>
mov    -0x4(%rbp),%eax
add    $0x90,%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,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movq   $0x0,0xb0(%rsp)
cmp    $0x2,%edi
jne    15b1 <main+0x451>
mov    0x8(%rsi),%rdi
lea    0xe45(%rip),%rsi
call   1070 <fopen@plt>
test   %rax,%rax
je     15c7 <main+0x467>
mov    %rax,%rbp
mov    %rax,%rdi
call   1060 <fgetc@plt>
mov    0x2e0d(%rip),%rbx
xor    %r8d,%r8d
mov    $0x0,%esi
mov    $0x0,%edi
mov    $0x0,%ecx
mov    $0x0,%r9d
mov    $0x0,%r10d
mov    $0x0,%r11d
movl   $0x0,0x34(%rsp)
movl   $0x0,0x30(%rsp)
movl   $0x0,0x2c(%rsp)
movl   $0x0,0x28(%rsp)
movl   $0x0,0x24(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x1c(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0x14(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x4(%rsp)
movl   $0x0,(%rsp)
mov    $0x0,%r14d
mov    $0x0,%r15d
mov    $0x0,%r12d
mov    $0x0,%r13d
mov    $0x0,%edx
cmp    (%rbx),%al
jne    12ac <main+0x14c>
jmp    1395 <main+0x235>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbp,%rdi
call   1060 <fgetc@plt>
cmp    (%rbx),%al
je     12c4 <main+0x164>
movsbl %al,%edi
call   1030 <toupper@plt>
add    $0xbf,%al
cmp    $0x19,%al
ja     12a0 <main+0x140>
movzbl %al,%eax
addl   $0x1,0x50(%rsp,%rax,4)
jmp    12a0 <main+0x140>
mov    0x50(%rsp),%edx
mov    0x54(%rsp),%r13d
mov    0x58(%rsp),%r12d
mov    0x5c(%rsp),%r15d
mov    0x60(%rsp),%r14d
mov    0x64(%rsp),%eax
mov    %eax,(%rsp)
mov    0x68(%rsp),%eax
mov    %eax,0x4(%rsp)
mov    0x6c(%rsp),%eax
mov    %eax,0x8(%rsp)
mov    0x70(%rsp),%eax
mov    %eax,0xc(%rsp)
mov    0x74(%rsp),%eax
mov    %eax,0x10(%rsp)
mov    0x78(%rsp),%eax
mov    %eax,0x14(%rsp)
mov    0x7c(%rsp),%eax
mov    %eax,0x18(%rsp)
mov    0x80(%rsp),%eax
mov    %eax,0x1c(%rsp)
mov    0x84(%rsp),%eax
mov    %eax,0x20(%rsp)
mov    0x88(%rsp),%eax
mov    %eax,0x24(%rsp)
mov    0x8c(%rsp),%eax
mov    %eax,0x28(%rsp)
mov    0x90(%rsp),%eax
mov    %eax,0x2c(%rsp)
mov    0x94(%rsp),%eax
mov    %eax,0x30(%rsp)
mov    0x98(%rsp),%eax
mov    %eax,0x34(%rsp)
mov    0x9c(%rsp),%r11d
mov    0xa0(%rsp),%r10d
mov    0xa4(%rsp),%r9d
mov    0xa8(%rsp),%ecx
mov    0xac(%rsp),%edi
mov    0xb0(%rsp),%esi
mov    0xb4(%rsp),%r8d
mov    %r10d,0x38(%rsp)
mov    %r9d,0x3c(%rsp)
mov    %ecx,0x40(%rsp)
mov    %edi,0x44(%rsp)
mov    %esi,0x48(%rsp)
mov    %r8d,0x4c(%rsp)
lea    0xc5c(%rip),%rbp
mov    %rbp,%rdi
mov    $0x41,%esi
xor    %eax,%eax
mov    %r11d,%ebx
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x42,%esi
mov    %r13d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x43,%esi
mov    %r12d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x44,%esi
mov    %r15d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x45,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x46,%esi
mov    (%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x47,%esi
mov    0x4(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x48,%esi
mov    0x8(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x49,%esi
mov    0xc(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x4a,%esi
mov    0x10(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x4b,%esi
mov    0x14(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x4c,%esi
mov    0x18(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x4d,%esi
mov    0x1c(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x4e,%esi
mov    0x20(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x4f,%esi
mov    0x24(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x50,%esi
mov    0x28(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x51,%esi
mov    0x2c(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x52,%esi
mov    0x30(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x53,%esi
mov    0x34(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x54,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x55,%esi
mov    0x38(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x56,%esi
mov    0x3c(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x57,%esi
mov    0x40(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x58,%esi
mov    0x44(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x59,%esi
mov    0x48(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%rdi
mov    $0x5a,%esi
mov    0x4c(%rsp),%edx
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xa65(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
lea    0xa34(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"Usage: <file>\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [17 x i8] c"Cannot open file\00"
@EOF = global i8 0
@.str.3 = [10 x i8] c"'%c': %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca [26 x i32]
%8 = alloca i8
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %9
br label %11
11: ; preds = %18, %2
%12 = load i32, i32* %9
%13 = icmp slt i32 %12, 26
br i1 %13, label %14, label %21
14: ; preds = %11
%15 = load i32, i32* %9
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [26 x i32], [26 x i32]* %7, i64 0, i64 %16
store i32 0, i32* %17
br label %18
18: ; preds = %14
%19 = load i32, i32* %9
%20 = add nsw i32 %19, 1
store i32 %20, i32* %9
br label %11
21: ; preds = %11
%22 = load i32, i32* %4
%23 = icmp ne i32 %22, 2
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%26 = call i32 @exit(i32 1)
unreachable
27: ; preds = %21
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 1
%30 = load i8*, i8** %29
%31 = call i32* @fopen(i8* %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %31, i32** %6
%32 = icmp eq i32* %31, null
br i1 %32, label %33, label %36
33: ; preds = %27
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%35 = call i32 @exit(i32 1)
unreachable
36: ; preds = %27
br label %37
37: ; preds = %64, %36
%38 = load i32*, i32** %6
%39 = call signext i8 @fgetc(i32* %38)
store i8 %39, i8* %8
%40 = sext i8 %39 to i32
%41 = load i8, i8* @EOF
%42 = sext i8 %41 to i32
%43 = icmp ne i32 %40, %42
br i1 %43, label %44, label %65
44: ; preds = %37
%45 = load i8, i8* %8
%46 = call signext i8 @toupper(i8 signext %45)
store i8 %46, i8* %8
%47 = load i8, i8* %8
%48 = sext i8 %47 to i32
%49 = icmp sle i32 65, %48
br i1 %49, label %50, label %64
50: ; preds = %44
%51 = load i8, i8* %8
%52 = sext i8 %51 to i32
%53 = icmp sle i32 %52, 90
br i1 %53, label %54, label %64
54: ; preds = %50
%55 = load i8, i8* %8
%56 = sext i8 %55 to i32
%57 = sub nsw i32 %56, 65
%58 = trunc i32 %57 to i8
store i8 %58, i8* %8
%59 = load i8, i8* %8
%60 = sext i8 %59 to i64
%61 = getelementptr inbounds [26 x i32], [26 x i32]* %7, i64 0, i64 %60
%62 = load i32, i32* %61
%63 = add nsw i32 %62, 1
store i32 %63, i32* %61
br label %64
64: ; preds = %54, %50, %44
br label %37
65: ; preds = %37
store i32 0, i32* %10
br label %66
66: ; preds = %77, %65
%67 = load i32, i32* %10
%68 = icmp slt i32 %67, 26
br i1 %68, label %69, label %80
69: ; preds = %66
%70 = load i32, i32* %10
%71 = add nsw i32 %70, 65
%72 = load i32, i32* %10
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [26 x i32], [26 x i32]* %7, i64 0, i64 %73
%75 = load i32, i32* %74
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %71, i32 %75)
br label %77
77: ; preds = %69
%78 = load i32, i32* %10
%79 = add nsw i32 %78, 1
store i32 %79, i32* %10
br label %66
80: ; preds = %66
%81 = load i32, i32* %3
ret i32 %81
}

LLVM IR (-O2):
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [17 x i8] c"Cannot open file\00"
@EOF = global i8 0
@.str.3 = [10 x i8] c"'%c': %d\0A\00"
@str = [14 x i8] c"Usage: <file>\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [26 x i32]
%4 = bitcast [26 x i32]* %3 to i8*
%5 = icmp eq i32 %0, 2
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 @exit(i32 1)
unreachable
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32* @fopen(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i32* %12, null
br i1 %13, label %18, label %14
14: ; preds = %9
%15 = tail call signext i8 @fgetc(i32* %12)
%16 = load i8, i8* @EOF
%17 = icmp eq i8 %15, %16
br i1 %17, label %74, label %127
18: ; preds = %9
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%20 = tail call i32 @exit(i32 1)
unreachable
21: ; preds = %137
%22 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 0
%23 = load i32, i32* %22
%24 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 1
%25 = load i32, i32* %24
%26 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 2
%27 = load i32, i32* %26
%28 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 3
%29 = load i32, i32* %28
%30 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 4
%31 = load i32, i32* %30
%32 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 5
%33 = load i32, i32* %32
%34 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 6
%35 = load i32, i32* %34
%36 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 7
%37 = load i32, i32* %36
%38 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 8
%39 = load i32, i32* %38
%40 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 9
%41 = load i32, i32* %40
%42 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 10
%43 = load i32, i32* %42
%44 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 11
%45 = load i32, i32* %44
%46 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 12
%47 = load i32, i32* %46
%48 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 13
%49 = load i32, i32* %48
%50 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 14
%51 = load i32, i32* %50
%52 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 15
%53 = load i32, i32* %52
%54 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 16
%55 = load i32, i32* %54
%56 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 17
%57 = load i32, i32* %56
%58 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 18
%59 = load i32, i32* %58
%60 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 19
%61 = load i32, i32* %60
%62 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 20
%63 = load i32, i32* %62
%64 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 21
%65 = load i32, i32* %64
%66 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 22
%67 = load i32, i32* %66
%68 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 23
%69 = load i32, i32* %68
%70 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 24
%71 = load i32, i32* %70
%72 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 25
%73 = load i32, i32* %72
br label %74
74: ; preds = %21, %14
%75 = phi i32 [ %73, %21 ], [ 0, %14 ]
%76 = phi i32 [ %71, %21 ], [ 0, %14 ]
%77 = phi i32 [ %69, %21 ], [ 0, %14 ]
%78 = phi i32 [ %67, %21 ], [ 0, %14 ]
%79 = phi i32 [ %65, %21 ], [ 0, %14 ]
%80 = phi i32 [ %63, %21 ], [ 0, %14 ]
%81 = phi i32 [ %61, %21 ], [ 0, %14 ]
%82 = phi i32 [ %59, %21 ], [ 0, %14 ]
%83 = phi i32 [ %57, %21 ], [ 0, %14 ]
%84 = phi i32 [ %55, %21 ], [ 0, %14 ]
%85 = phi i32 [ %53, %21 ], [ 0, %14 ]
%86 = phi i32 [ %51, %21 ], [ 0, %14 ]
%87 = phi i32 [ %49, %21 ], [ 0, %14 ]
%88 = phi i32 [ %47, %21 ], [ 0, %14 ]
%89 = phi i32 [ %45, %21 ], [ 0, %14 ]
%90 = phi i32 [ %43, %21 ], [ 0, %14 ]
%91 = phi i32 [ %41, %21 ], [ 0, %14 ]
%92 = phi i32 [ %39, %21 ], [ 0, %14 ]
%93 = phi i32 [ %37, %21 ], [ 0, %14 ]
%94 = phi i32 [ %35, %21 ], [ 0, %14 ]
%95 = phi i32 [ %33, %21 ], [ 0, %14 ]
%96 = phi i32 [ %31, %21 ], [ 0, %14 ]
%97 = phi i32 [ %29, %21 ], [ 0, %14 ]
%98 = phi i32 [ %27, %21 ], [ 0, %14 ]
%99 = phi i32 [ %25, %21 ], [ 0, %14 ]
%100 = phi i32 [ %23, %21 ], [ 0, %14 ]
%101 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 65, i32 %100)
%102 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 66, i32 %99)
%103 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 67, i32 %98)
%104 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 68, i32 %97)
%105 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 69, i32 %96)
%106 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 70, i32 %95)
%107 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 71, i32 %94)
%108 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 72, i32 %93)
%109 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 73, i32 %92)
%110 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 74, i32 %91)
%111 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 75, i32 %90)
%112 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 76, i32 %89)
%113 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 77, i32 %88)
%114 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 78, i32 %87)
%115 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 79, i32 %86)
%116 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 80, i32 %85)
%117 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 81, i32 %84)
%118 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 82, i32 %83)
%119 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 83, i32 %82)
%120 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 84, i32 %81)
%121 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 85, i32 %80)
%122 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 86, i32 %79)
%123 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 87, i32 %78)
%124 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 88, i32 %77)
%125 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 89, i32 %76)
%126 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 90, i32 %75)
ret i32 0
127: ; preds = %14, %137
%128 = phi i8 [ %138, %137 ], [ %15, %14 ]
%129 = tail call signext i8 @toupper(i8 signext %128)
%130 = add i8 %129, -65
%131 = icmp ult i8 %130, 26
br i1 %131, label %132, label %137
132: ; preds = %127
%133 = zext i8 %130 to i64
%134 = getelementptr inbounds [26 x i32], [26 x i32]* %3, i64 0, i64 %133
%135 = load i32, i32* %134
%136 = add nsw i32 %135, 1
store i32 %136, i32* %134
br label %137
137: ; preds = %132, %127
%138 = tail call signext i8 @fgetc(i32* %12)
%139 = load i8, i8* @EOF
%140 = icmp eq i8 %138, %139
br i1 %140, label %21, label %127
}