#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;
char getchar();
int /*<<< orphan*/ printf(char *, unsigned int, unsigned int);
int create_letter_distribution_diagram() {
  unsigned int swap, i, j, table[26][2];
  char in;
  for (i = 0; i < 26; i++) {
    table[i][0] = 'a' + i;
    table[i][1] = 0;
  }
  while ((in = getchar()) != EOF) {
    for (i = 0; i < 26; i++) {
      if (in == 'a' + i || in == 'A' + i) {
        table[i][1]++;
        break;
      }
    }
  }
  for (i = 0; i < (26 - 1); i++) {
    for (j = 0; j < 26 - i - 1; j++) {
      if (table[j][1] < table[j + 1][1]) {
        swap = table[j][1];
        table[j][1] = table[j + 1][1];
        table[j + 1][1] = swap;
        swap = table[j][0];
        table[j][0] = table[j + 1][0];
        table[j + 1][0] = swap;
      }
    }
  }
  for (i = 0; i < 26; i++)
    printf("%c: %d\n", table[i][0], table[i][1]);
  return 0;
}


x86 assembly (clang, -O0):
<create_letter_distribution_diagram>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x8(%rbp)
cmpl   $0x1a,-0x8(%rbp)
jae    1168 <create_letter_distribution_diagram+0x48>
mov    -0x8(%rbp),%ecx
add    $0x61,%ecx
mov    -0x8(%rbp),%eax
mov    %ecx,-0xe0(%rbp,%rax,8)
mov    -0x8(%rbp),%eax
movl   $0x0,-0xdc(%rbp,%rax,8)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1132 <create_letter_distribution_diagram+0x12>
jmp    116d <create_letter_distribution_diagram+0x4d>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %al,-0xe1(%rbp)
movsbl %al,%eax
mov    0x2e64(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     11fb <create_letter_distribution_diagram+0xdb>
movl   $0x0,-0x8(%rbp)
cmpl   $0x1a,-0x8(%rbp)
jae    11f6 <create_letter_distribution_diagram+0xd6>
movsbl -0xe1(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    $0x61,%ecx
cmp    %ecx,%eax
je     11ca <create_letter_distribution_diagram+0xaa>
movsbl -0xe1(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    $0x41,%ecx
cmp    %ecx,%eax
jne    11e3 <create_letter_distribution_diagram+0xc3>
mov    -0x8(%rbp),%eax
mov    -0xdc(%rbp,%rax,8),%ecx
add    $0x1,%ecx
mov    %ecx,-0xdc(%rbp,%rax,8)
jmp    11f6 <create_letter_distribution_diagram+0xd6>
jmp    11e8 <create_letter_distribution_diagram+0xc8>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1196 <create_letter_distribution_diagram+0x76>
jmp    116d <create_letter_distribution_diagram+0x4d>
movl   $0x0,-0x8(%rbp)
cmpl   $0x19,-0x8(%rbp)
jae    12de <create_letter_distribution_diagram+0x1be>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x1a,%ecx
sub    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jae    12cb <create_letter_distribution_diagram+0x1ab>
mov    -0xc(%rbp),%eax
mov    -0xdc(%rbp,%rax,8),%eax
mov    -0xc(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,%ecx
cmp    -0xdc(%rbp,%rcx,8),%eax
jae    12b8 <create_letter_distribution_diagram+0x198>
mov    -0xc(%rbp),%eax
mov    -0xdc(%rbp,%rax,8),%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,%eax
mov    -0xdc(%rbp,%rax,8),%ecx
mov    -0xc(%rbp),%eax
mov    %ecx,-0xdc(%rbp,%rax,8)
mov    -0x4(%rbp),%ecx
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,%eax
mov    %ecx,-0xdc(%rbp,%rax,8)
mov    -0xc(%rbp),%eax
mov    -0xe0(%rbp,%rax,8),%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,%eax
mov    -0xe0(%rbp,%rax,8),%ecx
mov    -0xc(%rbp),%eax
mov    %ecx,-0xe0(%rbp,%rax,8)
mov    -0x4(%rbp),%ecx
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,%eax
mov    %ecx,-0xe0(%rbp,%rax,8)
jmp    12bd <create_letter_distribution_diagram+0x19d>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1213 <create_letter_distribution_diagram+0xf3>
jmp    12d0 <create_letter_distribution_diagram+0x1b0>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1202 <create_letter_distribution_diagram+0xe2>
movl   $0x0,-0x8(%rbp)
cmpl   $0x1a,-0x8(%rbp)
jae    131d <create_letter_distribution_diagram+0x1fd>
mov    -0x8(%rbp),%eax
mov    -0xe0(%rbp,%rax,8),%esi
mov    -0x8(%rbp),%eax
mov    -0xdc(%rbp,%rax,8),%edx
lea    0xcf6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12e5 <create_letter_distribution_diagram+0x1c5>
xor    %eax,%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<create_letter_distribution_diagram>:
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_diagram+0xd7>
nopl   0x0(%rax)
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    (%r14),%al
je     1218 <create_letter_distribution_diagram+0xf8>
movsbl %al,%eax
lea    -0x41(%rax),%ecx
add    $0xffffff9f,%eax
cmp    %eax,%ecx
cmovb  %ecx,%eax
cmp    $0x1a,%eax
jae    11f0 <create_letter_distribution_diagram+0xd0>
mov    %eax,%eax
addl   $0x1,0x4(%rsp,%rax,8)
jmp    11f0 <create_letter_distribution_diagram+0xd0>
mov    $0x19,%eax
jmp    122e <create_letter_distribution_diagram+0x10e>
nop
add    $0x1,%r15d
add    $0xffffffffffffffff,%rax
cmp    $0x19,%r15d
je     1272 <create_letter_distribution_diagram+0x152>
mov    0x4(%rsp),%ecx
xor    %esi,%esi
jmp    1262 <create_letter_distribution_diagram+0x142>
cs nopw 0x0(%rax,%rax,1)
lea    (%rsi,%rsi,1),%rbx
mov    %edi,0x4(%rsp,%rsi,8)
mov    %ecx,0xc(%rsp,%rbx,4)
mov    (%rsp,%rsi,8),%edi
mov    0x8(%rsp,%rsi,8),%ebx
mov    %ebx,(%rsp,%rsi,8)
mov    %edi,0x8(%rsp,%rsi,8)
mov    %rdx,%rsi
cmp    %rdx,%rax
je     1220 <create_letter_distribution_diagram+0x100>
lea    0x1(%rsi),%rdx
mov    0xc(%rsp,%rsi,8),%edi
cmp    %edi,%ecx
jb     1240 <create_letter_distribution_diagram+0x120>
mov    %edi,%ecx
jmp    125a <create_letter_distribution_diagram+0x13a>
xor    %ebx,%ebx
lea    0xe55(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    (%rsp,%rbx,8),%esi
mov    0x4(%rsp,%rbx,8),%edx
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0x1,%rbx
cmp    $0x1a,%rbx
jne    1280 <create_letter_distribution_diagram+0x160>
xor    %eax,%eax
add    $0xd0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@EOF = global i8 0
@.str = [8 x i8] c"%c: %d\0A\00"
define i32 @create_letter_distribution_diagram() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [26 x [2 x i32]]
%5 = alloca i8
store i32 0, i32* %2
br label %6
6: ; preds = %20, %0
%7 = load i32, i32* %2
%8 = icmp ult i32 %7, 26
br i1 %8, label %9, label %23
9: ; preds = %6
%10 = load i32, i32* %2
%11 = add i32 97, %10
%12 = load i32, i32* %2
%13 = zext i32 %12 to i64
%14 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %4, 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 = zext i32 %16 to i64
%18 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %4, 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 i32 %21, 1
store i32 %22, i32* %2
br label %6
23: ; preds = %6
br label %24
24: ; preds = %57, %23
%25 = call signext i8 (...) @getchar()
store i8 %25, i8* %5
%26 = sext i8 %25 to i32
%27 = load i8, i8* @EOF
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %26, %28
br i1 %29, label %30, label %58
30: ; preds = %24
store i32 0, i32* %2
br label %31
31: ; preds = %54, %30
%32 = load i32, i32* %2
%33 = icmp ult i32 %32, 26
br i1 %33, label %34, label %57
34: ; preds = %31
%35 = load i8, i8* %5
%36 = sext i8 %35 to i32
%37 = load i32, i32* %2
%38 = add i32 97, %37
%39 = icmp eq i32 %36, %38
br i1 %39, label %46, label %40
40: ; preds = %34
%41 = load i8, i8* %5
%42 = sext i8 %41 to i32
%43 = load i32, i32* %2
%44 = add i32 65, %43
%45 = icmp eq i32 %42, %44
br i1 %45, label %46, label %53
46: ; preds = %40, %34
%47 = load i32, i32* %2
%48 = zext i32 %47 to i64
%49 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %4, i64 0, i64 %48
%50 = getelementptr inbounds [2 x i32], [2 x i32]* %49, i64 0, i64 1
%51 = load i32, i32* %50
%52 = add i32 %51, 1
store i32 %52, i32* %50
br label %57
53: ; preds = %40
br label %54
54: ; preds = %53
%55 = load i32, i32* %2
%56 = add i32 %55, 1
store i32 %56, i32* %2
br label %31
57: ; preds = %46, %31
br label %24
58: ; preds = %24
store i32 0, i32* %2
br label %59
59: ; preds = %130, %58
%60 = load i32, i32* %2
%61 = icmp ult i32 %60, 25
br i1 %61, label %62, label %133
62: ; preds = %59
store i32 0, i32* %3
br label %63
63: ; preds = %126, %62
%64 = load i32, i32* %3
%65 = load i32, i32* %2
%66 = sub i32 26, %65
%67 = sub i32 %66, 1
%68 = icmp ult i32 %64, %67
br i1 %68, label %69, label %129
69: ; preds = %63
%70 = load i32, i32* %3
%71 = zext i32 %70 to i64
%72 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %4, 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* %3
%76 = add i32 %75, 1
%77 = zext i32 %76 to i64
%78 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %4, 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 ult i32 %74, %80
br i1 %81, label %82, label %125
82: ; preds = %69
%83 = load i32, i32* %3
%84 = zext i32 %83 to i64
%85 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %4, 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* %1
%88 = load i32, i32* %3
%89 = add i32 %88, 1
%90 = zext i32 %89 to i64
%91 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %4, 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* %3
%95 = zext i32 %94 to i64
%96 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %4, 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* %1
%99 = load i32, i32* %3
%100 = add i32 %99, 1
%101 = zext i32 %100 to i64
%102 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %4, 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* %3
%105 = zext i32 %104 to i64
%106 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %4, 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* %1
%109 = load i32, i32* %3
%110 = add i32 %109, 1
%111 = zext i32 %110 to i64
%112 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %4, 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* %3
%116 = zext i32 %115 to i64
%117 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %4, 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* %1
%120 = load i32, i32* %3
%121 = add i32 %120, 1
%122 = zext i32 %121 to i64
%123 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %4, 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
br label %126
126: ; preds = %125
%127 = load i32, i32* %3
%128 = add i32 %127, 1
store i32 %128, i32* %3
br label %63
129: ; preds = %63
br label %130
130: ; preds = %129
%131 = load i32, i32* %2
%132 = add i32 %131, 1
store i32 %132, i32* %2
br label %59
133: ; preds = %59
store i32 0, i32* %2
br label %134
134: ; preds = %149, %133
%135 = load i32, i32* %2
%136 = icmp ult i32 %135, 26
br i1 %136, label %137, label %152
137: ; preds = %134
%138 = load i32, i32* %2
%139 = zext i32 %138 to i64
%140 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %4, i64 0, i64 %139
%141 = getelementptr inbounds [2 x i32], [2 x i32]* %140, i64 0, i64 0
%142 = load i32, i32* %141
%143 = load i32, i32* %2
%144 = zext i32 %143 to i64
%145 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %4, i64 0, i64 %144
%146 = getelementptr inbounds [2 x i32], [2 x i32]* %145, i64 0, i64 1
%147 = load i32, i32* %146
%148 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %142, i32 %147)
br label %149
149: ; preds = %137
%150 = load i32, i32* %2
%151 = add i32 %150, 1
store i32 %151, i32* %2
br label %134
152: ; preds = %134
ret i32 0
}

LLVM IR (-O2):
@EOF = global i8 0
@.str = [8 x i8] c"%c: %d\0A\00"
define i32 @create_letter_distribution_diagram() {
%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 signext i8 (...) @getchar()
%29 = load i8, i8* @EOF
%30 = icmp eq i8 %28, %29
br i1 %30, label %38, label %31
31: ; preds = %0, %45
%32 = phi i8 [ %46, %45 ], [ %28, %0 ]
%33 = sext i8 %32 to i32
%34 = add nsw i32 %33, -65
%35 = add nsw i32 %33, -97
%36 = call i32 @llvm.umin.i32(i32 %34, i32 %35)
%37 = icmp ult i32 %36, 26
br i1 %37, label %40, label %45
38: ; preds = %45, %0
%39 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %1, i64 0, i64 0, i64 1
br label %49
40: ; preds = %31
%41 = zext i32 %36 to i64
%42 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %1, i64 0, i64 %41, i64 1
%43 = load i32, i32* %42
%44 = add i32 %43, 1
store i32 %44, i32* %42
br label %45
45: ; preds = %31, %40
%46 = tail call signext i8 (...) @getchar()
%47 = load i8, i8* @EOF
%48 = icmp eq i8 %46, %47
br i1 %48, label %38, label %31
49: ; preds = %69, %38
%50 = phi i64 [ 25, %38 ], [ %71, %69 ]
%51 = phi i32 [ 0, %38 ], [ %70, %69 ]
%52 = load i32, i32* %39
br label %53
53: ; preds = %49, %66
%54 = phi i32 [ %52, %49 ], [ %67, %66 ]
%55 = phi i64 [ 0, %49 ], [ %56, %66 ]
%56 = add nuw nsw i64 %55, 1
%57 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %1, i64 0, i64 %56, i64 1
%58 = load i32, i32* %57
%59 = icmp ult i32 %54, %58
br i1 %59, label %60, label %66
60: ; preds = %53
%61 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %1, i64 0, i64 %55, i64 1
store i32 %58, i32* %61
store i32 %54, i32* %57
%62 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %1, i64 0, i64 %55, i64 0
%63 = load i32, i32* %62
%64 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %1, i64 0, i64 %56, i64 0
%65 = load i32, i32* %64
store i32 %65, i32* %62
store i32 %63, i32* %64
br label %66
66: ; preds = %53, %60
%67 = phi i32 [ %58, %53 ], [ %54, %60 ]
%68 = icmp eq i64 %56, %50
br i1 %68, label %69, label %53
69: ; preds = %66
%70 = add nuw nsw i32 %51, 1
%71 = add nsw i64 %50, -1
%72 = icmp eq i32 %70, 25
br i1 %72, label %73, label %49
73: ; preds = %69, %73
%74 = phi i64 [ %80, %73 ], [ 0, %69 ]
%75 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %1, i64 0, i64 %74, i64 0
%76 = load i32, i32* %75
%77 = getelementptr inbounds [26 x [2 x i32]], [26 x [2 x i32]]* %1, i64 0, i64 %74, i64 1
%78 = load i32, i32* %77
%79 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %76, i32 %78)
%80 = add nuw nsw i64 %74, 1
%81 = icmp eq i64 %80, 26
br i1 %81, label %82, label %73
82: ; preds = %73
ret i32 0
}