#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*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ free(char *);
int getdelim(char **, size_t *, char, int /*<<< orphan*/ *);
int /*<<< orphan*/ sscanf(char *, char *, int *);
int /*<<< orphan*/ *strstr(char *, char *);
int get_cpu_cores(void) {
  FILE *cmdline = fopen("/proc/cpuinfo", "rb");
  char *arg = 0;
  size_t size = 0;
  int curid = -1, newid = 0, val = 0, arm = 0, prc = 0, cpu = 0, retval = 0;
  while (getdelim(&arg, &size, '\n', cmdline) != -1) {
    retval = 1;
    if (strstr(arg, "Processor") != NULL) {
      if (strstr(arg, "ARM") != NULL) {
        arm = 1;
      }
    } else if (strstr(arg, "processor") != NULL) {
      prc++;
    } else if (strstr(arg, "model name") != NULL) {
      if (strstr(arg, "ARM") != NULL) {
        arm = 1;
      }
    } else if (strstr(arg, "physical id") != NULL) {
      sscanf(arg, "physical id	:%d", &newid);
    } else if (strstr(arg, "cpu cores") != NULL) {
      arm = 0;
      if (curid != newid) {
        curid = newid;
        sscanf(arg, "cpu cores	:%d", &val);
        cpu += val;
      }
    }
  }
  free(arg);
  fclose(cmdline);
  return (retval == 1)
             ? ((arm == 1) ? ((prc > 0) ? prc : 1) : ((cpu > 0) ? cpu : 1))
             : 0;
}


