#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 strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
char *strstr(char *, char *);
int common_strrepl(char *buffer, size_t length, char *variable,
                   char *replacement) {
  char *occurence = NULL;
  unsigned offset = 0;
  unsigned character_offset;
  unsigned i;
  for (occurence = strstr(buffer + offset, variable); occurence;
       occurence = strstr(buffer + offset, variable)) {
    if ((occurence - buffer) + strlen(replacement) +
            strlen(buffer + strlen(variable)) >=
        length) {
      return -1;
    }
    if (strlen(replacement) > strlen(variable)) {
      character_offset = strlen(replacement) - strlen(variable);
      for (i = 0; i <= strlen(occurence); i++) {
        occurence[strlen(occurence) - i + character_offset] =
            occurence[strlen(occurence) - i];
      }
    } else if (strlen(replacement) < strlen(variable)) {
      character_offset = strlen(variable) - strlen(replacement);
      for (i = 0; i <= strlen(occurence + strlen(variable)); i++) {
        occurence[strlen(replacement) + i] =
            occurence[strlen(replacement) + i + character_offset];
      }
    }
    strncpy(occurence, replacement, strlen(replacement));
    offset = (occurence - buffer) + strlen(replacement);
  }
  return 0;
}


x86 assembly (clang, -O0):
<common_strrepl>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x34(%rbp),%eax
add    %rax,%rdi
mov    -0x20(%rbp),%rsi
call   1050 <strstr@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1423 <common_strrepl+0x2f3>
mov    -0x30(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x20(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x50(%rbp),%rdi
cltq
add    %rax,%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x48(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
cmp    -0x18(%rbp),%rax
jb     11e5 <common_strrepl+0xb5>
movl   $0xffffffff,-0x4(%rbp)
jmp    142a <common_strrepl+0x2fa>
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x20(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x5c(%rbp),%eax
cmp    %ecx,%eax
jle    12a3 <common_strrepl+0x173>
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x60(%rbp)
mov    -0x20(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x60(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x30(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x64(%rbp),%eax
cmp    %ecx,%eax
ja     129e <common_strrepl+0x16e>
mov    -0x30(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x30(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x80(%rbp),%rax
sub    -0x3c(%rbp),%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,1),%al
mov    %al,-0x71(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x30(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x71(%rbp),%dl
mov    %eax,%ecx
mov    -0x70(%rbp),%rax
sub    -0x3c(%rbp),%ecx
add    -0x38(%rbp),%ecx
mov    %ecx,%ecx
mov    %dl,(%rax,%rcx,1)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    122d <common_strrepl+0xfd>
jmp    13a6 <common_strrepl+0x276>
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x84(%rbp)
mov    -0x20(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x84(%rbp),%eax
cmp    %ecx,%eax
jge    13a1 <common_strrepl+0x271>
mov    -0x20(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x88(%rbp)
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x88(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x20(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x98(%rbp),%rdi
cltq
add    %rax,%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x8c(%rbp),%eax
cmp    %ecx,%eax
ja     139c <common_strrepl+0x26c>
mov    -0x30(%rbp),%rax
mov    %rax,-0xb0(%rbp)
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0xb0(%rbp),%rax
add    -0x3c(%rbp),%ecx
add    -0x38(%rbp),%ecx
mov    %ecx,%ecx
mov    (%rax,%rcx,1),%al
mov    %al,-0xa1(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xa1(%rbp),%dl
mov    %eax,%ecx
mov    -0xa0(%rbp),%rax
add    -0x3c(%rbp),%ecx
mov    %ecx,%ecx
mov    %dl,(%rax,%rcx,1)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12f7 <common_strrepl+0x1c7>
jmp    13a1 <common_strrepl+0x271>
jmp    13a6 <common_strrepl+0x276>
mov    -0x30(%rbp),%rax
mov    %rax,-0xc8(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0xc0(%rbp)
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0xc8(%rbp),%rdi
mov    -0xc0(%rbp),%rsi
mov    %eax,%edx
call   1030 <strncpy@plt>
mov    -0x30(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    %rcx,%rax
mov    %rax,-0xb8(%rbp)
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0xb8(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x34(%rbp),%eax
add    %rax,%rdi
mov    -0x20(%rbp),%rsi
call   1050 <strstr@plt>
mov    %rax,-0x30(%rbp)
jmp    1171 <common_strrepl+0x41>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<common_strrepl>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,0x18(%rsp)
mov    %rdi,%r15
mov    %rdx,%rsi
call   1050 <strstr@plt>
mov    %rax,%r14
xor    %eax,%eax
test   %r14,%r14
je     12f9 <common_strrepl+0x1c9>
mov    %r13,(%rsp)
mov    %r15,0x10(%rsp)
jmp    11b4 <common_strrepl+0x84>
nopl   (%rax)
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %eax,%edx
call   1030 <strncpy@plt>
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    0x20(%rsp),%rdi
add    %eax,%edi
mov    0x10(%rsp),%r15
add    %r15,%rdi
mov    (%rsp),%r13
mov    %r13,%rsi
call   1050 <strstr@plt>
mov    %rax,%r14
test   %rax,%rax
je     12f0 <common_strrepl+0x1c0>
mov    %r14,%rbp
sub    %r15,%rbp
mov    %r12,%rdi
call   1040 <strlen@plt>
movslq %eax,%rbx
add    %rbp,%rbx
mov    %r13,%rdi
call   1040 <strlen@plt>
movslq %eax,%rdi
add    %r15,%rdi
call   1040 <strlen@plt>
cltq
add    %rbx,%rax
cmp    0x18(%rsp),%rax
jae    12f4 <common_strrepl+0x1c4>
mov    %rbp,0x20(%rsp)
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    %eax,0xc(%rsp)
mov    %r13,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebx
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    %eax,%r15d
mov    %r13,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebp
cmp    %ebx,0xc(%rsp)
jle    1270 <common_strrepl+0x140>
mov    %r14,%rdi
call   1040 <strlen@plt>
sub    %ebp,%r15d
xor    %ebx,%ebx
xor    %ebp,%ebp
mov    %r14,%rdi
call   1040 <strlen@plt>
add    %ebx,%eax
movzbl (%r14,%rax,1),%r13d
mov    %r14,%rdi
call   1040 <strlen@plt>
add    %r15d,%eax
add    %ebx,%eax
mov    %r13b,(%r14,%rax,1)
add    $0x1,%ebp
mov    %r14,%rdi
call   1040 <strlen@plt>
add    $0xffffffff,%ebx
cmp    %eax,%ebp
jbe    1230 <common_strrepl+0x100>
jmp    1170 <common_strrepl+0x40>
nopw   0x0(%rax,%rax,1)
cmp    %ebp,%r15d
jge    1170 <common_strrepl+0x40>
mov    (%rsp),%rbp
mov    %rbp,%rdi
call   1040 <strlen@plt>
mov    %eax,%r15d
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebx
mov    %rbp,%rdi
call   1040 <strlen@plt>
movslq %eax,%rdi
add    %r14,%rdi
call   1040 <strlen@plt>
sub    %ebx,%r15d
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    %r12,%rdi
call   1040 <strlen@plt>
add    %r15d,%eax
add    %ebx,%eax
movzbl (%r14,%rax,1),%ebp
mov    %r12,%rdi
call   1040 <strlen@plt>
add    %ebx,%eax
mov    %bpl,(%r14,%rax,1)
add    $0x1,%ebx
mov    (%rsp),%rdi
call   1040 <strlen@plt>
movslq %eax,%rdi
add    %r14,%rdi
call   1040 <strlen@plt>
cmp    %eax,%ebx
jbe    12b0 <common_strrepl+0x180>
jmp    1170 <common_strrepl+0x40>
xor    %eax,%eax
jmp    12f9 <common_strrepl+0x1c9>
mov    $0xffffffff,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @common_strrepl(i8* %0, i64 %1, i8* %2, i8* %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i8* %0, i8** %6
store i64 %1, i64* %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i8* null, i8** %10
store i32 0, i32* %11
%14 = load i8*, i8** %6
%15 = load i32, i32* %11
%16 = zext i32 %15 to i64
%17 = getelementptr inbounds i8, i8* %14, i64 %16
%18 = load i8*, i8** %8
%19 = call i8* @strstr(i8* %17, i8* %18)
store i8* %19, i8** %10
br label %20
20: ; preds = %143, %4
%21 = load i8*, i8** %10
%22 = icmp ne i8* %21, null
br i1 %22, label %23, label %150
23: ; preds = %20
%24 = load i8*, i8** %10
%25 = load i8*, i8** %6
%26 = ptrtoint i8* %24 to i64
%27 = ptrtoint i8* %25 to i64
%28 = sub i64 %26, %27
%29 = load i8*, i8** %9
%30 = call i32 @strlen(i8* %29)
%31 = sext i32 %30 to i64
%32 = add nsw i64 %28, %31
%33 = load i8*, i8** %6
%34 = load i8*, i8** %8
%35 = call i32 @strlen(i8* %34)
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, i8* %33, i64 %36
%38 = call i32 @strlen(i8* %37)
%39 = sext i32 %38 to i64
%40 = add nsw i64 %32, %39
%41 = load i64, i64* %7
%42 = icmp uge i64 %40, %41
br i1 %42, label %43, label %44
43: ; preds = %23
store i32 -1, i32* %5
br label %151
44: ; preds = %23
%45 = load i8*, i8** %9
%46 = call i32 @strlen(i8* %45)
%47 = load i8*, i8** %8
%48 = call i32 @strlen(i8* %47)
%49 = icmp sgt i32 %46, %48
br i1 %49, label %50, label %83
50: ; preds = %44
%51 = load i8*, i8** %9
%52 = call i32 @strlen(i8* %51)
%53 = load i8*, i8** %8
%54 = call i32 @strlen(i8* %53)
%55 = sub nsw i32 %52, %54
store i32 %55, i32* %12
store i32 0, i32* %13
br label %56
56: ; preds = %79, %50
%57 = load i32, i32* %13
%58 = load i8*, i8** %10
%59 = call i32 @strlen(i8* %58)
%60 = icmp ule i32 %57, %59
br i1 %60, label %61, label %82
61: ; preds = %56
%62 = load i8*, i8** %10
%63 = load i8*, i8** %10
%64 = call i32 @strlen(i8* %63)
%65 = load i32, i32* %13
%66 = sub i32 %64, %65
%67 = zext i32 %66 to i64
%68 = getelementptr inbounds i8, i8* %62, i64 %67
%69 = load i8, i8* %68
%70 = load i8*, i8** %10
%71 = load i8*, i8** %10
%72 = call i32 @strlen(i8* %71)
%73 = load i32, i32* %13
%74 = sub i32 %72, %73
%75 = load i32, i32* %12
%76 = add i32 %74, %75
%77 = zext i32 %76 to i64
%78 = getelementptr inbounds i8, i8* %70, i64 %77
store i8 %69, i8* %78
br label %79
79: ; preds = %61
%80 = load i32, i32* %13
%81 = add i32 %80, 1
store i32 %81, i32* %13
br label %56
82: ; preds = %56
br label %127
83: ; preds = %44
%84 = load i8*, i8** %9
%85 = call i32 @strlen(i8* %84)
%86 = load i8*, i8** %8
%87 = call i32 @strlen(i8* %86)
%88 = icmp slt i32 %85, %87
br i1 %88, label %89, label %126
89: ; preds = %83
%90 = load i8*, i8** %8
%91 = call i32 @strlen(i8* %90)
%92 = load i8*, i8** %9
%93 = call i32 @strlen(i8* %92)
%94 = sub nsw i32 %91, %93
store i32 %94, i32* %12
store i32 0, i32* %13
br label %95
95: ; preds = %122, %89
%96 = load i32, i32* %13
%97 = load i8*, i8** %10
%98 = load i8*, i8** %8
%99 = call i32 @strlen(i8* %98)
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds i8, i8* %97, i64 %100
%102 = call i32 @strlen(i8* %101)
%103 = icmp ule i32 %96, %102
br i1 %103, label %104, label %125
104: ; preds = %95
%105 = load i8*, i8** %10
%106 = load i8*, i8** %9
%107 = call i32 @strlen(i8* %106)
%108 = load i32, i32* %13
%109 = add i32 %107, %108
%110 = load i32, i32* %12
%111 = add i32 %109, %110
%112 = zext i32 %111 to i64
%113 = getelementptr inbounds i8, i8* %105, i64 %112
%114 = load i8, i8* %113
%115 = load i8*, i8** %10
%116 = load i8*, i8** %9
%117 = call i32 @strlen(i8* %116)
%118 = load i32, i32* %13
%119 = add i32 %117, %118
%120 = zext i32 %119 to i64
%121 = getelementptr inbounds i8, i8* %115, i64 %120
store i8 %114, i8* %121
br label %122
122: ; preds = %104
%123 = load i32, i32* %13
%124 = add i32 %123, 1
store i32 %124, i32* %13
br label %95
125: ; preds = %95
br label %126
126: ; preds = %125, %83
br label %127
127: ; preds = %126, %82
%128 = load i8*, i8** %10
%129 = load i8*, i8** %9
%130 = load i8*, i8** %9
%131 = call i32 @strlen(i8* %130)
%132 = call i32 @strncpy(i8* %128, i8* %129, i32 %131)
%133 = load i8*, i8** %10
%134 = load i8*, i8** %6
%135 = ptrtoint i8* %133 to i64
%136 = ptrtoint i8* %134 to i64
%137 = sub i64 %135, %136
%138 = load i8*, i8** %9
%139 = call i32 @strlen(i8* %138)
%140 = sext i32 %139 to i64
%141 = add nsw i64 %137, %140
%142 = trunc i64 %141 to i32
store i32 %142, i32* %11
br label %143
143: ; preds = %127
%144 = load i8*, i8** %6
%145 = load i32, i32* %11
%146 = zext i32 %145 to i64
%147 = getelementptr inbounds i8, i8* %144, i64 %146
%148 = load i8*, i8** %8
%149 = call i8* @strstr(i8* %147, i8* %148)
store i8* %149, i8** %10
br label %20
150: ; preds = %20
store i32 0, i32* %5
br label %151
151: ; preds = %150, %43
%152 = load i32, i32* %5
ret i32 %152
}

LLVM IR (-O2):
define i32 @common_strrepl(i8* %0, i64 %1, i8* %2, i8* %3) {
%5 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) %2)
%6 = icmp eq i8* %5, null
br i1 %6, label %85, label %7
7: ; preds = %4
%8 = ptrtoint i8* %0 to i64
br label %9
9: ; preds = %7, %75
%10 = phi i8* [ %5, %7 ], [ %83, %75 ]
%11 = ptrtoint i8* %10 to i64
%12 = sub i64 %11, %8
%13 = tail call i32 @strlen(i8* %3)
%14 = sext i32 %13 to i64
%15 = add nsw i64 %12, %14
%16 = tail call i32 @strlen(i8* %2)
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, i8* %0, i64 %17
%19 = tail call i32 @strlen(i8* %18)
%20 = sext i32 %19 to i64
%21 = add nsw i64 %15, %20
%22 = icmp ult i64 %21, %1
br i1 %22, label %23, label %85
23: ; preds = %9
%24 = tail call i32 @strlen(i8* %3)
%25 = tail call i32 @strlen(i8* %2)
%26 = icmp sgt i32 %24, %25
%27 = tail call i32 @strlen(i8* %3)
%28 = tail call i32 @strlen(i8* %2)
br i1 %26, label %29, label %47
29: ; preds = %23
%30 = tail call i32 @strlen(i8* %10)
br label %31
31: ; preds = %29, %31
%32 = phi i32 [ 0, %29 ], [ %44, %31 ]
%33 = tail call i32 @strlen(i8* %10)
%34 = sub i32 %33, %32
%35 = zext i32 %34 to i64
%36 = getelementptr inbounds i8, i8* %10, i64 %35
%37 = load i8, i8* %36
%38 = tail call i32 @strlen(i8* %10)
%39 = add i32 %28, %32
%40 = sub i32 %27, %39
%41 = add i32 %40, %38
%42 = zext i32 %41 to i64
%43 = getelementptr inbounds i8, i8* %10, i64 %42
store i8 %37, i8* %43
%44 = add i32 %32, 1
%45 = tail call i32 @strlen(i8* %10)
%46 = icmp ugt i32 %44, %45
br i1 %46, label %75, label %31
47: ; preds = %23
%48 = icmp slt i32 %27, %28
br i1 %48, label %49, label %75
49: ; preds = %47
%50 = tail call i32 @strlen(i8* %2)
%51 = tail call i32 @strlen(i8* %3)
%52 = tail call i32 @strlen(i8* %2)
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, i8* %10, i64 %53
%55 = tail call i32 @strlen(i8* %54)
%56 = sub i32 %50, %51
br label %57
57: ; preds = %49, %57
%58 = phi i32 [ 0, %49 ], [ %69, %57 ]
%59 = tail call i32 @strlen(i8* %3)
%60 = add i32 %56, %58
%61 = add i32 %60, %59
%62 = zext i32 %61 to i64
%63 = getelementptr inbounds i8, i8* %10, i64 %62
%64 = load i8, i8* %63
%65 = tail call i32 @strlen(i8* %3)
%66 = add i32 %65, %58
%67 = zext i32 %66 to i64
%68 = getelementptr inbounds i8, i8* %10, i64 %67
store i8 %64, i8* %68
%69 = add i32 %58, 1
%70 = tail call i32 @strlen(i8* %2)
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8, i8* %10, i64 %71
%73 = tail call i32 @strlen(i8* %72)
%74 = icmp ugt i32 %69, %73
br i1 %74, label %75, label %57
75: ; preds = %57, %31, %47
%76 = tail call i32 @strlen(i8* %3)
%77 = tail call i32 @strncpy(i8* %10, i8* %3, i32 %76)
%78 = tail call i32 @strlen(i8* %3)
%79 = trunc i64 %12 to i32
%80 = add i32 %78, %79
%81 = zext i32 %80 to i64
%82 = getelementptr inbounds i8, i8* %0, i64 %81
%83 = tail call i8* @strstr(i8* dereferenceable(1) %82, i8* dereferenceable(1) %2)
%84 = icmp eq i8* %83, null
br i1 %84, label %85, label %9
85: ; preds = %9, %75, %4
%86 = phi i32 [ 0, %4 ], [ 0, %75 ], [ -1, %9 ]
ret i32 %86
}