#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int EOF;
int getchar();
int /*<<< orphan*/ printf(char *, int);
void create_letter_distribution_program() {
  int numCounting[26][2];
  int index, temp, currentLetter, letterIndex;
  for (index = 0; index < 26; index++) {
    numCounting[index][0] = 'a' + index;
    numCounting[index][1] = 0;
  }
  while ((currentLetter = getchar()) != EOF)
    for (letterIndex = 0; letterIndex < 26; letterIndex++)
      if (currentLetter == numCounting[letterIndex][0] ||
          currentLetter == numCounting[letterIndex][0] - 32)
        numCounting[letterIndex][1] += 1;
  for (index = 0; index < 20; index++)
    for (letterIndex = 0; letterIndex < 25; letterIndex++) {
      if (numCounting[letterIndex][1] < numCounting[letterIndex + 1][1]) {
        temp = numCounting[letterIndex][1];
        numCounting[letterIndex][1] = numCounting[letterIndex + 1][1];
        numCounting[letterIndex + 1][1] = temp;
        temp = numCounting[letterIndex][0];
        numCounting[letterIndex][0] = numCounting[letterIndex + 1][0];
        numCounting[letterIndex + 1][0] = temp;
      }
      if (numCounting[letterIndex][1] == numCounting[letterIndex + 1][1]) {
        if (numCounting[letterIndex][0] > numCounting[letterIndex + 1][0]) {
          temp = numCounting[letterIndex][1];
          numCounting[letterIndex][1] = numCounting[letterIndex + 1][1];
          numCounting[letterIndex + 1][1] = temp;
          temp = numCounting[letterIndex][0];
          numCounting[letterIndex][0] = numCounting[letterIndex + 1][0];
          numCounting[letterIndex + 1][0] = temp;
        }
      }
    }
  for (index = 0; index < 26; index++) {
    printf("%c : ", numCounting[index][0]);
    printf("%d \n", numCounting[index][1]);
  }
}


