#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;
  scalar_t__ st_gid;
};

/* Variables and functions */
int EACCES;
int ENOENT;
int S_IRGRP;
int S_IROTH;
int S_IRUSR;
scalar_t__ S_ISDIR(int);
int errno;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ geteuid();
scalar_t__ getgid();
int stat(char const *, struct stat *);
int /*<<< orphan*/ stderr;
int services_check_file(const char *filename) {
  struct stat buffer;
  int status;
  status = stat(filename, &buffer);
  int error = errno;
  fprintf(stderr, "\n");
  if (error == ENOENT) {
    fprintf(stderr, "File \"%s\" doen't exist.", filename);
    return -1;
  };
  if (error == EACCES) {
    fprintf(stderr, "Cannot acces the file \"%s\". Path is not searchable.",
            filename);
    return -1;
  };
  if (S_ISDIR(buffer.st_mode)) {
    fprintf(stderr, "\"%s\" is a directory and not a cube file.", filename);
    return -1;
  };
  if ((buffer.st_mode & S_IRUSR) == 0 && geteuid() == buffer.st_uid) {
    fprintf(stderr, "No sufficient permission for a user to read  \"%s\".",
            filename);
    return -1;
  } else if (geteuid() != buffer.st_uid) {
    fprintf(stderr, "Not an owner of  \"%s\".", filename);
    if ((buffer.st_mode & S_IRGRP) == 0 && getgid() == buffer.st_gid) {
      fprintf(stderr, "No sufficient permission for a group to read \"%s\".",
              filename);
      return -1;
    } else if (getgid() != buffer.st_gid) {
      fprintf(stderr, "Not in group of  \"%s\".", filename);
      if ((buffer.st_mode & S_IROTH) == 0) {
        fprintf(stderr, "No sufficient permission for others to read \"%s\".",
                filename);
        return -1;
      }
    }
  }
  if (status == 0)
    return 0;
  return -1;
}


