#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*/ buf;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int BUFSIZ;
int /*<<< orphan*/ clear_buf(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *);
int prepend_symbols(char input_file[], char output_file[]) {
  char buf[BUFSIZ];
  FILE *fp_in;
  FILE *fp_out;
  int i = 0;
  int index = 0;
  clear_buf(buf);
  fp_in = fopen(input_file, "r");
  fp_out = fopen(output_file, "w+");
  while (fgets(buf, sizeof(buf), fp_in)) {
    while (buf[index] != '\n' && index < BUFSIZ)
      index++;
    while (index > 0) {
      buf[index + 1] = buf[index];
      index--;
    }
    buf[index + 1] = buf[index];
    for (i = 32; i < 48; i++) {
      buf[index] = i;
      fprintf(fp_out, "%s", buf);
    }
    for (i = 58; i < 65; i++) {
      buf[index] = i;
      fprintf(fp_out, "%s", buf);
    }
    for (i = 91; i < 97; i++) {
      buf[index] = i;
      fprintf(fp_out, "%s", buf);
    }
    for (i = 123; i < 127; i++) {
      buf[index] = i;
      fprintf(fp_out, "%s", buf);
    }
    index = 0;
    clear_buf(buf);
  }
  fclose(fp_in);
  fclose(fp_out);
  return 0;
}


