#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*/ expected;
typedef int /*<<< orphan*/ dst2;
typedef int /*<<< orphan*/ dst1;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, ...);
int /*<<< orphan*/ memset(char *, char, int);
int safecpy(char *, char const *, int);
int snprintf(char *, int, char *, char const *);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
int strlcpy(char *, char const *, int);
int check_copy(const char *str, int len, int line) {
  char dst1[100], dst2[100], expected[100];
  int n1, n2, n3;
  if (len == 0)
    return 0;
  memset(dst1, '4', sizeof(dst1));
  memset(dst2, '4', sizeof(dst2));
  memset(expected, '6', sizeof(expected));
  n1 = snprintf(expected, len, "%s", str);
  n2 = safecpy(dst1, str, len);
  n3 = strlcpy(dst2, str, len);
  if (n1 != n3) {
    fprintf(stderr, "lcpy %d: size %d vs %d\n", line, n1, n3);
    return 1;
  }
  if (n1 >= len)
    n1 = len - 1;
  if (n1 != n2) {
    fprintf(stderr, "cpy %d: size %d vs %d\n", line, n1, n2);
    return 1;
  }
  if (strcmp(dst1, expected)) {
    fprintf(stderr, "cpy %d: str %s vs %s\n", line, expected, dst1);
    return 1;
  }
  if (strcmp(dst2, expected)) {
    fprintf(stderr, "lcpy %d: str %s vs %s\n", line, expected, dst2);
    return 1;
  }
  if (dst1[len] != '4') {
    fprintf(stderr, "cpy %d: problems with guard %c\n", line, dst1[len]);
    return 1;
  }
  if (dst2[len] != '4') {
    fprintf(stderr, "lcpy %d: problems with guard %c\n", line, dst2[len]);
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<check_copy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x170,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    118b <check_copy+0x2b>
movl   $0x0,-0x4(%rbp)
jmp    13e9 <check_copy+0x289>
lea    -0x80(%rbp),%rdi
mov    $0x34,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
lea    -0xf0(%rbp),%rdi
mov    $0x34,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
lea    -0x160(%rbp),%rdi
mov    $0x36,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
lea    -0x160(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x10(%rbp),%rcx
lea    0xe21(%rip),%rdx
call   1030 <snprintf@plt>
mov    %eax,-0x164(%rbp)
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1060 <safecpy@plt>
mov    %eax,-0x168(%rbp)
lea    -0xf0(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1080 <strlcpy@plt>
mov    %eax,-0x16c(%rbp)
mov    -0x164(%rbp),%eax
cmp    -0x16c(%rbp),%eax
je     125e <check_copy+0xfe>
mov    0x2dae(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%edx
mov    -0x164(%rbp),%ecx
mov    -0x16c(%rbp),%r8d
lea    0xdb8(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13e9 <check_copy+0x289>
mov    -0x164(%rbp),%eax
cmp    -0x14(%rbp),%eax
jl     1279 <check_copy+0x119>
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x164(%rbp)
mov    -0x164(%rbp),%eax
cmp    -0x168(%rbp),%eax
je     12be <check_copy+0x15e>
mov    0x2d4e(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%edx
mov    -0x164(%rbp),%ecx
mov    -0x168(%rbp),%r8d
lea    0xd59(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13e9 <check_copy+0x289>
lea    -0x80(%rbp),%rdi
lea    -0x160(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     1309 <check_copy+0x1a9>
mov    0x2d01(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%edx
lea    -0x160(%rbp),%rcx
lea    -0x80(%rbp),%r8
lea    0xd26(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13e9 <check_copy+0x289>
lea    -0xf0(%rbp),%rdi
lea    -0x160(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     135a <check_copy+0x1fa>
mov    0x2cb3(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%edx
lea    -0x160(%rbp),%rcx
lea    -0xf0(%rbp),%r8
lea    0xcd4(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13e9 <check_copy+0x289>
movslq -0x14(%rbp),%rax
movsbl -0x80(%rbp,%rax,1),%eax
cmp    $0x34,%eax
je     139b <check_copy+0x23b>
mov    0x2c6d(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%edx
movslq -0x14(%rbp),%rax
movsbl -0x80(%rbp,%rax,1),%ecx
lea    0xcab(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13e9 <check_copy+0x289>
movslq -0x14(%rbp),%rax
movsbl -0xf0(%rbp,%rax,1),%eax
ff
cmp    $0x34,%eax
je     13e2 <check_copy+0x282>
mov    0x2c29(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%edx
movslq -0x14(%rbp),%rax
movsbl -0xf0(%rbp,%rax,1),%ecx
ff
lea    0xc63(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13e9 <check_copy+0x289>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x170,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_copy>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x158,%rsp
xor    %r15d,%r15d
test   %esi,%esi
je     12cf <check_copy+0x16f>
mov    %esi,%ebx
mov    %rdi,%rbp
mov    %edx,0xc(%rsp)
lea    0xf0(%rsp),%r13
mov    %r13,%rdi
mov    $0x34,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
lea    0x80(%rsp),%r14
mov    %r14,%rdi
mov    $0x34,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
lea    0x10(%rsp),%r12
mov    %r12,%rdi
mov    $0x36,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
lea    0xe29(%rip),%rdx
mov    %r12,%rdi
mov    %ebx,%esi
mov    %rbp,%rcx
call   1030 <snprintf@plt>
mov    %eax,%r12d
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %ebx,%edx
call   1060 <safecpy@plt>
mov    %eax,%r13d
mov    %r14,%rdi
mov    %rbp,%rsi
mov    %ebx,%edx
call   1080 <strlcpy@plt>
cmp    %eax,%r12d
jne    124e <check_copy+0xee>
lea    -0x1(%rbx),%ecx
cmp    %ebx,%r12d
cmovl  %r12d,%ecx
cmp    %r13d,%ecx
jne    126a <check_copy+0x10a>
lea    0xf0(%rsp),%rdi
lea    0x10(%rsp),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     128a <check_copy+0x12a>
mov    0x2daa(%rip),%rax
mov    (%rax),%edi
lea    0xddd(%rip),%rsi
lea    0x10(%rsp),%rcx
lea    0xf0(%rsp),%r8
jmp    12be <check_copy+0x15e>
mov    0x2d8b(%rip),%rcx
mov    (%rcx),%edi
lea    0xda5(%rip),%rsi
mov    0xc(%rsp),%edx
mov    %r12d,%ecx
mov    %eax,%r8d
jmp    1281 <check_copy+0x121>
mov    0x2d6f(%rip),%rax
mov    (%rax),%edi
lea    0xd8a(%rip),%rsi
mov    0xc(%rsp),%edx
mov    %r13d,%r8d
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    12c9 <check_copy+0x169>
lea    0x80(%rsp),%rdi
lea    0x10(%rsp),%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12e4 <check_copy+0x184>
mov    0x2d38(%rip),%rax
mov    (%rax),%edi
lea    0xd6a(%rip),%rsi
lea    0x10(%rsp),%rcx
lea    0x80(%rsp),%r8
mov    0xc(%rsp),%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x1,%r15d
mov    %r15d,%eax
add    $0x158,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movslq %ebx,%rax
movsbl 0xf0(%rsp,%rax,1),%ecx
cmp    $0x34,%ecx
jne    1313 <check_copy+0x1b3>
movsbl 0x80(%rsp,%rax,1),%ecx
cmp    $0x34,%ecx
je     12cf <check_copy+0x16f>
mov    0x2cd8(%rip),%rax
mov    (%rax),%edi
lea    0xd21(%rip),%rsi
jmp    1323 <check_copy+0x1c3>
mov    0x2cc6(%rip),%rax
mov    (%rax),%edi
lea    0xd10(%rip),%rsi
mov    0xc(%rsp),%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    12c9 <check_copy+0x169>

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@stderr = global i32 0
@.str.1 = [24 x i8] c"lcpy %d: size %d vs %d\0A\00"
@.str.2 = [23 x i8] c"cpy %d: size %d vs %d\0A\00"
@.str.3 = [22 x i8] c"cpy %d: str %s vs %s\0A\00"
@.str.4 = [23 x i8] c"lcpy %d: str %s vs %s\0A\00"
@.str.5 = [32 x i8] c"cpy %d: problems with guard %c\0A\00"
@.str.6 = [33 x i8] c"lcpy %d: problems with guard %c\0A\00"
define i32 @check_copy(i8* %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca [100 x i8]
%9 = alloca [100 x i8]
%10 = alloca [100 x i8]
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
%14 = load i32, i32* %6
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %3
store i32 0, i32* %4
br label %117
17: ; preds = %3
%18 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%19 = call i32 @memset(i8* %18, i8 signext 52, i32 100)
%20 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%21 = call i32 @memset(i8* %20, i8 signext 52, i32 100)
%22 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%23 = call i32 @memset(i8* %22, i8 signext 54, i32 100)
%24 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%25 = load i32, i32* %6
%26 = load i8*, i8** %5
%27 = call i32 @snprintf(i8* %24, i32 %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %26)
store i32 %27, i32* %11
%28 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%29 = load i8*, i8** %5
%30 = load i32, i32* %6
%31 = call i32 @safecpy(i8* %28, i8* %29, i32 %30)
store i32 %31, i32* %12
%32 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%33 = load i8*, i8** %5
%34 = load i32, i32* %6
%35 = call i32 @strlcpy(i8* %32, i8* %33, i32 %34)
store i32 %35, i32* %13
%36 = load i32, i32* %11
%37 = load i32, i32* %13
%38 = icmp ne i32 %36, %37
br i1 %38, label %39, label %45
39: ; preds = %17
%40 = load i32, i32* @stderr
%41 = load i32, i32* %7
%42 = load i32, i32* %11
%43 = load i32, i32* %13
%44 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %41, i32 %42, i32 %43)
store i32 1, i32* %4
br label %117
45: ; preds = %17
%46 = load i32, i32* %11
%47 = load i32, i32* %6
%48 = icmp sge i32 %46, %47
br i1 %48, label %49, label %52
49: ; preds = %45
%50 = load i32, i32* %6
%51 = sub nsw i32 %50, 1
store i32 %51, i32* %11
br label %52
52: ; preds = %49, %45
%53 = load i32, i32* %11
%54 = load i32, i32* %12
%55 = icmp ne i32 %53, %54
br i1 %55, label %56, label %62
56: ; preds = %52
%57 = load i32, i32* @stderr
%58 = load i32, i32* %7
%59 = load i32, i32* %11
%60 = load i32, i32* %12
%61 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %58, i32 %59, i32 %60)
store i32 1, i32* %4
br label %117
62: ; preds = %52
%63 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%64 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%65 = call i64 @strcmp(i8* %63, i8* %64)
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %73
67: ; preds = %62
%68 = load i32, i32* @stderr
%69 = load i32, i32* %7
%70 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%71 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%72 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 %69, i8* %70, i8* %71)
store i32 1, i32* %4
br label %117
73: ; preds = %62
%74 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%75 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%76 = call i64 @strcmp(i8* %74, i8* %75)
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %84
78: ; preds = %73
%79 = load i32, i32* @stderr
%80 = load i32, i32* %7
%81 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%82 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%83 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %79, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 %80, i8* %81, i8* %82)
store i32 1, i32* %4
br label %117
84: ; preds = %73
%85 = load i32, i32* %6
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 %86
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = icmp ne i32 %89, 52
br i1 %90, label %91, label %100
91: ; preds = %84
%92 = load i32, i32* @stderr
%93 = load i32, i32* %7
%94 = load i32, i32* %6
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 %95
%97 = load i8, i8* %96
%98 = sext i8 %97 to i32
%99 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %92, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 %93, i32 %98)
store i32 1, i32* %4
br label %117
100: ; preds = %84
%101 = load i32, i32* %6
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 %102
%104 = load i8, i8* %103
%105 = sext i8 %104 to i32
%106 = icmp ne i32 %105, 52
br i1 %106, label %107, label %116
107: ; preds = %100
%108 = load i32, i32* @stderr
%109 = load i32, i32* %7
%110 = load i32, i32* %6
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 %111
%113 = load i8, i8* %112
%114 = sext i8 %113 to i32
%115 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %108, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), i32 %109, i32 %114)
store i32 1, i32* %4
br label %117
116: ; preds = %100
store i32 0, i32* %4
br label %117
117: ; preds = %116, %107, %91, %78, %67, %56, %39, %16
%118 = load i32, i32* %4
ret i32 %118
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@stderr = global i32 0
@.str.1 = [24 x i8] c"lcpy %d: size %d vs %d\0A\00"
@.str.2 = [23 x i8] c"cpy %d: size %d vs %d\0A\00"
@.str.3 = [22 x i8] c"cpy %d: str %s vs %s\0A\00"
@.str.4 = [23 x i8] c"lcpy %d: str %s vs %s\0A\00"
@.str.5 = [32 x i8] c"cpy %d: problems with guard %c\0A\00"
@.str.6 = [33 x i8] c"lcpy %d: problems with guard %c\0A\00"
define i32 @check_copy(i8* %0, i32 %1, i32 %2) {
%4 = alloca [100 x i8]
%5 = alloca [100 x i8]
%6 = alloca [100 x i8]
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%9 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%10 = icmp eq i32 %1, 0
br i1 %10, label %59, label %11
11: ; preds = %3
%12 = call i32 @memset(i8* %7, i8 signext 52, i32 100)
%13 = call i32 @memset(i8* %8, i8 signext 52, i32 100)
%14 = call i32 @memset(i8* %9, i8 signext 54, i32 100)
%15 = call i32 @snprintf(i8* %9, i32 %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %0)
%16 = call i32 @safecpy(i8* %7, i8* %0, i32 %1)
%17 = call i32 @strlcpy(i8* %8, i8* %0, i32 %1)
%18 = icmp eq i32 %15, %17
br i1 %18, label %22, label %19
19: ; preds = %11
%20 = load i32, i32* @stderr
%21 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %2, i32 %15, i32 %17)
br label %59
22: ; preds = %11
%23 = icmp slt i32 %15, %1
%24 = add nsw i32 %1, -1
%25 = select i1 %23, i32 %15, i32 %24
%26 = icmp eq i32 %25, %16
br i1 %26, label %30, label %27
27: ; preds = %22
%28 = load i32, i32* @stderr
%29 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %2, i32 %25, i32 %16)
br label %59
30: ; preds = %22
%31 = call i64 @strcmp(i8* %7, i8* %9)
%32 = icmp eq i64 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %30
%34 = load i32, i32* @stderr
%35 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 %2, i8* %9, i8* %7)
br label %59
36: ; preds = %30
%37 = call i64 @strcmp(i8* %8, i8* %9)
%38 = icmp eq i64 %37, 0
br i1 %38, label %42, label %39
39: ; preds = %36
%40 = load i32, i32* @stderr
%41 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 %2, i8* %9, i8* %8)
br label %59
42: ; preds = %36
%43 = sext i32 %1 to i64
%44 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 %43
%45 = load i8, i8* %44
%46 = icmp eq i8 %45, 52
br i1 %46, label %51, label %47
47: ; preds = %42
%48 = sext i8 %45 to i32
%49 = load i32, i32* @stderr
%50 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 %2, i32 %48)
br label %59
51: ; preds = %42
%52 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 %43
%53 = load i8, i8* %52
%54 = icmp eq i8 %53, 52
br i1 %54, label %59, label %55
55: ; preds = %51
%56 = sext i8 %53 to i32
%57 = load i32, i32* @stderr
%58 = call i32 (i32, i8*, i32, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), i32 %2, i32 %56)
br label %59
59: ; preds = %51, %3, %55, %47, %39, %33, %27, %19
%60 = phi i32 [ 1, %19 ], [ 1, %27 ], [ 1, %33 ], [ 1, %39 ], [ 1, %47 ], [ 1, %55 ], [ 0, %3 ], [ 0, %51 ]
ret i32 %60
}