#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 */
scalar_t__ charExists(char, char *, int);
int charLoc(char, char *);
void *fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int);
char *malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ zeroStr(char *, int);
int main(void) {
  FILE *fl = fopen("circlecross.in", "r");
  FILE *fout = fopen("circlecross.out", "w");
  char *cows = malloc(sizeof(char) * 26);
  char *entryPair = malloc(sizeof(char) * 26);
  char *exitPair = malloc(sizeof(char) * 26);
  int i;
  char cow = fgetc(fl);
  int pos;
  int cowLoc;
  int pair;
  int pairs = 0;
  zeroStr(cows, 26);
  zeroStr(entryPair, 26);
  zeroStr(exitPair, 26);
  printf("%s\n", cows);
  printf("%s\n", entryPair);
  printf("%s\n", exitPair);
  for (i = 0; i < 51; i++) {
    if (charExists(cow, cows, 26) == 0) {
      pos = 0;
      while (*(cows + pos) != '0') {
        pos++;
      }
      *(cows + pos) = cow;
      pair = fgetc(fl);
      *(entryPair + pos) = pair;
      cow = pair;
    } else {
      cowLoc = charLoc(cow, cows);
      pair = fgetc(fl);
      *(exitPair + cowLoc) = pair;
      cow = pair;
    }
  }
  printf("%s\n", cows);
  printf("%s\n", entryPair);
  printf("%s\n", exitPair);
  pos = 0;
  while (pos < 26) {
    if (*(entryPair + pos) == *(exitPair + pos)) {
      pairs++;
    }
    pos++;
  }
  printf("Crossing Pairs: %d\n", pairs);
  fprintf(fout, "%d\n", pairs);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe6a(%rip),%rdi
lea    0xe72(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x10(%rbp)
lea    0xe64(%rip),%rdi
lea    0xe6d(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    $0x1a,%edi
call   1080 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    $0x1a,%edi
call   1080 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    $0x1a,%edi
call   1080 <malloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %al,-0x35(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x20(%rbp),%rdi
mov    $0x1a,%esi
call   1030 <zeroStr@plt>
mov    -0x28(%rbp),%rdi
mov    $0x1a,%esi
call   1030 <zeroStr@plt>
mov    -0x30(%rbp),%rdi
mov    $0x1a,%esi
call   1030 <zeroStr@plt>
mov    -0x20(%rbp),%rsi
lea    0xdf4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%rsi
lea    0xde2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x34(%rbp)
cmpl   $0x33,-0x34(%rbp)
jge    132f <main+0x1af>
mov    -0x35(%rbp),%al
mov    -0x20(%rbp),%rsi
mov    $0x1a,%edx
movsbl %al,%edi
call   1050 <charExists@plt>
cmp    $0x0,%rax
jne    12e8 <main+0x168>
movl   $0x0,-0x3c(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x30,%eax
je     12b3 <main+0x133>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1290 <main+0x110>
mov    -0x35(%rbp),%dl
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x10(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    %al,%dl
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x44(%rbp),%eax
mov    %al,-0x35(%rbp)
jmp    131c <main+0x19c>
mov    -0x35(%rbp),%al
mov    -0x20(%rbp),%rsi
movsbl %al,%edi
call   10a0 <charLoc@plt>
mov    %eax,-0x40(%rbp)
mov    -0x10(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    %al,%dl
mov    -0x30(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x44(%rbp),%eax
mov    %al,-0x35(%rbp)
jmp    1321 <main+0x1a1>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1261 <main+0xe1>
mov    -0x20(%rbp),%rsi
lea    0xce9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%rsi
lea    0xcd7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xcc5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x1a,-0x3c(%rbp)
jge    13ad <main+0x22d>
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
mov    -0x30(%rbp),%rcx
movslq -0x3c(%rbp),%rdx
movsbl (%rcx,%rdx,1),%ecx
cmp    %ecx,%eax
jne    139f <main+0x21f>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    136c <main+0x1ec>
mov    -0x48(%rbp),%esi
lea    0xc70(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x48(%rbp),%edx
lea    0xc6b(%rip),%rsi
call   1070 <fprintf@plt>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xe6b(%rip),%rdi
lea    0xe73(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%r13
lea    0xe66(%rip),%rdi
lea    0xe6f(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,0x10(%rsp)
mov    $0x1a,%edi
call   1090 <malloc@plt>
mov    %rax,%rbx
mov    $0x1a,%edi
call   1090 <malloc@plt>
mov    %rax,%r14
mov    $0x1a,%edi
call   1090 <malloc@plt>
mov    %rax,%rbp
mov    %r13,%rdi
call   1070 <fgetc@plt>
mov    %rax,%r15
mov    %rbx,%rdi
mov    $0x1a,%esi
call   1030 <zeroStr@plt>
mov    %r14,%rdi
mov    $0x1a,%esi
call   1030 <zeroStr@plt>
mov    %rbp,%rdi
mov    $0x1a,%esi
call   1030 <zeroStr@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    %r14,(%rsp)
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %rbp,0x8(%rsp)
mov    %rbp,%rdi
call   1040 <puts@plt>
xor    %r12d,%r12d
jmp    127e <main+0xee>
nopl   0x0(%rax,%rax,1)
mov    %r14d,%edi
mov    %rbx,%rsi
call   10b0 <charLoc@plt>
mov    %eax,%ebp
mov    %r13,%rdi
call   1070 <fgetc@plt>
mov    %rax,%r15
movslq %ebp,%rax
mov    0x8(%rsp),%rcx
mov    %r15b,(%rcx,%rax,1)
add    $0x1,%r12d
cmp    $0x33,%r12d
je     12c6 <main+0x136>
movsbl %r15b,%r14d
mov    %r14d,%edi
mov    %rbx,%rsi
mov    $0x1a,%edx
call   1060 <charExists@plt>
test   %rax,%rax
jne    1250 <main+0xc0>
mov    $0xffffffffffffffff,%rax
xchg   %ax,%ax
cmpb   $0x30,0x1(%rbx,%rax,1)
lea    0x1(%rax),%rax
jne    12a0 <main+0x110>
mov    %eax,%ebp
mov    %r15b,(%rbx,%rbp,1)
mov    %r13,%rdi
call   1070 <fgetc@plt>
mov    %rax,%r15
mov    (%rsp),%rax
mov    %r15b,(%rax,%rbp,1)
jmp    1274 <main+0xe4>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    (%rsp),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    0x8(%rsp),%rbp
mov    %rbp,%rdi
call   1040 <puts@plt>
movd   (%rbx),%xmm0
movd   0x0(%rbp),%xmm1
pcmpeqb %xmm0,%xmm1
punpcklbw %xmm1,%xmm1
punpcklwd %xmm1,%xmm1
movdqa 0xcfc(%rip),%xmm0
pand   %xmm0,%xmm1
movd   0x4(%rbx),%xmm3
movd   0x4(%rbp),%xmm2
pcmpeqb %xmm3,%xmm2
punpcklbw %xmm2,%xmm2
punpcklwd %xmm2,%xmm2
pand   %xmm0,%xmm2
paddd  %xmm1,%xmm2
movd   0x8(%rbx),%xmm1
movd   0x8(%rbp),%xmm3
pcmpeqb %xmm1,%xmm3
punpcklbw %xmm3,%xmm3
punpcklwd %xmm3,%xmm3
pand   %xmm0,%xmm3
movd   0xc(%rbx),%xmm4
movd   0xc(%rbp),%xmm1
pcmpeqb %xmm4,%xmm1
punpcklbw %xmm1,%xmm1
punpcklwd %xmm1,%xmm1
pand   %xmm0,%xmm1
paddd  %xmm3,%xmm1
paddd  %xmm2,%xmm1
movd   0x10(%rbx),%xmm2
movd   0x10(%rbp),%xmm3
pcmpeqb %xmm2,%xmm3
punpcklbw %xmm3,%xmm3
punpcklwd %xmm3,%xmm3
pand   %xmm0,%xmm3
movd   0x14(%rbx),%xmm2
movd   0x14(%rbp),%xmm4
pcmpeqb %xmm2,%xmm4
punpcklbw %xmm4,%xmm4
punpcklwd %xmm4,%xmm4
pand   %xmm0,%xmm4
paddd  %xmm3,%xmm4
paddd  %xmm1,%xmm4
pshufd $0xee,%xmm4,%xmm0
paddd  %xmm4,%xmm0
pshufd $0x55,%xmm0,%xmm1
paddd  %xmm0,%xmm1
mov    0x18(%rbx),%al
xor    %ecx,%ecx
cmp    0x18(%rbp),%al
movd   %xmm1,%eax
mov    0x19(%rbx),%dl
sete   %cl
add    %eax,%ecx
xor    %ebx,%ebx
cmp    0x19(%rbp),%dl
sete   %bl
add    %ecx,%ebx
lea    0xc5e(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc5e(%rip),%rsi
mov    0x10(%rsp),%rdi
mov    %ebx,%edx
call   1080 <fprintf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [15 x i8] c"circlecross.in\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [16 x i8] c"circlecross.out\00"
@.str.3 = [2 x i8] c"w\00"
@.str.5 = [20 x i8] c"Crossing Pairs: %d\0A\00"
@.str.6 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32* @fopen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call dereferenceable_or_null(26) i8* @malloc(i32 26)
%4 = tail call dereferenceable_or_null(26) i8* @malloc(i32 26)
%5 = tail call dereferenceable_or_null(26) i8* @malloc(i32 26)
%6 = tail call i8* @fgetc(i32* %1)
%7 = ptrtoint i8* %6 to i64
%8 = trunc i64 %7 to i8
%9 = tail call i32 @zeroStr(i8* %3, i32 26)
%10 = tail call i32 @zeroStr(i8* %4, i32 26)
%11 = tail call i32 @zeroStr(i8* %5, i32 26)
%12 = tail call i32 @puts(i8* dereferenceable(1) %3)
%13 = tail call i32 @puts(i8* dereferenceable(1) %4)
%14 = tail call i32 @puts(i8* dereferenceable(1) %5)
br label %15
15: ; preds = %0, %40
%16 = phi i32 [ 0, %0 ], [ %42, %40 ]
%17 = phi i8 [ %8, %0 ], [ %41, %40 ]
%18 = tail call i64 @charExists(i8 signext %17, i8* %3, i32 26)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %33
20: ; preds = %15, %20
%21 = phi i64 [ %25, %20 ], [ 0, %15 ]
%22 = getelementptr inbounds i8, i8* %3, i64 %21
%23 = load i8, i8* %22
%24 = icmp eq i8 %23, 48
%25 = add nuw i64 %21, 1
br i1 %24, label %26, label %20
26: ; preds = %20
%27 = and i64 %21, 4294967295
%28 = getelementptr inbounds i8, i8* %3, i64 %27
store i8 %17, i8* %28
%29 = tail call i8* @fgetc(i32* %1)
%30 = ptrtoint i8* %29 to i64
%31 = trunc i64 %30 to i8
%32 = getelementptr inbounds i8, i8* %4, i64 %27
store i8 %31, i8* %32
br label %40
33: ; preds = %15
%34 = tail call i32 @charLoc(i8 signext %17, i8* %3)
%35 = tail call i8* @fgetc(i32* %1)
%36 = ptrtoint i8* %35 to i64
%37 = trunc i64 %36 to i8
%38 = sext i32 %34 to i64
%39 = getelementptr inbounds i8, i8* %5, i64 %38
store i8 %37, i8* %39
br label %40
40: ; preds = %26, %33
%41 = phi i8 [ %31, %26 ], [ %37, %33 ]
%42 = add nuw nsw i32 %16, 1
%43 = icmp eq i32 %42, 51
br i1 %43, label %44, label %15
44: ; preds = %40
%45 = tail call i32 @puts(i8* dereferenceable(1) %3)
%46 = tail call i32 @puts(i8* dereferenceable(1) %4)
%47 = tail call i32 @puts(i8* dereferenceable(1) %5)
%48 = bitcast i8* %4 to <4 x i8>*
%49 = load <4 x i8>, <4 x i8>* %48
%50 = bitcast i8* %5 to <4 x i8>*
%51 = load <4 x i8>, <4 x i8>* %50
%52 = icmp eq <4 x i8> %49, %51
%53 = zext <4 x i1> %52 to <4 x i32>
%54 = getelementptr inbounds i8, i8* %4, i64 4
%55 = bitcast i8* %54 to <4 x i8>*
%56 = load <4 x i8>, <4 x i8>* %55
%57 = getelementptr inbounds i8, i8* %5, i64 4
%58 = bitcast i8* %57 to <4 x i8>*
%59 = load <4 x i8>, <4 x i8>* %58
%60 = icmp eq <4 x i8> %56, %59
%61 = zext <4 x i1> %60 to <4 x i32>
%62 = add nuw nsw <4 x i32> %53, %61
%63 = getelementptr inbounds i8, i8* %4, i64 8
%64 = bitcast i8* %63 to <4 x i8>*
%65 = load <4 x i8>, <4 x i8>* %64
%66 = getelementptr inbounds i8, i8* %5, i64 8
%67 = bitcast i8* %66 to <4 x i8>*
%68 = load <4 x i8>, <4 x i8>* %67
%69 = icmp eq <4 x i8> %65, %68
%70 = zext <4 x i1> %69 to <4 x i32>
%71 = add nuw nsw <4 x i32> %62, %70
%72 = getelementptr inbounds i8, i8* %4, i64 12
%73 = bitcast i8* %72 to <4 x i8>*
%74 = load <4 x i8>, <4 x i8>* %73
%75 = getelementptr inbounds i8, i8* %5, i64 12
%76 = bitcast i8* %75 to <4 x i8>*
%77 = load <4 x i8>, <4 x i8>* %76
%78 = icmp eq <4 x i8> %74, %77
%79 = zext <4 x i1> %78 to <4 x i32>
%80 = add nuw nsw <4 x i32> %71, %79
%81 = getelementptr inbounds i8, i8* %4, i64 16
%82 = bitcast i8* %81 to <4 x i8>*
%83 = load <4 x i8>, <4 x i8>* %82
%84 = getelementptr inbounds i8, i8* %5, i64 16
%85 = bitcast i8* %84 to <4 x i8>*
%86 = load <4 x i8>, <4 x i8>* %85
%87 = icmp eq <4 x i8> %83, %86
%88 = zext <4 x i1> %87 to <4 x i32>
%89 = add nuw nsw <4 x i32> %80, %88
%90 = getelementptr inbounds i8, i8* %4, i64 20
%91 = bitcast i8* %90 to <4 x i8>*
%92 = load <4 x i8>, <4 x i8>* %91
%93 = getelementptr inbounds i8, i8* %5, i64 20
%94 = bitcast i8* %93 to <4 x i8>*
%95 = load <4 x i8>, <4 x i8>* %94
%96 = icmp eq <4 x i8> %92, %95
%97 = zext <4 x i1> %96 to <4 x i32>
%98 = add nuw nsw <4 x i32> %89, %97
%99 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %98)
%100 = getelementptr inbounds i8, i8* %4, i64 24
%101 = load i8, i8* %100
%102 = getelementptr inbounds i8, i8* %5, i64 24
%103 = load i8, i8* %102
%104 = icmp eq i8 %101, %103
%105 = zext i1 %104 to i32
%106 = add nuw nsw i32 %99, %105
%107 = getelementptr inbounds i8, i8* %4, i64 25
%108 = load i8, i8* %107
%109 = getelementptr inbounds i8, i8* %5, i64 25
%110 = load i8, i8* %109
%111 = icmp eq i8 %108, %110
%112 = zext i1 %111 to i32
%113 = add nuw nsw i32 %106, %112
%114 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i32 %113)
%115 = tail call i32 @fprintf(i32* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 %113)
ret i32 0
}