#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int fread(unsigned char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, char *);
void generate_c_file(char *in_filename, char *out_filename, char *array) {
  FILE *infile, *outfile;
  int amount, start, i;
  unsigned char buffer[8];
  infile = fopen(in_filename, "rb");
  if (infile == NULL) {
    printf("cannot open %s for reading\n", in_filename);
    return;
  }
  outfile = fopen(out_filename, "wb");
  if (outfile == NULL) {
    printf("cannot open %s for writing\n", out_filename);
    fclose(infile);
    return;
  }
  fprintf(outfile, "/* Autogenerated file, DO NOT EDIT !!! */\n\n");
  fprintf(outfile, "%s = {\n", array);
  start = 1;
  while (!feof(infile)) {
    amount = fread(buffer, 1, 8, infile);
    if (start == 0) {
      fprintf(outfile, ",\n");
    } else {
      start = 0;
    }
    if (amount >= 1) {
      fprintf(outfile, "    0x%02X", buffer[0]);
    }
    for (i = 2; i < 9; i++) {
      if (amount >= i) {
        fprintf(outfile, ", 0x%02X", buffer[i - 1]);
      }
    }
  }
  fprintf(outfile, "\n};\n");
  fclose(infile);
  fclose(outfile);
  return;
}


x86 assembly (clang, -O0):
<generate_c_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe81(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    11a8 <generate_c_file+0x48>
mov    -0x8(%rbp),%rsi
lea    0xe65(%rip),%rdi
call   1050 <printf@plt>
jmp    130c <generate_c_file+0x1ac>
mov    -0x10(%rbp),%rdi
lea    0xe6c(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    11e5 <generate_c_file+0x85>
mov    -0x10(%rbp),%rsi
lea    0xe50(%rip),%rdi
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
jmp    130c <generate_c_file+0x1ac>
mov    -0x28(%rbp),%rdi
lea    0xe4e(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x28(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xe64(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x30(%rbp)
mov    -0x20(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1232 <generate_c_file+0xd2>
jmp    12e8 <generate_c_file+0x188>
lea    -0x3c(%rbp),%rdi
mov    -0x20(%rbp),%rcx
mov    $0x1,%esi
mov    $0x8,%edx
call   1030 <fread@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x30(%rbp)
jne    126d <generate_c_file+0x10d>
mov    -0x28(%rbp),%rdi
lea    0xe11(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    1274 <generate_c_file+0x114>
movl   $0x0,-0x30(%rbp)
cmpl   $0x1,-0x2c(%rbp)
jl     1294 <generate_c_file+0x134>
mov    -0x28(%rbp),%rdi
movzbl -0x3c(%rbp),%edx
lea    0xde8(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x2,-0x34(%rbp)
cmpl   $0x9,-0x34(%rbp)
jge    12e3 <generate_c_file+0x183>
mov    -0x2c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jl     12d0 <generate_c_file+0x170>
mov    -0x28(%rbp),%rdi
mov    -0x34(%rbp),%eax
sub    $0x1,%eax
cltq
movzbl -0x3c(%rbp,%rax,1),%edx
lea    0xdb7(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
jmp    12d5 <generate_c_file+0x175>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    129b <generate_c_file+0x13b>
jmp    1214 <generate_c_file+0xb4>
mov    -0x28(%rbp),%rdi
lea    0xd96(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<generate_c_file>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdx,%r12
mov    %rsi,%rbx
mov    %rdi,%rbp
lea    0xe75(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     1323 <generate_c_file+0x1b3>
mov    %rax,%r14
lea    0xe7c(%rip),%rsi
mov    %rbx,%rdi
call   1080 <fopen@plt>
test   %rax,%rax
je     1340 <generate_c_file+0x1d0>
mov    %rax,%r15
lea    0xe80(%rip),%rdi
mov    $0x2b,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1090 <fwrite@plt>
lea    0xe93(%rip),%rsi
mov    %r15,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r14,%rdi
call   1070 <feof@plt>
test   %eax,%eax
jne    12fd <generate_c_file+0x18d>
mov    %rsp,%rdi
mov    $0x1,%esi
mov    $0x8,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
test   %eax,%eax
jle    12f1 <generate_c_file+0x181>
mov    %eax,%ebp
movzbl (%rsp),%edx
lea    0xe57(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    $0x1,%ebp
je     12f1 <generate_c_file+0x181>
movzbl 0x1(%rsp),%edx
lea    0xe43(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    $0x3,%ebp
jb     12f1 <generate_c_file+0x181>
movzbl 0x2(%rsp),%edx
lea    0xe24(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    $0x3,%ebp
je     12f1 <generate_c_file+0x181>
movzbl 0x3(%rsp),%edx
lea    0xe05(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    $0x5,%ebp
jb     12f1 <generate_c_file+0x181>
movzbl 0x4(%rsp),%edx
lea    0xdea(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    $0x5,%ebp
je     12f1 <generate_c_file+0x181>
movzbl 0x5(%rsp),%edx
lea    0xdcf(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    $0x7,%ebp
jb     12f1 <generate_c_file+0x181>
movzbl 0x6(%rsp),%edx
lea    0xdb4(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    $0x7,%ebp
je     12f1 <generate_c_file+0x181>
movzbl 0x7(%rsp),%edx
lea    0xd99(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r14,%rdi
call   1070 <feof@plt>
test   %eax,%eax
je     1365 <generate_c_file+0x1f5>
lea    0xd85(%rip),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
mov    %r15,%rdi
jmp    1352 <generate_c_file+0x1e2>
lea    0xcd9(%rip),%rdi
mov    %rbp,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <printf@plt>
lea    0xcdb(%rip),%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <fclose@plt>
mov    %rsp,%rbx
lea    0xd03(%rip),%r12
lea    0xd0a(%rip),%rbp
jmp    1390 <generate_c_file+0x220>
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1070 <feof@plt>
test   %eax,%eax
jne    12fd <generate_c_file+0x18d>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x8,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
mov    %eax,%r13d
mov    $0x2,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %r15,%rcx
call   1090 <fwrite@plt>
test   %r13d,%r13d
jle    1380 <generate_c_file+0x210>
movzbl (%rsp),%edx
mov    %r15,%rdi
lea    0xca5(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    $0x1,%r13d
je     1380 <generate_c_file+0x210>
movzbl 0x1(%rsp),%edx
mov    %r15,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    $0x3,%r13d
jb     1380 <generate_c_file+0x210>
movzbl 0x2(%rsp),%edx
mov    %r15,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    $0x3,%r13d
je     1380 <generate_c_file+0x210>
movzbl 0x3(%rsp),%edx
mov    %r15,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    $0x5,%r13d
jb     1380 <generate_c_file+0x210>
movzbl 0x4(%rsp),%edx
mov    %r15,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    $0x5,%r13d
je     1380 <generate_c_file+0x210>
movzbl 0x5(%rsp),%edx
mov    %r15,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    $0x7,%r13d
jb     1380 <generate_c_file+0x210>
movzbl 0x6(%rsp),%edx
mov    %r15,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    $0x7,%r13d
je     1380 <generate_c_file+0x210>
movzbl 0x7(%rsp),%edx
mov    %r15,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    1380 <generate_c_file+0x210>

LLVM IR (-O0):
@.str = [3 x i8] c"rb\00"
@.str.1 = [28 x i8] c"cannot open %s for reading\0A\00"
@.str.2 = [3 x i8] c"wb\00"
@.str.3 = [28 x i8] c"cannot open %s for writing\0A\00"
@.str.4 = [44 x i8] c"/* Autogenerated file, DO NOT EDIT !!! */\0A\0A\00"
@.str.5 = [8 x i8] c"%s = {\0A\00"
@.str.6 = [3 x i8] c",\0A\00"
@.str.7 = [11 x i8] c" 0x%02X\00"
@.str.8 = [9 x i8] c", 0x%02X\00"
@.str.9 = [5 x i8] c"\0A};\0A\00"
define void @generate_c_file(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca [8 x i8]
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%13 = load i8*, i8** %4
%14 = call i32* @fopen(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %14, i32** %7
%15 = load i32*, i32** %7
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %20
17: ; preds = %3
%18 = load i8*, i8** %4
%19 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* %18)
br label %89
20: ; preds = %3
%21 = load i8*, i8** %5
%22 = call i32* @fopen(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32* %22, i32** %8
%23 = load i32*, i32** %8
%24 = icmp eq i32* %23, null
br i1 %24, label %25, label %30
25: ; preds = %20
%26 = load i8*, i8** %5
%27 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%28 = load i32*, i32** %7
%29 = call i32 @fclose(i32* %28)
br label %89
30: ; preds = %20
%31 = load i32*, i32** %8
%32 = call i32 (i32*, i8*, ...) @fprintf(i32* %31, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%33 = load i32*, i32** %8
%34 = load i8*, i8** %6
%35 = call i32 (i32*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* %34)
store i32 1, i32* %10
br label %36
36: ; preds = %81, %30
%37 = load i32*, i32** %7
%38 = call i32 @feof(i32* %37)
%39 = icmp ne i32 %38, 0
%40 = xor i1 %39, true
br i1 %40, label %41, label %82
41: ; preds = %36
%42 = getelementptr inbounds [8 x i8], [8 x i8]* %12, i64 0, i64 0
%43 = load i32*, i32** %7
%44 = call i32 @fread(i8* %42, i32 1, i32 8, i32* %43)
store i32 %44, i32* %9
%45 = load i32, i32* %10
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %50
47: ; preds = %41
%48 = load i32*, i32** %8
%49 = call i32 (i32*, i8*, ...) @fprintf(i32* %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
br label %51
50: ; preds = %41
store i32 0, i32* %10
br label %51
51: ; preds = %50, %47
%52 = load i32, i32* %9
%53 = icmp sge i32 %52, 1
br i1 %53, label %54, label %60
54: ; preds = %51
%55 = load i32*, i32** %8
%56 = getelementptr inbounds [8 x i8], [8 x i8]* %12, i64 0, i64 0
%57 = load i8, i8* %56
%58 = zext i8 %57 to i32
%59 = call i32 (i32*, i8*, ...) @fprintf(i32* %55, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 %58)
br label %60
60: ; preds = %54, %51
store i32 2, i32* %11
br label %61
61: ; preds = %78, %60
%62 = load i32, i32* %11
%63 = icmp slt i32 %62, 9
br i1 %63, label %64, label %81
64: ; preds = %61
%65 = load i32, i32* %9
%66 = load i32, i32* %11
%67 = icmp sge i32 %65, %66
br i1 %67, label %68, label %77
68: ; preds = %64
%69 = load i32*, i32** %8
%70 = load i32, i32* %11
%71 = sub nsw i32 %70, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [8 x i8], [8 x i8]* %12, i64 0, i64 %72
%74 = load i8, i8* %73
%75 = zext i8 %74 to i32
%76 = call i32 (i32*, i8*, ...) @fprintf(i32* %69, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %75)
br label %77
77: ; preds = %68, %64
br label %78
78: ; preds = %77
%79 = load i32, i32* %11
%80 = add nsw i32 %79, 1
store i32 %80, i32* %11
br label %61
81: ; preds = %61
br label %36
82: ; preds = %36
%83 = load i32*, i32** %8
%84 = call i32 (i32*, i8*, ...) @fprintf(i32* %83, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%85 = load i32*, i32** %7
%86 = call i32 @fclose(i32* %85)
%87 = load i32*, i32** %8
%88 = call i32 @fclose(i32* %87)
br label %89
89: ; preds = %82, %25, %17
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"rb\00"
@.str.1 = [28 x i8] c"cannot open %s for reading\0A\00"
@.str.2 = [3 x i8] c"wb\00"
@.str.3 = [28 x i8] c"cannot open %s for writing\0A\00"
@.str.4 = [44 x i8] c"/* Autogenerated file, DO NOT EDIT !!! */\0A\0A\00"
@.str.5 = [8 x i8] c"%s = {\0A\00"
@.str.6 = [3 x i8] c",\0A\00"
@.str.7 = [11 x i8] c" 0x%02X\00"
@.str.8 = [9 x i8] c", 0x%02X\00"
@.str.9 = [5 x i8] c"\0A};\0A\00"
define void @generate_c_file(i8* %0, i8* %1, i8* %2) {
%4 = alloca [8 x i8]
%5 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 0
%6 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%7 = icmp eq i32* %6, null
br i1 %7, label %8, label %10
8: ; preds = %3
%9 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* %0)
br label %131
10: ; preds = %3
%11 = tail call i32* @fopen(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i32* %11, null
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i8* %1)
%15 = tail call i32 @fclose(i32* %6)
br label %131
16: ; preds = %10
%17 = tail call i64 @fwrite(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), i64 43, i64 1, i32* %11)
%18 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8* %2)
%19 = tail call i32 @feof(i32* %6)
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %127
21: ; preds = %16
%22 = call i32 @fread(i8* %5, i32 1, i32 8, i32* %6)
%23 = icmp sgt i32 %22, 0
br i1 %23, label %24, label %70
24: ; preds = %21
%25 = load i8, i8* %5
%26 = zext i8 %25 to i32
%27 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 %26)
%28 = icmp eq i32 %22, 1
br i1 %28, label %70, label %29
29: ; preds = %24
%30 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 1
%31 = load i8, i8* %30
%32 = zext i8 %31 to i32
%33 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %32)
%34 = icmp ult i32 %22, 3
br i1 %34, label %70, label %35
35: ; preds = %29
%36 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 2
%37 = load i8, i8* %36
%38 = zext i8 %37 to i32
%39 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %38)
%40 = icmp eq i32 %22, 3
br i1 %40, label %70, label %41
41: ; preds = %35
%42 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 3
%43 = load i8, i8* %42
%44 = zext i8 %43 to i32
%45 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %44)
%46 = icmp ult i32 %22, 5
br i1 %46, label %70, label %47
47: ; preds = %41
%48 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 4
%49 = load i8, i8* %48
%50 = zext i8 %49 to i32
%51 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %50)
%52 = icmp eq i32 %22, 5
br i1 %52, label %70, label %53
53: ; preds = %47
%54 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 5
%55 = load i8, i8* %54
%56 = zext i8 %55 to i32
%57 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %56)
%58 = icmp ult i32 %22, 7
br i1 %58, label %70, label %59
59: ; preds = %53
%60 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 6
%61 = load i8, i8* %60
%62 = zext i8 %61 to i32
%63 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %62)
%64 = icmp eq i32 %22, 7
br i1 %64, label %70, label %65
65: ; preds = %59
%66 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 7
%67 = load i8, i8* %66
%68 = zext i8 %67 to i32
%69 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %68)
br label %70
70: ; preds = %21, %24, %29, %35, %41, %47, %53, %65, %59
%71 = tail call i32 @feof(i32* %6)
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %127
73: ; preds = %70
%74 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 1
%75 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 2
%76 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 3
%77 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 4
%78 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 5
%79 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 6
%80 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 7
br label %81
81: ; preds = %73, %124
%82 = call i32 @fread(i8* %5, i32 1, i32 8, i32* %6)
%83 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i64 2, i64 1, i32* %11)
%84 = icmp sgt i32 %82, 0
br i1 %84, label %85, label %124
85: ; preds = %81
%86 = load i8, i8* %5
%87 = zext i8 %86 to i32
%88 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 %87)
%89 = icmp eq i32 %82, 1
br i1 %89, label %124, label %90
90: ; preds = %85
%91 = load i8, i8* %74
%92 = zext i8 %91 to i32
%93 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %92)
%94 = icmp ult i32 %82, 3
br i1 %94, label %124, label %95
95: ; preds = %90
%96 = load i8, i8* %75
%97 = zext i8 %96 to i32
%98 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %97)
%99 = icmp eq i32 %82, 3
br i1 %99, label %124, label %100
100: ; preds = %95
%101 = load i8, i8* %76
%102 = zext i8 %101 to i32
%103 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %102)
%104 = icmp ult i32 %82, 5
br i1 %104, label %124, label %105
105: ; preds = %100
%106 = load i8, i8* %77
%107 = zext i8 %106 to i32
%108 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %107)
%109 = icmp eq i32 %82, 5
br i1 %109, label %124, label %110
110: ; preds = %105
%111 = load i8, i8* %78
%112 = zext i8 %111 to i32
%113 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %112)
%114 = icmp ult i32 %82, 7
br i1 %114, label %124, label %115
115: ; preds = %110
%116 = load i8, i8* %79
%117 = zext i8 %116 to i32
%118 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %117)
%119 = icmp eq i32 %82, 7
br i1 %119, label %124, label %120
120: ; preds = %115
%121 = load i8, i8* %80
%122 = zext i8 %121 to i32
%123 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %122)
br label %124
124: ; preds = %81, %85, %90, %95, %100, %105, %110, %120, %115
%125 = tail call i32 @feof(i32* %6)
%126 = icmp eq i32 %125, 0
br i1 %126, label %81, label %127
127: ; preds = %124, %70, %16
%128 = tail call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i64 4, i64 1, i32* %11)
%129 = tail call i32 @fclose(i32* %6)
%130 = tail call i32 @fclose(i32* %11)
br label %131
131: ; preds = %127, %13, %8
ret void
}