x86 assembly (clang, -O0):
<get_cpu_cores>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
lea    0xe91(%rip),%rdi
lea    0xe98(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movl   $0xffffffff,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x8(%rbp),%rcx
lea    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
mov    $0xa,%edx
call   1070 <getdelim@plt>
cmp    $0xffffffff,%eax
je     132f <get_cpu_cores+0x1cf>
movl   $0x1,-0x34(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe20(%rip),%rsi
call   1080 <strstr@plt>
cmp    $0x0,%rax
je     1226 <get_cpu_cores+0xc6>
mov    -0x10(%rbp),%rdi
lea    0xe10(%rip),%rsi
call   1080 <strstr@plt>
cmp    $0x0,%rax
je     1221 <get_cpu_cores+0xc1>
movl   $0x1,-0x28(%rbp)
jmp    132a <get_cpu_cores+0x1ca>
mov    -0x10(%rbp),%rdi
lea    0xdee(%rip),%rsi
call   1080 <strstr@plt>
cmp    $0x0,%rax
je     124e <get_cpu_cores+0xee>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1325 <get_cpu_cores+0x1c5>
mov    -0x10(%rbp),%rdi
lea    0xdd0(%rip),%rsi
call   1080 <strstr@plt>
cmp    $0x0,%rax
je     128e <get_cpu_cores+0x12e>
mov    -0x10(%rbp),%rdi
lea    0xda8(%rip),%rsi
call   1080 <strstr@plt>
cmp    $0x0,%rax
je     1289 <get_cpu_cores+0x129>
movl   $0x1,-0x28(%rbp)
jmp    1320 <get_cpu_cores+0x1c0>
mov    -0x10(%rbp),%rdi
lea    0xd9b(%rip),%rsi
call   1080 <strstr@plt>
cmp    $0x0,%rax
je     12c1 <get_cpu_cores+0x161>
mov    -0x10(%rbp),%rdi
lea    0xd8d(%rip),%rsi
lea    -0x20(%rbp),%rdx
call   1050 <sscanf@plt>
jmp    131b <get_cpu_cores+0x1bb>
mov    -0x10(%rbp),%rdi
lea    0xd84(%rip),%rsi
call   1080 <strstr@plt>
cmp    $0x0,%rax
je     1316 <get_cpu_cores+0x1b6>
movl   $0x0,-0x28(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
je     1311 <get_cpu_cores+0x1b1>
mov    -0x20(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xd5b(%rip),%rsi
lea    -0x24(%rbp),%rdx
call   1050 <sscanf@plt>
mov    -0x24(%rbp),%eax
add    -0x30(%rbp),%eax
mov    %eax,-0x30(%rbp)
jmp    1316 <get_cpu_cores+0x1b6>
jmp    131b <get_cpu_cores+0x1bb>
jmp    1320 <get_cpu_cores+0x1c0>
jmp    1325 <get_cpu_cores+0x1c5>
jmp    132a <get_cpu_cores+0x1ca>
jmp    11c0 <get_cpu_cores+0x60>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rdi
call   1040 <fclose@plt>
cmpl   $0x1,-0x34(%rbp)
jne    13b5 <get_cpu_cores+0x255>
cmpl   $0x1,-0x28(%rbp)
jne    1382 <get_cpu_cores+0x222>
cmpl   $0x0,-0x2c(%rbp)
jle    136a <get_cpu_cores+0x20a>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x38(%rbp)
jmp    1377 <get_cpu_cores+0x217>
mov    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1377 <get_cpu_cores+0x217>
mov    -0x38(%rbp),%eax
mov    %eax,-0x3c(%rbp)
jmp    13aa <get_cpu_cores+0x24a>
cmpl   $0x0,-0x30(%rbp)
jle    1397 <get_cpu_cores+0x237>
mov    -0x30(%rbp),%eax
mov    %eax,-0x40(%rbp)
jmp    13a4 <get_cpu_cores+0x244>
mov    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    13a4 <get_cpu_cores+0x244>
mov    -0x40(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x44(%rbp)
jmp    13bf <get_cpu_cores+0x25f>
xor    %eax,%eax
mov    %eax,-0x44(%rbp)
jmp    13bf <get_cpu_cores+0x25f>
mov    -0x44(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_cpu_cores>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xe8b(%rip),%rdi
lea    0xe92(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,%rbx
movq   $0x0,0x10(%rsp)
movq   $0x0,0x20(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x8(%rsp)
lea    0x10(%rsp),%rdi
lea    0x20(%rsp),%rsi
mov    $0xa,%edx
mov    %rax,%rcx
call   1070 <getdelim@plt>
mov    $0x0,%ebp
mov    $0x0,%r13d
movl   $0x0,(%rsp)
mov    %eax,0x1c(%rsp)
cmp    $0xffffffff,%eax
je     12f6 <get_cpu_cores+0x196>
movl   $0xffffffff,0x4(%rsp)
ff
movl   $0x0,(%rsp)
lea    0x10(%rsp),%r14
lea    0x20(%rsp),%r15
xor    %r13d,%r13d
xor    %ebp,%ebp
jmp    1246 <get_cpu_cores+0xe6>
mov    %r12,%rdi
lea    0xe23(%rip),%rsi
call   1080 <strstr@plt>
test   %rax,%rax
je     1279 <get_cpu_cores+0x119>
mov    %r12,%rdi
lea    0xe01(%rip),%rsi
call   1080 <strstr@plt>
test   %rax,%rax
mov    $0x1,%eax
cmovne %eax,%ebp
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0xa,%edx
mov    %rbx,%rcx
call   1070 <getdelim@plt>
cmp    $0xffffffff,%eax
je     12f6 <get_cpu_cores+0x196>
mov    0x10(%rsp),%r12
mov    %r12,%rdi
lea    0xdbc(%rip),%rsi
call   1080 <strstr@plt>
test   %rax,%rax
jne    1210 <get_cpu_cores+0xb0>
mov    %r12,%rdi
lea    0xdb6(%rip),%rsi
call   1080 <strstr@plt>
test   %rax,%rax
je     11fc <get_cpu_cores+0x9c>
add    $0x1,%r13d
jmp    122a <get_cpu_cores+0xca>
mov    %r12,%rdi
lea    0xdb1(%rip),%rsi
call   1080 <strstr@plt>
test   %rax,%rax
je     12a3 <get_cpu_cores+0x143>
mov    %r12,%rdi
lea    0xda9(%rip),%rsi
lea    0xc(%rsp),%rdx
call   1050 <sscanf@plt>
jmp    122a <get_cpu_cores+0xca>
mov    %r12,%rdi
lea    0xda3(%rip),%rsi
call   1080 <strstr@plt>
test   %rax,%rax
je     122a <get_cpu_cores+0xca>
mov    0xc(%rsp),%eax
xor    %ebp,%ebp
cmp    %eax,0x4(%rsp)
je     122a <get_cpu_cores+0xca>
mov    %r12,%rdi
lea    0xd85(%rip),%rsi
lea    0x8(%rsp),%rdx
mov    %eax,%r12d
call   1050 <sscanf@plt>
mov    (%rsp),%eax
add    0x8(%rsp),%eax
mov    %eax,(%rsp)
mov    %r12d,0x4(%rsp)
jmp    122a <get_cpu_cores+0xca>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
cmpl   $0xffffffff,0x1c(%rsp)
mov    $0x0,%eax
je     1334 <get_cpu_cores+0x1d4>
cmp    $0x1,%ebp
jne    1327 <get_cpu_cores+0x1c7>
test   %r13d,%r13d
mov    $0x1,%eax
cmovg  %r13d,%eax
jmp    1334 <get_cpu_cores+0x1d4>
mov    (%rsp),%ecx
test   %ecx,%ecx
mov    $0x1,%eax
cmovg  %ecx,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [14 x i8] c"/proc/cpuinfo\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [10 x i8] c"Processor\00"
@.str.3 = [4 x i8] c"ARM\00"
@.str.4 = [10 x i8] c"processor\00"
@.str.5 = [11 x i8] c"model name\00"
@.str.6 = [12 x i8] c"physical id\00"
@.str.7 = [16 x i8] c"physical id\09:%d\00"
@.str.8 = [10 x i8] c"cpu cores\00"
@.str.9 = [14 x i8] c"cpu cores\09:%d\00"
define i32 @get_cpu_cores() {
%1 = alloca i32*
%2 = alloca i8*
%3 = alloca i64
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %11, i32** %1
store i8* null, i8** %2
store i64 0, i64* %3
store i32 -1, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
br label %12
12: ; preds = %70, %0
%13 = load i32*, i32** %1
%14 = call i32 @getdelim(i8** %2, i64* %3, i8 signext 10, i32* %13)
%15 = icmp ne i32 %14, -1
br i1 %15, label %16, label %71
16: ; preds = %12
store i32 1, i32* %10
%17 = load i8*, i8** %2
%18 = call i32* @strstr(i8* %17, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%19 = icmp ne i32* %18, null
br i1 %19, label %20, label %26
20: ; preds = %16
%21 = load i8*, i8** %2
%22 = call i32* @strstr(i8* %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%23 = icmp ne i32* %22, null
br i1 %23, label %24, label %25
24: ; preds = %20
store i32 1, i32* %7
br label %25
25: ; preds = %24, %20
br label %70
26: ; preds = %16
%27 = load i8*, i8** %2
%28 = call i32* @strstr(i8* %27, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%29 = icmp ne i32* %28, null
br i1 %29, label %30, label %33
30: ; preds = %26
%31 = load i32, i32* %8
%32 = add nsw i32 %31, 1
store i32 %32, i32* %8
br label %69
33: ; preds = %26
%34 = load i8*, i8** %2
%35 = call i32* @strstr(i8* %34, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%36 = icmp ne i32* %35, null
br i1 %36, label %37, label %43
37: ; preds = %33
%38 = load i8*, i8** %2
%39 = call i32* @strstr(i8* %38, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%40 = icmp ne i32* %39, null
br i1 %40, label %41, label %42
41: ; preds = %37
store i32 1, i32* %7
br label %42
42: ; preds = %41, %37
br label %68
43: ; preds = %33
%44 = load i8*, i8** %2
%45 = call i32* @strstr(i8* %44, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%46 = icmp ne i32* %45, null
br i1 %46, label %47, label %50
47: ; preds = %43
%48 = load i8*, i8** %2
%49 = call i32 @sscanf(i8* %48, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32* %5)
br label %67
50: ; preds = %43
%51 = load i8*, i8** %2
%52 = call i32* @strstr(i8* %51, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%53 = icmp ne i32* %52, null
br i1 %53, label %54, label %66
54: ; preds = %50
store i32 0, i32* %7
%55 = load i32, i32* %4
%56 = load i32, i32* %5
%57 = icmp ne i32 %55, %56
br i1 %57, label %58, label %65
58: ; preds = %54
%59 = load i32, i32* %5
store i32 %59, i32* %4
%60 = load i8*, i8** %2
%61 = call i32 @sscanf(i8* %60, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i32* %6)
%62 = load i32, i32* %6
%63 = load i32, i32* %9
%64 = add nsw i32 %63, %62
store i32 %64, i32* %9
br label %65
65: ; preds = %58, %54
br label %66
66: ; preds = %65, %50
br label %67
67: ; preds = %66, %47
br label %68
68: ; preds = %67, %42
br label %69
69: ; preds = %68, %30
br label %70
70: ; preds = %69, %25
br label %12
71: ; preds = %12
%72 = load i8*, i8** %2
%73 = call i32 @free(i8* %72)
%74 = load i32*, i32** %1
%75 = call i32 @fclose(i32* %74)
%76 = load i32, i32* %10
%77 = icmp eq i32 %76, 1
br i1 %77, label %78, label %99
78: ; preds = %71
%79 = load i32, i32* %7
%80 = icmp eq i32 %79, 1
br i1 %80, label %81, label %89
81: ; preds = %78
%82 = load i32, i32* %8
%83 = icmp sgt i32 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %81
%85 = load i32, i32* %8
br label %87
86: ; preds = %81
br label %87
87: ; preds = %86, %84
%88 = phi i32 [ %85, %84 ], [ 1, %86 ]
br label %97
89: ; preds = %78
%90 = load i32, i32* %9
%91 = icmp sgt i32 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %89
%93 = load i32, i32* %9
br label %95
94: ; preds = %89
br label %95
95: ; preds = %94, %92
%96 = phi i32 [ %93, %92 ], [ 1, %94 ]
br label %97
97: ; preds = %95, %87
%98 = phi i32 [ %88, %87 ], [ %96, %95 ]
br label %100
99: ; preds = %71
br label %100
100: ; preds = %99, %97
%101 = phi i32 [ %98, %97 ], [ 0, %99 ]
ret i32 %101
}

LLVM IR (-O2):
@.str = [14 x i8] c"/proc/cpuinfo\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [10 x i8] c"Processor\00"
@.str.3 = [4 x i8] c"ARM\00"
@.str.4 = [10 x i8] c"processor\00"
@.str.5 = [11 x i8] c"model name\00"
@.str.6 = [12 x i8] c"physical id\00"
@.str.7 = [16 x i8] c"physical id\09:%d\00"
@.str.8 = [10 x i8] c"cpu cores\00"
@.str.9 = [14 x i8] c"cpu cores\09:%d\00"
define i32 @get_cpu_cores() {
%1 = alloca i8*
%2 = alloca i64
%3 = alloca i32
%4 = alloca i32
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%6 = bitcast i8** %1 to i8*
store i8* null, i8** %1
%7 = bitcast i64* %2 to i8*
store i64 0, i64* %2
%8 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%9 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%10 = call i32 @getdelim(i8** %1, i64* %2, i8 signext 10, i32* %5)
%11 = icmp eq i32 %10, -1
br i1 %11, label %58, label %12
12: ; preds = %0, %51
%13 = phi i32 [ %55, %51 ], [ 0, %0 ]
%14 = phi i32 [ %54, %51 ], [ 0, %0 ]
%15 = phi i32 [ %53, %51 ], [ 0, %0 ]
%16 = phi i32 [ %52, %51 ], [ -1, %0 ]
%17 = load i8*, i8** %1
%18 = call i32* @strstr(i8* dereferenceable(1) %17, i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%19 = icmp eq i32* %18, null
br i1 %19, label %24, label %20
20: ; preds = %12
%21 = call i32* @strstr(i8* dereferenceable(1) %17, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%22 = icmp eq i32* %21, null
%23 = select i1 %22, i32 %15, i32 1
br label %51
24: ; preds = %12
%25 = call i32* @strstr(i8* dereferenceable(1) %17, i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%26 = icmp eq i32* %25, null
br i1 %26, label %29, label %27
27: ; preds = %24
%28 = add nsw i32 %14, 1
br label %51
29: ; preds = %24
%30 = call i32* @strstr(i8* dereferenceable(1) %17, i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%31 = icmp eq i32* %30, null
br i1 %31, label %36, label %32
32: ; preds = %29
%33 = call i32* @strstr(i8* dereferenceable(1) %17, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%34 = icmp eq i32* %33, null
%35 = select i1 %34, i32 %15, i32 1
br label %51
36: ; preds = %29
%37 = call i32* @strstr(i8* dereferenceable(1) %17, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%38 = icmp eq i32* %37, null
br i1 %38, label %41, label %39
39: ; preds = %36
%40 = call i32 @sscanf(i8* %17, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32* %3)
br label %51
41: ; preds = %36
%42 = call i32* @strstr(i8* dereferenceable(1) %17, i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%43 = icmp eq i32* %42, null
br i1 %43, label %51, label %44
44: ; preds = %41
%45 = load i32, i32* %3
%46 = icmp eq i32 %16, %45
br i1 %46, label %51, label %47
47: ; preds = %44
%48 = call i32 @sscanf(i8* %17, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i32* %4)
%49 = load i32, i32* %4
%50 = add nsw i32 %49, %13
br label %51
51: ; preds = %32, %20, %27, %39, %44, %47, %41
%52 = phi i32 [ %16, %27 ], [ %16, %39 ], [ %45, %47 ], [ %16, %44 ], [ %16, %41 ], [ %16, %20 ], [ %16, %32 ]
%53 = phi i32 [ %15, %27 ], [ %15, %39 ], [ 0, %47 ], [ 0, %44 ], [ %15, %41 ], [ %23, %20 ], [ %35, %32 ]
%54 = phi i32 [ %28, %27 ], [ %14, %39 ], [ %14, %47 ], [ %14, %44 ], [ %14, %41 ], [ %14, %20 ], [ %14, %32 ]
%55 = phi i32 [ %13, %27 ], [ %13, %39 ], [ %50, %47 ], [ %13, %44 ], [ %13, %41 ], [ %13, %20 ], [ %13, %32 ]
%56 = call i32 @getdelim(i8** %1, i64* %2, i8 signext 10, i32* %5)
%57 = icmp eq i32 %56, -1
br i1 %57, label %58, label %12
58: ; preds = %51, %0
%59 = phi i32 [ 0, %0 ], [ %53, %51 ]
%60 = phi i32 [ 0, %0 ], [ %54, %51 ]
%61 = phi i32 [ 0, %0 ], [ %55, %51 ]
%62 = load i8*, i8** %1
%63 = call i32 @free(i8* %62)
%64 = call i32 @fclose(i32* %5)
br i1 %11, label %73, label %65
65: ; preds = %58
%66 = icmp eq i32 %59, 1
br i1 %66, label %67, label %70
67: ; preds = %65
%68 = icmp sgt i32 %60, 1
%69 = select i1 %68, i32 %60, i32 1
br label %73
70: ; preds = %65
%71 = icmp sgt i32 %61, 1
%72 = select i1 %71, i32 %61, i32 1
br label %73
73: ; preds = %58, %67, %70
%74 = phi i32 [ %69, %67 ], [ %72, %70 ], [ 0, %58 ]
ret i32 %74
}