x86 assembly (clang, -O0):
<services_check_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1060 <stat@plt>
mov    %eax,-0x2c(%rbp)
mov    0x2e5d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    0x2e59(%rip),%rax
mov    (%rax),%edi
lea    0xe78(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x30(%rbp),%eax
mov    0x2e0f(%rip),%rcx
cmp    (%rcx),%eax
jne    11c8 <services_check_file+0x78>
mov    0x2e30(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe4d(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1399 <services_check_file+0x249>
mov    -0x30(%rbp),%eax
mov    0x2e16(%rip),%rcx
cmp    (%rcx),%eax
jne    1201 <services_check_file+0xb1>
mov    0x2df7(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe2c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1399 <services_check_file+0x249>
mov    -0x28(%rbp),%edi
call   1030 <S_ISDIR@plt>
cmp    $0x0,%rax
je     123a <services_check_file+0xea>
mov    0x2dbe(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe27(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1399 <services_check_file+0x249>
mov    -0x28(%rbp),%eax
mov    0x2d74(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
jne    1287 <services_check_file+0x137>
mov    $0x0,%al
call   1040 <geteuid@plt>
cmp    -0x20(%rbp),%rax
jne    1287 <services_check_file+0x137>
mov    0x2d71(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xe03(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1399 <services_check_file+0x249>
mov    $0x0,%al
call   1040 <geteuid@plt>
cmp    -0x20(%rbp),%rax
je     1377 <services_check_file+0x227>
mov    0x2d39(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xdfe(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%eax
mov    0x2d0b(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
jne    1300 <services_check_file+0x1b0>
mov    $0x0,%al
call   1070 <getgid@plt>
cmp    -0x18(%rbp),%rax
jne    1300 <services_check_file+0x1b0>
mov    0x2cf8(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xdd4(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1399 <services_check_file+0x249>
mov    $0x0,%al
call   1070 <getgid@plt>
cmp    -0x18(%rbp),%rax
je     136d <services_check_file+0x21d>
mov    0x2cc0(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xdcf(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x28(%rbp),%eax
mov    0x2c8a(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
jne    1368 <services_check_file+0x218>
mov    0x2c90(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xdb6(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1399 <services_check_file+0x249>
jmp    136d <services_check_file+0x21d>
jmp    1372 <services_check_file+0x222>
jmp    1377 <services_check_file+0x227>
jmp    137c <services_check_file+0x22c>
cmpl   $0x0,-0x2c(%rbp)
jne    1392 <services_check_file+0x242>
movl   $0x0,-0x4(%rbp)
jmp    1399 <services_check_file+0x249>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<services_check_file>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x20,%rsp
mov    %rdi,%rbx
lea    0x8(%rsp),%rsi
call   1060 <stat@plt>
mov    %eax,%r15d
mov    0x2e5d(%rip),%rax
mov    (%rax),%ebp
mov    0x2e5c(%rip),%r12
mov    (%r12),%edi
lea    0xe79(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x2e13(%rip),%rax
cmp    (%rax),%ebp
jne    11a6 <services_check_file+0x56>
mov    (%r12),%edi
lea    0xe5e(%rip),%rsi
jmp    11db <services_check_file+0x8b>
mov    0x2e3b(%rip),%rax
cmp    (%rax),%ebp
jne    11be <services_check_file+0x6e>
mov    (%r12),%edi
lea    0xe5e(%rip),%rsi
jmp    11db <services_check_file+0x8b>
mov    0x8(%rsp),%r14d
mov    %r14d,%edi
call   1030 <S_ISDIR@plt>
test   %rax,%rax
je     11f7 <services_check_file+0xa7>
mov    (%r12),%edi
lea    0xe73(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0xffffffff,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2dba(%rip),%rax
test   %r14d,(%rax)
je     120a <services_check_file+0xba>
mov    0x10(%rsp),%rbp
jmp    1228 <services_check_file+0xd8>
xor    %eax,%eax
call   1040 <geteuid@plt>
mov    0x10(%rsp),%rbp
cmp    %rbp,%rax
jne    1228 <services_check_file+0xd8>
mov    (%r12),%edi
lea    0xe51(%rip),%rsi
jmp    11db <services_check_file+0x8b>
xor    %eax,%eax
call   1040 <geteuid@plt>
cmp    %rbp,%rax
je     12aa <services_check_file+0x15a>
mov    (%r12),%edi
lea    0xe6b(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x2d78(%rip),%rax
test   %r14d,(%rax)
je     125c <services_check_file+0x10c>
mov    0x18(%rsp),%rbp
jmp    127d <services_check_file+0x12d>
xor    %eax,%eax
call   1070 <getgid@plt>
mov    0x18(%rsp),%rbp
cmp    %rbp,%rax
jne    127d <services_check_file+0x12d>
mov    (%r12),%edi
lea    0xe49(%rip),%rsi
jmp    11db <services_check_file+0x8b>
xor    %eax,%eax
call   1070 <getgid@plt>
cmp    %rbp,%rax
je     12aa <services_check_file+0x15a>
mov    (%r12),%edi
lea    0xe60(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x2d1b(%rip),%rax
test   %r14d,(%rax)
je     12b4 <services_check_file+0x164>
neg    %r15d
sbb    %eax,%eax
jmp    11ea <services_check_file+0x9a>
mov    (%r12),%edi
lea    0xe4c(%rip),%rsi
jmp    11db <services_check_file+0x8b>

LLVM IR (-O0):
%struct.stat = type { i32, i64, i64 }
@errno = global i32 0
@stderr = global i32 0
@.str = [2 x i8] c"\0A\00"
@ENOENT = global i32 0
@.str.1 = [24 x i8] c"File \22%s\22 doen't exist.\00"
@EACCES = global i32 0
@.str.2 = [52 x i8] c"Cannot acces the file \22%s\22. Path is not searchable.\00"
@.str.3 = [41 x i8] c"\22%s\22 is a directory and not a cube file.\00"
@S_IRUSR = global i32 0
@.str.4 = [51 x i8] c"No sufficient permission for a user to read \22%s\22.\00"
@.str.5 = [23 x i8] c"Not an owner of \22%s\22.\00"
@S_IRGRP = global i32 0
@.str.6 = [51 x i8] c"No sufficient permission for a group to read \22%s\22.\00"
@.str.7 = [23 x i8] c"Not in group of \22%s\22.\00"
@S_IROTH = global i32 0
@.str.8 = [50 x i8] c"No sufficient permission for others to read \22%s\22.\00"
define i32 @services_check_file(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca %struct.stat
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %3
%7 = load i8*, i8** %3
%8 = call i32 @stat(i8* %7, %struct.stat* %4)
store i32 %8, i32* %5
%9 = load i32, i32* @errno
store i32 %9, i32* %6
%10 = load i32, i32* @stderr
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* %6
%13 = load i32, i32* @ENOENT
%14 = icmp eq i32 %12, %13
br i1 %14, label %15, label %19
15: ; preds = %1
%16 = load i32, i32* @stderr
%17 = load i8*, i8** %3
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %17)
store i32 -1, i32* %2
br label %101
19: ; preds = %1
%20 = load i32, i32* %6
%21 = load i32, i32* @EACCES
%22 = icmp eq i32 %20, %21
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = load i32, i32* @stderr
%25 = load i8*, i8** %3
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0), i8* %25)
store i32 -1, i32* %2
br label %101
27: ; preds = %19
%28 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%29 = load i32, i32* %28
%30 = call i64 @S_ISDIR(i32 %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %27
%33 = load i32, i32* @stderr
%34 = load i8*, i8** %3
%35 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i8* %34)
store i32 -1, i32* %2
br label %101
36: ; preds = %27
%37 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%38 = load i32, i32* %37
%39 = load i32, i32* @S_IRUSR
%40 = and i32 %38, %39
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %51
42: ; preds = %36
%43 = call i64 (...) @geteuid()
%44 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 1
%45 = load i64, i64* %44
%46 = icmp eq i64 %43, %45
br i1 %46, label %47, label %51
47: ; preds = %42
%48 = load i32, i32* @stderr
%49 = load i8*, i8** %3
%50 = call i32 (i32, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0), i8* %49)
store i32 -1, i32* %2
br label %101
51: ; preds = %42, %36
%52 = call i64 (...) @geteuid()
%53 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 1
%54 = load i64, i64* %53
%55 = icmp ne i64 %52, %54
br i1 %55, label %56, label %95
56: ; preds = %51
%57 = load i32, i32* @stderr
%58 = load i8*, i8** %3
%59 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i8* %58)
%60 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%61 = load i32, i32* %60
%62 = load i32, i32* @S_IRGRP
%63 = and i32 %61, %62
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %74
65: ; preds = %56
%66 = call i64 (...) @getgid()
%67 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 2
%68 = load i64, i64* %67
%69 = icmp eq i64 %66, %68
br i1 %69, label %70, label %74
70: ; preds = %65
%71 = load i32, i32* @stderr
%72 = load i8*, i8** %3
%73 = call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0), i8* %72)
store i32 -1, i32* %2
br label %101
74: ; preds = %65, %56
%75 = call i64 (...) @getgid()
%76 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 2
%77 = load i64, i64* %76
%78 = icmp ne i64 %75, %77
br i1 %78, label %79, label %93
79: ; preds = %74
%80 = load i32, i32* @stderr
%81 = load i8*, i8** %3
%82 = call i32 (i32, i8*, ...) @fprintf(i32 %80, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i8* %81)
%83 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%84 = load i32, i32* %83
%85 = load i32, i32* @S_IROTH
%86 = and i32 %84, %85
%87 = icmp eq i32 %86, 0
br i1 %87, label %88, label %92
88: ; preds = %79
%89 = load i32, i32* @stderr
%90 = load i8*, i8** %3
%91 = call i32 (i32, i8*, ...) @fprintf(i32 %89, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.8, i64 0, i64 0), i8* %90)
store i32 -1, i32* %2
br label %101
92: ; preds = %79
br label %93
93: ; preds = %92, %74
br label %94
94: ; preds = %93
br label %95
95: ; preds = %94, %51
br label %96
96: ; preds = %95
%97 = load i32, i32* %5
%98 = icmp eq i32 %97, 0
br i1 %98, label %99, label %100
99: ; preds = %96
store i32 0, i32* %2
br label %101
100: ; preds = %96
store i32 -1, i32* %2
br label %101
101: ; preds = %100, %99, %88, %70, %47, %32, %23, %15
%102 = load i32, i32* %2
ret i32 %102
}

LLVM IR (-O2):
%struct.stat = type { i32, i64, i64 }
@errno = global i32 0
@stderr = global i32 0
@.str = [2 x i8] c"\0A\00"
@ENOENT = global i32 0
@.str.1 = [24 x i8] c"File \22%s\22 doen't exist.\00"
@EACCES = global i32 0
@.str.2 = [52 x i8] c"Cannot acces the file \22%s\22. Path is not searchable.\00"
@.str.3 = [41 x i8] c"\22%s\22 is a directory and not a cube file.\00"
@S_IRUSR = global i32 0
@.str.4 = [51 x i8] c"No sufficient permission for a user to read \22%s\22.\00"
@.str.5 = [23 x i8] c"Not an owner of \22%s\22.\00"
@S_IRGRP = global i32 0
@.str.6 = [51 x i8] c"No sufficient permission for a group to read \22%s\22.\00"
@.str.7 = [23 x i8] c"Not in group of \22%s\22.\00"
@S_IROTH = global i32 0
@.str.8 = [50 x i8] c"No sufficient permission for others to read \22%s\22.\00"
define i32 @services_check_file(i8* %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = call i32 @stat(i8* %0, %struct.stat* %2)
%5 = load i32, i32* @errno
%6 = load i32, i32* @stderr
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* @ENOENT
%9 = icmp eq i32 %5, %8
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %0)
br label %79
13: ; preds = %1
%14 = load i32, i32* @EACCES
%15 = icmp eq i32 %5, %14
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, i32* @stderr
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0), i8* %0)
br label %79
19: ; preds = %13
%20 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%21 = load i32, i32* %20
%22 = tail call i64 @S_ISDIR(i32 %21)
%23 = icmp eq i64 %22, 0
br i1 %23, label %27, label %24
24: ; preds = %19
%25 = load i32, i32* @stderr
%26 = tail call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i8* %0)
br label %79
27: ; preds = %19
%28 = load i32, i32* @S_IRUSR
%29 = and i32 %28, %21
%30 = icmp eq i32 %29, 0
br i1 %30, label %34, label %31
31: ; preds = %27
%32 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 1
%33 = load i64, i64* %32
br label %42
34: ; preds = %27
%35 = tail call i64 (...) @geteuid()
%36 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 1
%37 = load i64, i64* %36
%38 = icmp eq i64 %35, %37
br i1 %38, label %39, label %42
39: ; preds = %34
%40 = load i32, i32* @stderr
%41 = tail call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0), i8* %0)
br label %79
42: ; preds = %31, %34
%43 = phi i64 [ %33, %31 ], [ %37, %34 ]
%44 = tail call i64 (...) @geteuid()
%45 = icmp eq i64 %44, %43
br i1 %45, label %76, label %46
46: ; preds = %42
%47 = load i32, i32* @stderr
%48 = tail call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i8* %0)
%49 = load i32, i32* @S_IRGRP
%50 = and i32 %49, %21
%51 = icmp eq i32 %50, 0
br i1 %51, label %55, label %52
52: ; preds = %46
%53 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 2
%54 = load i64, i64* %53
br label %63
55: ; preds = %46
%56 = tail call i64 (...) @getgid()
%57 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 2
%58 = load i64, i64* %57
%59 = icmp eq i64 %56, %58
br i1 %59, label %60, label %63
60: ; preds = %55
%61 = load i32, i32* @stderr
%62 = tail call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0), i8* %0)
br label %79
63: ; preds = %52, %55
%64 = phi i64 [ %54, %52 ], [ %58, %55 ]
%65 = tail call i64 (...) @getgid()
%66 = icmp eq i64 %65, %64
br i1 %66, label %76, label %67
67: ; preds = %63
%68 = load i32, i32* @stderr
%69 = tail call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i8* %0)
%70 = load i32, i32* @S_IROTH
%71 = and i32 %70, %21
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %76
73: ; preds = %67
%74 = load i32, i32* @stderr
%75 = tail call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.8, i64 0, i64 0), i8* %0)
br label %79
76: ; preds = %42, %63, %67
%77 = icmp ne i32 %4, 0
%78 = sext i1 %77 to i32
br label %79
79: ; preds = %76, %73, %60, %39, %24, %16, %10
%80 = phi i32 [ -1, %10 ], [ -1, %16 ], [ -1, %24 ], [ -1, %39 ], [ -1, %60 ], [ -1, %73 ], [ %78, %76 ]
ret i32 %80
}