x86 assembly (clang, -O0):
<create_letter_distribution_program>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0xd4(%rbp)
cmpl   $0x1a,-0xd4(%rbp)
jge    117f <create_letter_distribution_program+0x5f>
mov    -0xd4(%rbp),%ecx
add    $0x61,%ecx
movslq -0xd4(%rbp),%rax
mov    %ecx,-0xd0(%rbp,%rax,8)
movslq -0xd4(%rbp),%rax
movl   $0x0,-0xcc(%rbp,%rax,8)
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    1135 <create_letter_distribution_program+0x15>
jmp    1184 <create_letter_distribution_program+0x64>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0xdc(%rbp)
mov    0x2e50(%rip),%rcx
cmp    (%rcx),%eax
je     1226 <create_letter_distribution_program+0x106>
movl   $0x0,-0xe0(%rbp)
cmpl   $0x1a,-0xe0(%rbp)
jge    1221 <create_letter_distribution_program+0x101>
mov    -0xdc(%rbp),%eax
movslq -0xe0(%rbp),%rcx
cmp    -0xd0(%rbp,%rcx,8),%eax
je     11f0 <create_letter_distribution_program+0xd0>
mov    -0xdc(%rbp),%eax
movslq -0xe0(%rbp),%rcx
mov    -0xd0(%rbp,%rcx,8),%ecx
sub    $0x20,%ecx
cmp    %ecx,%eax
jne    1208 <create_letter_distribution_program+0xe8>
movslq -0xe0(%rbp),%rax
mov    -0xcc(%rbp,%rax,8),%ecx
add    $0x1,%ecx
mov    %ecx,-0xcc(%rbp,%rax,8)
jmp    120d <create_letter_distribution_program+0xed>
mov    -0xe0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe0(%rbp)
jmp    11aa <create_letter_distribution_program+0x8a>
jmp    1184 <create_letter_distribution_program+0x64>
movl   $0x0,-0xd4(%rbp)
cmpl   $0x14,-0xd4(%rbp)
jge    1430 <create_letter_distribution_program+0x310>
movl   $0x0,-0xe0(%rbp)
cmpl   $0x19,-0xe0(%rbp)
jge    1417 <create_letter_distribution_program+0x2f7>
movslq -0xe0(%rbp),%rax
mov    -0xcc(%rbp,%rax,8),%eax
mov    -0xe0(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmp    -0xcc(%rbp,%rcx,8),%eax
jge    1313 <create_letter_distribution_program+0x1f3>
movslq -0xe0(%rbp),%rax
mov    -0xcc(%rbp,%rax,8),%eax
mov    %eax,-0xd8(%rbp)
mov    -0xe0(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0xcc(%rbp,%rax,8),%ecx
movslq -0xe0(%rbp),%rax
mov    %ecx,-0xcc(%rbp,%rax,8)
mov    -0xd8(%rbp),%ecx
mov    -0xe0(%rbp),%eax
add    $0x1,%eax
cltq
mov    %ecx,-0xcc(%rbp,%rax,8)
movslq -0xe0(%rbp),%rax
mov    -0xd0(%rbp,%rax,8),%eax
mov    %eax,-0xd8(%rbp)
mov    -0xe0(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0xd0(%rbp,%rax,8),%ecx
movslq -0xe0(%rbp),%rax
mov    %ecx,-0xd0(%rbp,%rax,8)
mov    -0xd8(%rbp),%ecx
mov    -0xe0(%rbp),%eax
add    $0x1,%eax
cltq
mov    %ecx,-0xd0(%rbp,%rax,8)
movslq -0xe0(%rbp),%rax
mov    -0xcc(%rbp,%rax,8),%eax
mov    -0xe0(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmp    -0xcc(%rbp,%rcx,8),%eax
jne    13fe <create_letter_distribution_program+0x2de>
movslq -0xe0(%rbp),%rax
mov    -0xd0(%rbp,%rax,8),%eax
mov    -0xe0(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmp    -0xd0(%rbp,%rcx,8),%eax
jle    13f9 <create_letter_distribution_program+0x2d9>
movslq -0xe0(%rbp),%rax
mov    -0xcc(%rbp,%rax,8),%eax
mov    %eax,-0xd8(%rbp)
mov    -0xe0(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0xcc(%rbp,%rax,8),%ecx
movslq -0xe0(%rbp),%rax
mov    %ecx,-0xcc(%rbp,%rax,8)
mov    -0xd8(%rbp),%ecx
mov    -0xe0(%rbp),%eax
add    $0x1,%eax
cltq
mov    %ecx,-0xcc(%rbp,%rax,8)
movslq -0xe0(%rbp),%rax
mov    -0xd0(%rbp,%rax,8),%eax
mov    %eax,-0xd8(%rbp)
mov    -0xe0(%rbp),%eax
add    $0x1,%eax
cltq
mov    -0xd0(%rbp,%rax,8),%ecx
movslq -0xe0(%rbp),%rax
mov    %ecx,-0xd0(%rbp,%rax,8)
mov    -0xd8(%rbp),%ecx
mov    -0xe0(%rbp),%eax
add    $0x1,%eax
cltq
mov    %ecx,-0xd0(%rbp,%rax,8)
jmp    13fe <create_letter_distribution_program+0x2de>
jmp    1403 <create_letter_distribution_program+0x2e3>
mov    -0xe0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe0(%rbp)
jmp    1247 <create_letter_distribution_program+0x127>
jmp    141c <create_letter_distribution_program+0x2fc>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    1230 <create_letter_distribution_program+0x110>
movl   $0x0,-0xd4(%rbp)
cmpl   $0x1a,-0xd4(%rbp)
jge    148f <create_letter_distribution_program+0x36f>
movslq -0xd4(%rbp),%rax
mov    -0xd0(%rbp,%rax,8),%esi
lea    0xba4(%rip),%rdi
call   1030 <printf@plt>
movslq -0xd4(%rbp),%rax
mov    -0xcc(%rbp,%rax,8),%esi
lea    0xb90(%rip),%rdi
call   1030 <printf@plt>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    143a <create_letter_distribution_program+0x31a>
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<create_letter_distribution_program>:
push   %r15
push   %r14
push   %rbx
sub    $0xd0,%rsp
movaps 0xecd(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xed2(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xed6(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xeda(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xede(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xee2(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xee6(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xeea(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xeee(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xeef(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xef0(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xef1(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xef2(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
xor    %r15d,%r15d
xor    %eax,%eax
call   1040 <getchar@plt>
mov    0x2e01(%rip),%r14
jmp    11f7 <create_letter_distribution_program+0xd7>
nopl   0x0(%rax)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    (%r14),%eax
je     124a <create_letter_distribution_program+0x12a>
xor    %ecx,%ecx
jmp    120f <create_letter_distribution_program+0xef>
addl   $0x1,0xc(%rsp,%rcx,8)
add    $0x2,%rcx
cmp    $0x1a,%rcx
je     11f0 <create_letter_distribution_program+0xd0>
mov    (%rsp,%rcx,8),%edx
cmp    %edx,%eax
je     121d <create_letter_distribution_program+0xfd>
add    $0xffffffe0,%edx
cmp    %edx,%eax
jne    1222 <create_letter_distribution_program+0x102>
addl   $0x1,0x4(%rsp,%rcx,8)
mov    0x8(%rsp,%rcx,8),%edx
cmp    %edx,%eax
je     1200 <create_letter_distribution_program+0xe0>
add    $0xffffffe0,%edx
cmp    %edx,%eax
jne    1205 <create_letter_distribution_program+0xe5>
jmp    1200 <create_letter_distribution_program+0xe0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r15d
cmp    $0x14,%r15d
je     12ba <create_letter_distribution_program+0x19a>
mov    0x4(%rsp),%eax
xor    %esi,%esi
jmp    1266 <create_letter_distribution_program+0x146>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    $0x19,%rsi
je     1240 <create_letter_distribution_program+0x120>
mov    %rsi,%rdx
lea    (%rsi,%rsi,1),%rcx
mov    0xc(%rsp,%rsi,8),%edi
cmp    %edi,%eax
jge    1290 <create_letter_distribution_program+0x170>
mov    %edi,0x4(%rsp,%rcx,4)
mov    %eax,0xc(%rsp,%rcx,4)
mov    (%rsp,%rdx,8),%esi
mov    0x8(%rsp,%rdx,8),%ebx
mov    %ebx,(%rsp,%rdx,8)
mov    %esi,0x8(%rsp,%rdx,8)
jmp    1296 <create_letter_distribution_program+0x176>
nopl   (%rax)
mov    %edi,%esi
mov    %eax,%edi
mov    %esi,%eax
lea    0x1(%rdx),%rsi
cmp    %eax,%edi
jne    1260 <create_letter_distribution_program+0x140>
mov    (%rsp,%rdx,8),%edi
mov    0x8(%rsp,%rdx,8),%edx
cmp    %edx,%edi
jle    1260 <create_letter_distribution_program+0x140>
mov    %eax,0x4(%rsp,%rcx,4)
mov    %eax,0xc(%rsp,%rcx,4)
mov    %edx,(%rsp,%rcx,4)
mov    %edi,0x8(%rsp,%rcx,4)
jmp    1260 <create_letter_distribution_program+0x140>
xor    %ebx,%ebx
lea    0xe0d(%rip),%r14
lea    0xe0c(%rip),%r15
nopw   0x0(%rax,%rax,1)
mov    (%rsp,%rbx,8),%esi
mov    %r14,%rdi
call   1030 <printf@plt>
mov    0x4(%rsp,%rbx,8),%esi
mov    %r15,%rdi
call   1030 <printf@plt>
add    $0x1,%rbx
cmp    $0x1a,%rbx
jne    12d0 <create_letter_distribution_program+0x1b0>
add    $0xd0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

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