#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*/ user;
typedef int uid_t;
struct passwd {
  int pw_uid;
};
struct group {
  int gr_gid;
};
typedef int gid_t;

/* Variables and functions */
scalar_t__ chown(char *, int, int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
struct group *getgrnam(char *);
struct passwd *getpwnam(char *);
int /*<<< orphan*/ stderr;
char *strchr(char *, char);
char *strerror(int /*<<< orphan*/);
int /*<<< orphan*/ strncpy(char *, char *, int);
scalar_t__ strtoul(char *, char **, int /*<<< orphan*/);
int chown_main(int argc, char **argv) {
  int i;
  if (argc < 3) {
    fprintf(stderr, "Usage: chown <USER>[:GROUP] <FILE1> [FILE2] ...\n");
    return 10;
  }
  char user[32];
  char *group = NULL;
  strncpy(user, argv[1], sizeof(user));
  if ((group = strchr(user, ':')) != NULL) {
    *group++ = '\0';
  } else if ((group = strchr(user, '.')) != NULL) {
    *group++ = '\0';
  }
  struct passwd *pw;
  struct group *grp = NULL;
  uid_t uid;
  gid_t gid = -1;
  pw = getpwnam(user);
  if (pw != NULL) {
    uid = pw->pw_uid;
  } else {
    char *endptr;
    uid = (int)strtoul(user, &endptr, 0);
    if (endptr == user) {
      fprintf(stderr, "No such user '%s'\n", user);
      return 10;
    }
  }
  if (group != NULL) {
    grp = getgrnam(group);
    if (grp != NULL) {
      gid = grp->gr_gid;
    } else {
      char *endptr;
      gid = (int)strtoul(group, &endptr, 0);
      if (endptr == group) {
        fprintf(stderr, "No such group '%s'\n", group);
        return 10;
      }
    }
  }
  for (i = 2; i < argc; i++) {
    if (chown(argv[i], uid, gid) < 0) {
      fprintf(stderr, "Unable to chown %s: %s\n", argv[i], strerror(errno));
      return 10;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<chown_main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    11bf <chown_main+0x3f>
mov    0x2e3d(%rip),%rax
mov    (%rax),%edi
lea    0xe54(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xa,-0x4(%rbp)
jmp    13e5 <chown_main+0x265>
movq   $0x0,-0x48(%rbp)
lea    -0x40(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    $0x20,%edx
call   1030 <strncpy@plt>
lea    -0x40(%rbp),%rdi
mov    $0x3a,%esi
call   1040 <strchr@plt>
mov    %rax,-0x48(%rbp)
cmp    $0x0,%rax
je     1210 <chown_main+0x90>
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x48(%rbp)
movb   $0x0,(%rax)
jmp    1243 <chown_main+0xc3>
lea    -0x40(%rbp),%rdi
mov    $0x2e,%esi
call   1040 <strchr@plt>
mov    %rax,-0x48(%rbp)
cmp    $0x0,%rax
je     123e <chown_main+0xbe>
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x48(%rbp)
movb   $0x0,(%rax)
jmp    1243 <chown_main+0xc3>
movq   $0x0,-0x58(%rbp)
movl   $0xffffffff,-0x60(%rbp)
lea    -0x40(%rbp),%rdi
call   1050 <getpwnam@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
je     1278 <chown_main+0xf8>
mov    -0x50(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x5c(%rbp)
jmp    12c7 <chown_main+0x147>
lea    -0x40(%rbp),%rdi
lea    -0x68(%rbp),%rsi
xor    %edx,%edx
call   1090 <strtoul@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x68(%rbp),%rax
lea    -0x40(%rbp),%rcx
cmp    %rcx,%rax
jne    12c2 <chown_main+0x142>
mov    0x2d3e(%rip),%rax
mov    (%rax),%edi
lea    -0x40(%rbp),%rdx
lea    0xd82(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xa,-0x4(%rbp)
jmp    13e5 <chown_main+0x265>
jmp    12c7 <chown_main+0x147>
cmpq   $0x0,-0x48(%rbp)
je     1349 <chown_main+0x1c9>
mov    -0x48(%rbp),%rdi
call   1070 <getgrnam@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
je     12f8 <chown_main+0x178>
mov    -0x58(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x60(%rbp)
jmp    1344 <chown_main+0x1c4>
mov    -0x48(%rbp),%rdi
lea    -0x70(%rbp),%rsi
xor    %edx,%edx
call   1090 <strtoul@plt>
mov    %eax,-0x60(%rbp)
mov    -0x70(%rbp),%rax
cmp    -0x48(%rbp),%rax
jne    133f <chown_main+0x1bf>
mov    0x2cc1(%rip),%rax
mov    (%rax),%edi
mov    -0x48(%rbp),%rdx
lea    0xd18(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xa,-0x4(%rbp)
jmp    13e5 <chown_main+0x265>
jmp    1344 <chown_main+0x1c4>
jmp    1349 <chown_main+0x1c9>
movl   $0x2,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13de <chown_main+0x25e>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x5c(%rbp),%esi
mov    -0x60(%rbp),%edx
call   1080 <chown@plt>
cmp    $0x0,%rax
jge    13cb <chown_main+0x24b>
mov    0x2c5c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x78(%rbp)
mov    0x2c38(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
mov    -0x7c(%rbp),%edi
mov    -0x78(%rbp),%rdx
mov    %rax,%rcx
lea    0xca0(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xa,-0x4(%rbp)
jmp    13e5 <chown_main+0x265>
jmp    13d0 <chown_main+0x250>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1350 <chown_main+0x1d0>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chown_main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
cmp    $0x2,%edi
jg     11af <chown_main+0x2f>
mov    0x2e46(%rip),%rax
mov    (%rax),%edi
lea    0xe5d(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    130f <chown_main+0x18f>
mov    %rsi,%r12
mov    %edi,%ebp
mov    0x8(%rsi),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x20,%edx
call   1030 <strncpy@plt>
mov    %rbx,%rdi
mov    $0x3a,%esi
call   1040 <strchr@plt>
mov    %rax,%r15
test   %rax,%rax
jne    11fa <chown_main+0x7a>
lea    0x10(%rsp),%rdi
mov    $0x2e,%esi
call   1040 <strchr@plt>
mov    %rax,%r15
test   %rax,%rax
je     12d6 <chown_main+0x156>
movb   $0x0,(%r15)
add    $0x1,%r15
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <getpwnam@plt>
test   %rax,%rax
je     122e <chown_main+0xae>
mov    (%rax),%r13d
test   %r15,%r15
je     1250 <chown_main+0xd0>
mov    %r15,%rdi
call   1070 <getgrnam@plt>
test   %rax,%rax
je     1258 <chown_main+0xd8>
mov    (%rax),%r14d
jmp    1275 <chown_main+0xf5>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %edx,%edx
call   1090 <strtoul@plt>
cmp    %rbx,0x8(%rsp)
je     12de <chown_main+0x15e>
mov    %rax,%r13
test   %r15,%r15
jne    121c <chown_main+0x9c>
mov    $0xffffffff,%r14d
jmp    1275 <chown_main+0xf5>
lea    0x8(%rsp),%rsi
mov    %r15,%rdi
xor    %edx,%edx
call   1090 <strtoul@plt>
cmp    %r15,0x8(%rsp)
je     12f5 <chown_main+0x175>
mov    %rax,%r14
mov    %ebp,%ebx
mov    $0x2,%ebp
nopl   0x0(%rax)
mov    (%r12,%rbp,8),%rdi
mov    %r13d,%esi
mov    %r14d,%edx
call   1080 <chown@plt>
test   %rax,%rax
js     12a1 <chown_main+0x121>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1280 <chown_main+0x100>
xor    %eax,%eax
jmp    1314 <chown_main+0x194>
mov    %ebp,%eax
mov    0x2d36(%rip),%rcx
mov    (%rcx),%ebx
mov    (%r12,%rax,8),%rbp
mov    0x2d21(%rip),%rax
mov    (%rax),%edi
call   10a0 <strerror@plt>
lea    0xd93(%rip),%rsi
mov    %ebx,%edi
mov    %rbp,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    130f <chown_main+0x18f>
xor    %r15d,%r15d
jmp    1202 <chown_main+0x82>
mov    0x2cfb(%rip),%rax
mov    (%rax),%edi
lea    0xd43(%rip),%rsi
lea    0x10(%rsp),%rdx
jmp    1308 <chown_main+0x188>
mov    0x2ce4(%rip),%rax
mov    (%rax),%edi
lea    0xd3f(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0xa,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.passwd = type { i32 }
%struct.group = type { i32 }
@stderr = global i32 0
@.str = [49 x i8] c"Usage: chown <USER>[:GROUP] <FILE1> [FILE2] ...\0A\00"
@.str.1 = [19 x i8] c"No such user '%s'\0A\00"
@.str.2 = [20 x i8] c"No such group '%s'\0A\00"
@.str.3 = [24 x i8] c"Unable to chown %s: %s\0A\00"
@errno = global i32 0
define i32 @chown_main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [32 x i8]
%8 = alloca i8*
%9 = alloca %struct.passwd*
%10 = alloca %struct.group*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i8*
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 3
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
store i32 10, i32* %3
br label %116
20: ; preds = %2
store i8* null, i8** %8
%21 = getelementptr inbounds [32 x i8], [32 x i8]* %7, i64 0, i64 0
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = call i32 @strncpy(i8* %21, i8* %24, i32 32)
%26 = getelementptr inbounds [32 x i8], [32 x i8]* %7, i64 0, i64 0
%27 = call i8* @strchr(i8* %26, i8 signext 58)
store i8* %27, i8** %8
%28 = icmp ne i8* %27, null
br i1 %28, label %29, label %32
29: ; preds = %20
%30 = load i8*, i8** %8
%31 = getelementptr inbounds i8, i8* %30, i32 1
store i8* %31, i8** %8
store i8 0, i8* %30
br label %40
32: ; preds = %20
%33 = getelementptr inbounds [32 x i8], [32 x i8]* %7, i64 0, i64 0
%34 = call i8* @strchr(i8* %33, i8 signext 46)
store i8* %34, i8** %8
%35 = icmp ne i8* %34, null
br i1 %35, label %36, label %39
36: ; preds = %32
%37 = load i8*, i8** %8
%38 = getelementptr inbounds i8, i8* %37, i32 1
store i8* %38, i8** %8
store i8 0, i8* %37
br label %39
39: ; preds = %36, %32
br label %40
40: ; preds = %39, %29
store %struct.group* null, %struct.group** %10
store i32 -1, i32* %12
%41 = getelementptr inbounds [32 x i8], [32 x i8]* %7, i64 0, i64 0
%42 = call %struct.passwd* @getpwnam(i8* %41)
store %struct.passwd* %42, %struct.passwd** %9
%43 = load %struct.passwd*, %struct.passwd** %9
%44 = icmp ne %struct.passwd* %43, null
br i1 %44, label %45, label %49
45: ; preds = %40
%46 = load %struct.passwd*, %struct.passwd** %9
%47 = getelementptr inbounds %struct.passwd, %struct.passwd* %46, i32 0, i32 0
%48 = load i32, i32* %47
store i32 %48, i32* %11
br label %61
49: ; preds = %40
%50 = getelementptr inbounds [32 x i8], [32 x i8]* %7, i64 0, i64 0
%51 = call i64 @strtoul(i8* %50, i8** %13, i32 0)
%52 = trunc i64 %51 to i32
store i32 %52, i32* %11
%53 = load i8*, i8** %13
%54 = getelementptr inbounds [32 x i8], [32 x i8]* %7, i64 0, i64 0
%55 = icmp eq i8* %53, %54
br i1 %55, label %56, label %60
56: ; preds = %49
%57 = load i32, i32* @stderr
%58 = getelementptr inbounds [32 x i8], [32 x i8]* %7, i64 0, i64 0
%59 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %58)
store i32 10, i32* %3
br label %116
60: ; preds = %49
br label %61
61: ; preds = %60, %45
%62 = load i8*, i8** %8
%63 = icmp ne i8* %62, null
br i1 %63, label %64, label %86
64: ; preds = %61
%65 = load i8*, i8** %8
%66 = call %struct.group* @getgrnam(i8* %65)
store %struct.group* %66, %struct.group** %10
%67 = load %struct.group*, %struct.group** %10
%68 = icmp ne %struct.group* %67, null
br i1 %68, label %69, label %73
69: ; preds = %64
%70 = load %struct.group*, %struct.group** %10
%71 = getelementptr inbounds %struct.group, %struct.group* %70, i32 0, i32 0
%72 = load i32, i32* %71
store i32 %72, i32* %12
br label %85
73: ; preds = %64
%74 = load i8*, i8** %8
%75 = call i64 @strtoul(i8* %74, i8** %14, i32 0)
%76 = trunc i64 %75 to i32
store i32 %76, i32* %12
%77 = load i8*, i8** %14
%78 = load i8*, i8** %8
%79 = icmp eq i8* %77, %78
br i1 %79, label %80, label %84
80: ; preds = %73
%81 = load i32, i32* @stderr
%82 = load i8*, i8** %8
%83 = call i32 (i32, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i8* %82)
store i32 10, i32* %3
br label %116
84: ; preds = %73
br label %85
85: ; preds = %84, %69
br label %86
86: ; preds = %85, %61
store i32 2, i32* %6
br label %87
87: ; preds = %112, %86
%88 = load i32, i32* %6
%89 = load i32, i32* %4
%90 = icmp slt i32 %88, %89
br i1 %90, label %91, label %115
91: ; preds = %87
%92 = load i8**, i8*** %5
%93 = load i32, i32* %6
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8*, i8** %92, i64 %94
%96 = load i8*, i8** %95
%97 = load i32, i32* %11
%98 = load i32, i32* %12
%99 = call i64 @chown(i8* %96, i32 %97, i32 %98)
%100 = icmp slt i64 %99, 0
br i1 %100, label %101, label %111
101: ; preds = %91
%102 = load i32, i32* @stderr
%103 = load i8**, i8*** %5
%104 = load i32, i32* %6
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i8*, i8** %103, i64 %105
%107 = load i8*, i8** %106
%108 = load i32, i32* @errno
%109 = call i8* @strerror(i32 %108)
%110 = call i32 (i32, i8*, ...) @fprintf(i32 %102, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i8* %107, i8* %109)
store i32 10, i32* %3
br label %116
111: ; preds = %91
br label %112
112: ; preds = %111
%113 = load i32, i32* %6
%114 = add nsw i32 %113, 1
store i32 %114, i32* %6
br label %87
115: ; preds = %87
store i32 0, i32* %3
br label %116
116: ; preds = %115, %101, %80, %56, %17
%117 = load i32, i32* %3
ret i32 %117
}

LLVM IR (-O2):
%struct.group = type { i32 }
%struct.passwd = type { i32 }
@stderr = global i32 0
@.str = [49 x i8] c"Usage: chown <USER>[:GROUP] <FILE1> [FILE2] ...\0A\00"
@.str.1 = [19 x i8] c"No such user '%s'\0A\00"
@.str.2 = [20 x i8] c"No such group '%s'\0A\00"
@.str.3 = [24 x i8] c"Unable to chown %s: %s\0A\00"
@errno = global i32 0
define i32 @chown_main(i32 %0, i8** nocapture %1) {
%3 = alloca [32 x i8]
%4 = alloca i8*
%5 = alloca i8*
%6 = icmp slt i32 %0, 3
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
br label %81
10: ; preds = %2
%11 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = call i32 @strncpy(i8* %11, i8* %13, i32 32)
%15 = call i8* @strchr(i8* %11, i8 signext 58)
%16 = icmp eq i8* %15, null
br i1 %16, label %17, label %20
17: ; preds = %10
%18 = call i8* @strchr(i8* %11, i8 signext 46)
%19 = icmp eq i8* %18, null
br i1 %19, label %23, label %20
20: ; preds = %17, %10
%21 = phi i8* [ %15, %10 ], [ %18, %17 ]
%22 = getelementptr inbounds i8, i8* %21, i64 1
store i8 0, i8* %21
br label %23
23: ; preds = %20, %17
%24 = phi i8* [ null, %17 ], [ %22, %20 ]
%25 = call %struct.passwd* @getpwnam(i8* %11)
%26 = icmp eq %struct.passwd* %25, null
br i1 %26, label %30, label %27
27: ; preds = %23
%28 = getelementptr inbounds %struct.passwd, %struct.passwd* %25, i64 0, i32 0
%29 = load i32, i32* %28
br label %40
30: ; preds = %23
%31 = bitcast i8** %4 to i8*
%32 = call i64 @strtoul(i8* %11, i8** %4, i32 0)
%33 = load i8*, i8** %4
%34 = icmp eq i8* %33, %11
br i1 %34, label %35, label %38
35: ; preds = %30
%36 = load i32, i32* @stderr
%37 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %11)
br label %79
38: ; preds = %30
%39 = trunc i64 %32 to i32
br label %40
40: ; preds = %38, %27
%41 = phi i32 [ %29, %27 ], [ %39, %38 ]
%42 = icmp eq i8* %24, null
br i1 %42, label %59, label %43
43: ; preds = %40
%44 = call %struct.group* @getgrnam(i8* %24)
%45 = icmp eq %struct.group* %44, null
br i1 %45, label %49, label %46
46: ; preds = %43
%47 = getelementptr inbounds %struct.group, %struct.group* %44, i64 0, i32 0
%48 = load i32, i32* %47
br label %59
49: ; preds = %43
%50 = bitcast i8** %5 to i8*
%51 = call i64 @strtoul(i8* %24, i8** %5, i32 0)
%52 = load i8*, i8** %5
%53 = icmp eq i8* %52, %24
br i1 %53, label %54, label %57
54: ; preds = %49
%55 = load i32, i32* @stderr
%56 = call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i8* %24)
br label %79
57: ; preds = %49
%58 = trunc i64 %51 to i32
br label %59
59: ; preds = %40, %46, %57
%60 = phi i32 [ %48, %46 ], [ -1, %40 ], [ %58, %57 ]
%61 = zext i32 %0 to i64
br label %62
62: ; preds = %59, %76
%63 = phi i64 [ 2, %59 ], [ %77, %76 ]
%64 = getelementptr inbounds i8*, i8** %1, i64 %63
%65 = load i8*, i8** %64
%66 = call i64 @chown(i8* %65, i32 %41, i32 %60)
%67 = icmp slt i64 %66, 0
br i1 %67, label %68, label %76
68: ; preds = %62
%69 = and i64 %63, 4294967295
%70 = getelementptr inbounds i8*, i8** %1, i64 %69
%71 = load i32, i32* @stderr
%72 = load i8*, i8** %70
%73 = load i32, i32* @errno
%74 = call i8* @strerror(i32 %73)
%75 = call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i8* %72, i8* %74)
br label %79
76: ; preds = %62
%77 = add nuw nsw i64 %63, 1
%78 = icmp eq i64 %77, %61
br i1 %78, label %79, label %62
79: ; preds = %76, %54, %35, %68
%80 = phi i32 [ 10, %68 ], [ 10, %54 ], [ 10, %35 ], [ 0, %76 ]
br label %81
81: ; preds = %79, %7
%82 = phi i32 [ 10, %7 ], [ %80, %79 ]
ret i32 %82
}