#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 */

/* Variables and functions */
int /*<<< orphan*/ O_RDWR;
int close(int);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int read(int, unsigned char *, int);
int write(int, unsigned char *, int);
int main(int argc, char *argv[]) {
  int i, h1, h2, h3, h4;
  unsigned char c[512], c2[512], c3[512];
  if (argc != 3) {
    printf("This program makes Proolix-l bootable diskette\n\nusage: "
           "makediskette emptydiskette.img bootsector.bin\n\n");
    printf("emptydiskette.img + bootsector.bin -> emptydiskette.img\n\n");
    return 1;
  }
  if ((h1 = open(argv[1], 0)) <= 0) {
    printf("can't open %s\n", argv[1]);
    return 2;
  }
  if (read(h1, c, 512) != 512) {
    printf("can't read %s\n", argv[1]);
    return 3;
  }
  close(h1);
  if ((h2 = open(argv[2], 0)) <= 0) {
    printf("can't open %s\n", argv[2]);
    return 4;
  }
  i = read(h2, c2, 512);
  if (i == -1) {
    printf("can't read %s\n", argv[2]);
    return 5;
  }
  for (i = 0; i < 3 + 8; i++)
    c[i] = c2[i];
  for (i = 0x26; i < 510; i++)
    c[i] = c2[i];
  c[510] = 0x55;
  c[511] = 0xaa;
  if ((h3 = open(argv[1], O_RDWR)) <= 0) {
    printf("can't open %s\n", argv[1]);
    return 5;
  }
  if (write(h3, c, 512) != 512) {
    printf("can't write %s\n", argv[1]);
    return 6;
  }
  if (close(h3) == -1) {
    printf("can't close %s\n", argv[1]);
    return 7;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x630,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     119b <main+0x4b>
lea    0xe86(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13d5 <main+0x285>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
xor    %esi,%esi
call   1070 <open@plt>
mov    %eax,-0x18(%rbp)
cmp    $0x0,%eax
jg     11d8 <main+0x88>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xedc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2,-0x4(%rbp)
jmp    13d5 <main+0x285>
mov    -0x18(%rbp),%edi
lea    -0x230(%rbp),%rsi
mov    $0x200,%edx
call   1060 <read@plt>
cmp    $0x200,%eax
je     1219 <main+0xc9>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x3,-0x4(%rbp)
jmp    13d5 <main+0x285>
mov    -0x18(%rbp),%edi
call   1050 <close@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
xor    %esi,%esi
call   1070 <open@plt>
mov    %eax,-0x1c(%rbp)
cmp    $0x0,%eax
jg     125e <main+0x10e>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0xe56(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x4,-0x4(%rbp)
jmp    13d5 <main+0x285>
mov    -0x1c(%rbp),%edi
lea    -0x430(%rbp),%rsi
mov    $0x200,%edx
call   1060 <read@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
jne    12a1 <main+0x151>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
lea    0xe22(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x5,-0x4(%rbp)
jmp    13d5 <main+0x285>
movl   $0x0,-0x14(%rbp)
cmpl   $0xb,-0x14(%rbp)
jge    12d6 <main+0x186>
movslq -0x14(%rbp),%rax
mov    -0x430(%rbp,%rax,1),%cl
movslq -0x14(%rbp),%rax
mov    %cl,-0x230(%rbp,%rax,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12a8 <main+0x158>
movl   $0x26,-0x14(%rbp)
cmpl   $0x1fe,-0x14(%rbp)
jge    130e <main+0x1be>
movslq -0x14(%rbp),%rax
mov    -0x430(%rbp,%rax,1),%cl
movslq -0x14(%rbp),%rax
mov    %cl,-0x230(%rbp,%rax,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12dd <main+0x18d>
movb   $0x55,-0x32(%rbp)
movb   $0xaa,-0x31(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0x2cc3(%rip),%rax
mov    (%rax),%esi
call   1070 <open@plt>
mov    %eax,-0x20(%rbp)
cmp    $0x0,%eax
jg     135a <main+0x20a>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd5a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x5,-0x4(%rbp)
jmp    13d5 <main+0x285>
mov    -0x20(%rbp),%edi
lea    -0x230(%rbp),%rsi
mov    $0x200,%edx
call   1030 <write@plt>
cmp    $0x200,%eax
je     139b <main+0x24b>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd37(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x6,-0x4(%rbp)
jmp    13d5 <main+0x285>
mov    -0x20(%rbp),%edi
call   1050 <close@plt>
cmp    $0xffffffff,%eax
jne    13ce <main+0x27e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd14(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x7,-0x4(%rbp)
jmp    13d5 <main+0x285>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x630,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x408,%rsp
cmp    $0x3,%edi
jne    1289 <main+0x119>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
xor    %esi,%esi
call   1090 <open@plt>
test   %eax,%eax
jle    12ab <main+0x13b>
mov    %eax,%ebp
mov    %rsp,%rsi
mov    %eax,%edi
mov    $0x200,%edx
call   1070 <read@plt>
cmp    $0x200,%eax
jne    12c4 <main+0x154>
mov    %ebp,%edi
call   1060 <close@plt>
mov    0x10(%rbx),%rdi
xor    %esi,%esi
call   1090 <open@plt>
test   %eax,%eax
jle    12dd <main+0x16d>
lea    0x200(%rsp),%rsi
mov    %eax,%edi
mov    $0x200,%edx
call   1070 <read@plt>
cmp    $0xffffffff,%eax
je     12f6 <main+0x186>
mov    0x207(%rsp),%eax
mov    %eax,0x7(%rsp)
mov    0x200(%rsp),%rax
mov    %rax,(%rsp)
lea    0x26(%rsp),%rdi
lea    0x226(%rsp),%rsi
mov    $0x1d8,%edx
call   1080 <memcpy@plt>
movw   $0xaa55,0x1fe(%rsp)
mov    0x8(%rbx),%rdi
mov    0x2dba(%rip),%rax
mov    (%rax),%esi
call   1090 <open@plt>
test   %eax,%eax
jle    1303 <main+0x193>
mov    %eax,%ebp
mov    %rsp,%rsi
mov    %eax,%edi
mov    $0x200,%edx
call   1040 <write@plt>
cmp    $0x200,%eax
jne    131c <main+0x1ac>
mov    %ebp,%edi
call   1060 <close@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0xffffffff,%ecx
jne    1333 <main+0x1c3>
mov    0x8(%rbx),%rsi
lea    0xdb6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7,%eax
jmp    1333 <main+0x1c3>
lea    0xdae(%rip),%rdi
call   1030 <puts@plt>
lea    0xe08(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%eax
jmp    1333 <main+0x1c3>
mov    0x8(%rbx),%rsi
lea    0xd4a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x2,%eax
jmp    1333 <main+0x1c3>
mov    0x8(%rbx),%rsi
lea    0xd40(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x3,%eax
jmp    1333 <main+0x1c3>
mov    0x10(%rbx),%rsi
lea    0xd18(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x4,%eax
jmp    1333 <main+0x1c3>
mov    0x10(%rbx),%rsi
lea    0xd0e(%rip),%rdi
jmp    130e <main+0x19e>
mov    0x8(%rbx),%rsi
lea    0xcf2(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x5,%eax
jmp    1333 <main+0x1c3>
mov    0x8(%rbx),%rsi
lea    0xcf7(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x6,%eax
add    $0x408,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [103 x i8] c"This program makes Proolix-l bootable diskette\0A\0Ausage: makediskette emptydiskette.img bootsector.bin\0A\0A\00"
@.str.1 = [58 x i8] c"emptydiskette.img + bootsector.bin -> emptydiskette.img\0A\0A\00"
@.str.2 = [15 x i8] c"can't open %s\0A\00"
@.str.3 = [15 x i8] c"can't read %s\0A\00"
@O_RDWR = global i32 0
@.str.4 = [16 x i8] c"can't write %s\0A\00"
@.str.5 = [16 x i8] c"can't close %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [512 x i8]
%12 = alloca [512 x i8]
%13 = alloca [512 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp ne i32 %14, 3
br i1 %15, label %16, label %19
16: ; preds = %2
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %3
br label %128
19: ; preds = %2
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = call i32 @open(i8* %22, i32 0)
store i32 %23, i32* %7
%24 = icmp sle i32 %23, 0
br i1 %24, label %25, label %30
25: ; preds = %19
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %28)
store i32 2, i32* %3
br label %128
30: ; preds = %19
%31 = load i32, i32* %7
%32 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%33 = call i32 @read(i32 %31, i8* %32, i32 512)
%34 = icmp ne i32 %33, 512
br i1 %34, label %35, label %40
35: ; preds = %30
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 1
%38 = load i8*, i8** %37
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* %38)
store i32 3, i32* %3
br label %128
40: ; preds = %30
%41 = load i32, i32* %7
%42 = call i32 @close(i32 %41)
%43 = load i8**, i8*** %5
%44 = getelementptr inbounds i8*, i8** %43, i64 2
%45 = load i8*, i8** %44
%46 = call i32 @open(i8* %45, i32 0)
store i32 %46, i32* %8
%47 = icmp sle i32 %46, 0
br i1 %47, label %48, label %53
48: ; preds = %40
%49 = load i8**, i8*** %5
%50 = getelementptr inbounds i8*, i8** %49, i64 2
%51 = load i8*, i8** %50
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %51)
store i32 4, i32* %3
br label %128
53: ; preds = %40
%54 = load i32, i32* %8
%55 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%56 = call i32 @read(i32 %54, i8* %55, i32 512)
store i32 %56, i32* %6
%57 = load i32, i32* %6
%58 = icmp eq i32 %57, -1
br i1 %58, label %59, label %64
59: ; preds = %53
%60 = load i8**, i8*** %5
%61 = getelementptr inbounds i8*, i8** %60, i64 2
%62 = load i8*, i8** %61
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* %62)
store i32 5, i32* %3
br label %128
64: ; preds = %53
store i32 0, i32* %6
br label %65
65: ; preds = %76, %64
%66 = load i32, i32* %6
%67 = icmp slt i32 %66, 11
br i1 %67, label %68, label %79
68: ; preds = %65
%69 = load i32, i32* %6
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 %70
%72 = load i8, i8* %71
%73 = load i32, i32* %6
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 %74
store i8 %72, i8* %75
br label %76
76: ; preds = %68
%77 = load i32, i32* %6
%78 = add nsw i32 %77, 1
store i32 %78, i32* %6
br label %65
79: ; preds = %65
store i32 38, i32* %6
br label %80
80: ; preds = %91, %79
%81 = load i32, i32* %6
%82 = icmp slt i32 %81, 510
br i1 %82, label %83, label %94
83: ; preds = %80
%84 = load i32, i32* %6
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 %85
%87 = load i8, i8* %86
%88 = load i32, i32* %6
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 %89
store i8 %87, i8* %90
br label %91
91: ; preds = %83
%92 = load i32, i32* %6
%93 = add nsw i32 %92, 1
store i32 %93, i32* %6
br label %80
94: ; preds = %80
%95 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 510
store i8 85, i8* %95
%96 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 511
store i8 -86, i8* %96
%97 = load i8**, i8*** %5
%98 = getelementptr inbounds i8*, i8** %97, i64 1
%99 = load i8*, i8** %98
%100 = load i32, i32* @O_RDWR
%101 = call i32 @open(i8* %99, i32 %100)
store i32 %101, i32* %9
%102 = icmp sle i32 %101, 0
br i1 %102, label %103, label %108
103: ; preds = %94
%104 = load i8**, i8*** %5
%105 = getelementptr inbounds i8*, i8** %104, i64 1
%106 = load i8*, i8** %105
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %106)
store i32 5, i32* %3
br label %128
108: ; preds = %94
%109 = load i32, i32* %9
%110 = getelementptr inbounds [512 x i8], [512 x i8]* %11, i64 0, i64 0
%111 = call i32 @write(i32 %109, i8* %110, i32 512)
%112 = icmp ne i32 %111, 512
br i1 %112, label %113, label %118
113: ; preds = %108
%114 = load i8**, i8*** %5
%115 = getelementptr inbounds i8*, i8** %114, i64 1
%116 = load i8*, i8** %115
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* %116)
store i32 6, i32* %3
br label %128
118: ; preds = %108
%119 = load i32, i32* %9
%120 = call i32 @close(i32 %119)
%121 = icmp eq i32 %120, -1
br i1 %121, label %122, label %127
122: ; preds = %118
%123 = load i8**, i8*** %5
%124 = getelementptr inbounds i8*, i8** %123, i64 1
%125 = load i8*, i8** %124
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* %125)
store i32 7, i32* %3
br label %128
127: ; preds = %118
store i32 0, i32* %3
br label %128
128: ; preds = %127, %122, %113, %103, %59, %48, %35, %25, %16
%129 = load i32, i32* %3
ret i32 %129
}

LLVM IR (-O2):
@.str.2 = [15 x i8] c"can't open %s\0A\00"
@.str.3 = [15 x i8] c"can't read %s\0A\00"
@O_RDWR = global i32 0
@.str.4 = [16 x i8] c"can't write %s\0A\00"
@.str.5 = [16 x i8] c"can't close %s\0A\00"
@str = [102 x i8] c"This program makes Proolix-l bootable diskette\0A\0Ausage: makediskette emptydiskette.img bootsector.bin\0A\00"
@str.6 = [57 x i8] c"emptydiskette.img + bootsector.bin -> emptydiskette.img\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [512 x i8]
%4 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%5 = alloca [512 x i8]
%6 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%7 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%9 = icmp eq i32 %0, 3
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([102 x i8], [102 x i8]* @str, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.6, i64 0, i64 0))
br label %66
13: ; preds = %2
%14 = getelementptr inbounds i8*, i8** %1, i64 1
%15 = load i8*, i8** %14
%16 = tail call i32 @open(i8* %15, i32 0)
%17 = icmp slt i32 %16, 1
br i1 %17, label %18, label %21
18: ; preds = %13
%19 = load i8*, i8** %14
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %19)
br label %66
21: ; preds = %13
%22 = call i32 @read(i32 %16, i8* %7, i32 512)
%23 = icmp eq i32 %22, 512
br i1 %23, label %27, label %24
24: ; preds = %21
%25 = load i8*, i8** %14
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* %25)
br label %66
27: ; preds = %21
%28 = tail call i32 @close(i32 %16)
%29 = getelementptr inbounds i8*, i8** %1, i64 2
%30 = load i8*, i8** %29
%31 = tail call i32 @open(i8* %30, i32 0)
%32 = icmp slt i32 %31, 1
br i1 %32, label %33, label %36
33: ; preds = %27
%34 = load i8*, i8** %29
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %34)
br label %66
36: ; preds = %27
%37 = call i32 @read(i32 %31, i8* %8, i32 512)
%38 = icmp eq i32 %37, -1
br i1 %38, label %48, label %39
39: ; preds = %36
%40 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 38
%41 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 38
%42 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 510
store i8 85, i8* %42
%43 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 511
store i8 -86, i8* %43
%44 = load i8*, i8** %14
%45 = load i32, i32* @O_RDWR
%46 = tail call i32 @open(i8* %44, i32 %45)
%47 = icmp slt i32 %46, 1
br i1 %47, label %51, label %54
48: ; preds = %36
%49 = load i8*, i8** %29
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* %49)
br label %66
51: ; preds = %39
%52 = load i8*, i8** %14
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %52)
br label %66
54: ; preds = %39
%55 = call i32 @write(i32 %46, i8* %7, i32 512)
%56 = icmp eq i32 %55, 512
br i1 %56, label %60, label %57
57: ; preds = %54
%58 = load i8*, i8** %14
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* %58)
br label %66
60: ; preds = %54
%61 = tail call i32 @close(i32 %46)
%62 = icmp eq i32 %61, -1
br i1 %62, label %63, label %66
63: ; preds = %60
%64 = load i8*, i8** %14
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* %64)
br label %66
66: ; preds = %60, %63, %57, %51, %48, %33, %24, %18, %10
%67 = phi i32 [ 1, %10 ], [ 2, %18 ], [ 3, %24 ], [ 4, %33 ], [ 5, %48 ], [ 5, %51 ], [ 6, %57 ], [ 7, %63 ], [ 0, %60 ]
ret i32 %67
}