#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 bin2dec(char *);
int /*<<< orphan*/ codetext(char **, char *, char);
int count_lines(char **);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
char fgetc(int /*<<< orphan*/ *);
int final_num(char *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
int /*<<< orphan*/ move_code(char *);
int strlen(char *);
void text2code(const char *input_name, const char *output_name,
               char code_arr[128][128]) {
  char code[128];
  for (int i = 0; i < 128; i++)
    code[i] = '\0';
  FILE *input;
  input = fopen(input_name, "r");
  FILE *output;
  output = fopen(output_name, "w");
  int lines = count_lines(code_arr);
  fprintf(output, "%d\n\n ", lines);
  for (int i = 0; i < 128; i++)
    if (code_arr[i][0] != '\0') {
      if ((char)i == ' ') {
        fprintf(output, "' ' - %s\n", code_arr[i]);
        continue;
      }
      if ((char)i == '\n') {
        fprintf(output, "'\\n' - %s\n", code_arr[i]);
        continue;
      }
      fprintf(output, "%c - %s\n", (char)i, code_arr[i]);
    }
  char sign;
  while (!feof(input)) {
    sign = fgetc(input);
    if ((int)sign >= 0)
      codetext(code_arr, code, sign);
    if (strlen(code) >= 8) {
      int coded = bin2dec(code);
      unsigned char out_sign = coded;
      fprintf(output, "%c", out_sign);
      move_code(code);
    }
  }
  unsigned long int while_eof = strlen(code);
  if (while_eof > 0) {
    int coded = final_num(code);
    unsigned char out_sign = coded;
    fprintf(output, "%c", out_sign);
  }
  fseek(output, 0, 0);
  fprintf(output, "%lu\n%d\n", while_eof, lines);
  fclose(input);
  fclose(output);
}


x86 assembly (clang, -O0):
<text2code>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0xa4(%rbp)
cmpl   $0x80,-0xa4(%rbp)
jge    1214 <text2code+0x54>
movslq -0xa4(%rbp),%rax
movb   $0x0,-0xa0(%rbp,%rax,1)
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    11e1 <text2code+0x21>
mov    -0x8(%rbp),%rdi
lea    0xde1(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0xb0(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xdcc(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0xb8(%rbp)
mov    -0x18(%rbp),%rdi
call   10a0 <count_lines@plt>
mov    %eax,-0xbc(%rbp)
mov    -0xb8(%rbp),%rdi
mov    -0xbc(%rbp),%edx
lea    0xd9f(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
movl   $0x0,-0xc0(%rbp)
cmpl   $0x80,-0xc0(%rbp)
jge    1369 <text2code+0x1a9>
mov    -0x18(%rbp),%rax
movslq -0xc0(%rbp),%rcx
shl    $0x7,%rcx
add    %rcx,%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1350 <text2code+0x190>
mov    -0xc0(%rbp),%eax
movsbl %al,%eax
cmp    $0x20,%eax
jne    12e2 <text2code+0x122>
mov    -0xb8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
movslq -0xc0(%rbp),%rax
shl    $0x7,%rax
add    %rax,%rdx
lea    0xd34(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    1355 <text2code+0x195>
mov    -0xc0(%rbp),%eax
movsbl %al,%eax
cmp    $0xa,%eax
jne    1320 <text2code+0x160>
mov    -0xb8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
movslq -0xc0(%rbp),%rax
shl    $0x7,%rax
add    %rax,%rdx
lea    0xd00(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    1355 <text2code+0x195>
mov    -0xb8(%rbp),%rdi
mov    -0xc0(%rbp),%eax
movsbl %al,%edx
mov    -0x18(%rbp),%rcx
movslq -0xc0(%rbp),%rax
shl    $0x7,%rax
add    %rax,%rcx
lea    0xcd6(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    1355 <text2code+0x195>
mov    -0xc0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc0(%rbp)
jmp    1276 <text2code+0xb6>
jmp    136e <text2code+0x1ae>
mov    -0xb0(%rbp),%rdi
call   1090 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    138f <text2code+0x1cf>
jmp    1428 <text2code+0x268>
mov    -0xb0(%rbp),%rdi
call   1070 <fgetc@plt>
mov    %al,-0xc1(%rbp)
movsbl -0xc1(%rbp),%eax
cmp    $0x0,%eax
jl     13c8 <text2code+0x208>
mov    -0x18(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
movsbl -0xc1(%rbp),%edx
call   10e0 <codetext@plt>
lea    -0xa0(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x8,%eax
jl     1423 <text2code+0x263>
lea    -0xa0(%rbp),%rdi
call   1030 <bin2dec@plt>
mov    %eax,-0xc8(%rbp)
mov    -0xc8(%rbp),%eax
mov    %al,-0xc9(%rbp)
mov    -0xb8(%rbp),%rdi
movzbl -0xc9(%rbp),%edx
lea    0xc18(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
lea    -0xa0(%rbp),%rdi
call   1060 <move_code@plt>
jmp    136e <text2code+0x1ae>
lea    -0xa0(%rbp),%rdi
call   1050 <strlen@plt>
cltq
mov    %rax,-0xd8(%rbp)
cmpq   $0x0,-0xd8(%rbp)
jbe    1485 <text2code+0x2c5>
lea    -0xa0(%rbp),%rdi
call   10d0 <final_num@plt>
mov    %eax,-0xdc(%rbp)
mov    -0xdc(%rbp),%eax
mov    %al,-0xdd(%rbp)
mov    -0xb8(%rbp),%rdi
movzbl -0xdd(%rbp),%edx
lea    0xbaa(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0xb8(%rbp),%rdi
xor    %edx,%edx
mov    %edx,%esi
call   10b0 <fseek@plt>
mov    -0xb8(%rbp),%rdi
mov    -0xd8(%rbp),%rdx
mov    -0xbc(%rbp),%ecx
lea    0xb7b(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0xb0(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0xb8(%rbp),%rdi
call   1040 <fclose@plt>
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<text2code>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %rdx,%r12
mov    %rsi,%rbx
xorps  %xmm0,%xmm0
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
lea    0xde4(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,%r14
lea    0xdd7(%rip),%rsi
mov    %rbx,%rdi
call   10d0 <fopen@plt>
mov    %rax,%rbx
mov    %r12,%rdi
call   10b0 <count_lines@plt>
lea    0xdbf(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,0xc(%rsp)
mov    %eax,%edx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    %r12,%rbp
xor    %r15d,%r15d
xor    %r13d,%r13d
jmp    128c <text2code+0xbc>
lea    0xdb8(%rip),%rsi
mov    %r13d,%edx
mov    %rbp,%rcx
xor    %eax,%eax
call   1090 <fprintf@plt>
add    $0x1,%r13
add    $0x1000000,%r15d
sub    $0xffffffffffffff80,%rbp
cmp    $0x80,%r13
je     12c3 <text2code+0xf3>
cmpb   $0x0,0x0(%rbp)
je     1274 <text2code+0xa4>
mov    %rbx,%rdi
cmp    $0xa000000,%r15d
je     12b0 <text2code+0xe0>
cmp    $0x20000000,%r15d
jne    1260 <text2code+0x90>
lea    0xd5c(%rip),%rsi
jmp    12b7 <text2code+0xe7>
lea    0xd5d(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
jmp    1274 <text2code+0xa4>
mov    %r14,%rdi
call   10a0 <feof@plt>
test   %eax,%eax
je     133d <text2code+0x16d>
lea    0x10(%rsp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ebp
test   %eax,%eax
je     12f4 <text2code+0x124>
lea    0x10(%rsp),%rdi
call   10e0 <final_num@plt>
movzbl %al,%edi
mov    %rbx,%rsi
call   1080 <fputc@plt>
movslq %ebp,%rbp
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   10c0 <fseek@plt>
lea    0xd1e(%rip),%rsi
mov    %rbx,%rdi
mov    %rbp,%rdx
mov    0xc(%rsp),%ecx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x10(%rsp),%rbp
jmp    1360 <text2code+0x190>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
call   10a0 <feof@plt>
test   %eax,%eax
jne    12cf <text2code+0xff>
mov    %r14,%rdi
call   1070 <fgetc@plt>
test   %al,%al
js     137a <text2code+0x1aa>
movsbl %al,%edx
mov    %r12,%rdi
mov    %rbp,%rsi
call   10f0 <codetext@plt>
mov    %rbp,%rdi
call   1050 <strlen@plt>
cmp    $0x8,%eax
jl     1350 <text2code+0x180>
mov    %rbp,%rdi
call   1030 <bin2dec@plt>
movzbl %al,%edi
mov    %rbx,%rsi
call   1080 <fputc@plt>
mov    %rbp,%rdi
call   1060 <move_code@plt>
jmp    1350 <text2code+0x180>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [6 x i8] c"%d\0A\0A \00"
@.str.3 = [10 x i8] c"' ' - %s\0A\00"
@.str.4 = [11 x i8] c"'\\n' - %s\0A\00"
@.str.5 = [9 x i8] c"%c - %s\0A\00"
@.str.6 = [3 x i8] c"%c\00"
@.str.7 = [8 x i8] c"%lu\0A%d\0A\00"
define void @text2code(i8* %0, i8* %1, [128 x i8]* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca [128 x i8]*
%7 = alloca [128 x i8]
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8
%14 = alloca i32
%15 = alloca i8
%16 = alloca i64
%17 = alloca i32
%18 = alloca i8
store i8* %0, i8** %4
store i8* %1, i8** %5
store [128 x i8]* %2, [128 x i8]** %6
store i32 0, i32* %8
br label %19
19: ; preds = %26, %3
%20 = load i32, i32* %8
%21 = icmp slt i32 %20, 128
br i1 %21, label %22, label %29
22: ; preds = %19
%23 = load i32, i32* %8
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 %24
store i8 0, i8* %25
br label %26
26: ; preds = %22
%27 = load i32, i32* %8
%28 = add nsw i32 %27, 1
store i32 %28, i32* %8
br label %19
29: ; preds = %19
%30 = load i8*, i8** %4
%31 = call i32* @fopen(i8* %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %31, i32** %9
%32 = load i8*, i8** %5
%33 = call i32* @fopen(i8* %32, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %33, i32** %10
%34 = load [128 x i8]*, [128 x i8]** %6
%35 = bitcast [128 x i8]* %34 to i8**
%36 = call i32 @count_lines(i8** %35)
store i32 %36, i32* %11
%37 = load i32*, i32** %10
%38 = load i32, i32* %11
%39 = call i32 (i32*, i8*, ...) @fprintf(i32* %37, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %38)
store i32 0, i32* %12
br label %40
40: ; preds = %90, %29
%41 = load i32, i32* %12
%42 = icmp slt i32 %41, 128
br i1 %42, label %43, label %93
43: ; preds = %40
%44 = load [128 x i8]*, [128 x i8]** %6
%45 = load i32, i32* %12
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [128 x i8], [128 x i8]* %44, i64 %46
%48 = getelementptr inbounds [128 x i8], [128 x i8]* %47, i64 0, i64 0
%49 = load i8, i8* %48
%50 = sext i8 %49 to i32
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %89
52: ; preds = %43
%53 = load i32, i32* %12
%54 = trunc i32 %53 to i8
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 32
br i1 %56, label %57, label %65
57: ; preds = %52
%58 = load i32*, i32** %10
%59 = load [128 x i8]*, [128 x i8]** %6
%60 = load i32, i32* %12
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [128 x i8], [128 x i8]* %59, i64 %61
%63 = getelementptr inbounds [128 x i8], [128 x i8]* %62, i64 0, i64 0
%64 = call i32 (i32*, i8*, ...) @fprintf(i32* %58, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %63)
br label %90
65: ; preds = %52
%66 = load i32, i32* %12
%67 = trunc i32 %66 to i8
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 10
br i1 %69, label %70, label %78
70: ; preds = %65
%71 = load i32*, i32** %10
%72 = load [128 x i8]*, [128 x i8]** %6
%73 = load i32, i32* %12
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [128 x i8], [128 x i8]* %72, i64 %74
%76 = getelementptr inbounds [128 x i8], [128 x i8]* %75, i64 0, i64 0
%77 = call i32 (i32*, i8*, ...) @fprintf(i32* %71, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* %76)
br label %90
78: ; preds = %65
%79 = load i32*, i32** %10
%80 = load i32, i32* %12
%81 = trunc i32 %80 to i8
%82 = sext i8 %81 to i32
%83 = load [128 x i8]*, [128 x i8]** %6
%84 = load i32, i32* %12
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [128 x i8], [128 x i8]* %83, i64 %85
%87 = getelementptr inbounds [128 x i8], [128 x i8]* %86, i64 0, i64 0
%88 = call i32 (i32*, i8*, ...) @fprintf(i32* %79, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %82, i8* %87)
br label %89
89: ; preds = %78, %43
br label %90
90: ; preds = %89, %70, %57
%91 = load i32, i32* %12
%92 = add nsw i32 %91, 1
store i32 %92, i32* %12
br label %40
93: ; preds = %40
br label %94
94: ; preds = %126, %93
%95 = load i32*, i32** %9
%96 = call i32 @feof(i32* %95)
%97 = icmp ne i32 %96, 0
%98 = xor i1 %97, true
br i1 %98, label %99, label %127
99: ; preds = %94
%100 = load i32*, i32** %9
%101 = call signext i8 @fgetc(i32* %100)
store i8 %101, i8* %13
%102 = load i8, i8* %13
%103 = sext i8 %102 to i32
%104 = icmp sge i32 %103, 0
br i1 %104, label %105, label %111
105: ; preds = %99
%106 = load [128 x i8]*, [128 x i8]** %6
%107 = bitcast [128 x i8]* %106 to i8**
%108 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%109 = load i8, i8* %13
%110 = call i32 @codetext(i8** %107, i8* %108, i8 signext %109)
br label %111
111: ; preds = %105, %99
%112 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%113 = call i32 @strlen(i8* %112)
%114 = icmp sge i32 %113, 8
br i1 %114, label %115, label %126
115: ; preds = %111
%116 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%117 = call i32 @bin2dec(i8* %116)
store i32 %117, i32* %14
%118 = load i32, i32* %14
%119 = trunc i32 %118 to i8
store i8 %119, i8* %15
%120 = load i32*, i32** %10
%121 = load i8, i8* %15
%122 = zext i8 %121 to i32
%123 = call i32 (i32*, i8*, ...) @fprintf(i32* %120, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 %122)
%124 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%125 = call i32 @move_code(i8* %124)
br label %126
126: ; preds = %115, %111
br label %94
127: ; preds = %94
%128 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%129 = call i32 @strlen(i8* %128)
%130 = sext i32 %129 to i64
store i64 %130, i64* %16
%131 = load i64, i64* %16
%132 = icmp ugt i64 %131, 0
br i1 %132, label %133, label %142
133: ; preds = %127
%134 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%135 = call i32 @final_num(i8* %134)
store i32 %135, i32* %17
%136 = load i32, i32* %17
%137 = trunc i32 %136 to i8
store i8 %137, i8* %18
%138 = load i32*, i32** %10
%139 = load i8, i8* %18
%140 = zext i8 %139 to i32
%141 = call i32 (i32*, i8*, ...) @fprintf(i32* %138, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32 %140)
br label %142
142: ; preds = %133, %127
%143 = load i32*, i32** %10
%144 = call i32 @fseek(i32* %143, i32 0, i32 0)
%145 = load i32*, i32** %10
%146 = load i64, i64* %16
%147 = load i32, i32* %11
%148 = call i32 (i32*, i8*, ...) @fprintf(i32* %145, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i64 %146, i32 %147)
%149 = load i32*, i32** %9
%150 = call i32 @fclose(i32* %149)
%151 = load i32*, i32** %10
%152 = call i32 @fclose(i32* %151)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [6 x i8] c"%d\0A\0A \00"
@.str.3 = [10 x i8] c"' ' - %s\0A\00"
@.str.4 = [11 x i8] c"'\\n' - %s\0A\00"
@.str.5 = [9 x i8] c"%c - %s\0A\00"
@.str.7 = [8 x i8] c"%lu\0A%d\0A\00"
define void @text2code(i8* nocapture %0, i8* nocapture %1, [128 x i8]* %2) {
%4 = alloca [128 x i8]
%5 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%6 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%7 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32* @fopen(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = bitcast [128 x i8]* %2 to i8**
%10 = tail call i32 @count_lines(i8** %9)
%11 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %10)
br label %15
12: ; preds = %30
%13 = call i32 @feof(i32* %7)
%14 = icmp eq i32 %13, 0
br i1 %14, label %33, label %49
15: ; preds = %3, %30
%16 = phi i64 [ 0, %3 ], [ %31, %30 ]
%17 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 %16, i64 0
%18 = load i8, i8* %17
%19 = icmp eq i8 %18, 0
br i1 %19, label %30, label %20
20: ; preds = %15
%21 = trunc i64 %16 to i32
%22 = shl i32 %21, 24
switch i32 %22, label %27 [
i32 536870912, label %23
i32 167772160, label %25
]
23: ; preds = %20
%24 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %17)
br label %30
25: ; preds = %20
%26 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* %17)
br label %30
27: ; preds = %20
%28 = trunc i64 %16 to i32
%29 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 %28, i8* %17)
br label %30
30: ; preds = %15, %27, %25, %23
%31 = add nuw nsw i64 %16, 1
%32 = icmp eq i64 %31, 128
br i1 %32, label %12, label %15
33: ; preds = %12, %46
%34 = call signext i8 @fgetc(i32* %7)
%35 = icmp sgt i8 %34, -1
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @codetext(i8** %9, i8* %6, i8 signext %34)
br label %38
38: ; preds = %36, %33
%39 = call i32 @strlen(i8* %6)
%40 = icmp sgt i32 %39, 7
br i1 %40, label %41, label %46
41: ; preds = %38
%42 = call i32 @bin2dec(i8* %6)
%43 = and i32 %42, 255
%44 = call i32 @fputc(i32 %43, i32* %8)
%45 = call i32 @move_code(i8* %6)
br label %46
46: ; preds = %41, %38
%47 = call i32 @feof(i32* %7)
%48 = icmp eq i32 %47, 0
br i1 %48, label %33, label %49
49: ; preds = %46, %12
%50 = call i32 @strlen(i8* %6)
%51 = icmp eq i32 %50, 0
br i1 %51, label %56, label %52
52: ; preds = %49
%53 = call i32 @final_num(i8* %6)
%54 = and i32 %53, 255
%55 = call i32 @fputc(i32 %54, i32* %8)
br label %56
56: ; preds = %52, %49
%57 = sext i32 %50 to i64
%58 = call i32 @fseek(i32* %8, i32 0, i32 0)
%59 = call i32 (i32*, i8*, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i64 %57, i32 %10)
%60 = call i32 @fclose(i32* %7)
%61 = call i32 @fclose(i32* %8)
ret void
}