#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 */
struct stat {
  int st_mode;
  scalar_t__ st_uid;
};

/* Variables and functions */
int S_IWGRP;
int S_IWOTH;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ memcpy(char *, char const *, int);
int /*<<< orphan*/ perror(char *);
scalar_t__ stat(char *, struct stat *);
int /*<<< orphan*/ stderr;
char *strchr(char const *, char);
int strlen(char const *);
int PathOK(char const *fname) {
  char path[512];
  struct stat buf;
  char const *slash;
  if (strlen(fname) > 512) {
    fprintf(stderr, "Pathname '%s' too long\n", fname);
    return 0;
  }
  if (*fname != '/') {
    fprintf(stderr, "Unsafe path '%s' not absolute\n", fname);
    return 0;
  }
  if (stat("/", &buf) < 0) {
    perror("stat");
    return 0;
  }
  if (buf.st_uid) {
    fprintf(stderr, "SECURITY ALERT: Root directory (/) not owned by root\n");
    return 0;
  }
  if (buf.st_mode & (S_IWGRP | S_IWOTH)) {
    fprintf(stderr,
            "SECURITY ALERT: Root directory (/) writable by group or other\n");
    return 0;
  }
  slash = fname;
  while (*slash) {
    slash = strchr(slash + 1, '/');
    if (!slash) {
      slash = fname + strlen(fname);
    }
    memcpy(path, fname, slash - fname);
    path[slash - fname] = 0;
    if (stat(path, &buf) < 0) {
      perror("stat");
      return 0;
    }
    if (buf.st_uid) {
      fprintf(stderr, "SECURITY ALERT: '%s' not owned by root\n", path);
      return 0;
    }
    if (buf.st_mode & (S_IWGRP | S_IWOTH)) {
      fprintf(stderr, "SECURITY ALERT: '%s' writable by group or other\n",
              path);
      return 0;
    }
  }
  return 1;
}