x86 assembly (clang, -O0):
<prepend_symbols>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e79(%rip),%rax
mov    (%rax),%eax
mov    %rax,-0x48(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x40(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
call   1070 <clear_buf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe52(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe40(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x30(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x48(%rbp),%rax
mov    %eax,%esi
mov    -0x28(%rbp),%rdx
call   1040 <fgets@plt>
cmp    $0x0,%rax
je     1393 <prepend_symbols+0x243>
jmp    11ed <prepend_symbols+0x9d>
mov    -0x40(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x49(%rbp)
je     1219 <prepend_symbols+0xc9>
mov    -0x38(%rbp),%eax
mov    0x2dcf(%rip),%rcx
cmp    (%rcx),%eax
setl   %al
mov    %al,-0x49(%rbp)
mov    -0x49(%rbp),%al
test   $0x1,%al
jne    1229 <prepend_symbols+0xd9>
jmp    1237 <prepend_symbols+0xe7>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11ed <prepend_symbols+0x9d>
jmp    123c <prepend_symbols+0xec>
cmpl   $0x0,-0x38(%rbp)
jle    126b <prepend_symbols+0x11b>
mov    -0x40(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x38(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x38(%rbp)
jmp    123c <prepend_symbols+0xec>
mov    -0x40(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
movl   $0x20,-0x34(%rbp)
cmpl   $0x30,-0x34(%rbp)
jge    12c1 <prepend_symbols+0x171>
mov    -0x40(%rbp),%rdx
mov    -0x34(%rbp),%eax
mov    %al,%cl
movslq -0x38(%rbp),%rax
mov    %cl,(%rdx,%rax,1)
mov    -0x30(%rbp),%rdi
lea    0xd57(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1289 <prepend_symbols+0x139>
movl   $0x3a,-0x34(%rbp)
cmpl   $0x41,-0x34(%rbp)
jge    1300 <prepend_symbols+0x1b0>
mov    -0x40(%rbp),%rdx
mov    -0x34(%rbp),%eax
mov    %al,%cl
movslq -0x38(%rbp),%rax
mov    %cl,(%rdx,%rax,1)
mov    -0x30(%rbp),%rdi
lea    0xd18(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12c8 <prepend_symbols+0x178>
movl   $0x5b,-0x34(%rbp)
cmpl   $0x61,-0x34(%rbp)
jge    133f <prepend_symbols+0x1ef>
mov    -0x40(%rbp),%rdx
mov    -0x34(%rbp),%eax
mov    %al,%cl
movslq -0x38(%rbp),%rax
mov    %cl,(%rdx,%rax,1)
mov    -0x30(%rbp),%rdi
lea    0xcd9(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1307 <prepend_symbols+0x1b7>
movl   $0x7b,-0x34(%rbp)
cmpl   $0x7f,-0x34(%rbp)
jge    137e <prepend_symbols+0x22e>
mov    -0x40(%rbp),%rdx
mov    -0x34(%rbp),%eax
mov    %al,%cl
movslq -0x38(%rbp),%rax
mov    %cl,(%rdx,%rax,1)
mov    -0x30(%rbp),%rdi
lea    0xc9a(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1346 <prepend_symbols+0x1f6>
mov    -0x40(%rbp),%rdi
movl   $0x0,-0x38(%rbp)
call   1070 <clear_buf@plt>
jmp    11cb <prepend_symbols+0x7b>
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x30(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
xor    %eax,%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<prepend_symbols>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r12
mov    %rdi,%r15
mov    0x2e75(%rip),%rax
mov    (%rax),%ebx
mov    %rsp,%r14
mov    %rbx,%rax
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r14
mov    %r14,%rsp
mov    %r14,%rdi
call   1070 <clear_buf@plt>
lea    0xe70(%rip),%rsi
mov    %r15,%rdi
call   1060 <fopen@plt>
mov    %rax,%r15
lea    0xe60(%rip),%rsi
mov    %r12,%rdi
call   1060 <fopen@plt>
mov    %rax,%r12
mov    %r14,%rdi
mov    %rbx,-0x30(%rbp)
mov    %ebx,%esi
jmp    13eb <prepend_symbols+0x29b>
nopl   0x0(%rax,%rax,1)
movslq %esi,%r13
mov    (%r14,%r13,1),%al
mov    %al,0x1(%r14,%r13,1)
movb   $0x20,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x21,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x22,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x23,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x24,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x25,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x26,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x27,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x28,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x29,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x2a,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x2b,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x2c,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x2d,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x2e,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x2f,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x3a,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x3b,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x3c,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x3d,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x3e,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x3f,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x40,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x5b,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x5c,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x5d,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x5e,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x5f,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x60,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x7b,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x7c,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x7d,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
movb   $0x7e,(%r14,%r13,1)
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <fputs@plt>
mov    %r14,%rdi
call   1070 <clear_buf@plt>
mov    %r14,%rdi
mov    -0x30(%rbp),%rsi
mov    %r15,%rdx
call   1050 <fgets@plt>
test   %rax,%rax
je     14ac <prepend_symbols+0x35c>
mov    0x2bdd(%rip),%rax
movslq (%rax),%rsi
mov    $0x3,%bl
xor    %edi,%edi
nopw   0x0(%rax,%rax,1)
mov    %ebx,%edx
movzbl (%r14,%rdi,1),%ecx
lea    0x1(%rdi),%rax
cmp    $0xa,%cl
je     142b <prepend_symbols+0x2db>
lea    0x1(%rdx),%ebx
cmp    %rsi,%rdi
mov    %rax,%rdi
jl     1410 <prepend_symbols+0x2c0>
xor    %esi,%esi
cmp    $0x1,%eax
je     11c0 <prepend_symbols+0x70>
lea    -0x1(%rax),%rdi
mov    %cl,(%r14,%rax,1)
lea    -0x2(%rax),%rcx
mov    %rcx,%rsi
cmp    $0x2,%rdi
jb     11c0 <prepend_symbols+0x70>
add    $0xfffffffffffffffd,%rax
test   $0x3,%cl
je     1474 <prepend_symbols+0x324>
movzbl %dl,%edx
and    $0x3,%edx
xchg   %ax,%ax
movzbl (%r14,%rcx,1),%ebx
mov    %bl,0x1(%r14,%rcx,1)
add    $0xffffffffffffffff,%rcx
add    $0xffffffffffffffff,%rdx
jne    1460 <prepend_symbols+0x310>
mov    %rcx,%rsi
cmp    $0x3,%rax
jb     11c0 <prepend_symbols+0x70>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    -0x3(%r14,%rcx,1),%eax
mov    %eax,-0x2(%r14,%rcx,1)
lea    -0x4(%rcx),%rsi
cmp    $0x4,%rcx
mov    %rsi,%rcx
jg     1490 <prepend_symbols+0x340>
jmp    11c0 <prepend_symbols+0x70>
mov    %r15,%rdi
call   1030 <fclose@plt>
mov    %r12,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@BUFSIZ = global i32 0
@.str = [2 x i8] c"r\00"
@.str.1 = [3 x i8] c"w+\00"
define i32 @prepend_symbols(i8* nocapture %0, i8* nocapture %1) {
%3 = load i32, i32* @BUFSIZ
%4 = zext i32 %3 to i64
%5 = alloca i8, i64 %4
%6 = call i32 @clear_buf(i8* %5)
%7 = call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = call i32* @fopen(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%9 = call i64 @fgets(i8* %5, i32 %3, i32* %7)
%10 = icmp eq i64 %9, 0
br i1 %10, label %115, label %11
11: ; preds = %2, %71
%12 = load i32, i32* @BUFSIZ
%13 = sext i32 %12 to i64
br label %14
14: ; preds = %14, %11
%15 = phi i64 [ %21, %14 ], [ 0, %11 ]
%16 = getelementptr inbounds i8, i8* %5, i64 %15
%17 = load i8, i8* %16
%18 = icmp ne i8 %17, 10
%19 = icmp slt i64 %15, %13
%20 = select i1 %18, i1 %19, i1 false
%21 = add nuw nsw i64 %15, 1
br i1 %20, label %14, label %22
22: ; preds = %14
%23 = trunc i64 %15 to i32
%24 = icmp eq i32 %23, 0
br i1 %24, label %71, label %25
25: ; preds = %22
%26 = add nuw nsw i64 %15, 1
%27 = getelementptr inbounds i8, i8* %5, i64 %26
store i8 %17, i8* %27
%28 = add nsw i64 %15, -1
%29 = icmp ugt i64 %15, 1
br i1 %29, label %30, label %68
30: ; preds = %25
%31 = add nsw i64 %15, -2
%32 = and i64 %28, 3
%33 = icmp eq i64 %32, 0
br i1 %33, label %44, label %34
34: ; preds = %30, %34
%35 = phi i64 [ %41, %34 ], [ %28, %30 ]
%36 = phi i64 [ %42, %34 ], [ 0, %30 ]
%37 = getelementptr inbounds i8, i8* %5, i64 %35
%38 = load i8, i8* %37
%39 = add nuw nsw i64 %35, 1
%40 = getelementptr inbounds i8, i8* %5, i64 %39
store i8 %38, i8* %40
%41 = add nsw i64 %35, -1
%42 = add i64 %36, 1
%43 = icmp eq i64 %42, %32
br i1 %43, label %44, label %34
44: ; preds = %34, %30
%45 = phi i64 [ %28, %30 ], [ %41, %34 ]
%46 = phi i64 [ undef, %30 ], [ %41, %34 ]
%47 = icmp ult i64 %31, 3
br i1 %47, label %68, label %48
48: ; preds = %44, %48
%49 = phi i64 [ %66, %48 ], [ %45, %44 ]
%50 = getelementptr inbounds i8, i8* %5, i64 %49
%51 = load i8, i8* %50
%52 = add nuw nsw i64 %49, 1
%53 = getelementptr inbounds i8, i8* %5, i64 %52
store i8 %51, i8* %53
%54 = add nsw i64 %49, -1
%55 = getelementptr inbounds i8, i8* %5, i64 %54
%56 = load i8, i8* %55
%57 = getelementptr inbounds i8, i8* %5, i64 %49
store i8 %56, i8* %57
%58 = add nsw i64 %49, -2
%59 = getelementptr inbounds i8, i8* %5, i64 %58
%60 = load i8, i8* %59
%61 = getelementptr inbounds i8, i8* %5, i64 %54
store i8 %60, i8* %61
%62 = add nsw i64 %49, -3
%63 = getelementptr inbounds i8, i8* %5, i64 %62
%64 = load i8, i8* %63
%65 = getelementptr inbounds i8, i8* %5, i64 %58
store i8 %64, i8* %65
%66 = add nsw i64 %49, -4
%67 = icmp sgt i64 %49, 4
br i1 %67, label %48, label %68
68: ; preds = %44, %48, %25
%69 = phi i64 [ %28, %25 ], [ %46, %44 ], [ %66, %48 ]
%70 = trunc i64 %69 to i32
br label %71
71: ; preds = %68, %22
%72 = phi i32 [ 0, %22 ], [ %70, %68 ]
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, i8* %5, i64 %73
%75 = load i8, i8* %74
%76 = add nsw i32 %72, 1
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, i8* %5, i64 %77
store i8 %75, i8* %78
store i8 32, i8* %74
%79 = call i32 @fputs(i8* %5, i32* %8)
store i8 33, i8* %74
%80 = call i32 @fputs(i8* %5, i32* %8)
store i8 34, i8* %74
%81 = call i32 @fputs(i8* %5, i32* %8)
store i8 35, i8* %74
%82 = call i32 @fputs(i8* %5, i32* %8)
store i8 36, i8* %74
%83 = call i32 @fputs(i8* %5, i32* %8)
store i8 37, i8* %74
%84 = call i32 @fputs(i8* %5, i32* %8)
store i8 38, i8* %74
%85 = call i32 @fputs(i8* %5, i32* %8)
store i8 39, i8* %74
%86 = call i32 @fputs(i8* %5, i32* %8)
store i8 40, i8* %74
%87 = call i32 @fputs(i8* %5, i32* %8)
store i8 41, i8* %74
%88 = call i32 @fputs(i8* %5, i32* %8)
store i8 42, i8* %74
%89 = call i32 @fputs(i8* %5, i32* %8)
store i8 43, i8* %74
%90 = call i32 @fputs(i8* %5, i32* %8)
store i8 44, i8* %74
%91 = call i32 @fputs(i8* %5, i32* %8)
store i8 45, i8* %74
%92 = call i32 @fputs(i8* %5, i32* %8)
store i8 46, i8* %74
%93 = call i32 @fputs(i8* %5, i32* %8)
store i8 47, i8* %74
%94 = call i32 @fputs(i8* %5, i32* %8)
store i8 58, i8* %74
%95 = call i32 @fputs(i8* %5, i32* %8)
store i8 59, i8* %74
%96 = call i32 @fputs(i8* %5, i32* %8)
store i8 60, i8* %74
%97 = call i32 @fputs(i8* %5, i32* %8)
store i8 61, i8* %74
%98 = call i32 @fputs(i8* %5, i32* %8)
store i8 62, i8* %74
%99 = call i32 @fputs(i8* %5, i32* %8)
store i8 63, i8* %74
%100 = call i32 @fputs(i8* %5, i32* %8)
store i8 64, i8* %74
%101 = call i32 @fputs(i8* %5, i32* %8)
store i8 91, i8* %74
%102 = call i32 @fputs(i8* %5, i32* %8)
store i8 92, i8* %74
%103 = call i32 @fputs(i8* %5, i32* %8)
store i8 93, i8* %74
%104 = call i32 @fputs(i8* %5, i32* %8)
store i8 94, i8* %74
%105 = call i32 @fputs(i8* %5, i32* %8)
store i8 95, i8* %74
%106 = call i32 @fputs(i8* %5, i32* %8)
store i8 96, i8* %74
%107 = call i32 @fputs(i8* %5, i32* %8)
store i8 123, i8* %74
%108 = call i32 @fputs(i8* %5, i32* %8)
store i8 124, i8* %74
%109 = call i32 @fputs(i8* %5, i32* %8)
store i8 125, i8* %74
%110 = call i32 @fputs(i8* %5, i32* %8)
store i8 126, i8* %74
%111 = call i32 @fputs(i8* %5, i32* %8)
%112 = call i32 @clear_buf(i8* %5)
%113 = call i64 @fgets(i8* %5, i32 %3, i32* %7)
%114 = icmp eq i64 %113, 0
br i1 %114, label %115, label %11
115: ; preds = %71, %2
%116 = call i32 @fclose(i32* %7)
%117 = call i32 @fclose(i32* %8)
ret i32 0
}