#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 *FLine(int /*<<< orphan*/ *);
char *FLineSpace(int /*<<< orphan*/ *);
int charExits(char, char *, int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int);
int getNumLines(int /*<<< orphan*/ *);
int length(char *);
scalar_t__ numChrInStr(char, char *, int);
int main(void) {
  FILE *file = fopen("blocks.in", "r");
  FILE *fWrite = fopen("blocks.out", "w");
  int letters[26];
  int iteration = getNumLines(file);
  char *firstSide;
  char *scndSide;
  int i;
  int j;
  int s1size;
  int s2size;
  for (j = 0; j < 26; j++) {
    *(letters + j) = 0;
  }
  for (i = 0; i < iteration; i++) {
    firstSide = FLineSpace(file);
    scndSide = FLine(file);
    s1size = length(firstSide);
    s2size = length(scndSide);
    for (j = 0; j < s1size; j++) {
      if (charExits(*(firstSide + j), scndSide, s2size) != 1) {
        *(letters + (*(firstSide + j) - 'a')) += 1;
      } else {
        if ((numChrInStr(*(firstSide + j), firstSide, s1size)) >=
            (numChrInStr(*(firstSide + j), scndSide, s2size))) {
          *(letters + (*(firstSide + j) - 'a')) += 1;
        }
      }
    }
    for (j = 0; j < s2size; j++) {
      if (charExits(*(scndSide + j), firstSide, s1size) != 1) {
        *(letters + (*(scndSide + j) - 'a')) += 1;
      } else {
        if ((numChrInStr(*(scndSide + j), scndSide, s2size)) >
            (numChrInStr(*(scndSide + j), firstSide, s1size))) {
          *(letters + (*(scndSide + j) - 'a')) += 1;
        }
      }
    }
  }
  for (j = 0; j < 26; j++) {
    fprintf(fWrite, "%d\n", *(letters + j));
  }
  fclose(file);
  fclose(fWrite);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe57(%rip),%rdi
lea    0xe5a(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x10(%rbp)
lea    0xe4c(%rip),%rdi
lea    0xe50(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1070 <getNumLines@plt>
mov    %eax,-0x84(%rbp)
movl   $0x0,-0xa0(%rbp)
cmpl   $0x1a,-0xa0(%rbp)
jge    1219 <main+0x89>
movslq -0xa0(%rbp),%rax
movl   $0x0,-0x80(%rbp,%rax,4)
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
jmp    11e9 <main+0x59>
movl   $0x0,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
cmp    -0x84(%rbp),%eax
jge    14c2 <main+0x332>
mov    -0x10(%rbp),%rdi
call   1090 <FLineSpace@plt>
mov    %rax,-0x90(%rbp)
mov    -0x10(%rbp),%rdi
call   1060 <FLine@plt>
mov    %rax,-0x98(%rbp)
mov    -0x90(%rbp),%rdi
call   1030 <length@plt>
mov    %eax,-0xa4(%rbp)
mov    -0x98(%rbp),%rdi
call   1030 <length@plt>
mov    %eax,-0xa8(%rbp)
movl   $0x0,-0xa0(%rbp)
mov    -0xa0(%rbp),%eax
cmp    -0xa4(%rbp),%eax
jge    1391 <main+0x201>
mov    -0x90(%rbp),%rax
movslq -0xa0(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    -0x98(%rbp),%rsi
mov    -0xa8(%rbp),%edx
movsbl %al,%edi
call   10a0 <charExits@plt>
cmp    $0x1,%eax
je     12eb <main+0x15b>
mov    -0x90(%rbp),%rax
movslq -0xa0(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
sub    $0x61,%eax
cltq
mov    -0x80(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x80(%rbp,%rax,4)
jmp    1378 <main+0x1e8>
mov    -0x90(%rbp),%rax
movslq -0xa0(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    -0x90(%rbp),%rsi
mov    -0xa4(%rbp),%edx
movsbl %al,%edi
call   10b0 <numChrInStr@plt>
mov    %rax,-0xb0(%rbp)
mov    -0x90(%rbp),%rax
movslq -0xa0(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    -0x98(%rbp),%rsi
mov    -0xa8(%rbp),%edx
movsbl %al,%edi
call   10b0 <numChrInStr@plt>
mov    %rax,%rcx
mov    -0xb0(%rbp),%rax
cmp    %rcx,%rax
jl     1373 <main+0x1e3>
mov    -0x90(%rbp),%rax
movslq -0xa0(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
sub    $0x61,%eax
cltq
mov    -0x80(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x80(%rbp,%rax,4)
jmp    1378 <main+0x1e8>
jmp    137d <main+0x1ed>
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
jmp    1283 <main+0xf3>
movl   $0x0,-0xa0(%rbp)
mov    -0xa0(%rbp),%eax
cmp    -0xa8(%rbp),%eax
jge    14a9 <main+0x319>
mov    -0x98(%rbp),%rax
movslq -0xa0(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    -0x90(%rbp),%rsi
mov    -0xa4(%rbp),%edx
movsbl %al,%edi
call   10a0 <charExits@plt>
cmp    $0x1,%eax
je     1403 <main+0x273>
mov    -0x98(%rbp),%rax
movslq -0xa0(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
sub    $0x61,%eax
cltq
mov    -0x80(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x80(%rbp,%rax,4)
jmp    1490 <main+0x300>
mov    -0x98(%rbp),%rax
movslq -0xa0(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    -0x98(%rbp),%rsi
mov    -0xa8(%rbp),%edx
movsbl %al,%edi
call   10b0 <numChrInStr@plt>
mov    %rax,-0xb8(%rbp)
mov    -0x98(%rbp),%rax
movslq -0xa0(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    -0x90(%rbp),%rsi
mov    -0xa4(%rbp),%edx
movsbl %al,%edi
call   10b0 <numChrInStr@plt>
mov    %rax,%rcx
mov    -0xb8(%rbp),%rax
cmp    %rcx,%rax
jle    148b <main+0x2fb>
mov    -0x98(%rbp),%rax
movslq -0xa0(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
sub    $0x61,%eax
cltq
mov    -0x80(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x80(%rbp,%rax,4)
jmp    1490 <main+0x300>
jmp    1495 <main+0x305>
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
jmp    139b <main+0x20b>
jmp    14ae <main+0x31e>
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    1223 <main+0x93>
movl   $0x0,-0xa0(%rbp)
cmpl   $0x1a,-0xa0(%rbp)
jge    1508 <main+0x378>
mov    -0x18(%rbp),%rdi
movslq -0xa0(%rbp),%rax
mov    -0x80(%rbp,%rax,4),%edx
lea    0xb2a(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
jmp    14cc <main+0x33c>
mov    -0x10(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x4(%rbp),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
lea    0xe58(%rip),%rdi
lea    0xe5b(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%rbx
lea    0xe4e(%rip),%rdi
lea    0xe52(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,0x20(%rsp)
mov    %rbx,0x18(%rsp)
mov    %rbx,%rdi
call   1070 <getNumLines@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x80(%rsp)
movq   $0x0,0x90(%rsp)
mov    %eax,0x10(%rsp)
test   %eax,%eax
jle    1371 <main+0x1e1>
xor    %eax,%eax
jmp    1232 <main+0xa2>
nopl   0x0(%rax)
mov    0x28(%rsp),%rax
add    $0x1,%eax
cmp    0x10(%rsp),%eax
je     1371 <main+0x1e1>
mov    %rax,0x28(%rsp)
mov    0x18(%rsp),%rbx
mov    %rbx,%rdi
call   1090 <FLineSpace@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
call   1060 <FLine@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
call   1030 <length@plt>
mov    %eax,%r13d
mov    %rbx,%rdi
call   1030 <length@plt>
mov    %eax,0xc(%rsp)
test   %r13d,%r13d
jle    12f0 <main+0x160>
mov    %r13d,%r14d
xor    %r12d,%r12d
mov    %r13d,0x14(%rsp)
jmp    1295 <main+0x105>
nop
movsbq %cl,%rax
addl   $0x1,-0x154(%rsp,%rax,4)
01
add    $0x1,%r12
cmp    %r12,%r14
je     12f0 <main+0x160>
movsbl 0x0(%rbp,%r12,1),%edi
mov    %rbx,%rsi
mov    0xc(%rsp),%edx
call   10a0 <charExits@plt>
movzbl 0x0(%rbp,%r12,1),%ecx
cmp    $0x1,%eax
jne    1280 <main+0xf0>
movsbl %cl,%edi
mov    %rbp,%rsi
mov    %r13d,%edx
call   10b0 <numChrInStr@plt>
mov    %r14,%r13
mov    %rax,%r14
movsbl 0x0(%rbp,%r12,1),%edi
mov    %rbx,%rsi
mov    0xc(%rsp),%edx
call   10b0 <numChrInStr@plt>
cmp    %rax,%r14
mov    %r13,%r14
mov    0x14(%rsp),%r13d
jl     128c <main+0xfc>
movzbl 0x0(%rbp,%r12,1),%ecx
jmp    1280 <main+0xf0>
nopl   (%rax)
cmpl   $0x0,0xc(%rsp)
jle    1220 <main+0x90>
mov    0xc(%rsp),%r15d
xor    %r12d,%r12d
jmp    1329 <main+0x199>
cs nopw 0x0(%rax,%rax,1)
nop
movsbq %cl,%rax
addl   $0x1,-0x154(%rsp,%rax,4)
01
add    $0x1,%r12
cmp    %r12,%r15
je     1220 <main+0x90>
movsbl (%rbx,%r12,1),%edi
mov    %rbp,%rsi
mov    %r13d,%edx
call   10a0 <charExits@plt>
movzbl (%rbx,%r12,1),%ecx
cmp    $0x1,%eax
jne    1310 <main+0x180>
movsbl %cl,%edi
mov    %rbx,%rsi
mov    0xc(%rsp),%edx
call   10b0 <numChrInStr@plt>
mov    %rax,%r14
movsbl (%rbx,%r12,1),%edi
mov    %rbp,%rsi
mov    %r13d,%edx
call   10b0 <numChrInStr@plt>
cmp    %rax,%r14
jle    131c <main+0x18c>
movzbl (%rbx,%r12,1),%ecx
jmp    1310 <main+0x180>
xor    %ebp,%ebp
lea    0xc9f(%rip),%r14
mov    0x20(%rsp),%rbx
nop
mov    0x30(%rsp,%rbp,4),%edx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <fprintf@plt>
add    $0x1,%rbp
cmp    $0x1a,%rbp
jne    1380 <main+0x1f0>
mov    0x18(%rsp),%rdi
call   1040 <fclose@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [10 x i8] c"blocks.in\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [11 x i8] c"blocks.out\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [26 x i32]
%2 = bitcast [26 x i32]* %1 to i8*
%3 = tail call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @getNumLines(i32* %3)
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %71
7: ; preds = %0, %68
%8 = phi i32 [ %69, %68 ], [ 0, %0 ]
%9 = tail call i8* @FLineSpace(i32* %3)
%10 = tail call i8* @FLine(i32* %3)
%11 = tail call i32 @length(i8* %9)
%12 = tail call i32 @length(i8* %10)
%13 = icmp sgt i32 %11, 0
br i1 %13, label %14, label %16
14: ; preds = %7
%15 = zext i32 %11 to i64
br label %20
16: ; preds = %41, %7
%17 = icmp sgt i32 %12, 0
br i1 %17, label %18, label %68
18: ; preds = %16
%19 = zext i32 %12 to i64
br label %44
20: ; preds = %14, %41
%21 = phi i64 [ 0, %14 ], [ %42, %41 ]
%22 = getelementptr inbounds i8, i8* %9, i64 %21
%23 = load i8, i8* %22
%24 = tail call i32 @charExits(i8 signext %23, i8* %10, i32 %12)
%25 = icmp eq i32 %24, 1
%26 = load i8, i8* %22
br i1 %25, label %27, label %34
27: ; preds = %20
%28 = tail call i64 @numChrInStr(i8 signext %26, i8* %9, i32 %11)
%29 = load i8, i8* %22
%30 = tail call i64 @numChrInStr(i8 signext %29, i8* %10, i32 %12)
%31 = icmp slt i64 %28, %30
br i1 %31, label %41, label %32
32: ; preds = %27
%33 = load i8, i8* %22
br label %34
34: ; preds = %20, %32
%35 = phi i8 [ %33, %32 ], [ %26, %20 ]
%36 = sext i8 %35 to i64
%37 = add nsw i64 %36, -97
%38 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 %37
%39 = load i32, i32* %38
%40 = add nsw i32 %39, 1
store i32 %40, i32* %38
br label %41
41: ; preds = %34, %27
%42 = add nuw nsw i64 %21, 1
%43 = icmp eq i64 %42, %15
br i1 %43, label %16, label %20
44: ; preds = %18, %65
%45 = phi i64 [ 0, %18 ], [ %66, %65 ]
%46 = getelementptr inbounds i8, i8* %10, i64 %45
%47 = load i8, i8* %46
%48 = tail call i32 @charExits(i8 signext %47, i8* %9, i32 %11)
%49 = icmp eq i32 %48, 1
%50 = load i8, i8* %46
br i1 %49, label %51, label %58
51: ; preds = %44
%52 = tail call i64 @numChrInStr(i8 signext %50, i8* %10, i32 %12)
%53 = load i8, i8* %46
%54 = tail call i64 @numChrInStr(i8 signext %53, i8* %9, i32 %11)
%55 = icmp sgt i64 %52, %54
br i1 %55, label %56, label %65
56: ; preds = %51
%57 = load i8, i8* %46
br label %58
58: ; preds = %44, %56
%59 = phi i8 [ %57, %56 ], [ %50, %44 ]
%60 = sext i8 %59 to i64
%61 = add nsw i64 %60, -97
%62 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 %61
%63 = load i32, i32* %62
%64 = add nsw i32 %63, 1
store i32 %64, i32* %62
br label %65
65: ; preds = %58, %51
%66 = add nuw nsw i64 %45, 1
%67 = icmp eq i64 %66, %19
br i1 %67, label %68, label %44
68: ; preds = %65, %16
%69 = add nuw nsw i32 %8, 1
%70 = icmp eq i32 %69, %5
br i1 %70, label %71, label %7
71: ; preds = %68, %0
br label %72
72: ; preds = %71, %72
%73 = phi i64 [ %77, %72 ], [ 0, %71 ]
%74 = getelementptr inbounds [26 x i32], [26 x i32]* %1, i64 0, i64 %73
%75 = load i32, i32* %74
%76 = tail call i32 @fprintf(i32* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %75)
%77 = add nuw nsw i64 %73, 1
%78 = icmp eq i64 %77, 26
br i1 %78, label %79, label %72
79: ; preds = %72
%80 = tail call i32 @fclose(i32* %3)
%81 = tail call i32 @fclose(i32* %4)
ret i32 0
}