x86 assembly (clang, -O0):
<PathOK>:
push   %rbp
mov    %rsp,%rbp
sub    $0x230,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x200,%eax
jle    11aa <PathOK+0x4a>
mov    0x2e4e(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe69(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13f8 <PathOK+0x298>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
je     11e1 <PathOK+0x81>
mov    0x2e17(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe4a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13f8 <PathOK+0x298>
lea    0xe4f(%rip),%rdi
lea    -0x220(%rbp),%rsi
call   1060 <stat@plt>
cmp    $0x0,%rax
jge    1216 <PathOK+0xb6>
lea    0xe34(%rip),%rdi
call   1080 <perror@plt>
movl   $0x0,-0x4(%rbp)
jmp    13f8 <PathOK+0x298>
cmpq   $0x0,-0x218(%rbp)
je     1247 <PathOK+0xe7>
mov    0x2dad(%rip),%rax
mov    (%rax),%edi
lea    0xe0a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13f8 <PathOK+0x298>
mov    -0x220(%rbp),%eax
mov    0x2d94(%rip),%rcx
mov    (%rcx),%ecx
mov    0x2d6b(%rip),%rdx
or     (%rdx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     128d <PathOK+0x12d>
mov    0x2d67(%rip),%rax
mov    (%rax),%edi
lea    0xdfa(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13f8 <PathOK+0x298>
mov    -0x10(%rbp),%rax
mov    %rax,-0x228(%rbp)
mov    -0x228(%rbp),%rax
cmpb   $0x0,(%rax)
je     13f1 <PathOK+0x291>
mov    -0x228(%rbp),%rdi
add    $0x1,%rdi
mov    $0x2f,%esi
call   1040 <strchr@plt>
mov    %rax,-0x228(%rbp)
cmpq   $0x0,-0x228(%rbp)
jne    12fc <PathOK+0x19c>
mov    -0x10(%rbp),%rax
mov    %rax,-0x230(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x230(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x228(%rbp)
lea    -0x210(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x228(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    %rcx,%rax
mov    %eax,%edx
call   1070 <memcpy@plt>
mov    -0x228(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    %rcx,%rax
movb   $0x0,-0x210(%rbp,%rax,1)
lea    -0x210(%rbp),%rdi
lea    -0x220(%rbp),%rsi
call   1060 <stat@plt>
cmp    $0x0,%rax
jge    1367 <PathOK+0x207>
lea    0xce3(%rip),%rdi
call   1080 <perror@plt>
movl   $0x0,-0x4(%rbp)
jmp    13f8 <PathOK+0x298>
cmpq   $0x0,-0x218(%rbp)
je     139f <PathOK+0x23f>
mov    0x2c5c(%rip),%rax
mov    (%rax),%edi
lea    -0x210(%rbp),%rdx
lea    0xd27(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13f8 <PathOK+0x298>
mov    -0x220(%rbp),%eax
mov    0x2c3c(%rip),%rcx
mov    (%rcx),%ecx
mov    0x2c13(%rip),%rdx
or     (%rdx),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     13ec <PathOK+0x28c>
mov    0x2c0f(%rip),%rax
mov    (%rax),%edi
lea    -0x210(%rbp),%rdx
lea    0xd02(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13f8 <PathOK+0x298>
jmp    1298 <PathOK+0x138>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x230,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PathOK>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x218,%rsp
mov    %rdi,%r12
call   1030 <strlen@plt>
cmp    $0x201,%eax
jl     1192 <PathOK+0x32>
mov    0x2e51(%rip),%rax
mov    (%rax),%edi
lea    0xe70(%rip),%rsi
jmp    11db <PathOK+0x7b>
cmpb   $0x2f,(%r12)
jne    11cb <PathOK+0x6b>
lea    0xe97(%rip),%rdi
mov    %rsp,%rsi
call   1060 <stat@plt>
test   %rax,%rax
js     12bf <PathOK+0x15f>
cmpq   $0x0,0x8(%rsp)
je     11e9 <PathOK+0x89>
mov    0x2e18(%rip),%rax
mov    (%rax),%edi
lea    0xe75(%rip),%rsi
jmp    1213 <PathOK+0xb3>
mov    0x2e06(%rip),%rax
mov    (%rax),%edi
lea    0xe3d(%rip),%rsi
xor    %ebx,%ebx
mov    %r12,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    121c <PathOK+0xbc>
mov    0x2df8(%rip),%r13
mov    0x2dd1(%rip),%r14
mov    (%r14),%eax
or     0x0(%r13),%eax
test   %eax,(%rsp)
je     1230 <PathOK+0xd0>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
lea    0xe61(%rip),%rsi
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %ebx,%eax
add    $0x218,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x10(%rsp),%r15
mov    %r12,%rbp
nopl   0x0(%rax,%rax,1)
cmpb   $0x0,0x0(%rbp)
je     12d2 <PathOK+0x172>
add    $0x1,%rbp
mov    %rbp,%rdi
mov    $0x2f,%esi
call   1040 <strchr@plt>
mov    %rax,%rbp
test   %rax,%rax
jne    1271 <PathOK+0x111>
mov    %r12,%rdi
call   1030 <strlen@plt>
movslq %eax,%rbp
add    %r12,%rbp
mov    %rbp,%rbx
sub    %r12,%rbx
mov    %r15,%rdi
mov    %r12,%rsi
mov    %ebx,%edx
call   1070 <memcpy@plt>
movb   $0x0,0x10(%rsp,%rbx,1)
mov    %r15,%rdi
mov    %rsp,%rsi
call   1060 <stat@plt>
test   %rax,%rax
js     12bf <PathOK+0x15f>
cmpq   $0x0,0x8(%rsp)
jne    12dc <PathOK+0x17c>
mov    (%r14),%eax
or     0x0(%r13),%eax
test   %eax,(%rsp)
je     1240 <PathOK+0xe0>
mov    0x2d24(%rip),%rax
mov    (%rax),%edi
lea    0xe1e(%rip),%rsi
jmp    12ec <PathOK+0x18c>
lea    0xd73(%rip),%rdi
call   1080 <perror@plt>
xor    %ebx,%ebx
jmp    121c <PathOK+0xbc>
mov    $0x1,%ebx
jmp    121c <PathOK+0xbc>
mov    0x2cf5(%rip),%rax
mov    (%rax),%edi
lea    0xdc7(%rip),%rsi
xor    %ebx,%ebx
lea    0x10(%rsp),%rdx
jmp    11e0 <PathOK+0x80>

LLVM IR (-O0):
%struct.stat = type { i32, i64 }
@stderr = global i32 0
@.str = [24 x i8] c"Pathname '%s' too long\0A\00"
@.str.1 = [31 x i8] c"Unsafe path '%s' not absolute\0A\00"
@.str.2 = [2 x i8] c"/\00"
@.str.3 = [5 x i8] c"stat\00"
@.str.4 = [54 x i8] c"SECURITY ALERT: Root directory (/) not owned by root\0A\00"
@S_IWGRP = global i32 0
@S_IWOTH = global i32 0
@.str.5 = [63 x i8] c"SECURITY ALERT: Root directory (/) writable by group or other\0A\00"
@.str.6 = [40 x i8] c"SECURITY ALERT: '%s' not owned by root\0A\00"
@.str.7 = [49 x i8] c"SECURITY ALERT: '%s' writable by group or other\0A\00"
define i32 @PathOK(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca [512 x i8]
%5 = alloca %struct.stat
%6 = alloca i8*
store i8* %0, i8** %3
%7 = load i8*, i8** %3
%8 = call i32 @strlen(i8* %7)
%9 = icmp sgt i32 %8, 512
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = load i32, i32* @stderr
%12 = load i8*, i8** %3
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %12)
store i32 0, i32* %2
br label %107
14: ; preds = %1
%15 = load i8*, i8** %3
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 47
br i1 %18, label %19, label %23
19: ; preds = %14
%20 = load i32, i32* @stderr
%21 = load i8*, i8** %3
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i8* %21)
store i32 0, i32* %2
br label %107
23: ; preds = %14
%24 = call i64 @stat(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), %struct.stat* %5)
%25 = icmp slt i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %2
br label %107
28: ; preds = %23
%29 = getelementptr inbounds %struct.stat, %struct.stat* %5, i32 0, i32 1
%30 = load i64, i64* %29
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %28
%33 = load i32, i32* @stderr
%34 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %2
br label %107
35: ; preds = %28
%36 = getelementptr inbounds %struct.stat, %struct.stat* %5, i32 0, i32 0
%37 = load i32, i32* %36
%38 = load i32, i32* @S_IWGRP
%39 = load i32, i32* @S_IWOTH
%40 = or i32 %38, %39
%41 = and i32 %37, %40
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %35
%44 = load i32, i32* @stderr
%45 = call i32 (i32, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %2
br label %107
46: ; preds = %35
%47 = load i8*, i8** %3
store i8* %47, i8** %6
br label %48
48: ; preds = %105, %46
%49 = load i8*, i8** %6
%50 = load i8, i8* %49
%51 = icmp ne i8 %50, 0
br i1 %51, label %52, label %106
52: ; preds = %48
%53 = load i8*, i8** %6
%54 = getelementptr inbounds i8, i8* %53, i64 1
%55 = call i8* @strchr(i8* %54, i8 signext 47)
store i8* %55, i8** %6
%56 = load i8*, i8** %6
%57 = icmp ne i8* %56, null
br i1 %57, label %64, label %58
58: ; preds = %52
%59 = load i8*, i8** %3
%60 = load i8*, i8** %3
%61 = call i32 @strlen(i8* %60)
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8, i8* %59, i64 %62
store i8* %63, i8** %6
br label %64
64: ; preds = %58, %52
%65 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%66 = load i8*, i8** %3
%67 = load i8*, i8** %6
%68 = load i8*, i8** %3
%69 = ptrtoint i8* %67 to i64
%70 = ptrtoint i8* %68 to i64
%71 = sub i64 %69, %70
%72 = trunc i64 %71 to i32
%73 = call i32 @memcpy(i8* %65, i8* %66, i32 %72)
%74 = load i8*, i8** %6
%75 = load i8*, i8** %3
%76 = ptrtoint i8* %74 to i64
%77 = ptrtoint i8* %75 to i64
%78 = sub i64 %76, %77
%79 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 %78
store i8 0, i8* %79
%80 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%81 = call i64 @stat(i8* %80, %struct.stat* %5)
%82 = icmp slt i64 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %64
%84 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %2
br label %107
85: ; preds = %64
%86 = getelementptr inbounds %struct.stat, %struct.stat* %5, i32 0, i32 1
%87 = load i64, i64* %86
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %93
89: ; preds = %85
%90 = load i32, i32* @stderr
%91 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%92 = call i32 (i32, i8*, ...) @fprintf(i32 %90, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i8* %91)
store i32 0, i32* %2
br label %107
93: ; preds = %85
%94 = getelementptr inbounds %struct.stat, %struct.stat* %5, i32 0, i32 0
%95 = load i32, i32* %94
%96 = load i32, i32* @S_IWGRP
%97 = load i32, i32* @S_IWOTH
%98 = or i32 %96, %97
%99 = and i32 %95, %98
%100 = icmp ne i32 %99, 0
br i1 %100, label %101, label %105
101: ; preds = %93
%102 = load i32, i32* @stderr
%103 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%104 = call i32 (i32, i8*, ...) @fprintf(i32 %102, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), i8* %103)
store i32 0, i32* %2
br label %107
105: ; preds = %93
br label %48
106: ; preds = %48
store i32 1, i32* %2
br label %107
107: ; preds = %106, %101, %89, %83, %43, %32, %26, %19, %10
%108 = load i32, i32* %2
ret i32 %108
}

LLVM IR (-O2):
%struct.stat = type { i32, i64 }
@stderr = global i32 0
@.str = [24 x i8] c"Pathname '%s' too long\0A\00"
@.str.1 = [31 x i8] c"Unsafe path '%s' not absolute\0A\00"
@.str.2 = [2 x i8] c"/\00"
@.str.3 = [5 x i8] c"stat\00"
@.str.4 = [54 x i8] c"SECURITY ALERT: Root directory (/) not owned by root\0A\00"
@S_IWGRP = global i32 0
@S_IWOTH = global i32 0
@.str.5 = [63 x i8] c"SECURITY ALERT: Root directory (/) writable by group or other\0A\00"
@.str.6 = [40 x i8] c"SECURITY ALERT: '%s' not owned by root\0A\00"
@.str.7 = [49 x i8] c"SECURITY ALERT: '%s' writable by group or other\0A\00"
define i32 @PathOK(i8* %0) {
%2 = alloca [512 x i8]
%3 = alloca %struct.stat
%4 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%5 = bitcast %struct.stat* %3 to i8*
%6 = tail call i32 @strlen(i8* %0)
%7 = icmp sgt i32 %6, 512
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %81
11: ; preds = %1
%12 = load i8, i8* %0
%13 = icmp eq i8 %12, 47
br i1 %13, label %17, label %14
14: ; preds = %11
%15 = load i32, i32* @stderr
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i8* %0)
br label %81
17: ; preds = %11
%18 = call i64 @stat(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), %struct.stat* %3)
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %81
22: ; preds = %17
%23 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 1
%24 = load i64, i64* %23
%25 = icmp eq i64 %24, 0
br i1 %25, label %29, label %26
26: ; preds = %22
%27 = load i32, i32* @stderr
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0))
br label %81
29: ; preds = %22
%30 = getelementptr inbounds %struct.stat, %struct.stat* %3, i64 0, i32 0
%31 = load i32, i32* %30
%32 = load i32, i32* @S_IWGRP
%33 = load i32, i32* @S_IWOTH
%34 = or i32 %33, %32
%35 = and i32 %34, %31
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %29
%38 = ptrtoint i8* %0 to i64
br label %42
39: ; preds = %29
%40 = load i32, i32* @stderr
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
br label %81
42: ; preds = %37, %71
%43 = phi i8* [ %55, %71 ], [ %0, %37 ]
%44 = load i8, i8* %43
%45 = icmp eq i8 %44, 0
br i1 %45, label %81, label %46
46: ; preds = %42
%47 = getelementptr inbounds i8, i8* %43, i64 1
%48 = call i8* @strchr(i8* %47, i8 signext 47)
%49 = icmp eq i8* %48, null
br i1 %49, label %50, label %54
50: ; preds = %46
%51 = call i32 @strlen(i8* %0)
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, i8* %0, i64 %52
br label %54
54: ; preds = %50, %46
%55 = phi i8* [ %48, %46 ], [ %53, %50 ]
%56 = ptrtoint i8* %55 to i64
%57 = sub i64 %56, %38
%58 = trunc i64 %57 to i32
%59 = call i32 @memcpy(i8* %4, i8* %0, i32 %58)
%60 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 %57
store i8 0, i8* %60
%61 = call i64 @stat(i8* %4, %struct.stat* %3)
%62 = icmp slt i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %54
%64 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %81
65: ; preds = %54
%66 = load i64, i64* %23
%67 = icmp eq i64 %66, 0
br i1 %67, label %71, label %68
68: ; preds = %65
%69 = load i32, i32* @stderr
%70 = call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i8* %4)
br label %81
71: ; preds = %65
%72 = load i32, i32* %30
%73 = load i32, i32* @S_IWGRP
%74 = load i32, i32* @S_IWOTH
%75 = or i32 %74, %73
%76 = and i32 %75, %72
%77 = icmp eq i32 %76, 0
br i1 %77, label %42, label %78
78: ; preds = %71
%79 = load i32, i32* @stderr
%80 = call i32 (i32, i8*, ...) @fprintf(i32 %79, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0), i8* %4)
br label %81
81: ; preds = %42, %78, %68, %63, %39, %26, %20, %14, %8
%82 = phi i32 [ 0, %8 ], [ 0, %14 ], [ 0, %20 ], [ 0, %26 ], [ 0, %39 ], [ 0, %63 ], [ 0, %68 ], [ 0, %78 ], [ 1, %42 ]
ret i32 %82
}