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

/* Variables and functions */
int /*<<< orphan*/ rtl_tracedbg(int /*<<< orphan*/, char *, int, char *);
char *strchr(char *, char);
char *strdup(char *);
int strlen(char *);
char *strstr(char *, char *);
int AwParseRouter(char *res, char *tab[]) {
  int nb = 0;
  char *pt;
  char *ha;
  char *ne;
  char *ed;
  char *nd;
  ne = "<h2>Routes</h2>";
  ed = "</body>";
  nd = "<br>";
  ha = res;
  if ((pt = strstr(ha, ne)) == NULL) {
    return -1;
  }
  ha = pt + strlen(ne);
  if ((pt = strstr(ha, ed)) == NULL) {
    return -2;
  }
  *pt = '\0';
  while (ha && *ha && (pt = strstr(ha, nd))) {
    char *adr;
    while (*ha == ' ' || *ha == '\r' || *ha == '\n' || *ha == '\t')
      ha++;
    if (!*ha)
      break;
    *pt = '\0';
    if ((adr = strchr(ha, '/')) || (adr = strchr(ha, ' ')) ||
        (adr = strchr(ha, '(')))
      *adr = '\0';
    adr = strdup(ha);
    if (!adr)
      break;
    tab[nb] = adr;
    ha = pt + strlen(nd);
    nb++;
    if (nb >= 50) {
      {
        extern int TraceDebug;
        extern int TraceLevel;
        if (TraceLevel >= (0)) {
          rtl_tracedbg(
              (0),
              TraceDebug <= 0
                  ? NULL
                  : "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/actility/ong/refs/heads/"
                    "master/drivers/watteco/lib/httpparse.c",
              101, "too much sensors in HTTP response\n");
        }
      };
      break;
    }
  }
  return nb;
}


