#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 */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int fread(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
char *strdup(char *);
int main(int argc, char **argv) {
  char module = 0;
  char buffer[131072];
  char *modulein;
  int ret;
  FILE *filein;
  FILE *fileout;
  char *outfile_name;
  outfile_name = strdup("/dstar/tmp/play-X.dvtool");
  if (argc < 3) {
    fprintf(stderr, "Error: at least 2 arguments needed.\n");
    fprintf(stderr, "Usage: %s module infile.wav\n", argv[0]);
    fprintf(stderr, "Info: version = %s\n", "0.1.2");
    exit(-1);
  };
  modulein = argv[1];
  if ((modulein[0] == 'a') || (modulein[0] == 'A')) {
    module = 0x61;
  };
  if ((modulein[0] == 'b') || (modulein[0] == 'B')) {
    module = 0x62;
  };
  if ((modulein[0] == 'c') || (modulein[0] == 'C')) {
    module = 0x63;
  };
  if (module == 0) {
    fprintf(stderr, "Error: module must be 'a', 'b' or 'c'\n");
    fprintf(stderr, "usage: %s infile.dvtool repeater-name module\n", argv[0]);
    exit(-1);
  };
  filein = fopen(argv[2], "rb");
  if (filein == NULL) {
    fprintf(stderr, "Error: cannot open input file\n");
    exit(-1);
  };
  outfile_name[16] = module;
  fileout = fopen(outfile_name, "wb");
  if (fileout == NULL) {
    fprintf(stderr, "Error: cannot open output file %s\n", outfile_name);
    exit(-1);
  };
  ret = fread(buffer, 1, 131072, filein);
  while (ret > 0) {
    fwrite(buffer, 1, ret, fileout);
    ret = fread(buffer, 1, 131072, filein);
  };
  fclose(filein);
  fclose(fileout);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20050,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movb   $0x0,-0x11(%rbp)
lea    0xe6c(%rip),%rdi
call   1090 <strdup@plt>
mov    %rax,-0x20048(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    1207 <main+0x97>
mov    0x2e2f(%rip),%rax
mov    (%rax),%edi
lea    0xe5f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2e18(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe66(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2dfa(%rip),%rax
mov    (%rax),%edi
lea    0xe6c(%rip),%rsi
lea    0xe79(%rip),%rdx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0xffffffff,%edi
call   1070 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x20028(%rbp)
mov    -0x20028(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x61,%eax
je     123c <main+0xcc>
mov    -0x20028(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x41,%eax
jne    1240 <main+0xd0>
movb   $0x61,-0x11(%rbp)
mov    -0x20028(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x62,%eax
je     1266 <main+0xf6>
mov    -0x20028(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x42,%eax
jne    126a <main+0xfa>
movb   $0x62,-0x11(%rbp)
mov    -0x20028(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x63,%eax
je     1290 <main+0x120>
mov    -0x20028(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x43,%eax
jne    1294 <main+0x124>
movb   $0x63,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x0,%eax
jne    12e0 <main+0x170>
mov    0x2d38(%rip),%rax
mov    (%rax),%edi
lea    0xdc4(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2d21(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xdcd(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0xffffffff,%edi
call   1070 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xddb(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x20038(%rbp)
cmpq   $0x0,-0x20038(%rbp)
jne    132a <main+0x1ba>
mov    0x2cd0(%rip),%rax
mov    (%rax),%edi
lea    0xdb4(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0xffffffff,%edi
call   1070 <exit@plt>
mov    -0x11(%rbp),%cl
mov    -0x20048(%rbp),%rax
mov    %cl,0x10(%rax)
mov    -0x20048(%rbp),%rdi
lea    0xda7(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x20040(%rbp)
cmpq   $0x0,-0x20040(%rbp)
jne    1387 <main+0x217>
mov    0x2c7a(%rip),%rax
mov    (%rax),%edi
mov    -0x20048(%rbp),%rdx
lea    0xd79(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0xffffffff,%edi
call   1070 <exit@plt>
lea    -0x20020(%rbp),%rdi
mov    -0x20038(%rbp),%rcx
mov    $0x1,%esi
mov    $0x20000,%edx
call   1030 <fread@plt>
mov    %eax,-0x2002c(%rbp)
cmpl   $0x0,-0x2002c(%rbp)
jle    13fd <main+0x28d>
lea    -0x20020(%rbp),%rdi
mov    -0x2002c(%rbp),%edx
mov    -0x20040(%rbp),%rcx
mov    $0x1,%esi
call   1080 <fwrite@plt>
lea    -0x20020(%rbp),%rdi
mov    -0x20038(%rbp),%rcx
mov    $0x1,%esi
mov    $0x20000,%edx
call   1030 <fread@plt>
mov    %eax,-0x2002c(%rbp)
jmp    13aa <main+0x23a>
mov    -0x20038(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x20040(%rbp),%rdi
call   1040 <fclose@plt>
xor    %edi,%edi
call   1070 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20000,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xe75(%rip),%rdi
call   1090 <strdup@plt>
cmp    $0x2,%ebp
jg     11e3 <main+0x73>
mov    0x2e44(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xe73(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x0(%rbp),%edi
mov    (%rbx),%rdx
lea    0xe84(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xe90(%rip),%rsi
lea    0xe9d(%rip),%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0xffffffff,%edi
call   1070 <exit@plt>
mov    %rax,%r14
mov    0x8(%rbx),%rax
mov    (%rax),%cl
mov    %ecx,%eax
and    $0xdf,%al
xor    %edx,%edx
cmp    $0x41,%al
mov    $0x61,%eax
cmovne %edx,%eax
or     $0x20,%cl
cmp    $0x62,%cl
jne    1206 <main+0x96>
mov    $0x62,%al
mov    $0x63,%bpl
cmp    $0x63,%cl
jne    1277 <main+0x107>
mov    0x10(%rbx),%rdi
lea    0xeb1(%rip),%rsi
call   1060 <fopen@plt>
test   %rax,%rax
jne    1244 <main+0xd4>
mov    0x2db6(%rip),%rax
mov    (%rax),%edi
lea    0xe9a(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0xffffffff,%edi
call   1070 <exit@plt>
mov    %rax,%r15
mov    %bpl,0x10(%r14)
lea    0xe9a(%rip),%rsi
mov    %r14,%rdi
call   1060 <fopen@plt>
test   %rax,%rax
jne    12a7 <main+0x137>
mov    0x2d7a(%rip),%rax
mov    (%rax),%edi
lea    0xe80(%rip),%rsi
mov    %r14,%rdx
jmp    11d2 <main+0x62>
mov    %eax,%ebp
test   %al,%al
jne    120e <main+0x9e>
mov    0x2d5c(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xde7(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x0(%rbp),%edi
mov    (%rbx),%rdx
lea    0xdfa(%rip),%rsi
jmp    11d2 <main+0x62>
mov    %rax,%r12
mov    %rsp,%rdi
mov    $0x1,%esi
mov    $0x20000,%edx
mov    %r15,%rcx
call   1030 <fread@plt>
test   %eax,%eax
jle    12fb <main+0x18b>
mov    %rsp,%rbx
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %eax,%edx
mov    %r12,%rcx
call   1080 <fwrite@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x20000,%edx
mov    %r15,%rcx
call   1030 <fread@plt>
test   %eax,%eax
jg     12d0 <main+0x160>
mov    %r15,%rdi
call   1040 <fclose@plt>
mov    %r12,%rdi
call   1040 <fclose@plt>
xor    %edi,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"/dstar/tmp/play-X.dvtool\00"
@stderr = global i32 0
@.str.1 = [37 x i8] c"Error: at least 2 arguments needed.\0A\00"
@.str.2 = [29 x i8] c"Usage: %s module infile.wav\0A\00"
@.str.3 = [20 x i8] c"Info: version = %s\0A\00"
@.str.4 = [6 x i8] c"0.1.2\00"
@.str.5 = [39 x i8] c"Error: module must be 'a', 'b' or 'c'\0A\00"
@.str.6 = [46 x i8] c"usage: %s infile.dvtool repeater-name module\0A\00"
@.str.7 = [3 x i8] c"rb\00"
@.str.8 = [31 x i8] c"Error: cannot open input file\0A\00"
@.str.9 = [3 x i8] c"wb\00"
@.str.10 = [35 x i8] c"Error: cannot open output file %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
%7 = alloca [131072 x i8]
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8 0, i8* %6
%13 = call i8* @strdup(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
store i8* %13, i8** %12
%14 = load i32, i32* %4
%15 = icmp slt i32 %14, 3
br i1 %15, label %16, label %27
16: ; preds = %2
%17 = load i32, i32* @stderr
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 0
%22 = load i8*, i8** %21
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* %22)
%24 = load i32, i32* @stderr
%25 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%26 = call i32 @exit(i32 -1)
unreachable
27: ; preds = %2
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 1
%30 = load i8*, i8** %29
store i8* %30, i8** %8
%31 = load i8*, i8** %8
%32 = getelementptr inbounds i8, i8* %31, i64 0
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 97
br i1 %35, label %42, label %36
36: ; preds = %27
%37 = load i8*, i8** %8
%38 = getelementptr inbounds i8, i8* %37, i64 0
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 65
br i1 %41, label %42, label %43
42: ; preds = %36, %27
store i8 97, i8* %6
br label %43
43: ; preds = %42, %36
%44 = load i8*, i8** %8
%45 = getelementptr inbounds i8, i8* %44, i64 0
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 98
br i1 %48, label %55, label %49
49: ; preds = %43
%50 = load i8*, i8** %8
%51 = getelementptr inbounds i8, i8* %50, i64 0
%52 = load i8, i8* %51
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 66
br i1 %54, label %55, label %56
55: ; preds = %49, %43
store i8 98, i8* %6
br label %56
56: ; preds = %55, %49
%57 = load i8*, i8** %8
%58 = getelementptr inbounds i8, i8* %57, i64 0
%59 = load i8, i8* %58
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 99
br i1 %61, label %68, label %62
62: ; preds = %56
%63 = load i8*, i8** %8
%64 = getelementptr inbounds i8, i8* %63, i64 0
%65 = load i8, i8* %64
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 67
br i1 %67, label %68, label %69
68: ; preds = %62, %56
store i8 99, i8* %6
br label %69
69: ; preds = %68, %62
%70 = load i8, i8* %6
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %82
73: ; preds = %69
%74 = load i32, i32* @stderr
%75 = call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
%76 = load i32, i32* @stderr
%77 = load i8**, i8*** %5
%78 = getelementptr inbounds i8*, i8** %77, i64 0
%79 = load i8*, i8** %78
%80 = call i32 (i32, i8*, ...) @fprintf(i32 %76, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.6, i64 0, i64 0), i8* %79)
%81 = call i32 @exit(i32 -1)
unreachable
82: ; preds = %69
%83 = load i8**, i8*** %5
%84 = getelementptr inbounds i8*, i8** %83, i64 2
%85 = load i8*, i8** %84
%86 = call i32* @fopen(i8* %85, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
store i32* %86, i32** %10
%87 = load i32*, i32** %10
%88 = icmp eq i32* %87, null
br i1 %88, label %89, label %93
89: ; preds = %82
%90 = load i32, i32* @stderr
%91 = call i32 (i32, i8*, ...) @fprintf(i32 %90, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0))
%92 = call i32 @exit(i32 -1)
unreachable
93: ; preds = %82
%94 = load i8, i8* %6
%95 = load i8*, i8** %12
%96 = getelementptr inbounds i8, i8* %95, i64 16
store i8 %94, i8* %96
%97 = load i8*, i8** %12
%98 = call i32* @fopen(i8* %97, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
store i32* %98, i32** %11
%99 = load i32*, i32** %11
%100 = icmp eq i32* %99, null
br i1 %100, label %101, label %106
101: ; preds = %93
%102 = load i32, i32* @stderr
%103 = load i8*, i8** %12
%104 = call i32 (i32, i8*, ...) @fprintf(i32 %102, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0), i8* %103)
%105 = call i32 @exit(i32 -1)
unreachable
106: ; preds = %93
%107 = getelementptr inbounds [131072 x i8], [131072 x i8]* %7, i64 0, i64 0
%108 = load i32*, i32** %10
%109 = call i32 @fread(i8* %107, i32 1, i32 131072, i32* %108)
store i32 %109, i32* %9
br label %110
110: ; preds = %113, %106
%111 = load i32, i32* %9
%112 = icmp sgt i32 %111, 0
br i1 %112, label %113, label %121
113: ; preds = %110
%114 = getelementptr inbounds [131072 x i8], [131072 x i8]* %7, i64 0, i64 0
%115 = load i32, i32* %9
%116 = load i32*, i32** %11
%117 = call i32 @fwrite(i8* %114, i32 1, i32 %115, i32* %116)
%118 = getelementptr inbounds [131072 x i8], [131072 x i8]* %7, i64 0, i64 0
%119 = load i32*, i32** %10
%120 = call i32 @fread(i8* %118, i32 1, i32 131072, i32* %119)
store i32 %120, i32* %9
br label %110
121: ; preds = %110
%122 = load i32*, i32** %10
%123 = call i32 @fclose(i32* %122)
%124 = load i32*, i32** %11
%125 = call i32 @fclose(i32* %124)
%126 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [25 x i8] c"/dstar/tmp/play-X.dvtool\00"
@stderr = global i32 0
@.str.1 = [37 x i8] c"Error: at least 2 arguments needed.\0A\00"
@.str.2 = [29 x i8] c"Usage: %s module infile.wav\0A\00"
@.str.3 = [20 x i8] c"Info: version = %s\0A\00"
@.str.4 = [6 x i8] c"0.1.2\00"
@.str.5 = [39 x i8] c"Error: module must be 'a', 'b' or 'c'\0A\00"
@.str.6 = [46 x i8] c"usage: %s infile.dvtool repeater-name module\0A\00"
@.str.7 = [3 x i8] c"rb\00"
@.str.8 = [31 x i8] c"Error: cannot open input file\0A\00"
@.str.9 = [3 x i8] c"wb\00"
@.str.10 = [35 x i8] c"Error: cannot open output file %s\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [131072 x i8]
%4 = getelementptr inbounds [131072 x i8], [131072 x i8]* %3, i64 0, i64 0
%5 = tail call dereferenceable_or_null(25) i8* @strdup(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%6 = icmp slt i32 %0, 3
br i1 %6, label %7, label %16
7: ; preds = %2
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = load i8*, i8** %1
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* %11)
%13 = load i32, i32* @stderr
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%15 = tail call i32 @exit(i32 -1)
unreachable
16: ; preds = %2
%17 = getelementptr inbounds i8*, i8** %1, i64 1
%18 = load i8*, i8** %17
%19 = load i8, i8* %18
%20 = and i8 %19, -33
%21 = icmp eq i8 %20, 65
%22 = select i1 %21, i8 97, i8 0
switch i8 %19, label %24 [
i8 98, label %23
i8 66, label %23
]
23: ; preds = %16, %16
br label %24
24: ; preds = %16, %23
%25 = phi i8 [ 98, %23 ], [ %22, %16 ]
switch i8 %19, label %26 [
i8 99, label %35
i8 67, label %35
]
26: ; preds = %24
%27 = icmp eq i8 %25, 0
br i1 %27, label %28, label %35
28: ; preds = %26
%29 = load i32, i32* @stderr
%30 = tail call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = load i8*, i8** %1
%33 = tail call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.6, i64 0, i64 0), i8* %32)
%34 = tail call i32 @exit(i32 -1)
unreachable
35: ; preds = %24, %24, %26
%36 = phi i8 [ %25, %26 ], [ 99, %24 ], [ 99, %24 ]
%37 = getelementptr inbounds i8*, i8** %1, i64 2
%38 = load i8*, i8** %37
%39 = tail call i32* @fopen(i8* %38, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%40 = icmp eq i32* %39, null
br i1 %40, label %41, label %45
41: ; preds = %35
%42 = load i32, i32* @stderr
%43 = tail call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0))
%44 = tail call i32 @exit(i32 -1)
unreachable
45: ; preds = %35
%46 = getelementptr inbounds i8, i8* %5, i64 16
store i8 %36, i8* %46
%47 = tail call i32* @fopen(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%48 = icmp eq i32* %47, null
br i1 %48, label %49, label %53
49: ; preds = %45
%50 = load i32, i32* @stderr
%51 = tail call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0), i8* %5)
%52 = tail call i32 @exit(i32 -1)
unreachable
53: ; preds = %45
%54 = call i32 @fread(i8* %4, i32 1, i32 131072, i32* %39)
%55 = icmp sgt i32 %54, 0
br i1 %55, label %56, label %61
56: ; preds = %53, %56
%57 = phi i32 [ %59, %56 ], [ %54, %53 ]
%58 = call i32 @fwrite(i8* %4, i32 1, i32 %57, i32* %47)
%59 = call i32 @fread(i8* %4, i32 1, i32 131072, i32* %39)
%60 = icmp sgt i32 %59, 0
br i1 %60, label %56, label %61
61: ; preds = %56, %53
%62 = tail call i32 @fclose(i32* %39)
%63 = tail call i32 @fclose(i32* %47)
%64 = tail call i32 @exit(i32 0)
unreachable
}