#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 /*<<< orphan*/ printf(char *, int, int);
int strlen(char *);
int create_letter_distribution_diagram(char izrechenie[50]) {
  int alphabet[26][2];
  int counter = 0, lines, ascii = 97, asciicode, tmp;
  for (lines = 0; lines < 26; lines++) {
    alphabet[lines][0] = ascii + lines;
    alphabet[lines][1] = 0;
  }
  while (counter < strlen(izrechenie)) {
    asciicode = izrechenie[counter];
    for (lines = 0; lines < 26; lines++) {
      if (asciicode == alphabet[lines][0] ||
          asciicode == alphabet[lines][0] - 32) {
        alphabet[lines][1]++;
      }
    }
    counter++;
  }
  for (lines = 0; lines < 26; lines++) {
    for (counter = 0; counter < 26; counter++) {
      if (alphabet[lines][1] > alphabet[counter][1]) {
        tmp = alphabet[lines][0];
        alphabet[lines][0] = alphabet[counter][0];
        alphabet[counter][0] = tmp;
        tmp = alphabet[lines][1];
        alphabet[lines][1] = alphabet[counter][1];
        alphabet[counter][1] = tmp;
      } else if (alphabet[lines][1] == alphabet[counter][1]) {
        if (alphabet[lines][0] < alphabet[counter][0]) {
          tmp = alphabet[lines][0];
          alphabet[lines][0] = alphabet[counter][0];
          alphabet[counter][0] = tmp;
          tmp = alphabet[lines][1];
          alphabet[lines][1] = alphabet[counter][1];
          alphabet[counter][1] = tmp;
        }
      }
    }
  }
  for (lines = 0; lines < 26; lines++) {
    printf("%c: %d \n", alphabet[lines][0], alphabet[lines][1]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<create_letter_distribution_diagram>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xe4(%rbp)
movl   $0x61,-0xec(%rbp)
movl   $0x0,-0xe8(%rbp)
cmpl   $0x1a,-0xe8(%rbp)
jge    119a <create_letter_distribution_diagram+0x7a>
mov    -0xec(%rbp),%ecx
add    -0xe8(%rbp),%ecx
movslq -0xe8(%rbp),%rax
mov    %ecx,-0xe0(%rbp,%rax,8)
movslq -0xe8(%rbp),%rax
movl   $0x0,-0xdc(%rbp,%rax,8)
mov    -0xe8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe8(%rbp)
jmp    114d <create_letter_distribution_diagram+0x2d>
jmp    119f <create_letter_distribution_diagram+0x7f>
mov    -0xe4(%rbp),%eax
mov    %eax,-0xf8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0xf8(%rbp),%eax
cmp    %ecx,%eax
jge    126e <create_letter_distribution_diagram+0x14e>
mov    -0x8(%rbp),%rax
movslq -0xe4(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
mov    %eax,-0xf0(%rbp)
movl   $0x0,-0xe8(%rbp)
cmpl   $0x1a,-0xe8(%rbp)
jge    125a <create_letter_distribution_diagram+0x13a>
mov    -0xf0(%rbp),%eax
movslq -0xe8(%rbp),%rcx
cmp    -0xe0(%rbp,%rcx,8),%eax
je     1229 <create_letter_distribution_diagram+0x109>
mov    -0xf0(%rbp),%eax
movslq -0xe8(%rbp),%rcx
mov    -0xe0(%rbp,%rcx,8),%ecx
sub    $0x20,%ecx
cmp    %ecx,%eax
jne    1241 <create_letter_distribution_diagram+0x121>
movslq -0xe8(%rbp),%rax
mov    -0xdc(%rbp,%rax,8),%ecx
add    $0x1,%ecx
mov    %ecx,-0xdc(%rbp,%rax,8)
jmp    1246 <create_letter_distribution_diagram+0x126>
mov    -0xe8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe8(%rbp)
jmp    11e3 <create_letter_distribution_diagram+0xc3>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
jmp    119f <create_letter_distribution_diagram+0x7f>
movl   $0x0,-0xe8(%rbp)
cmpl   $0x1a,-0xe8(%rbp)
jge    1453 <create_letter_distribution_diagram+0x333>
movl   $0x0,-0xe4(%rbp)
cmpl   $0x1a,-0xe4(%rbp)
jge    143a <create_letter_distribution_diagram+0x31a>
movslq -0xe8(%rbp),%rax
mov    -0xdc(%rbp,%rax,8),%eax
movslq -0xe4(%rbp),%rcx
cmp    -0xdc(%rbp,%rcx,8),%eax
jle    134b <create_letter_distribution_diagram+0x22b>
movslq -0xe8(%rbp),%rax
mov    -0xe0(%rbp,%rax,8),%eax
mov    %eax,-0xf4(%rbp)
movslq -0xe4(%rbp),%rax
mov    -0xe0(%rbp,%rax,8),%ecx
movslq -0xe8(%rbp),%rax
mov    %ecx,-0xe0(%rbp,%rax,8)
mov    -0xf4(%rbp),%ecx
movslq -0xe4(%rbp),%rax
mov    %ecx,-0xe0(%rbp,%rax,8)
movslq -0xe8(%rbp),%rax
mov    -0xdc(%rbp,%rax,8),%eax
mov    %eax,-0xf4(%rbp)
movslq -0xe4(%rbp),%rax
mov    -0xdc(%rbp,%rax,8),%ecx
movslq -0xe8(%rbp),%rax
mov    %ecx,-0xdc(%rbp,%rax,8)
mov    -0xf4(%rbp),%ecx
movslq -0xe4(%rbp),%rax
mov    %ecx,-0xdc(%rbp,%rax,8)
jmp    1421 <create_letter_distribution_diagram+0x301>
movslq -0xe8(%rbp),%rax
mov    -0xdc(%rbp,%rax,8),%eax
movslq -0xe4(%rbp),%rcx
cmp    -0xdc(%rbp,%rcx,8),%eax
jne    141c <create_letter_distribution_diagram+0x2fc>
movslq -0xe8(%rbp),%rax
mov    -0xe0(%rbp,%rax,8),%eax
movslq -0xe4(%rbp),%rcx
cmp    -0xe0(%rbp,%rcx,8),%eax
jge    1417 <create_letter_distribution_diagram+0x2f7>
movslq -0xe8(%rbp),%rax
mov    -0xe0(%rbp,%rax,8),%eax
mov    %eax,-0xf4(%rbp)
movslq -0xe4(%rbp),%rax
mov    -0xe0(%rbp,%rax,8),%ecx
movslq -0xe8(%rbp),%rax
mov    %ecx,-0xe0(%rbp,%rax,8)
mov    -0xf4(%rbp),%ecx
movslq -0xe4(%rbp),%rax
mov    %ecx,-0xe0(%rbp,%rax,8)
movslq -0xe8(%rbp),%rax
mov    -0xdc(%rbp,%rax,8),%eax
mov    %eax,-0xf4(%rbp)
movslq -0xe4(%rbp),%rax
mov    -0xdc(%rbp,%rax,8),%ecx
movslq -0xe8(%rbp),%rax
mov    %ecx,-0xdc(%rbp,%rax,8)
mov    -0xf4(%rbp),%ecx
movslq -0xe4(%rbp),%rax
mov    %ecx,-0xdc(%rbp,%rax,8)
jmp    141c <create_letter_distribution_diagram+0x2fc>
jmp    1421 <create_letter_distribution_diagram+0x301>
jmp    1426 <create_letter_distribution_diagram+0x306>
mov    -0xe4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe4(%rbp)
jmp    128f <create_letter_distribution_diagram+0x16f>
jmp    143f <create_letter_distribution_diagram+0x31f>
mov    -0xe8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe8(%rbp)
jmp    1278 <create_letter_distribution_diagram+0x158>
movl   $0x0,-0xe8(%rbp)
cmpl   $0x1a,-0xe8(%rbp)
jge    14a6 <create_letter_distribution_diagram+0x386>
movslq -0xe8(%rbp),%rax
mov    -0xe0(%rbp,%rax,8),%esi
movslq -0xe8(%rbp),%rax
mov    -0xdc(%rbp,%rax,8),%edx
lea    0xb73(%rip),%rdi
call   1040 <printf@plt>
mov    -0xe8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe8(%rbp)
jmp    145d <create_letter_distribution_diagram+0x33d>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<create_letter_distribution_diagram>:
push   %r14
push   %rbx
sub    $0xd8,%rsp
mov    %rdi,%r14
movaps 0xecc(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xed1(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xed5(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xed9(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xedd(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xee1(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xee5(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xee9(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xeed(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xeee(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xeef(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xef0(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xef1(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
call   1030 <strlen@plt>
test   %eax,%eax
jle    1243 <create_letter_distribution_diagram+0x123>
xor    %ebx,%ebx
jmp    1203 <create_letter_distribution_diagram+0xe3>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rbx
mov    %r14,%rdi
call   1030 <strlen@plt>
cltq
cmp    %rax,%rbx
jge    1243 <create_letter_distribution_diagram+0x123>
movsbl (%r14,%rbx,1),%eax
xor    %ecx,%ecx
jmp    121f <create_letter_distribution_diagram+0xff>
nopl   0x0(%rax)
addl   $0x1,0xc(%rsp,%rcx,8)
add    $0x2,%rcx
cmp    $0x1a,%rcx
je     11f0 <create_letter_distribution_diagram+0xd0>
mov    (%rsp,%rcx,8),%edx
cmp    %eax,%edx
je     122d <create_letter_distribution_diagram+0x10d>
add    $0xffffffe0,%edx
cmp    %eax,%edx
jne    1232 <create_letter_distribution_diagram+0x112>
addl   $0x1,0x4(%rsp,%rcx,8)
mov    0x8(%rsp,%rcx,8),%edx
cmp    %eax,%edx
je     1210 <create_letter_distribution_diagram+0xf0>
add    $0xffffffe0,%edx
cmp    %eax,%edx
jne    1215 <create_letter_distribution_diagram+0xf5>
jmp    1210 <create_letter_distribution_diagram+0xf0>
xor    %eax,%eax
jmp    125a <create_letter_distribution_diagram+0x13a>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rax
cmp    $0x1a,%rax
je     12a0 <create_letter_distribution_diagram+0x180>
xor    %ecx,%ecx
jmp    127e <create_letter_distribution_diagram+0x15e>
xchg   %ax,%ax
mov    (%rsp,%rax,8),%edi
mov    (%rsp,%rcx,8),%ebx
mov    %ebx,(%rsp,%rax,8)
mov    %edi,(%rsp,%rcx,8)
mov    %esi,0x4(%rsp,%rax,8)
mov    %edx,0x4(%rsp,%rcx,8)
add    $0x1,%rcx
cmp    $0x1a,%rcx
je     1250 <create_letter_distribution_diagram+0x130>
mov    0x4(%rsp,%rax,8),%edx
mov    0x4(%rsp,%rcx,8),%esi
cmp    %esi,%edx
jg     1260 <create_letter_distribution_diagram+0x140>
jne    1274 <create_letter_distribution_diagram+0x154>
mov    (%rsp,%rax,8),%esi
mov    (%rsp,%rcx,8),%edi
cmp    %edi,%esi
jge    1274 <create_letter_distribution_diagram+0x154>
mov    %edi,(%rsp,%rax,8)
mov    %esi,(%rsp,%rcx,8)
mov    %edx,%esi
jmp    126c <create_letter_distribution_diagram+0x14c>
xor    %ebx,%ebx
lea    0xe27(%rip),%r14
nopl   0x0(%rax)
mov    (%rsp,%rbx,8),%esi
mov    0x4(%rsp,%rbx,8),%edx
mov    %r14,%rdi
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    $0x1a,%rbx
jne    12b0 <create_letter_distribution_diagram+0x190>
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r14
ret

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

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