x86 assembly (clang, -O0):
<AwParseRouter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
lea    0xe92(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xe97(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xe94(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1070 <strstr@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    11b7 <AwParseRouter+0x67>
movl   $0xffffffff,-0x4(%rbp)
jmp    13ec <AwParseRouter+0x29c>
mov    -0x28(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x38(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1070 <strstr@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    11ff <AwParseRouter+0xaf>
movl   $0xfffffffe,-0x4(%rbp)
jmp    13ec <AwParseRouter+0x29c>
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
xor    %eax,%eax
cmpq   $0x0,-0x30(%rbp)
mov    %al,-0x59(%rbp)
je     1246 <AwParseRouter+0xf6>
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x59(%rbp)
je     1246 <AwParseRouter+0xf6>
mov    -0x30(%rbp),%rdi
mov    -0x48(%rbp),%rsi
call   1070 <strstr@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
setne  %al
mov    %al,-0x59(%rbp)
mov    -0x59(%rbp),%al
test   $0x1,%al
jne    1256 <AwParseRouter+0x106>
jmp    13e6 <AwParseRouter+0x296>
jmp    125b <AwParseRouter+0x10b>
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x5a(%rbp)
je     12aa <AwParseRouter+0x15a>
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0xd,%ecx
mov    %al,-0x5a(%rbp)
je     12aa <AwParseRouter+0x15a>
mov    -0x30(%rbp),%rax
movsbl (%rax),%ecx
mov    $0x1,%al
cmp    $0xa,%ecx
mov    %al,-0x5a(%rbp)
je     12aa <AwParseRouter+0x15a>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
sete   %al
mov    %al,-0x5a(%rbp)
mov    -0x5a(%rbp),%al
test   $0x1,%al
jne    12ba <AwParseRouter+0x16a>
jmp    12cb <AwParseRouter+0x17b>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    125b <AwParseRouter+0x10b>
mov    -0x30(%rbp),%rax
cmpb   $0x0,(%rax)
jne    12dd <AwParseRouter+0x18d>
jmp    13e6 <AwParseRouter+0x296>
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x30(%rbp),%rdi
mov    $0x2f,%esi
call   1040 <strchr@plt>
mov    %rax,-0x50(%rbp)
cmp    $0x0,%rax
jne    1338 <AwParseRouter+0x1e8>
mov    -0x30(%rbp),%rdi
mov    $0x20,%esi
call   1040 <strchr@plt>
mov    %rax,-0x50(%rbp)
cmp    $0x0,%rax
jne    1338 <AwParseRouter+0x1e8>
mov    -0x30(%rbp),%rdi
mov    $0x28,%esi
call   1040 <strchr@plt>
mov    %rax,-0x50(%rbp)
cmp    $0x0,%rax
je     133f <AwParseRouter+0x1ef>
mov    -0x50(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x30(%rbp),%rdi
call   1060 <strdup@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
jne    135c <AwParseRouter+0x20c>
jmp    13e6 <AwParseRouter+0x296>
mov    -0x50(%rbp),%rdx
mov    -0x18(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x48(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x68(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x32,-0x1c(%rbp)
jl     13e1 <AwParseRouter+0x291>
mov    0x2c31(%rip),%rax
cmpl   $0x0,(%rax)
jl     13dc <AwParseRouter+0x28c>
mov    0x2c31(%rip),%rax
mov    (%rax),%ecx
lea    0xc5d(%rip),%rsi
xor    %eax,%eax
cmp    $0x0,%ecx
cmovle %rax,%rsi
xor    %edi,%edi
mov    $0x65,%edx
lea    0xcdf(%rip),%rcx
call   1050 <rtl_tracedbg@plt>
jmp    13e6 <AwParseRouter+0x296>
jmp    1206 <AwParseRouter+0xb6>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AwParseRouter>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
lea    0xe9b(%rip),%rsi
call   1070 <strstr@plt>
test   %rax,%rax
je     12c4 <AwParseRouter+0x174>
mov    %rax,%rbx
lea    0xe83(%rip),%rdi
call   1030 <strlen@plt>
cltq
add    %rax,%rbx
lea    0xe82(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strstr@plt>
test   %rax,%rax
je     12cc <AwParseRouter+0x17c>
movb   $0x0,(%rax)
xor    %r15d,%r15d
movabs $0x100002600,%rbp
mov    (%rbx),%r12b
test   %r12b,%r12b
je     12d2 <AwParseRouter+0x182>
mov    %rbx,%rdi
lea    0xe53(%rip),%rsi
call   1070 <strstr@plt>
test   %rax,%rax
je     12d2 <AwParseRouter+0x182>
mov    %rax,%r13
cmp    $0x20,%r12b
ja     1209 <AwParseRouter+0xb9>
nopl   0x0(%rax)
movzbl %r12b,%eax
bt     %rax,%rbp
jae    1200 <AwParseRouter+0xb0>
movzbl 0x1(%rbx),%r12d
add    $0x1,%rbx
cmp    $0x20,%r12b
jbe    11e0 <AwParseRouter+0x90>
jmp    1209 <AwParseRouter+0xb9>
nopl   0x0(%rax,%rax,1)
test   %rax,%rax
je     12d2 <AwParseRouter+0x182>
movb   $0x0,0x0(%r13)
mov    %rbx,%rdi
mov    $0x2f,%esi
call   1040 <strchr@plt>
test   %rax,%rax
jne    1250 <AwParseRouter+0x100>
mov    %rbx,%rdi
mov    $0x20,%esi
call   1040 <strchr@plt>
test   %rax,%rax
jne    1250 <AwParseRouter+0x100>
mov    %rbx,%rdi
mov    $0x28,%esi
call   1040 <strchr@plt>
test   %rax,%rax
je     1253 <AwParseRouter+0x103>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movb   $0x0,(%rax)
mov    %rbx,%rdi
call   1060 <strdup@plt>
test   %rax,%rax
je     12d2 <AwParseRouter+0x182>
mov    %rax,(%r14,%r15,8)
lea    0xdad(%rip),%rdi
call   1030 <strlen@plt>
cltq
add    %rax,%r13
add    $0x1,%r15
mov    %r13,%rbx
cmp    $0x32,%r15
jne    11af <AwParseRouter+0x5f>
mov    0x2d4b(%rip),%rax
mov    $0x32,%r15d
cmpl   $0x0,(%rax)
js     12d2 <AwParseRouter+0x182>
mov    0x2d49(%rip),%rax
xor    %esi,%esi
cmpl   $0x0,(%rax)
lea    0xd72(%rip),%rax
cmovg  %rax,%rsi
lea    0xe00(%rip),%rcx
xor    %edi,%edi
mov    $0x65,%edx
call   1050 <rtl_tracedbg@plt>
jmp    12d2 <AwParseRouter+0x182>
mov    $0xffffffff,%r15d
jmp    12d2 <AwParseRouter+0x182>
mov    $0xfffffffe,%r15d
mov    %r15d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [16 x i8] c"<h2>Routes</h2>\00"
@.str.1 = [8 x i8] c"</body>\00"
@.str.2 = [5 x i8] c"<br>\00"
@TraceLevel = external global i32
@TraceDebug = external global i32
@.str.3 = [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/actility/ong/refs/heads/master/drivers/watteco/lib/httpparse.c\00"
@.str.4 = [35 x i8] c"too much sensors in HTTP response\0A\00"
define i32 @AwParseRouter(i8* %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
store i8* %0, i8** %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8** %9
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8** %10
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %11
%13 = load i8*, i8** %4
store i8* %13, i8** %8
%14 = load i8*, i8** %8
%15 = load i8*, i8** %9
%16 = call i8* @strstr(i8* %14, i8* %15)
store i8* %16, i8** %7
%17 = icmp eq i8* %16, null
br i1 %17, label %18, label %19
18: ; preds = %2
store i32 -1, i32* %3
br label %127
19: ; preds = %2
%20 = load i8*, i8** %7
%21 = load i8*, i8** %9
%22 = call i32 @strlen(i8* %21)
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, i8* %20, i64 %23
store i8* %24, i8** %8
%25 = load i8*, i8** %8
%26 = load i8*, i8** %10
%27 = call i8* @strstr(i8* %25, i8* %26)
store i8* %27, i8** %7
%28 = icmp eq i8* %27, null
br i1 %28, label %29, label %30
29: ; preds = %19
store i32 -2, i32* %3
br label %127
30: ; preds = %19
%31 = load i8*, i8** %7
store i8 0, i8* %31
br label %32
32: ; preds = %124, %30
%33 = load i8*, i8** %8
%34 = icmp ne i8* %33, null
br i1 %34, label %35, label %45
35: ; preds = %32
%36 = load i8*, i8** %8
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %35
%41 = load i8*, i8** %8
%42 = load i8*, i8** %11
%43 = call i8* @strstr(i8* %41, i8* %42)
store i8* %43, i8** %7
%44 = icmp ne i8* %43, null
br label %45
45: ; preds = %40, %35, %32
%46 = phi i1 [ false, %35 ], [ false, %32 ], [ %44, %40 ]
br i1 %46, label %47, label %125
47: ; preds = %45
br label %48
48: ; preds = %70, %47
%49 = load i8*, i8** %8
%50 = load i8, i8* %49
%51 = sext i8 %50 to i32
%52 = icmp eq i32 %51, 32
br i1 %52, label %68, label %53
53: ; preds = %48
%54 = load i8*, i8** %8
%55 = load i8, i8* %54
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 13
br i1 %57, label %68, label %58
58: ; preds = %53
%59 = load i8*, i8** %8
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = icmp eq i32 %61, 10
br i1 %62, label %68, label %63
63: ; preds = %58
%64 = load i8*, i8** %8
%65 = load i8, i8* %64
%66 = sext i8 %65 to i32
%67 = icmp eq i32 %66, 9
br label %68
68: ; preds = %63, %58, %53, %48
%69 = phi i1 [ true, %58 ], [ true, %53 ], [ true, %48 ], [ %67, %63 ]
br i1 %69, label %70, label %73
70: ; preds = %68
%71 = load i8*, i8** %8
%72 = getelementptr inbounds i8, i8* %71, i32 1
store i8* %72, i8** %8
br label %48
73: ; preds = %68
%74 = load i8*, i8** %8
%75 = load i8, i8* %74
%76 = icmp ne i8 %75, 0
br i1 %76, label %78, label %77
77: ; preds = %73
br label %125
78: ; preds = %73
%79 = load i8*, i8** %7
store i8 0, i8* %79
%80 = load i8*, i8** %8
%81 = call i8* @strchr(i8* %80, i8 signext 47)
store i8* %81, i8** %12
%82 = icmp ne i8* %81, null
br i1 %82, label %91, label %83
83: ; preds = %78
%84 = load i8*, i8** %8
%85 = call i8* @strchr(i8* %84, i8 signext 32)
store i8* %85, i8** %12
%86 = icmp ne i8* %85, null
br i1 %86, label %91, label %87
87: ; preds = %83
%88 = load i8*, i8** %8
%89 = call i8* @strchr(i8* %88, i8 signext 40)
store i8* %89, i8** %12
%90 = icmp ne i8* %89, null
br i1 %90, label %91, label %93
91: ; preds = %87, %83, %78
%92 = load i8*, i8** %12
store i8 0, i8* %92
br label %93
93: ; preds = %91, %87
%94 = load i8*, i8** %8
%95 = call i8* @strdup(i8* %94)
store i8* %95, i8** %12
%96 = load i8*, i8** %12
%97 = icmp ne i8* %96, null
br i1 %97, label %99, label %98
98: ; preds = %93
br label %125
99: ; preds = %93
%100 = load i8*, i8** %12
%101 = load i8**, i8*** %5
%102 = load i32, i32* %6
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8*, i8** %101, i64 %103
store i8* %100, i8** %104
%105 = load i8*, i8** %7
%106 = load i8*, i8** %11
%107 = call i32 @strlen(i8* %106)
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i8, i8* %105, i64 %108
store i8* %109, i8** %8
%110 = load i32, i32* %6
%111 = add nsw i32 %110, 1
store i32 %111, i32* %6
%112 = load i32, i32* %6
%113 = icmp sge i32 %112, 50
br i1 %113, label %114, label %124
114: ; preds = %99
%115 = load i32, i32* @TraceLevel
%116 = icmp sge i32 %115, 0
br i1 %116, label %117, label %123
117: ; preds = %114
%118 = load i32, i32* @TraceDebug
%119 = icmp sle i32 %118, 0
%120 = zext i1 %119 to i64
%121 = select i1 %119, i8* null, i8* getelementptr inbounds ([153 x i8], [153 x i8]* @.str.3, i64 0, i64 0)
%122 = call i32 @rtl_tracedbg(i32 0, i8* %121, i32 101, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
br label %123
123: ; preds = %117, %114
br label %125
124: ; preds = %99
br label %32
125: ; preds = %123, %98, %77, %45
%126 = load i32, i32* %6
store i32 %126, i32* %3
br label %127
127: ; preds = %125, %29, %18
%128 = load i32, i32* %3
ret i32 %128
}

LLVM IR (-O2):
@.str = [16 x i8] c"<h2>Routes</h2>\00"
@.str.1 = [8 x i8] c"</body>\00"
@.str.2 = [5 x i8] c"<br>\00"
@TraceLevel = external global i32
@TraceDebug = external global i32
@.str.3 = [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/actility/ong/refs/heads/master/drivers/watteco/lib/httpparse.c\00"
@.str.4 = [35 x i8] c"too much sensors in HTTP response\0A\00"
define i32 @AwParseRouter(i8* %0, i8** nocapture writeonly %1) {
%3 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i8* %3, null
br i1 %4, label %59, label %5
5: ; preds = %2
%6 = tail call i32 @strlen(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i8, i8* %3, i64 %7
%9 = tail call i8* @strstr(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp eq i8* %9, null
br i1 %10, label %59, label %11
11: ; preds = %5
store i8 0, i8* %9
br label %12
12: ; preds = %40, %11
%13 = phi i64 [ %45, %40 ], [ 0, %11 ]
%14 = phi i8* [ %44, %40 ], [ %8, %11 ]
%15 = load i8, i8* %14
%16 = icmp eq i8 %15, 0
br i1 %16, label %57, label %17
17: ; preds = %12
%18 = tail call i8* @strstr(i8* %14, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%19 = icmp eq i8* %18, null
br i1 %19, label %57, label %20
20: ; preds = %17, %23
%21 = phi i8 [ %25, %23 ], [ %15, %17 ]
%22 = phi i8* [ %24, %23 ], [ %14, %17 ]
switch i8 %21, label %26 [
i8 32, label %23
i8 13, label %23
i8 10, label %23
i8 9, label %23
i8 0, label %55
]
23: ; preds = %20, %20, %20, %20
%24 = getelementptr inbounds i8, i8* %22, i64 1
%25 = load i8, i8* %24
br label %20
26: ; preds = %20
store i8 0, i8* %18
%27 = tail call i8* @strchr(i8* %22, i8 signext 47)
%28 = icmp eq i8* %27, null
br i1 %28, label %29, label %35
29: ; preds = %26
%30 = tail call i8* @strchr(i8* %22, i8 signext 32)
%31 = icmp eq i8* %30, null
br i1 %31, label %32, label %35
32: ; preds = %29
%33 = tail call i8* @strchr(i8* %22, i8 signext 40)
%34 = icmp eq i8* %33, null
br i1 %34, label %37, label %35
35: ; preds = %32, %29, %26
%36 = phi i8* [ %27, %26 ], [ %30, %29 ], [ %33, %32 ]
store i8 0, i8* %36
br label %37
37: ; preds = %35, %32
%38 = tail call i8* @strdup(i8* %22)
%39 = icmp eq i8* %38, null
br i1 %39, label %57, label %40
40: ; preds = %37
%41 = getelementptr inbounds i8*, i8** %1, i64 %13
store i8* %38, i8** %41
%42 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, i8* %18, i64 %43
%45 = add nuw nsw i64 %13, 1
%46 = icmp eq i64 %45, 50
br i1 %46, label %47, label %12
47: ; preds = %40
%48 = load i32, i32* @TraceLevel
%49 = icmp sgt i32 %48, -1
br i1 %49, label %50, label %59
50: ; preds = %47
%51 = load i32, i32* @TraceDebug
%52 = icmp slt i32 %51, 1
%53 = select i1 %52, i8* null, i8* getelementptr inbounds ([153 x i8], [153 x i8]* @.str.3, i64 0, i64 0)
%54 = tail call i32 @rtl_tracedbg(i32 0, i8* %53, i32 101, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
br label %59
55: ; preds = %20
%56 = trunc i64 %13 to i32
br label %59
57: ; preds = %12, %17, %37
%58 = trunc i64 %13 to i32
br label %59
59: ; preds = %57, %55, %47, %50, %5, %2
%60 = phi i32 [ -1, %2 ], [ -2, %5 ], [ 50, %47 ], [ 50, %50 ], [ %56, %55 ], [ %58, %57 ]
ret i32 %60
}