#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*/ SEEK_END;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
scalar_t__ fseek(int /*<<< orphan*/ *, long, int /*<<< orphan*/);
int ftell(int /*<<< orphan*/ *);
int getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int /*<<< orphan*/ strncat(char *, char *, int);
int /*<<< orphan*/ strncpy(char *, char *, int);
int /*<<< orphan*/ writebyte(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ writeword(int, int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  char name[11];
  FILE *fpin, *fpout;
  int c;
  int i;
  int len;
  if (argc != 3) {
    fprintf(stdout, "Usage: %s [code file] [byt file]\n", argv[0]);
    exit(1);
  }
  if ((fpin = fopen(argv[1], "rb")) == NULL) {
    printf("Can't open input file\n");
    exit(1);
  }
  if (fseek(fpin, 0, SEEK_END)) {
    printf("Couldn't determine size of file\n");
    fclose(fpin);
    exit(1);
  }
  len = ftell(fpin);
  fseek(fpin, 0L, SEEK_SET);
  if ((fpout = fopen(argv[2], "wb")) == NULL) {
    printf("Can't open output file\n");
    exit(1);
  }
  writeword(26, fpout);
  fputc(' ', fpout);
  if (strlen(argv[1]) >= 10) {
    strncpy(name, argv[1], 10);
  } else {
    strcpy(name, argv[1]);
    strncat(name, "          ", 10 - strlen(argv[1]));
  }
  for (i = 0; i <= 9; i++)
    writebyte(name[i], fpout);
  writeword(len, fpout);
  writeword(16384, fpout);
  for (i = 0; i <= 10; i++)
    writebyte(' ', fpout);
  writeword(len + 1, fpout);
  for (i = 0; i < len; i++) {
    c = getc(fpin);
    writebyte(c, fpout);
  }
  fclose(fpin);
  fclose(fpout);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     1236 <main+0x46>
mov    0x2db9(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xdd9(%rip),%rsi
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xddd(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    126e <main+0x7e>
lea    0xdc6(%rip),%rdi
call   1070 <printf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x28(%rbp),%rdi
mov    0x2d6f(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   10d0 <fseek@plt>
cmp    $0x0,%rax
je     12ad <main+0xbd>
lea    0xda7(%rip),%rdi
call   1070 <printf@plt>
mov    -0x28(%rbp),%rdi
call   1050 <fclose@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x28(%rbp),%rdi
call   10c0 <ftell@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x28(%rbp),%rdi
mov    0x2d14(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   10d0 <fseek@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd7f(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
jne    1307 <main+0x117>
lea    0xd68(%rip),%rdi
call   1070 <printf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x30(%rbp),%rsi
mov    $0x1a,%edi
call   10a0 <writeword@plt>
mov    -0x30(%rbp),%rsi
mov    $0x20,%edi
call   1090 <fputc@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <strlen@plt>
cmp    $0xa,%eax
jl     1354 <main+0x164>
lea    -0x1b(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    $0xa,%edx
call   1030 <strncpy@plt>
jmp    1391 <main+0x1a1>
lea    -0x1b(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1040 <strcpy@plt>
lea    -0x1b(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <strlen@plt>
mov    -0x48(%rbp),%rdi
mov    $0xa,%edx
sub    %eax,%edx
lea    0xcec(%rip),%rsi
call   1080 <strncat@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0x9,-0x38(%rbp)
jg     13c2 <main+0x1d2>
movslq -0x38(%rbp),%rax
movsbl -0x1b(%rbp,%rax,1),%edi
mov    -0x30(%rbp),%rsi
call   10f0 <writebyte@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1398 <main+0x1a8>
mov    -0x3c(%rbp),%edi
mov    -0x30(%rbp),%rsi
call   10a0 <writeword@plt>
mov    -0x30(%rbp),%rsi
mov    $0x4000,%edi
call   10a0 <writeword@plt>
movl   $0x0,-0x38(%rbp)
cmpl   $0xa,-0x38(%rbp)
jg     1409 <main+0x219>
mov    -0x30(%rbp),%rsi
mov    $0x20,%edi
call   10f0 <writebyte@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    13e3 <main+0x1f3>
mov    -0x3c(%rbp),%edi
add    $0x1,%edi
mov    -0x30(%rbp),%rsi
call   10a0 <writeword@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    1451 <main+0x261>
mov    -0x28(%rbp),%rdi
call   1110 <getc@plt>
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x30(%rbp),%rsi
call   10f0 <writebyte@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    141f <main+0x22f>
mov    -0x28(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x30(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%r12
cmp    $0x3,%edi
jne    1457 <main+0x267>
mov    0x8(%r12),%rdi
lea    0xe0d(%rip),%rsi
call   10e0 <fopen@plt>
test   %rax,%rax
je     147a <main+0x28a>
mov    %rax,%r14
mov    0x2dbb(%rip),%rax
mov    (%rax),%edx
mov    %r14,%rdi
xor    %esi,%esi
call   10d0 <fseek@plt>
test   %rax,%rax
jne    1483 <main+0x293>
mov    %r14,%rdi
call   10c0 <ftell@plt>
mov    %eax,%ebx
mov    0x2d85(%rip),%rax
mov    (%rax),%edx
mov    %r14,%rdi
xor    %esi,%esi
call   10d0 <fseek@plt>
mov    0x10(%r12),%rdi
lea    0xdba(%rip),%rsi
call   10e0 <fopen@plt>
test   %rax,%rax
je     14a1 <main+0x2b1>
mov    %rax,%r15
mov    $0x1a,%edi
mov    %rax,%rsi
call   10a0 <writeword@plt>
mov    $0x20,%edi
mov    %r15,%rsi
call   1090 <fputc@plt>
mov    0x8(%r12),%rdi
call   1070 <strlen@plt>
mov    0x8(%r12),%rsi
cmp    $0xa,%eax
jl     12bb <main+0xcb>
lea    0x5(%rsp),%rdi
mov    $0xa,%edx
call   1030 <strncpy@plt>
jmp    12e8 <main+0xf8>
lea    0x5(%rsp),%r13
mov    %r13,%rdi
call   1040 <strcpy@plt>
mov    0x8(%r12),%rdi
call   1070 <strlen@plt>
mov    $0xa,%edx
sub    %eax,%edx
lea    0xd48(%rip),%rsi
mov    %r13,%rdi
call   1080 <strncat@plt>
movsbl 0x5(%rsp),%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
movsbl 0x6(%rsp),%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
movsbl 0x7(%rsp),%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
movsbl 0x8(%rsp),%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
movsbl 0x9(%rsp),%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
movsbl 0xa(%rsp),%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
movsbl 0xb(%rsp),%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
movsbl 0xc(%rsp),%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
movsbl 0xd(%rsp),%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
movsbl 0xe(%rsp),%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
mov    %ebx,%edi
mov    %r15,%rsi
call   10a0 <writeword@plt>
mov    $0x4000,%edi
mov    %r15,%rsi
call   10a0 <writeword@plt>
mov    $0x20,%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
mov    $0x20,%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
mov    $0x20,%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
mov    $0x20,%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
mov    $0x20,%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
mov    $0x20,%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
mov    $0x20,%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
mov    $0x20,%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
mov    $0x20,%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
mov    $0x20,%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
mov    $0x20,%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
lea    0x1(%rbx),%edi
mov    %r15,%rsi
call   10a0 <writeword@plt>
test   %ebx,%ebx
jle    1437 <main+0x247>
nop
mov    %r14,%rdi
call   1110 <getc@plt>
mov    %eax,%edi
mov    %r15,%rsi
call   10f0 <writebyte@plt>
add    $0xffffffff,%ebx
jne    1420 <main+0x230>
mov    %r14,%rdi
call   1060 <fclose@plt>
mov    %r15,%rdi
call   1060 <fclose@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
mov    0x2b72(%rip),%rax
mov    (%rax),%edi
mov    (%r12),%rdx
lea    0xb95(%rip),%rsi
call   10b0 <fprintf@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
lea    0xbe9(%rip),%rdi
jmp    14a8 <main+0x2b8>
lea    0xbc0(%rip),%rdi
call   1050 <puts@plt>
mov    %r14,%rdi
call   1060 <fclose@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
lea    0xb8b(%rip),%rdi
call   1050 <puts@plt>
mov    $0x1,%edi
call   1100 <exit@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [34 x i8] c"Usage: %s [code file] [byt file]\0A\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [23 x i8] c"Can't open input file\0A\00"
@SEEK_END = global i32 0
@.str.3 = [33 x i8] c"Couldn't determine size of file\0A\00"
@SEEK_SET = global i32 0
@.str.4 = [3 x i8] c"wb\00"
@.str.5 = [24 x i8] c"Can't open output file\0A\00"
@.str.6 = [11 x i8] c" \00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [11 x i8]
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = load i32, i32* %4
%13 = icmp ne i32 %12, 3
br i1 %13, label %14, label %21
14: ; preds = %2
%15 = load i32, i32* @stdout
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 0
%18 = load i8*, i8** %17
%19 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %18)
%20 = call i32 @exit(i32 1)
unreachable
21: ; preds = %2
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = call i32* @fopen(i8* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %25, i32** %7
%26 = icmp eq i32* %25, null
br i1 %26, label %27, label %30
27: ; preds = %21
%28 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%29 = call i32 @exit(i32 1)
unreachable
30: ; preds = %21
%31 = load i32*, i32** %7
%32 = load i32, i32* @SEEK_END
%33 = call i64 @fseek(i32* %31, i64 0, i32 %32)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %40
35: ; preds = %30
%36 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%37 = load i32*, i32** %7
%38 = call i32 @fclose(i32* %37)
%39 = call i32 @exit(i32 1)
unreachable
40: ; preds = %30
%41 = load i32*, i32** %7
%42 = call i32 @ftell(i32* %41)
store i32 %42, i32* %11
%43 = load i32*, i32** %7
%44 = load i32, i32* @SEEK_SET
%45 = call i64 @fseek(i32* %43, i64 0, i32 %44)
%46 = load i8**, i8*** %5
%47 = getelementptr inbounds i8*, i8** %46, i64 2
%48 = load i8*, i8** %47
%49 = call i32* @fopen(i8* %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32* %49, i32** %8
%50 = icmp eq i32* %49, null
br i1 %50, label %51, label %54
51: ; preds = %40
%52 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%53 = call i32 @exit(i32 1)
unreachable
54: ; preds = %40
%55 = load i32*, i32** %8
%56 = call i32 @writeword(i32 26, i32* %55)
%57 = load i32*, i32** %8
%58 = call i32 @fputc(i8 signext 32, i32* %57)
%59 = load i8**, i8*** %5
%60 = getelementptr inbounds i8*, i8** %59, i64 1
%61 = load i8*, i8** %60
%62 = call i32 @strlen(i8* %61)
%63 = icmp sge i32 %62, 10
br i1 %63, label %64, label %70
64: ; preds = %54
%65 = getelementptr inbounds [11 x i8], [11 x i8]* %6, i64 0, i64 0
%66 = load i8**, i8*** %5
%67 = getelementptr inbounds i8*, i8** %66, i64 1
%68 = load i8*, i8** %67
%69 = call i32 @strncpy(i8* %65, i8* %68, i32 10)
br label %83
70: ; preds = %54
%71 = getelementptr inbounds [11 x i8], [11 x i8]* %6, i64 0, i64 0
%72 = load i8**, i8*** %5
%73 = getelementptr inbounds i8*, i8** %72, i64 1
%74 = load i8*, i8** %73
%75 = call i32 @strcpy(i8* %71, i8* %74)
%76 = getelementptr inbounds [11 x i8], [11 x i8]* %6, i64 0, i64 0
%77 = load i8**, i8*** %5
%78 = getelementptr inbounds i8*, i8** %77, i64 1
%79 = load i8*, i8** %78
%80 = call i32 @strlen(i8* %79)
%81 = sub nsw i32 10, %80
%82 = call i32 @strncat(i8* %76, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i32 %81)
br label %83
83: ; preds = %70, %64
store i32 0, i32* %10
br label %84
84: ; preds = %95, %83
%85 = load i32, i32* %10
%86 = icmp sle i32 %85, 9
br i1 %86, label %87, label %98
87: ; preds = %84
%88 = load i32, i32* %10
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [11 x i8], [11 x i8]* %6, i64 0, i64 %89
%91 = load i8, i8* %90
%92 = sext i8 %91 to i32
%93 = load i32*, i32** %8
%94 = call i32 @writebyte(i32 %92, i32* %93)
br label %95
95: ; preds = %87
%96 = load i32, i32* %10
%97 = add nsw i32 %96, 1
store i32 %97, i32* %10
br label %84
98: ; preds = %84
%99 = load i32, i32* %11
%100 = load i32*, i32** %8
%101 = call i32 @writeword(i32 %99, i32* %100)
%102 = load i32*, i32** %8
%103 = call i32 @writeword(i32 16384, i32* %102)
store i32 0, i32* %10
br label %104
104: ; preds = %110, %98
%105 = load i32, i32* %10
%106 = icmp sle i32 %105, 10
br i1 %106, label %107, label %113
107: ; preds = %104
%108 = load i32*, i32** %8
%109 = call i32 @writebyte(i32 32, i32* %108)
br label %110
110: ; preds = %107
%111 = load i32, i32* %10
%112 = add nsw i32 %111, 1
store i32 %112, i32* %10
br label %104
113: ; preds = %104
%114 = load i32, i32* %11
%115 = add nsw i32 %114, 1
%116 = load i32*, i32** %8
%117 = call i32 @writeword(i32 %115, i32* %116)
store i32 0, i32* %10
br label %118
118: ; preds = %128, %113
%119 = load i32, i32* %10
%120 = load i32, i32* %11
%121 = icmp slt i32 %119, %120
br i1 %121, label %122, label %131
122: ; preds = %118
%123 = load i32*, i32** %7
%124 = call i32 @getc(i32* %123)
store i32 %124, i32* %9
%125 = load i32, i32* %9
%126 = load i32*, i32** %8
%127 = call i32 @writebyte(i32 %125, i32* %126)
br label %128
128: ; preds = %122
%129 = load i32, i32* %10
%130 = add nsw i32 %129, 1
store i32 %130, i32* %10
br label %118
131: ; preds = %118
%132 = load i32*, i32** %7
%133 = call i32 @fclose(i32* %132)
%134 = load i32*, i32** %8
%135 = call i32 @fclose(i32* %134)
%136 = load i32, i32* %3
ret i32 %136
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [34 x i8] c"Usage: %s [code file] [byt file]\0A\00"
@.str.1 = [3 x i8] c"rb\00"
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@.str.4 = [3 x i8] c"wb\00"
@.str.6 = [11 x i8] c" \00"
@str = [23 x i8] c"Can't open output file\00"
@str.7 = [32 x i8] c"Couldn't determine size of file\00"
@str.8 = [22 x i8] c"Can't open input file\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [11 x i8]
%4 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 0
%5 = icmp eq i32 %0, 3
br i1 %5, label %11, label %6
6: ; preds = %2
%7 = load i32, i32* @stdout
%8 = load i8*, i8** %1
%9 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8* %8)
%10 = tail call i32 @exit(i32 1)
unreachable
11: ; preds = %2
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = tail call i32* @fopen(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %19
16: ; preds = %11
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.8, i64 0, i64 0))
%18 = tail call i32 @exit(i32 1)
unreachable
19: ; preds = %11
%20 = load i32, i32* @SEEK_END
%21 = tail call i64 @fseek(i32* %14, i64 0, i32 %20)
%22 = icmp eq i64 %21, 0
br i1 %22, label %27, label %23
23: ; preds = %19
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.7, i64 0, i64 0))
%25 = tail call i32 @fclose(i32* %14)
%26 = tail call i32 @exit(i32 1)
unreachable
27: ; preds = %19
%28 = tail call i32 @ftell(i32* %14)
%29 = load i32, i32* @SEEK_SET
%30 = tail call i64 @fseek(i32* %14, i64 0, i32 %29)
%31 = getelementptr inbounds i8*, i8** %1, i64 2
%32 = load i8*, i8** %31
%33 = tail call i32* @fopen(i8* %32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%34 = icmp eq i32* %33, null
br i1 %34, label %35, label %38
35: ; preds = %27
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%37 = tail call i32 @exit(i32 1)
unreachable
38: ; preds = %27
%39 = tail call i32 @writeword(i32 26, i32* %33)
%40 = tail call i32 @fputc(i8 signext 32, i32* %33)
%41 = load i8*, i8** %12
%42 = tail call i32 @strlen(i8* %41)
%43 = icmp sgt i32 %42, 9
%44 = load i8*, i8** %12
br i1 %43, label %45, label %47
45: ; preds = %38
%46 = call i32 @strncpy(i8* %4, i8* %44, i32 10)
br label %53
47: ; preds = %38
%48 = call i32 @strcpy(i8* %4, i8* %44)
%49 = load i8*, i8** %12
%50 = call i32 @strlen(i8* %49)
%51 = sub nsw i32 10, %50
%52 = call i32 @strncat(i8* %4, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i32 %51)
br label %53
53: ; preds = %47, %45
%54 = load i8, i8* %4
%55 = sext i8 %54 to i32
%56 = call i32 @writebyte(i32 %55, i32* %33)
%57 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 1
%58 = load i8, i8* %57
%59 = sext i8 %58 to i32
%60 = call i32 @writebyte(i32 %59, i32* %33)
%61 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 2
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = call i32 @writebyte(i32 %63, i32* %33)
%65 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 3
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = call i32 @writebyte(i32 %67, i32* %33)
%69 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 4
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = call i32 @writebyte(i32 %71, i32* %33)
%73 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 5
%74 = load i8, i8* %73
%75 = sext i8 %74 to i32
%76 = call i32 @writebyte(i32 %75, i32* %33)
%77 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 6
%78 = load i8, i8* %77
%79 = sext i8 %78 to i32
%80 = call i32 @writebyte(i32 %79, i32* %33)
%81 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 7
%82 = load i8, i8* %81
%83 = sext i8 %82 to i32
%84 = call i32 @writebyte(i32 %83, i32* %33)
%85 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 8
%86 = load i8, i8* %85
%87 = sext i8 %86 to i32
%88 = call i32 @writebyte(i32 %87, i32* %33)
%89 = getelementptr inbounds [11 x i8], [11 x i8]* %3, i64 0, i64 9
%90 = load i8, i8* %89
%91 = sext i8 %90 to i32
%92 = call i32 @writebyte(i32 %91, i32* %33)
%93 = call i32 @writeword(i32 %28, i32* %33)
%94 = call i32 @writeword(i32 16384, i32* %33)
%95 = call i32 @writebyte(i32 32, i32* %33)
%96 = call i32 @writebyte(i32 32, i32* %33)
%97 = call i32 @writebyte(i32 32, i32* %33)
%98 = call i32 @writebyte(i32 32, i32* %33)
%99 = call i32 @writebyte(i32 32, i32* %33)
%100 = call i32 @writebyte(i32 32, i32* %33)
%101 = call i32 @writebyte(i32 32, i32* %33)
%102 = call i32 @writebyte(i32 32, i32* %33)
%103 = call i32 @writebyte(i32 32, i32* %33)
%104 = call i32 @writebyte(i32 32, i32* %33)
%105 = call i32 @writebyte(i32 32, i32* %33)
%106 = add nsw i32 %28, 1
%107 = call i32 @writeword(i32 %106, i32* %33)
%108 = icmp sgt i32 %28, 0
br i1 %108, label %109, label %115
109: ; preds = %53, %109
%110 = phi i32 [ %113, %109 ], [ 0, %53 ]
%111 = call i32 @getc(i32* %14)
%112 = call i32 @writebyte(i32 %111, i32* %33)
%113 = add nuw nsw i32 %110, 1
%114 = icmp eq i32 %113, %28
br i1 %114, label %115, label %109
115: ; preds = %109, %53
%116 = call i32 @fclose(i32* %14)
%117 = call i32 @fclose(i32* %33)
ret i32 0
}