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

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
long fwrite(char *, int, long, int /*<<< orphan*/ *);
int /*<<< orphan*/ *memchr(char *, char, long);
int /*<<< orphan*/ stderr;
long to_little(long);
int unpack(char *buf, long len, char *name, int verbose) {
  FILE *f;
  long i;
  uint16_t offset;
  offset = to_little(*((uint16_t *)buf));
  if (memchr(buf + offset, '\n', len - offset) != NULL) {
    fprintf(stderr, "Char '\\n' is used!\n");
    return 1;
  }
  if ((f = fopen(name, "wb")) == NULL) {
    fprintf(stderr, "Error opening file '%s'\n", name);
    return 1;
  }
  for (i = offset; i < len; i++) {
    if (buf[i] == (char)0xFF)
      buf[i] = '\n';
  }
  if (fwrite(buf + offset, 1, len - offset, f) != len - offset) {
    fclose(f);
    fprintf(stderr, "Write to file failed\n");
    return 1;
  }
  fclose(f);
  return 0;
}


x86 assembly (clang, -O0):
<unpack>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1030 <to_little@plt>
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rdi
add    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%rdx
sub    -0x40(%rbp),%rdx
mov    $0xa,%esi
call   1050 <memchr@plt>
cmp    $0x0,%rax
je     11ce <unpack+0x6e>
mov    0x2e2e(%rip),%rax
mov    (%rax),%edi
lea    0xe45(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    12cb <unpack+0x16b>
mov    -0x20(%rbp),%rdi
lea    0xe3b(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
jne    1213 <unpack+0xb3>
mov    0x2ded(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rdx
lea    0xe17(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    12cb <unpack+0x16b>
mov    -0x40(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
cmp    -0x18(%rbp),%rax
jge    1260 <unpack+0x100>
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xffffffff,%eax
jne    124a <unpack+0xea>
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movb   $0xa,(%rax,%rcx,1)
jmp    124f <unpack+0xef>
mov    -0x38(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
jmp    121b <unpack+0xbb>
mov    -0x10(%rbp),%rdi
add    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%rdx
sub    -0x40(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    $0x1,%esi
call   1080 <fwrite@plt>
mov    -0x18(%rbp),%rcx
sub    -0x40(%rbp),%rcx
cmp    %rcx,%rax
je     12bb <unpack+0x15b>
mov    -0x30(%rbp),%rdi
call   1040 <fclose@plt>
mov    0x2d41(%rip),%rax
mov    (%rax),%edi
lea    0xd88(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    12cb <unpack+0x16b>
mov    -0x30(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unpack>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdx,%rbp
mov    %rsi,%r15
mov    %rdi,%r12
mov    (%rdi),%rdi
call   1030 <to_little@plt>
mov    %rax,%rbx
lea    (%r12,%rax,1),%r13
mov    %r15,%r14
sub    %rax,%r14
mov    %r13,%rdi
mov    $0xa,%esi
mov    %r14,%rdx
call   1050 <memchr@plt>
test   %rax,%rax
je     11c9 <unpack+0x69>
mov    0x2e3b(%rip),%rax
mov    (%rax),%edi
lea    0xe52(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe44(%rip),%rsi
mov    %rbp,%rdi
call   1070 <fopen@plt>
test   %rax,%rax
je     13aa <unpack+0x24a>
cmp    %r15,%rbx
jge    13ce <unpack+0x26e>
cmp    $0x10,%r14
jb     1419 <unpack+0x2b9>
mov    %r14,%rsi
and    $0xfffffffffffffff0,%rsi
add    %rsi,%rbx
xor    %ecx,%ecx
pcmpeqd %xmm0,%xmm0
jmp    121d <unpack+0xbd>
cs nopw 0x0(%rax,%rax,1)
add    $0x10,%rcx
cmp    %rcx,%rsi
je     13c9 <unpack+0x269>
movq   0x0(%r13,%rcx,1),%xmm2
movdqa %xmm2,%xmm1
pcmpeqb %xmm0,%xmm1
movd   %xmm1,%edx
test   $0x1,%dl
je     123b <unpack+0xdb>
movb   $0xa,0x0(%r13,%rcx,1)
movdqa %xmm1,%xmm3
pslld  $0x8,%xmm3
movd   %xmm3,%edx
shr    $0x10,%edx
test   $0x1,%dl
je     1256 <unpack+0xf6>
movb   $0xa,0x1(%r13,%rcx,1)
pshuflw $0x55,%xmm2,%xmm3
pcmpeqb %xmm0,%xmm3
pextrw $0x2,%xmm3,%edx
test   $0x1,%dl
je     126f <unpack+0x10f>
movb   $0xa,0x2(%r13,%rcx,1)
movdqa %xmm1,%xmm3
psllq  $0x18,%xmm3
pextrw $0x3,%xmm3,%edx
test   $0x1,%dl
je     1288 <unpack+0x128>
movb   $0xa,0x3(%r13,%rcx,1)
pshufd $0x55,%xmm2,%xmm2
pcmpeqb %xmm0,%xmm2
pextrw $0x4,%xmm2,%edx
test   $0x1,%dl
je     12a1 <unpack+0x141>
movb   $0xa,0x4(%r13,%rcx,1)
movdqa %xmm1,%xmm2
pslldq $0x5,%xmm2
pextrw $0x5,%xmm2,%edx
test   $0x1,%dl
je     12ba <unpack+0x15a>
movb   $0xa,0x5(%r13,%rcx,1)
pextrw $0x3,%xmm1,%edx
test   $0x1,%dl
je     12ca <unpack+0x16a>
movb   $0xa,0x6(%r13,%rcx,1)
pslldq $0x7,%xmm1
pextrw $0x7,%xmm1,%edx
test   $0x1,%dl
je     12df <unpack+0x17f>
movb   $0xa,0x7(%r13,%rcx,1)
movq   0x8(%r13,%rcx,1),%xmm2
movdqa %xmm2,%xmm1
pcmpeqb %xmm0,%xmm1
movd   %xmm1,%edx
test   $0x1,%dl
je     12fd <unpack+0x19d>
movb   $0xa,0x8(%r13,%rcx,1)
movdqa %xmm1,%xmm3
pslld  $0x8,%xmm3
movd   %xmm3,%edx
shr    $0x10,%edx
test   $0x1,%dl
je     1318 <unpack+0x1b8>
movb   $0xa,0x9(%r13,%rcx,1)
pshuflw $0x55,%xmm2,%xmm3
pcmpeqb %xmm0,%xmm3
pextrw $0x2,%xmm3,%edx
test   $0x1,%dl
je     1331 <unpack+0x1d1>
movb   $0xa,0xa(%r13,%rcx,1)
movdqa %xmm1,%xmm3
psllq  $0x18,%xmm3
pextrw $0x3,%xmm3,%edx
test   $0x1,%dl
je     134a <unpack+0x1ea>
movb   $0xa,0xb(%r13,%rcx,1)
pshufd $0x55,%xmm2,%xmm2
pcmpeqb %xmm0,%xmm2
pextrw $0x4,%xmm2,%edx
test   $0x1,%dl
je     1363 <unpack+0x203>
movb   $0xa,0xc(%r13,%rcx,1)
movdqa %xmm1,%xmm2
pslldq $0x5,%xmm2
pextrw $0x5,%xmm2,%edx
test   $0x1,%dl
je     137c <unpack+0x21c>
movb   $0xa,0xd(%r13,%rcx,1)
pextrw $0x3,%xmm1,%edx
test   $0x1,%dl
je     138c <unpack+0x22c>
movb   $0xa,0xe(%r13,%rcx,1)
pslldq $0x7,%xmm1
pextrw $0x7,%xmm1,%edx
test   $0x1,%dl
je     1210 <unpack+0xb0>
movb   $0xa,0xf(%r13,%rcx,1)
jmp    1210 <unpack+0xb0>
mov    0x2c2f(%rip),%rax
mov    (%rax),%edi
lea    0xc5d(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    11b5 <unpack+0x55>
cmp    %rsi,%r14
jne    1419 <unpack+0x2b9>
mov    %r13,%rdi
mov    $0x1,%esi
mov    %r14,%rdx
mov    %rax,%rcx
mov    %rax,%rbp
call   1080 <fwrite@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
cmp    %r14,%rbx
je     11ba <unpack+0x5a>
mov    0x2bdf(%rip),%rax
mov    (%rax),%edi
lea    0xc26(%rip),%rsi
jmp    11ae <unpack+0x4e>
nop
add    $0x1,%rbx
cmp    %rbx,%r15
je     13ce <unpack+0x26e>
cmpb   $0xff,(%r12,%rbx,1)
jne    1410 <unpack+0x2b0>
movb   $0xa,(%r12,%rbx,1)
jmp    1410 <unpack+0x2b0>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [20 x i8] c"Char '\\n' is used!\0A\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [25 x i8] c"Error opening file '%s'\0A\00"
@.str.3 = [22 x i8] c"Write to file failed\0A\00"
define i32 @unpack(i8* %0, i64 %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32*
%11 = alloca i64
%12 = alloca i64
store i8* %0, i8** %6
store i64 %1, i64* %7
store i8* %2, i8** %8
store i32 %3, i32* %9
%13 = load i8*, i8** %6
%14 = bitcast i8* %13 to i64*
%15 = load i64, i64* %14
%16 = call i64 @to_little(i64 %15)
store i64 %16, i64* %12
%17 = load i8*, i8** %6
%18 = load i64, i64* %12
%19 = getelementptr inbounds i8, i8* %17, i64 %18
%20 = load i64, i64* %7
%21 = load i64, i64* %12
%22 = sub nsw i64 %20, %21
%23 = call i32* @memchr(i8* %19, i8 signext 10, i64 %22)
%24 = icmp ne i32* %23, null
br i1 %24, label %25, label %28
25: ; preds = %4
%26 = load i32, i32* @stderr
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %5
br label %78
28: ; preds = %4
%29 = load i8*, i8** %8
%30 = call i32* @fopen(i8* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %30, i32** %10
%31 = icmp eq i32* %30, null
br i1 %31, label %32, label %36
32: ; preds = %28
%33 = load i32, i32* @stderr
%34 = load i8*, i8** %8
%35 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8* %34)
store i32 1, i32* %5
br label %78
36: ; preds = %28
%37 = load i64, i64* %12
store i64 %37, i64* %11
br label %38
38: ; preds = %54, %36
%39 = load i64, i64* %11
%40 = load i64, i64* %7
%41 = icmp slt i64 %39, %40
br i1 %41, label %42, label %57
42: ; preds = %38
%43 = load i8*, i8** %6
%44 = load i64, i64* %11
%45 = getelementptr inbounds i8, i8* %43, i64 %44
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %53
49: ; preds = %42
%50 = load i8*, i8** %6
%51 = load i64, i64* %11
%52 = getelementptr inbounds i8, i8* %50, i64 %51
store i8 10, i8* %52
br label %53
53: ; preds = %49, %42
br label %54
54: ; preds = %53
%55 = load i64, i64* %11
%56 = add nsw i64 %55, 1
store i64 %56, i64* %11
br label %38
57: ; preds = %38
%58 = load i8*, i8** %6
%59 = load i64, i64* %12
%60 = getelementptr inbounds i8, i8* %58, i64 %59
%61 = load i64, i64* %7
%62 = load i64, i64* %12
%63 = sub nsw i64 %61, %62
%64 = load i32*, i32** %10
%65 = call i64 @fwrite(i8* %60, i32 1, i64 %63, i32* %64)
%66 = load i64, i64* %7
%67 = load i64, i64* %12
%68 = sub nsw i64 %66, %67
%69 = icmp ne i64 %65, %68
br i1 %69, label %70, label %75
70: ; preds = %57
%71 = load i32*, i32** %10
%72 = call i32 @fclose(i32* %71)
%73 = load i32, i32* @stderr
%74 = call i32 (i32, i8*, ...) @fprintf(i32 %73, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %5
br label %78
75: ; preds = %57
%76 = load i32*, i32** %10
%77 = call i32 @fclose(i32* %76)
store i32 0, i32* %5
br label %78
78: ; preds = %75, %70, %32, %25
%79 = load i32, i32* %5
ret i32 %79
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [20 x i8] c"Char '\\n' is used!\0A\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [25 x i8] c"Error opening file '%s'\0A\00"
@.str.3 = [22 x i8] c"Write to file failed\0A\00"
define i32 @unpack(i8* %0, i64 %1, i8* %2, i32 %3) {
%5 = bitcast i8* %0 to i64*
%6 = load i64, i64* %5
%7 = tail call i64 @to_little(i64 %6)
%8 = getelementptr inbounds i8, i8* %0, i64 %7
%9 = sub nsw i64 %1, %7
%10 = tail call i32* @memchr(i8* %8, i8 signext 10, i64 %9)
%11 = icmp eq i32* %10, null
br i1 %11, label %15, label %12
12: ; preds = %4
%13 = load i32, i32* @stderr
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
br label %141
15: ; preds = %4
%16 = tail call i32* @fopen(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%17 = icmp eq i32* %16, null
br i1 %17, label %122, label %18
18: ; preds = %15
%19 = icmp slt i64 %7, %1
br i1 %19, label %20, label %134
20: ; preds = %18
%21 = sub i64 %1, %7
%22 = icmp ult i64 %21, 16
br i1 %22, label %120, label %23
23: ; preds = %20
%24 = and i64 %21, -16
%25 = add i64 %7, %24
br label %26
26: ; preds = %115, %23
%27 = phi i64 [ 0, %23 ], [ %116, %115 ]
%28 = add i64 %7, %27
%29 = add i64 %28, 8
%30 = getelementptr inbounds i8, i8* %0, i64 %28
%31 = bitcast i8* %30 to <8 x i8>*
%32 = load <8 x i8>, <8 x i8>* %31
%33 = getelementptr inbounds i8, i8* %30, i64 8
%34 = bitcast i8* %33 to <8 x i8>*
%35 = load <8 x i8>, <8 x i8>* %34
%36 = icmp eq <8 x i8> %32, <i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1>
%37 = icmp eq <8 x i8> %35, <i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1, i8 -1>
%38 = extractelement <8 x i1> %36, i64 0
br i1 %38, label %39, label %41
39: ; preds = %26
%40 = getelementptr inbounds i8, i8* %0, i64 %28
store i8 10, i8* %40
br label %41
41: ; preds = %39, %26
%42 = extractelement <8 x i1> %36, i64 1
br i1 %42, label %43, label %46
43: ; preds = %41
%44 = add i64 %28, 1
%45 = getelementptr inbounds i8, i8* %0, i64 %44
store i8 10, i8* %45
br label %46
46: ; preds = %43, %41
%47 = extractelement <8 x i1> %36, i64 2
br i1 %47, label %48, label %51
48: ; preds = %46
%49 = add i64 %28, 2
%50 = getelementptr inbounds i8, i8* %0, i64 %49
store i8 10, i8* %50
br label %51
51: ; preds = %48, %46
%52 = extractelement <8 x i1> %36, i64 3
br i1 %52, label %53, label %56
53: ; preds = %51
%54 = add i64 %28, 3
%55 = getelementptr inbounds i8, i8* %0, i64 %54
store i8 10, i8* %55
br label %56
56: ; preds = %53, %51
%57 = extractelement <8 x i1> %36, i64 4
br i1 %57, label %58, label %61
58: ; preds = %56
%59 = add i64 %28, 4
%60 = getelementptr inbounds i8, i8* %0, i64 %59
store i8 10, i8* %60
br label %61
61: ; preds = %58, %56
%62 = extractelement <8 x i1> %36, i64 5
br i1 %62, label %63, label %66
63: ; preds = %61
%64 = add i64 %28, 5
%65 = getelementptr inbounds i8, i8* %0, i64 %64
store i8 10, i8* %65
br label %66
66: ; preds = %63, %61
%67 = extractelement <8 x i1> %36, i64 6
br i1 %67, label %68, label %71
68: ; preds = %66
%69 = add i64 %28, 6
%70 = getelementptr inbounds i8, i8* %0, i64 %69
store i8 10, i8* %70
br label %71
71: ; preds = %68, %66
%72 = extractelement <8 x i1> %36, i64 7
br i1 %72, label %73, label %76
73: ; preds = %71
%74 = add i64 %28, 7
%75 = getelementptr inbounds i8, i8* %0, i64 %74
store i8 10, i8* %75
br label %76
76: ; preds = %73, %71
%77 = extractelement <8 x i1> %37, i64 0
br i1 %77, label %78, label %80
78: ; preds = %76
%79 = getelementptr inbounds i8, i8* %0, i64 %29
store i8 10, i8* %79
br label %80
80: ; preds = %78, %76
%81 = extractelement <8 x i1> %37, i64 1
br i1 %81, label %82, label %85
82: ; preds = %80
%83 = add i64 %28, 9
%84 = getelementptr inbounds i8, i8* %0, i64 %83
store i8 10, i8* %84
br label %85
85: ; preds = %82, %80
%86 = extractelement <8 x i1> %37, i64 2
br i1 %86, label %87, label %90
87: ; preds = %85
%88 = add i64 %28, 10
%89 = getelementptr inbounds i8, i8* %0, i64 %88
store i8 10, i8* %89
br label %90
90: ; preds = %87, %85
%91 = extractelement <8 x i1> %37, i64 3
br i1 %91, label %92, label %95
92: ; preds = %90
%93 = add i64 %28, 11
%94 = getelementptr inbounds i8, i8* %0, i64 %93
store i8 10, i8* %94
br label %95
95: ; preds = %92, %90
%96 = extractelement <8 x i1> %37, i64 4
br i1 %96, label %97, label %100
97: ; preds = %95
%98 = add i64 %28, 12
%99 = getelementptr inbounds i8, i8* %0, i64 %98
store i8 10, i8* %99
br label %100
100: ; preds = %97, %95
%101 = extractelement <8 x i1> %37, i64 5
br i1 %101, label %102, label %105
102: ; preds = %100
%103 = add i64 %28, 13
%104 = getelementptr inbounds i8, i8* %0, i64 %103
store i8 10, i8* %104
br label %105
105: ; preds = %102, %100
%106 = extractelement <8 x i1> %37, i64 6
br i1 %106, label %107, label %110
107: ; preds = %105
%108 = add i64 %28, 14
%109 = getelementptr inbounds i8, i8* %0, i64 %108
store i8 10, i8* %109
br label %110
110: ; preds = %107, %105
%111 = extractelement <8 x i1> %37, i64 7
br i1 %111, label %112, label %115
112: ; preds = %110
%113 = add i64 %28, 15
%114 = getelementptr inbounds i8, i8* %0, i64 %113
store i8 10, i8* %114
br label %115
115: ; preds = %112, %110
%116 = add nuw i64 %27, 16
%117 = icmp eq i64 %116, %24
br i1 %117, label %118, label %26
118: ; preds = %115
%119 = icmp eq i64 %21, %24
br i1 %119, label %134, label %120
120: ; preds = %20, %118
%121 = phi i64 [ %7, %20 ], [ %25, %118 ]
br label %125
122: ; preds = %15
%123 = load i32, i32* @stderr
%124 = tail call i32 (i32, i8*, ...) @fprintf(i32 %123, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8* %2)
br label %141
125: ; preds = %120, %131
%126 = phi i64 [ %132, %131 ], [ %121, %120 ]
%127 = getelementptr inbounds i8, i8* %0, i64 %126
%128 = load i8, i8* %127
%129 = icmp eq i8 %128, -1
br i1 %129, label %130, label %131
130: ; preds = %125
store i8 10, i8* %127
br label %131
131: ; preds = %125, %130
%132 = add nsw i64 %126, 1
%133 = icmp eq i64 %132, %1
br i1 %133, label %134, label %125
134: ; preds = %131, %118, %18
%135 = tail call i64 @fwrite(i8* %8, i32 1, i64 %9, i32* %16)
%136 = icmp eq i64 %135, %9
%137 = tail call i32 @fclose(i32* %16)
br i1 %136, label %141, label %138
138: ; preds = %134
%139 = load i32, i32* @stderr
%140 = tail call i32 (i32, i8*, ...) @fprintf(i32 %139, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
br label %141
141: ; preds = %134, %138, %122, %12
%142 = phi i32 [ 1, %12 ], [ 1, %122 ], [ 1, %138 ], [ 0, %134 ]
ret i32 %142
}