#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 */
struct stat {
  size_t st_size;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char, ...);
int /*<<< orphan*/ fread(char *, size_t, int, int /*<<< orphan*/ *);
scalar_t__ malloc(size_t);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stat(char *, struct stat *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ truncate(char *, int);
int main(int argc, char *argv[]) {
  struct stat fStats;
  FILE *inFile1, *inFile2, *outFile;
  char *f1Cons, *f2Cons;
  size_t f1Size, f2Size;
  int count;
  if (argc < 4) {
    printf("Usage: %s <firstIn> <secondIn> <outName>\n", argv[0]);
    exit(0);
  }
  inFile1 = fopen(argv[1], "rb");
  if (inFile1 == NULL) {
    perror("Couldn't open input file for reading");
    exit(1);
  }
  inFile2 = fopen(argv[2], "rb");
  if (inFile2 == NULL) {
    perror("Couldn't open input file for reading");
    exit(2);
  }
  outFile = fopen(argv[3], "wb");
  if (outFile == NULL) {
    perror("Couldn't open output file for writing");
    exit(3);
  }
  stat(argv[1], &fStats);
  f1Size = fStats.st_size;
  stat(argv[2], &fStats);
  f2Size = fStats.st_size;
  if (f1Size != f2Size) {
    fprintf(stderr, "Error: input files of unequal length %lu vs %lu\n", f1Size,
            f2Size);
    exit(4);
  }
  f1Cons = (char *)malloc(f1Size * sizeof(char));
  fread(f1Cons, fStats.st_size, 1, inFile1);
  f2Cons = (char *)malloc(f1Size * sizeof(char));
  fread(f2Cons, fStats.st_size, 1, inFile2);
  fclose(inFile1);
  fclose(inFile2);
  for (count = 0; count < f1Size; count++) {
    printf("%02x | %02x\n", f1Cons[count], f2Cons[count]);
    fprintf(outFile, "%02x", f1Cons[count] ^ f2Cons[count]);
  }
  fclose(outFile);
  truncate(argv[3], 2 * f1Size);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    11dc <main+0x3c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %edi,%edi
call   10c0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe3f(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1215 <main+0x75>
lea    0xe27(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe06(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    124e <main+0xae>
lea    0xdee(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x2,%edi
call   10c0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xdf5(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    1287 <main+0xe7>
lea    0xddd(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x3,%edi
call   10c0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    -0x18(%rbp),%rsi
call   1070 <stat@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    -0x18(%rbp),%rsi
call   1070 <stat@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x50(%rbp),%rax
je     12f4 <main+0x154>
mov    0x2d12(%rip),%rax
movslq (%rax),%rdi
mov    -0x48(%rbp),%rax
mov    -0x50(%rbp),%rcx
lea    0xd9b(%rip),%rsi
movsbl %al,%edx
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x4,%edi
call   10c0 <exit@plt>
mov    -0x48(%rbp),%rdi
shl    $0x0,%rdi
call   1090 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rcx
mov    $0x1,%edx
call   1030 <fread@plt>
mov    -0x48(%rbp),%rdi
shl    $0x0,%rdi
call   1090 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rcx
mov    $0x1,%edx
call   1030 <fread@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x54(%rbp)
movslq -0x54(%rbp),%rax
cmp    -0x48(%rbp),%rax
jae    13cc <main+0x22c>
mov    -0x38(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
mov    -0x40(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsbl (%rax,%rcx,1),%edx
lea    0xd24(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rax
movslq -0x54(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
mov    -0x40(%rbp),%rcx
movslq -0x54(%rbp),%rdx
movsbl (%rcx,%rdx,1),%ecx
xor    %ecx,%eax
lea    0xd05(%rip),%rsi
movsbl %al,%edx
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    135b <main+0x1bb>
mov    -0x30(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
mov    -0x48(%rbp),%rax
shl    $0x1,%rax
mov    %eax,%esi
call   1080 <truncate@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbp
cmp    $0x3,%edi
jle    1317 <main+0x177>
mov    0x8(%rbp),%rdi
lea    0xe65(%rip),%rsi
call   10a0 <fopen@plt>
test   %rax,%rax
je     1330 <main+0x190>
mov    %rax,%r12
mov    0x10(%rbp),%rdi
lea    0xe49(%rip),%rsi
call   10a0 <fopen@plt>
test   %rax,%rax
je     1346 <main+0x1a6>
mov    %rax,%r13
mov    0x18(%rbp),%rdi
lea    0xe55(%rip),%rsi
call   10a0 <fopen@plt>
test   %rax,%rax
je     135c <main+0x1bc>
mov    %rax,%r15
mov    0x8(%rbp),%rdi
lea    0x8(%rsp),%r14
mov    %r14,%rsi
call   1070 <stat@plt>
mov    0x8(%rsp),%rbx
mov    %rbp,0x10(%rsp)
mov    0x10(%rbp),%rdi
mov    %r14,%rsi
call   1070 <stat@plt>
mov    0x8(%rsp),%rcx
cmp    %rcx,%rbx
jne    1372 <main+0x1d2>
mov    %rbx,%rdi
call   1090 <malloc@plt>
mov    %rax,%rbp
mov    %rax,%rdi
mov    %rbx,%rsi
mov    $0x1,%edx
mov    %r12,%rcx
call   1030 <fread@plt>
mov    %rbx,%rdi
call   1090 <malloc@plt>
mov    %r12,%r14
mov    %rax,%r12
mov    %rax,%rdi
mov    %rbx,%rsi
mov    $0x1,%edx
mov    %r13,%rcx
call   1030 <fread@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
mov    %r13,%rdi
call   1040 <fclose@plt>
test   %rbx,%rbx
mov    %r15,%r13
je     12ec <main+0x14c>
lea    0xe18(%rip),%r14
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsbl 0x0(%rbp,%r15,1),%esi
movsbl (%r12,%r15,1),%edx
lea    0xdea(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movzbl (%r12,%r15,1),%eax
xor    0x0(%rbp,%r15,1),%al
movsbl %al,%edx
mov    %r13,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x1,%r15
cmp    %r15,%rbx
jne    12b0 <main+0x110>
mov    %r13,%rdi
call   1040 <fclose@plt>
mov    0x10(%rsp),%rax
mov    0x18(%rax),%rdi
add    %ebx,%ebx
mov    %ebx,%esi
call   1080 <truncate@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x0(%rbp),%rsi
lea    0xcde(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %edi,%edi
call   10c0 <exit@plt>
lea    0xcf6(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
lea    0xce0(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x2,%edi
call   10c0 <exit@plt>
lea    0xcf2(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x3,%edi
call   10c0 <exit@plt>
mov    0x2c67(%rip),%rax
movslq (%rax),%rdi
movsbl %bl,%edx
lea    0xcf5(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x4,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
%struct.stat = type { i64 }
@.str = [42 x i8] c"Usage: %s <firstIn> <secondIn> <outName>\0A\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [37 x i8] c"Couldn't open input file for reading\00"
@.str.3 = [3 x i8] c"wb\00"
@.str.4 = [38 x i8] c"Couldn't open output file for writing\00"
@stderr = global i32 0
@.str.5 = [49 x i8] c"Error: input files of unequal length %lu vs %lu\0A\00"
@.str.6 = [13 x i8] c"%02x | %02x\0A\00"
@.str.7 = [5 x i8] c"%02x\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.stat
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i64
%13 = alloca i64
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 4
br i1 %16, label %17, label %23
17: ; preds = %2
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 0
%20 = load i8*, i8** %19
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %20)
%22 = call i32 @exit(i32 0)
unreachable
23: ; preds = %2
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = call i32* @fopen(i8* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %27, i32** %7
%28 = load i32*, i32** %7
%29 = icmp eq i32* %28, null
br i1 %29, label %30, label %33
30: ; preds = %23
%31 = call i32 @perror(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%32 = call i32 @exit(i32 1)
unreachable
33: ; preds = %23
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 2
%36 = load i8*, i8** %35
%37 = call i32* @fopen(i8* %36, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %37, i32** %8
%38 = load i32*, i32** %8
%39 = icmp eq i32* %38, null
br i1 %39, label %40, label %43
40: ; preds = %33
%41 = call i32 @perror(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%42 = call i32 @exit(i32 2)
unreachable
43: ; preds = %33
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 3
%46 = load i8*, i8** %45
%47 = call i32* @fopen(i8* %46, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i32* %47, i32** %9
%48 = load i32*, i32** %9
%49 = icmp eq i32* %48, null
br i1 %49, label %50, label %53
50: ; preds = %43
%51 = call i32 @perror(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%52 = call i32 @exit(i32 3)
unreachable
53: ; preds = %43
%54 = load i8**, i8*** %5
%55 = getelementptr inbounds i8*, i8** %54, i64 1
%56 = load i8*, i8** %55
%57 = call i32 @stat(i8* %56, %struct.stat* %6)
%58 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%59 = load i64, i64* %58
store i64 %59, i64* %12
%60 = load i8**, i8*** %5
%61 = getelementptr inbounds i8*, i8** %60, i64 2
%62 = load i8*, i8** %61
%63 = call i32 @stat(i8* %62, %struct.stat* %6)
%64 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%65 = load i64, i64* %64
store i64 %65, i64* %13
%66 = load i64, i64* %12
%67 = load i64, i64* %13
%68 = icmp ne i64 %66, %67
br i1 %68, label %69, label %78
69: ; preds = %53
%70 = load i32, i32* @stderr
%71 = sext i32 %70 to i64
%72 = inttoptr i64 %71 to i32*
%73 = load i64, i64* %12
%74 = trunc i64 %73 to i8
%75 = load i64, i64* %13
%76 = call i32 (i32*, i8*, i8, ...) @fprintf(i32* %72, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0), i8 signext %74, i64 %75)
%77 = call i32 @exit(i32 4)
unreachable
78: ; preds = %53
%79 = load i64, i64* %12
%80 = mul i64 %79, 1
%81 = call i64 @malloc(i64 %80)
%82 = inttoptr i64 %81 to i8*
store i8* %82, i8** %10
%83 = load i8*, i8** %10
%84 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%85 = load i64, i64* %84
%86 = load i32*, i32** %7
%87 = call i32 @fread(i8* %83, i64 %85, i32 1, i32* %86)
%88 = load i64, i64* %12
%89 = mul i64 %88, 1
%90 = call i64 @malloc(i64 %89)
%91 = inttoptr i64 %90 to i8*
store i8* %91, i8** %11
%92 = load i8*, i8** %11
%93 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%94 = load i64, i64* %93
%95 = load i32*, i32** %8
%96 = call i32 @fread(i8* %92, i64 %94, i32 1, i32* %95)
%97 = load i32*, i32** %7
%98 = call i32 @fclose(i32* %97)
%99 = load i32*, i32** %8
%100 = call i32 @fclose(i32* %99)
store i32 0, i32* %14
br label %101
101: ; preds = %136, %78
%102 = load i32, i32* %14
%103 = sext i32 %102 to i64
%104 = load i64, i64* %12
%105 = icmp ult i64 %103, %104
br i1 %105, label %106, label %139
106: ; preds = %101
%107 = load i8*, i8** %10
%108 = load i32, i32* %14
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i8, i8* %107, i64 %109
%111 = load i8, i8* %110
%112 = sext i8 %111 to i32
%113 = load i8*, i8** %11
%114 = load i32, i32* %14
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i8, i8* %113, i64 %115
%117 = load i8, i8* %116
%118 = sext i8 %117 to i32
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %112, i32 %118)
%120 = load i32*, i32** %9
%121 = load i8*, i8** %10
%122 = load i32, i32* %14
%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 = load i8*, i8** %11
%128 = load i32, i32* %14
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i8, i8* %127, i64 %129
%131 = load i8, i8* %130
%132 = sext i8 %131 to i32
%133 = xor i32 %126, %132
%134 = trunc i32 %133 to i8
%135 = call i32 (i32*, i8*, i8, ...) @fprintf(i32* %120, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8 signext %134)
br label %136
136: ; preds = %106
%137 = load i32, i32* %14
%138 = add nsw i32 %137, 1
store i32 %138, i32* %14
br label %101
139: ; preds = %101
%140 = load i32*, i32** %9
%141 = call i32 @fclose(i32* %140)
%142 = load i8**, i8*** %5
%143 = getelementptr inbounds i8*, i8** %142, i64 3
%144 = load i8*, i8** %143
%145 = load i64, i64* %12
%146 = mul i64 2, %145
%147 = trunc i64 %146 to i32
%148 = call i32 @truncate(i8* %144, i32 %147)
ret i32 0
}

LLVM IR (-O2):
%struct.stat = type { i64 }
@.str = [42 x i8] c"Usage: %s <firstIn> <secondIn> <outName>\0A\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [37 x i8] c"Couldn't open input file for reading\00"
@.str.3 = [3 x i8] c"wb\00"
@.str.4 = [38 x i8] c"Couldn't open output file for writing\00"
@stderr = global i32 0
@.str.5 = [49 x i8] c"Error: input files of unequal length %lu vs %lu\0A\00"
@.str.6 = [13 x i8] c"%02x | %02x\0A\00"
@.str.7 = [5 x i8] c"%02x\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca %struct.stat
%4 = bitcast %struct.stat* %3 to i8*
%5 = icmp slt i32 %0, 4
br i1 %5, label %6, label %10
6: ; preds = %2
%7 = load i8*, i8** %1
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = tail call i32 @exit(i32 0)
unreachable
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i32* @fopen(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%14 = icmp eq i32* %13, null
br i1 %14, label %15, label %18
15: ; preds = %10
%16 = tail call i32 @perror(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%17 = tail call i32 @exit(i32 1)
unreachable
18: ; preds = %10
%19 = getelementptr inbounds i8*, i8** %1, i64 2
%20 = load i8*, i8** %19
%21 = tail call i32* @fopen(i8* %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%22 = icmp eq i32* %21, null
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = tail call i32 @perror(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%25 = tail call i32 @exit(i32 2)
unreachable
26: ; preds = %18
%27 = getelementptr inbounds i8*, i8** %1, i64 3
%28 = load i8*, i8** %27
%29 = tail call i32* @fopen(i8* %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%30 = icmp eq i32* %29, null
br i1 %30, label %31, label %34
31: ; preds = %26
%32 = tail call i32 @perror(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%33 = tail call i32 @exit(i32 3)
unreachable
34: ; preds = %26
%35 = load i8*, i8** %11
%36 = call i32 @stat(i8* %35, %struct.stat* %3)
%37 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%38 = load i64, i64* %37
%39 = load i8*, i8** %19
%40 = call i32 @stat(i8* %39, %struct.stat* %3)
%41 = load i64, i64* %37
%42 = icmp eq i64 %38, %41
br i1 %42, label %50, label %43
43: ; preds = %34
%44 = load i32, i32* @stderr
%45 = sext i32 %44 to i64
%46 = inttoptr i64 %45 to i32*
%47 = trunc i64 %38 to i8
%48 = tail call i32 (i32*, i8*, i8, ...) @fprintf(i32* %46, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0), i8 signext %47, i64 %41)
%49 = tail call i32 @exit(i32 4)
unreachable
50: ; preds = %34
%51 = tail call i64 @malloc(i64 %38)
%52 = inttoptr i64 %51 to i8*
%53 = tail call i32 @fread(i8* %52, i64 %38, i32 1, i32* %13)
%54 = tail call i64 @malloc(i64 %38)
%55 = inttoptr i64 %54 to i8*
%56 = tail call i32 @fread(i8* %55, i64 %38, i32 1, i32* %21)
%57 = tail call i32 @fclose(i32* %13)
%58 = tail call i32 @fclose(i32* %21)
%59 = icmp eq i64 %38, 0
br i1 %59, label %75, label %60
60: ; preds = %50, %60
%61 = phi i64 [ %73, %60 ], [ 0, %50 ]
%62 = getelementptr inbounds i8, i8* %52, i64 %61
%63 = load i8, i8* %62
%64 = sext i8 %63 to i32
%65 = getelementptr inbounds i8, i8* %55, i64 %61
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %64, i32 %67)
%69 = load i8, i8* %62
%70 = load i8, i8* %65
%71 = xor i8 %70, %69
%72 = tail call i32 (i32*, i8*, i8, ...) @fprintf(i32* %29, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8 signext %71)
%73 = add nuw i64 %61, 1
%74 = icmp eq i64 %73, %38
br i1 %74, label %75, label %60
75: ; preds = %60, %50
%76 = tail call i32 @fclose(i32* %29)
%77 = load i8*, i8** %27
%78 = trunc i64 %38 to i32
%79 = shl i32 %78, 1
%80 = tail call i32 @truncate(i8* %77, i32 %79)
ret i32 0
}