#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*/ time_t;
typedef char **MYSQL_ROW;
typedef int /*<<< orphan*/ MYSQL_RES;
typedef int /*<<< orphan*/ MYSQL;

/* Variables and functions */
int /*<<< orphan*/ LOG_INFO;
int /*<<< orphan*/ atoi(char *);
int /*<<< orphan*/ deleteImageWithID(char *);
double difftime(int /*<<< orphan*/, int /*<<< orphan*/);
char **mysql_fetch_row(int /*<<< orphan*/ *);
int /*<<< orphan*/ mysql_free_result(int /*<<< orphan*/ *);
int mysql_num_rows(int /*<<< orphan*/ *);
scalar_t__ mysql_query(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ *mysql_store_result(int /*<<< orphan*/ *);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ syslog(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
scalar_t__ unreserveIngred(int /*<<< orphan*/ *, char **);
int cleanupExpired(MYSQL *sql_connection) {
  int num_rows, i;
  MYSQL_ROW row;
  MYSQL_RES *result;
  int *ingred;
  time_t currentTime, orderTime;
  double timePassed;
  char *baseUpdateExpired =
      "UPDATE orderTable SET expired='true', pickedUp='true' WHERE orderID='";
  char *fetchExpired =
      "SELECT Ing0, Ing1, Ing2, Ing3, Ing4, Ing5, orderID, orderTime FROM "
      "orderTable WHERE expired='false' AND pickedUP='false'";
  char *fetchPickedUp = "SELECT orderID FROM orderTable WHERE expired='false' "
                        "AND pickedUp='true'";
  char queryString[300];
  if (mysql_query(sql_connection, fetchExpired)) {
    syslog(LOG_INFO, "ERROR: Unable to query SQL to find expired orders");
    return 1;
  }
  result = mysql_store_result(sql_connection);
  if (result == NULL) {
    syslog(LOG_INFO, "ERROR: Unable to get expired results.");
    return 1;
  }
  num_rows = mysql_num_rows(result);
  if (num_rows < 0) {
    return 1;
  }
  while (row = mysql_fetch_row(result)) {
    currentTime = time(NULL);
    orderTime = atoi(row[7]);
    timePassed = difftime(currentTime, orderTime);
    if (timePassed < 1) {
      return 1;
    } else if (timePassed > 600) {
      strcpy(queryString, baseUpdateExpired);
      strcat(queryString, row[6]);
      strcat(queryString, "'");
      syslog(LOG_INFO,
             "Reservation time expired. Setting barcode %s to expired...",
             row[6]);
      if (mysql_query(sql_connection, queryString)) {
        syslog(LOG_INFO, "ERROR: Unable to update SQL");
      } else {
        if (unreserveIngred(sql_connection, row)) {
          syslog(LOG_INFO,
                 "ERROR: Error withdrawing reservation for barcode: %s",
                 row[6]);
        }
        deleteImageWithID(row[6]);
      }
    } else {
    }
  }
  mysql_free_result(result);
  return 0;
}


x86 assembly (clang, -O0):
<cleanupExpired>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
mov    %rdi,-0x10(%rbp)
lea    0xe2a(%rip),%rax
mov    %rax,-0x48(%rbp)
lea    0xe65(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xed3(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x50(%rbp),%rsi
call   1040 <mysql_query@plt>
cmp    $0x0,%rax
je     123a <cleanupExpired+0x6a>
mov    0x2dc2(%rip),%rax
mov    (%rax),%edi
lea    0xef1(%rip),%rsi
mov    $0x0,%al
call   1080 <syslog@plt>
movl   $0x1,-0x4(%rbp)
jmp    1408 <cleanupExpired+0x238>
mov    -0x10(%rbp),%rdi
call   10f0 <mysql_store_result@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1275 <cleanupExpired+0xa5>
mov    0x2d87(%rip),%rax
mov    (%rax),%edi
lea    0xee8(%rip),%rsi
mov    $0x0,%al
call   1080 <syslog@plt>
movl   $0x1,-0x4(%rbp)
jmp    1408 <cleanupExpired+0x238>
mov    -0x28(%rbp),%rdi
call   10d0 <mysql_num_rows@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1297 <cleanupExpired+0xc7>
movl   $0x1,-0x4(%rbp)
jmp    1408 <cleanupExpired+0x238>
jmp    129c <cleanupExpired+0xcc>
mov    -0x28(%rbp),%rdi
call   1050 <mysql_fetch_row@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     13f8 <cleanupExpired+0x228>
xor    %eax,%eax
mov    %eax,%edi
call   1070 <time@plt>
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%rax
mov    0x38(%rax),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x38(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1060 <difftime@plt>
movsd  %xmm0,-0x40(%rbp)
movsd  0xd19(%rip),%xmm0
ucomisd -0x40(%rbp),%xmm0
jbe    12fe <cleanupExpired+0x12e>
movl   $0x1,-0x4(%rbp)
jmp    1408 <cleanupExpired+0x238>
movsd  -0x40(%rbp),%xmm0
movsd  0xcfd(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    13e9 <cleanupExpired+0x219>
lea    -0x190(%rbp),%rdi
mov    -0x48(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x190(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    0x30(%rax),%rsi
call   10b0 <strcat@plt>
lea    -0x190(%rbp),%rdi
lea    0xd0d(%rip),%rsi
call   10b0 <strcat@plt>
mov    0x2c8d(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rax
mov    0x30(%rax),%rdx
lea    0xe0c(%rip),%rsi
mov    $0x0,%al
call   1080 <syslog@plt>
mov    -0x10(%rbp),%rdi
lea    -0x190(%rbp),%rsi
call   1040 <mysql_query@plt>
cmp    $0x0,%rax
je     13a1 <cleanupExpired+0x1d1>
mov    0x2c54(%rip),%rax
mov    (%rax),%edi
lea    0xe16(%rip),%rsi
mov    $0x0,%al
call   1080 <syslog@plt>
jmp    13e4 <cleanupExpired+0x214>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   10c0 <unreserveIngred@plt>
cmp    $0x0,%rax
je     13d7 <cleanupExpired+0x207>
mov    0x2c21(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rax
mov    0x30(%rax),%rdx
lea    0xdf7(%rip),%rsi
mov    $0x0,%al
call   1080 <syslog@plt>
mov    -0x20(%rbp),%rax
mov    0x30(%rax),%rdi
call   10e0 <deleteImageWithID@plt>
jmp    13ee <cleanupExpired+0x21e>
jmp    13ee <cleanupExpired+0x21e>
jmp    13f3 <cleanupExpired+0x223>
jmp    129c <cleanupExpired+0xcc>
mov    -0x28(%rbp),%rdi
call   1090 <mysql_free_result@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cleanupExpired>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
mov    %rdi,%r14
lea    0xe6b(%rip),%rsi
call   1040 <mysql_query@plt>
test   %rax,%rax
je     1225 <cleanupExpired+0x55>
mov    0x2de4(%rip),%rax
mov    (%rax),%edi
lea    0xeca(%rip),%rsi
xor    %eax,%eax
call   1080 <syslog@plt>
mov    $0x1,%ecx
mov    %ecx,%eax
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r14,%rdi
call   10f0 <mysql_store_result@plt>
test   %rax,%rax
je     1357 <cleanupExpired+0x187>
mov    %rax,%r12
mov    %rax,%rdi
call   10d0 <mysql_num_rows@plt>
mov    $0x1,%ecx
test   %eax,%eax
js     1211 <cleanupExpired+0x41>
mov    %r12,%rdi
call   1050 <mysql_fetch_row@plt>
test   %rax,%rax
je     136c <cleanupExpired+0x19c>
mov    %rax,%r13
mov    0x2d7b(%rip),%rbp
jmp    1295 <cleanupExpired+0xc5>
nopw   0x0(%rax,%rax,1)
mov    0x0(%rbp),%edi
lea    0xee8(%rip),%rsi
xor    %eax,%eax
call   1080 <syslog@plt>
mov    %r12,%rdi
call   1050 <mysql_fetch_row@plt>
mov    %rax,%r13
test   %rax,%rax
je     136c <cleanupExpired+0x19c>
xor    %edi,%edi
call   1070 <time@plt>
mov    %eax,%r15d
mov    0x38(%r13),%rdi
call   10a0 <atoi@plt>
mov    %r15d,%edi
mov    %eax,%esi
call   1060 <difftime@plt>
movsd  0xd46(%rip),%xmm1
ucomisd %xmm0,%xmm1
ja     120c <cleanupExpired+0x3c>
ucomisd 0xd3c(%rip),%xmm0
jbe    1281 <cleanupExpired+0xb1>
mov    %rsp,%rbx
mov    %rbx,%rdi
lea    0xd35(%rip),%rsi
call   1030 <strcpy@plt>
mov    0x30(%r13),%rsi
mov    %rbx,%rdi
call   10b0 <strcat@plt>
mov    %rbx,%rdi
lea    0xd5e(%rip),%rsi
call   10b0 <strcat@plt>
mov    0x0(%rbp),%edi
mov    0x30(%r13),%rdx
lea    0xe1e(%rip),%rsi
xor    %eax,%eax
call   1080 <syslog@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <mysql_query@plt>
test   %rax,%rax
jne    1270 <cleanupExpired+0xa0>
mov    %r14,%rdi
mov    %r13,%rsi
call   10c0 <unreserveIngred@plt>
test   %rax,%rax
je     1349 <cleanupExpired+0x179>
mov    0x0(%rbp),%edi
mov    0x30(%r13),%rdx
lea    0xe3c(%rip),%rsi
xor    %eax,%eax
call   1080 <syslog@plt>
mov    0x30(%r13),%rdi
call   10e0 <deleteImageWithID@plt>
jmp    1281 <cleanupExpired+0xb1>
mov    0x2c82(%rip),%rax
mov    (%rax),%edi
lea    0xd9a(%rip),%rsi
jmp    1205 <cleanupExpired+0x35>
mov    %r12,%rdi
call   1090 <mysql_free_result@plt>
xor    %ecx,%ecx
jmp    1211 <cleanupExpired+0x41>

LLVM IR (-O0):
@.str = [70 x i8] c"UPDATE orderTable SET expired='true', pickedUp='true' WHERE orderID='\00"
@.str.1 = [121 x i8] c"SELECT Ing0, Ing1, Ing2, Ing3, Ing4, Ing5, orderID, orderTime FROM orderTable WHERE expired='false' AND pickedUP='false'\00"
@.str.2 = [73 x i8] c"SELECT orderID FROM orderTable WHERE expired='false' AND pickedUp='true'\00"
@LOG_INFO = global i32 0
@.str.3 = [50 x i8] c"ERROR: Unable to query SQL to find expired orders\00"
@.str.4 = [38 x i8] c"ERROR: Unable to get expired results.\00"
@.str.5 = [2 x i8] c"'\00"
@.str.6 = [59 x i8] c"Reservation time expired. Setting barcode %s to expired...\00"
@.str.7 = [28 x i8] c"ERROR: Unable to update SQL\00"
@.str.8 = [53 x i8] c"ERROR: Error withdrawing reservation for barcode: %s\00"
define i32 @cleanupExpired(i32* %0) {
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
%11 = alloca double
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca [300 x i8]
store i32* %0, i32** %3
store i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0), i8** %12
store i8* getelementptr inbounds ([121 x i8], [121 x i8]* @.str.1, i64 0, i64 0), i8** %13
store i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.2, i64 0, i64 0), i8** %14
%16 = load i32*, i32** %3
%17 = load i8*, i8** %13
%18 = call i64 @mysql_query(i32* %16, i8* %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %1
%21 = load i32, i32* @LOG_INFO
%22 = call i32 (i32, i8*, ...) @syslog(i32 %21, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %2
br label %103
23: ; preds = %1
%24 = load i32*, i32** %3
%25 = call i32* @mysql_store_result(i32* %24)
store i32* %25, i32** %7
%26 = load i32*, i32** %7
%27 = icmp eq i32* %26, null
br i1 %27, label %28, label %31
28: ; preds = %23
%29 = load i32, i32* @LOG_INFO
%30 = call i32 (i32, i8*, ...) @syslog(i32 %29, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
store i32 1, i32* %2
br label %103
31: ; preds = %23
%32 = load i32*, i32** %7
%33 = call i32 @mysql_num_rows(i32* %32)
store i32 %33, i32* %4
%34 = load i32, i32* %4
%35 = icmp slt i32 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %31
store i32 1, i32* %2
br label %103
37: ; preds = %31
br label %38
38: ; preds = %99, %37
%39 = load i32*, i32** %7
%40 = call i8** @mysql_fetch_row(i32* %39)
store i8** %40, i8*** %6
%41 = icmp ne i8** %40, null
br i1 %41, label %42, label %100
42: ; preds = %38
%43 = call i32 @time(i32* null)
store i32 %43, i32* %9
%44 = load i8**, i8*** %6
%45 = getelementptr inbounds i8*, i8** %44, i64 7
%46 = load i8*, i8** %45
%47 = call i32 @atoi(i8* %46)
store i32 %47, i32* %10
%48 = load i32, i32* %9
%49 = load i32, i32* %10
%50 = call double @difftime(i32 %48, i32 %49)
store double %50, double* %11
%51 = load double, double* %11
%52 = fcmp olt double %51, 1.000000e+00
br i1 %52, label %53, label %54
53: ; preds = %42
store i32 1, i32* %2
br label %103
54: ; preds = %42
%55 = load double, double* %11
%56 = fcmp ogt double %55, 6.000000e+02
br i1 %56, label %57, label %97
57: ; preds = %54
%58 = getelementptr inbounds [300 x i8], [300 x i8]* %15, i64 0, i64 0
%59 = load i8*, i8** %12
%60 = call i32 @strcpy(i8* %58, i8* %59)
%61 = getelementptr inbounds [300 x i8], [300 x i8]* %15, i64 0, i64 0
%62 = load i8**, i8*** %6
%63 = getelementptr inbounds i8*, i8** %62, i64 6
%64 = load i8*, i8** %63
%65 = call i32 @strcat(i8* %61, i8* %64)
%66 = getelementptr inbounds [300 x i8], [300 x i8]* %15, i64 0, i64 0
%67 = call i32 @strcat(i8* %66, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%68 = load i32, i32* @LOG_INFO
%69 = load i8**, i8*** %6
%70 = getelementptr inbounds i8*, i8** %69, i64 6
%71 = load i8*, i8** %70
%72 = call i32 (i32, i8*, ...) @syslog(i32 %68, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.6, i64 0, i64 0), i8* %71)
%73 = load i32*, i32** %3
%74 = getelementptr inbounds [300 x i8], [300 x i8]* %15, i64 0, i64 0
%75 = call i64 @mysql_query(i32* %73, i8* %74)
%76 = icmp ne i64 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %57
%78 = load i32, i32* @LOG_INFO
%79 = call i32 (i32, i8*, ...) @syslog(i32 %78, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0))
br label %96
80: ; preds = %57
%81 = load i32*, i32** %3
%82 = load i8**, i8*** %6
%83 = call i64 @unreserveIngred(i32* %81, i8** %82)
%84 = icmp ne i64 %83, 0
br i1 %84, label %85, label %91
85: ; preds = %80
%86 = load i32, i32* @LOG_INFO
%87 = load i8**, i8*** %6
%88 = getelementptr inbounds i8*, i8** %87, i64 6
%89 = load i8*, i8** %88
%90 = call i32 (i32, i8*, ...) @syslog(i32 %86, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0), i8* %89)
br label %91
91: ; preds = %85, %80
%92 = load i8**, i8*** %6
%93 = getelementptr inbounds i8*, i8** %92, i64 6
%94 = load i8*, i8** %93
%95 = call i32 @deleteImageWithID(i8* %94)
br label %96
96: ; preds = %91, %77
br label %98
97: ; preds = %54
br label %98
98: ; preds = %97, %96
br label %99
99: ; preds = %98
br label %38
100: ; preds = %38
%101 = load i32*, i32** %7
%102 = call i32 @mysql_free_result(i32* %101)
store i32 0, i32* %2
br label %103
103: ; preds = %100, %53, %36, %28, %20
%104 = load i32, i32* %2
ret i32 %104
}

LLVM IR (-O2):
@.str = [70 x i8] c"UPDATE orderTable SET expired='true', pickedUp='true' WHERE orderID='\00"
@.str.1 = [121 x i8] c"SELECT Ing0, Ing1, Ing2, Ing3, Ing4, Ing5, orderID, orderTime FROM orderTable WHERE expired='false' AND pickedUP='false'\00"
@LOG_INFO = global i32 0
@.str.3 = [50 x i8] c"ERROR: Unable to query SQL to find expired orders\00"
@.str.4 = [38 x i8] c"ERROR: Unable to get expired results.\00"
@.str.5 = [2 x i8] c"'\00"
@.str.6 = [59 x i8] c"Reservation time expired. Setting barcode %s to expired...\00"
@.str.7 = [28 x i8] c"ERROR: Unable to update SQL\00"
@.str.8 = [53 x i8] c"ERROR: Error withdrawing reservation for barcode: %s\00"
define i32 @cleanupExpired(i32* %0) {
%2 = alloca [300 x i8]
%3 = getelementptr inbounds [300 x i8], [300 x i8]* %2, i64 0, i64 0
%4 = tail call i64 @mysql_query(i32* %0, i8* getelementptr inbounds ([121 x i8], [121 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, i32* @LOG_INFO
%8 = tail call i32 (i32, i8*, ...) @syslog(i32 %7, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0))
br label %60
9: ; preds = %1
%10 = tail call i32* @mysql_store_result(i32* %0)
%11 = icmp eq i32* %10, null
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, i32* @LOG_INFO
%14 = tail call i32 (i32, i8*, ...) @syslog(i32 %13, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
br label %60
15: ; preds = %9
%16 = tail call i32 @mysql_num_rows(i32* %10)
%17 = icmp slt i32 %16, 0
br i1 %17, label %60, label %18
18: ; preds = %15
%19 = call i8** @mysql_fetch_row(i32* %10)
%20 = icmp eq i8** %19, null
br i1 %20, label %58, label %21
21: ; preds = %18, %55
%22 = phi i8** [ %56, %55 ], [ %19, %18 ]
%23 = call i32 @time(i32* null)
%24 = getelementptr inbounds i8*, i8** %22, i64 7
%25 = load i8*, i8** %24
%26 = call i32 @atoi(i8* %25)
%27 = call double @difftime(i32 %23, i32 %26)
%28 = fcmp olt double %27, 1.000000e+00
br i1 %28, label %60, label %29
29: ; preds = %21
%30 = fcmp ogt double %27, 6.000000e+02
br i1 %30, label %31, label %55
31: ; preds = %29
%32 = call i32 @strcpy(i8* %3, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0))
%33 = getelementptr inbounds i8*, i8** %22, i64 6
%34 = load i8*, i8** %33
%35 = call i32 @strcat(i8* %3, i8* %34)
%36 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%37 = load i32, i32* @LOG_INFO
%38 = load i8*, i8** %33
%39 = call i32 (i32, i8*, ...) @syslog(i32 %37, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.6, i64 0, i64 0), i8* %38)
%40 = call i64 @mysql_query(i32* %0, i8* %3)
%41 = icmp eq i64 %40, 0
br i1 %41, label %45, label %42
42: ; preds = %31
%43 = load i32, i32* @LOG_INFO
%44 = call i32 (i32, i8*, ...) @syslog(i32 %43, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0))
br label %55
45: ; preds = %31
%46 = call i64 @unreserveIngred(i32* %0, i8** %22)
%47 = icmp eq i64 %46, 0
br i1 %47, label %52, label %48
48: ; preds = %45
%49 = load i32, i32* @LOG_INFO
%50 = load i8*, i8** %33
%51 = call i32 (i32, i8*, ...) @syslog(i32 %49, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.8, i64 0, i64 0), i8* %50)
br label %52
52: ; preds = %48, %45
%53 = load i8*, i8** %33
%54 = call i32 @deleteImageWithID(i8* %53)
br label %55
55: ; preds = %52, %42, %29
%56 = call i8** @mysql_fetch_row(i32* %10)
%57 = icmp eq i8** %56, null
br i1 %57, label %58, label %21
58: ; preds = %55, %18
%59 = call i32 @mysql_free_result(i32* %10)
br label %60
60: ; preds = %21, %15, %58, %12, %6
%61 = phi i32 [ 1, %6 ], [ 1, %12 ], [ 0, %58 ], [ 1, %15 ], [ 1, %21 ]
ret i32 %61
}