#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 */
scalar_t__ EOF;
scalar_t__ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int fread(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, int *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ sscanf(char *, char *, ...);
int /*<<< orphan*/ stderr;
char *strerror(int);
scalar_t__ strncmp(char *, char *, int);
int read_ppm(const char *fname, int *xpix, int *ypix, int *max, char *data) {
  char ftype[40];
  char ctype[40] = "P6";
  char line[80];
  int errno;
  FILE *fp;
  errno = 0;
  if (fname == NULL)
    fname = "\0";
  fp = fopen(fname, "r");
  if (fp == NULL) {
    fprintf(stderr, "read_ppm failed to open %s: %s\n", fname, strerror(errno));
    return 1;
  }
  fgets(line, 80, fp);
  sscanf(line, "%s", ftype);
  while (fgets(line, 80, fp) && (line[0] == '#'))
    ;
  sscanf(line, "%d%d", xpix, ypix);
  fscanf(fp, "%d\n", max);
  if (*xpix * *ypix > (1000 * 1000)) {
    fprintf(stderr, "Image size is too big\n");
    return 4;
  };
  if (strncmp(ftype, ctype, 2) == 0) {
    if (fread(data, sizeof(char), *xpix * *ypix * 3, fp) != *xpix * *ypix * 3) {
      perror("Read failed");
      return 2;
    }
  } else {
    fprintf(stderr, "Wrong file format: %s\n", ftype);
  }
  if (fclose(fp) == EOF) {
    perror("Close failed");
    return 3;
  }
  return 0;
}


x86 assembly (clang, -O0):
<read_ppm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1060 <memset@plt>
movb   $0x50,-0x90(%rbp)
movb   $0x36,-0x8f(%rbp)
movl   $0x0,-0xe4(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1210 <read_ppm+0x60>
lea    0xdf4(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xde7(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0xf0(%rbp)
cmpq   $0x0,-0xf0(%rbp)
jne    1284 <read_ppm+0xd4>
mov    0x2d9c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xfc(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0xf8(%rbp)
mov    -0xe4(%rbp),%edi
call   10d0 <strerror@plt>
mov    -0xfc(%rbp),%edi
mov    -0xf8(%rbp),%rdx
mov    %rax,%rcx
lea    0xd93(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    144b <read_ppm+0x29b>
lea    -0xe0(%rbp),%rdi
mov    -0xf0(%rbp),%rdx
mov    $0x50,%esi
call   1080 <fgets@plt>
lea    -0xe0(%rbp),%rdi
lea    -0x60(%rbp),%rdx
lea    0xd76(%rip),%rsi
mov    $0x0,%al
call   10a0 <sscanf@plt>
lea    -0xe0(%rbp),%rdi
mov    -0xf0(%rbp),%rdx
mov    $0x50,%esi
call   1080 <fgets@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0xfd(%rbp)
je     12f5 <read_ppm+0x145>
movsbl -0xe0(%rbp),%eax
cmp    $0x23,%eax
sete   %al
mov    %al,-0xfd(%rbp)
mov    -0xfd(%rbp),%al
test   $0x1,%al
jne    1308 <read_ppm+0x158>
jmp    130d <read_ppm+0x15d>
jmp    12b5 <read_ppm+0x105>
lea    -0xe0(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
lea    0xd04(%rip),%rsi
mov    $0x0,%al
call   10a0 <sscanf@plt>
mov    -0xf0(%rbp),%rdi
mov    -0x28(%rbp),%rdx
lea    0xcf0(%rip),%rsi
call   1070 <fscanf@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    -0x20(%rbp),%rcx
imul   (%rcx),%eax
cmp    $0xf4240,%eax
jle    137c <read_ppm+0x1cc>
mov    0x2c78(%rip),%rax
mov    (%rax),%edi
lea    0xcc7(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0x4,-0x4(%rbp)
jmp    144b <read_ppm+0x29b>
lea    -0x60(%rbp),%rdi
lea    -0x90(%rbp),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    13f5 <read_ppm+0x245>
mov    -0x30(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    -0x20(%rbp),%rcx
imul   (%rcx),%eax
imul   $0x3,%eax,%edx
mov    -0xf0(%rbp),%rcx
mov    $0x1,%esi
call   1040 <fread@plt>
mov    -0x18(%rbp),%rcx
mov    (%rcx),%ecx
mov    -0x20(%rbp),%rdx
imul   (%rdx),%ecx
imul   $0x3,%ecx,%ecx
cmp    %ecx,%eax
je     13f0 <read_ppm+0x240>
lea    0xc68(%rip),%rdi
call   10c0 <perror@plt>
movl   $0x2,-0x4(%rbp)
jmp    144b <read_ppm+0x29b>
jmp    1410 <read_ppm+0x260>
mov    0x2bdc(%rip),%rax
mov    (%rax),%edi
lea    -0x60(%rbp),%rdx
lea    0xc4a(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0xf0(%rbp),%rdi
call   1050 <fclose@plt>
mov    0x2bc5(%rip),%rcx
cmp    (%rcx),%rax
jne    1444 <read_ppm+0x294>
lea    0xc37(%rip),%rdi
call   10c0 <perror@plt>
movl   $0x3,-0x4(%rbp)
jmp    144b <read_ppm+0x29b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_ppm>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    %r8,%r12
mov    %rcx,%r13
mov    %rdx,%r14
mov    %rsi,%r15
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x10(%rsp)
movq   $0x0,0x20(%rsp)
movw   $0x3650,(%rsp)
test   %rdi,%rdi
lea    0xe1e(%rip),%rbp
cmovne %rdi,%rbp
lea    0xe15(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <fopen@plt>
test   %rax,%rax
je     12a6 <read_ppm+0x106>
mov    %rax,%rbx
lea    0x60(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x50,%esi
mov    %rax,%rdx
call   1070 <fgets@plt>
lea    0xe07(%rip),%rsi
lea    0x30(%rsp),%rdx
mov    %rbp,%rdi
xor    %eax,%eax
call   1090 <sscanf@plt>
nopl   0x0(%rax)
mov    %rbp,%rdi
mov    $0x50,%esi
mov    %rbx,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     124c <read_ppm+0xac>
cmpb   $0x23,0x60(%rsp)
je     1230 <read_ppm+0x90>
lea    0xdd4(%rip),%rsi
lea    0x60(%rsp),%rdi
mov    %r15,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1090 <sscanf@plt>
lea    0xdc0(%rip),%rsi
mov    %rbx,%rdi
mov    %r13,%rdx
call   1060 <fscanf@plt>
mov    (%r14),%eax
imul   (%r15),%eax
cmp    $0xf4241,%eax
jl     12d3 <read_ppm+0x133>
mov    0x2d4c(%rip),%rax
mov    (%rax),%edi
lea    0xd9b(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x4,%eax
jmp    1349 <read_ppm+0x1a9>
mov    0x2d2b(%rip),%rax
mov    (%rax),%ebx
xor    %edi,%edi
call   10c0 <strerror@plt>
lea    0xd47(%rip),%rsi
mov    %ebx,%edi
mov    %rbp,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x1,%eax
jmp    1349 <read_ppm+0x1a9>
lea    0x30(%rsp),%rdi
mov    %rsp,%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1308 <read_ppm+0x168>
mov    0x2ce7(%rip),%rax
mov    (%rax),%edi
lea    0xd59(%rip),%rsi
lea    0x30(%rsp),%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    1330 <read_ppm+0x190>
mov    (%r15),%eax
imul   (%r14),%eax
lea    (%rax,%rax,2),%edx
mov    %r12,%rdi
mov    $0x1,%esi
mov    %rbx,%rcx
call   1040 <fread@plt>
mov    (%r15),%ecx
imul   (%r14),%ecx
lea    (%rcx,%rcx,2),%ecx
cmp    %ecx,%eax
jne    136e <read_ppm+0x1ce>
mov    %rbx,%rdi
call   1050 <fclose@plt>
mov    %rax,%rcx
mov    0x2ca6(%rip),%rdx
xor    %eax,%eax
cmp    (%rdx),%rcx
je     135b <read_ppm+0x1bb>
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd08(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x3,%eax
jmp    1349 <read_ppm+0x1a9>
lea    0xcd2(%rip),%rdi
call   10b0 <perror@plt>
mov    $0x2,%eax
jmp    1349 <read_ppm+0x1a9>

LLVM IR (-O0):
@.str = [2 x i8] zeroinitializer
@.str.1 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.2 = [32 x i8] c"read_ppm failed to open %s: %s\0A\00"
@.str.3 = [3 x i8] c"%s\00"
@.str.4 = [5 x i8] c"%d%d\00"
@.str.5 = [4 x i8] c"%d\0A\00"
@.str.6 = [23 x i8] c"Image size is too big\0A\00"
@.str.7 = [12 x i8] c"Read failed\00"
@.str.8 = [23 x i8] c"Wrong file format: %s\0A\00"
@EOF = global i64 0
@.str.9 = [13 x i8] c"Close failed\00"
define i32 @read_ppm(i8* %0, i32* %1, i32* %2, i32* %3, i8* %4) {
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i8*
%12 = alloca [40 x i8]
%13 = alloca [40 x i8]
%14 = alloca [80 x i8]
%15 = alloca i32
%16 = alloca i32*
store i8* %0, i8** %7
store i32* %1, i32** %8
store i32* %2, i32** %9
store i32* %3, i32** %10
store i8* %4, i8** %11
%17 = bitcast [40 x i8]* %13 to i8*
%18 = bitcast i8* %17 to [40 x i8]*
%19 = getelementptr inbounds [40 x i8], [40 x i8]* %18, i32 0, i32 0
store i8 80, i8* %19
%20 = getelementptr inbounds [40 x i8], [40 x i8]* %18, i32 0, i32 1
store i8 54, i8* %20
store i32 0, i32* %15
%21 = load i8*, i8** %7
%22 = icmp eq i8* %21, null
br i1 %22, label %23, label %24
23: ; preds = %5
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %7
br label %24
24: ; preds = %23, %5
%25 = load i8*, i8** %7
%26 = call i32* @fopen(i8* %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %26, i32** %16
%27 = load i32*, i32** %16
%28 = icmp eq i32* %27, null
br i1 %28, label %29, label %35
29: ; preds = %24
%30 = load i32, i32* @stderr
%31 = load i8*, i8** %7
%32 = load i32, i32* %15
%33 = call i8* @strerror(i32 %32)
%34 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %31, i8* %33)
store i32 1, i32* %6
br label %109
35: ; preds = %24
%36 = getelementptr inbounds [80 x i8], [80 x i8]* %14, i64 0, i64 0
%37 = load i32*, i32** %16
%38 = call i64 @fgets(i8* %36, i32 80, i32* %37)
%39 = getelementptr inbounds [80 x i8], [80 x i8]* %14, i64 0, i64 0
%40 = getelementptr inbounds [40 x i8], [40 x i8]* %12, i64 0, i64 0
%41 = call i32 (i8*, i8*, ...) @sscanf(i8* %39, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %40)
br label %42
42: ; preds = %54, %35
%43 = getelementptr inbounds [80 x i8], [80 x i8]* %14, i64 0, i64 0
%44 = load i32*, i32** %16
%45 = call i64 @fgets(i8* %43, i32 80, i32* %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %52
47: ; preds = %42
%48 = getelementptr inbounds [80 x i8], [80 x i8]* %14, i64 0, i64 0
%49 = load i8, i8* %48
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %50, 35
br label %52
52: ; preds = %47, %42
%53 = phi i1 [ false, %42 ], [ %51, %47 ]
br i1 %53, label %54, label %55
54: ; preds = %52
br label %42
55: ; preds = %52
%56 = getelementptr inbounds [80 x i8], [80 x i8]* %14, i64 0, i64 0
%57 = load i32*, i32** %8
%58 = load i32*, i32** %9
%59 = call i32 (i8*, i8*, ...) @sscanf(i8* %56, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32* %57, i32* %58)
%60 = load i32*, i32** %16
%61 = load i32*, i32** %10
%62 = call i32 @fscanf(i32* %60, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32* %61)
%63 = load i32*, i32** %8
%64 = load i32, i32* %63
%65 = load i32*, i32** %9
%66 = load i32, i32* %65
%67 = mul nsw i32 %64, %66
%68 = icmp sgt i32 %67, 1000000
br i1 %68, label %69, label %72
69: ; preds = %55
%70 = load i32, i32* @stderr
%71 = call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
store i32 4, i32* %6
br label %109
72: ; preds = %55
%73 = getelementptr inbounds [40 x i8], [40 x i8]* %12, i64 0, i64 0
%74 = getelementptr inbounds [40 x i8], [40 x i8]* %13, i64 0, i64 0
%75 = call i64 @strncmp(i8* %73, i8* %74, i32 2)
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %97
77: ; preds = %72
%78 = load i8*, i8** %11
%79 = load i32*, i32** %8
%80 = load i32, i32* %79
%81 = load i32*, i32** %9
%82 = load i32, i32* %81
%83 = mul nsw i32 %80, %82
%84 = mul nsw i32 %83, 3
%85 = load i32*, i32** %16
%86 = call i32 @fread(i8* %78, i32 1, i32 %84, i32* %85)
%87 = load i32*, i32** %8
%88 = load i32, i32* %87
%89 = load i32*, i32** %9
%90 = load i32, i32* %89
%91 = mul nsw i32 %88, %90
%92 = mul nsw i32 %91, 3
%93 = icmp ne i32 %86, %92
br i1 %93, label %94, label %96
94: ; preds = %77
%95 = call i32 @perror(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
store i32 2, i32* %6
br label %109
96: ; preds = %77
br label %101
97: ; preds = %72
%98 = load i32, i32* @stderr
%99 = getelementptr inbounds [40 x i8], [40 x i8]* %12, i64 0, i64 0
%100 = call i32 (i32, i8*, ...) @fprintf(i32 %98, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i8* %99)
br label %101
101: ; preds = %97, %96
%102 = load i32*, i32** %16
%103 = call i64 @fclose(i32* %102)
%104 = load i64, i64* @EOF
%105 = icmp eq i64 %103, %104
br i1 %105, label %106, label %108
106: ; preds = %101
%107 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
store i32 3, i32* %6
br label %109
108: ; preds = %101
store i32 0, i32* %6
br label %109
109: ; preds = %108, %106, %94, %69, %29
%110 = load i32, i32* %6
ret i32 %110
}

LLVM IR (-O2):
@.str = [2 x i8] zeroinitializer
@.str.1 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.2 = [32 x i8] c"read_ppm failed to open %s: %s\0A\00"
@.str.3 = [3 x i8] c"%s\00"
@.str.4 = [5 x i8] c"%d%d\00"
@.str.5 = [4 x i8] c"%d\0A\00"
@.str.6 = [23 x i8] c"Image size is too big\0A\00"
@.str.7 = [12 x i8] c"Read failed\00"
@.str.8 = [23 x i8] c"Wrong file format: %s\0A\00"
@EOF = global i64 0
@.str.9 = [13 x i8] c"Close failed\00"
define i32 @read_ppm(i8* %0, i32* %1, i32* %2, i32* %3, i8* nocapture %4) {
%6 = alloca [40 x i8]
%7 = alloca [40 x i8]
%8 = alloca [80 x i8]
%9 = getelementptr inbounds [40 x i8], [40 x i8]* %6, i64 0, i64 0
%10 = getelementptr inbounds [40 x i8], [40 x i8]* %7, i64 0, i64 0
store i8 80, i8* %10
%11 = getelementptr inbounds [40 x i8], [40 x i8]* %7, i64 0, i64 1
store i8 54, i8* %11
%12 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%13 = icmp eq i8* %0, null
%14 = select i1 %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %0
%15 = tail call i32* @fopen(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %21
17: ; preds = %5
%18 = load i32, i32* @stderr
%19 = tail call i8* @strerror(i32 0)
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %14, i8* %19)
br label %65
21: ; preds = %5
%22 = call i64 @fgets(i8* %12, i32 80, i32* %15)
%23 = call i32 (i8*, i8*, ...) @sscanf(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %9)
br label %24
24: ; preds = %24, %21
%25 = call i64 @fgets(i8* %12, i32 80, i32* %15)
%26 = icmp ne i64 %25, 0
%27 = load i8, i8* %12
%28 = icmp eq i8 %27, 35
%29 = select i1 %26, i1 %28, i1 false
br i1 %29, label %24, label %30
30: ; preds = %24
%31 = call i32 (i8*, i8*, ...) @sscanf(i8* %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32* %1, i32* %2)
%32 = call i32 @fscanf(i32* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32* %3)
%33 = load i32, i32* %1
%34 = load i32, i32* %2
%35 = mul nsw i32 %34, %33
%36 = icmp sgt i32 %35, 1000000
br i1 %36, label %37, label %40
37: ; preds = %30
%38 = load i32, i32* @stderr
%39 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
br label %65
40: ; preds = %30
%41 = call i64 @strncmp(i8* %9, i8* %10, i32 2)
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %56
43: ; preds = %40
%44 = load i32, i32* %1
%45 = load i32, i32* %2
%46 = mul i32 %44, 3
%47 = mul i32 %46, %45
%48 = call i32 @fread(i8* %4, i32 1, i32 %47, i32* %15)
%49 = load i32, i32* %1
%50 = load i32, i32* %2
%51 = mul i32 %49, 3
%52 = mul i32 %51, %50
%53 = icmp eq i32 %48, %52
br i1 %53, label %59, label %54
54: ; preds = %43
%55 = call i32 @perror(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
br label %65
56: ; preds = %40
%57 = load i32, i32* @stderr
%58 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i8* %9)
br label %59
59: ; preds = %43, %56
%60 = call i64 @fclose(i32* %15)
%61 = load i64, i64* @EOF
%62 = icmp eq i64 %60, %61
br i1 %62, label %63, label %65
63: ; preds = %59
%64 = call i32 @perror(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
br label %65
65: ; preds = %59, %63, %54, %37, %17
%66 = phi i32 [ 1, %17 ], [ 4, %37 ], [ 2, %54 ], [ 3, %63 ], [ 0, %59 ]
ret i32 %66
}