#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 */
struct flock {
  void *l_type;
  scalar_t__ l_len;
  scalar_t__ l_start;
  int /*<<< orphan*/ l_whence;
};

/* Variables and functions */
void *F_RDLCK;
int /*<<< orphan*/ F_SETLK;
void *F_UNLCK;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ SIGTERM;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ err(int, char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int fcntl(int, int /*<<< orphan*/, struct flock *);
int fork();
int /*<<< orphan*/ kill(int, int /*<<< orphan*/);
int /*<<< orphan*/ pause();
scalar_t__ pipe(int *);
int /*<<< orphan*/ printf(char *, ...);
int read(int, char *, int);
int /*<<< orphan*/ safe_waitpid(int);
scalar_t__ write(int, char *, int);
int test8(int fd, __attribute__((__unused__)) int argc,
          const __attribute__((__unused__)) char **argv) {
  int pid;
  int pfd[2];
  struct flock fl;
  char ch;
  int res;
  if (pipe(pfd) < 0)
    err(1, "pipe");
  fl.l_start = 0;
  fl.l_len = 0;
  fl.l_type = F_RDLCK;
  fl.l_whence = SEEK_SET;
  pid = fork();
  if (pid < 0)
    err(1, "fork");
  if (pid == 0) {
    if (fcntl(fd, F_SETLK, &fl) < 0)
      err(1, "F_SETLK (child)");
    if (write(pfd[1], "a", 1) < 0)
      err(1, "writing to pipe (child)");
    pause();
    exit(0);
  }
  if (read(pfd[0], &ch, 1) != 1)
    err(1, "reading from pipe (child)");
  printf("8 - F_SETLK shared lock on share locked region: ");
  fl.l_type = F_RDLCK;
  res = fcntl(fd, F_SETLK, &fl);
  kill(pid, SIGTERM);
  safe_waitpid(pid);
  close(pfd[0]);
  close(pfd[1]);
  fl.l_start = 0;
  fl.l_len = 0;
  fl.l_type = F_UNLCK;
  if (fcntl(fd, F_SETLK, &fl) < 0)
    err(1, "F_UNLCK");
  do {
    if (res != 0) {
      printf("FAIL (%s)\n", "res != 0");
      return -1;
    }
  } while (0);
  do {
    printf("SUCCEED\n");
    return 0;
  } while (0);
}


x86 assembly (clang, -O0):
<test8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
lea    -0x24(%rbp),%rdi
call   1080 <pipe@plt>
cmp    $0x0,%rax
jge    11f6 <test8+0x36>
mov    $0x1,%edi
lea    0xe0f(%rip),%rsi
call   10c0 <err@plt>
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
mov    0x2dab(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x48(%rbp)
mov    0x2dad(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    $0x0,%al
call   10e0 <fork@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    1245 <test8+0x85>
mov    $0x1,%edi
lea    0xdc5(%rip),%rsi
call   10c0 <err@plt>
cmpl   $0x0,-0x1c(%rbp)
jne    12bb <test8+0xfb>
mov    -0x8(%rbp),%edi
mov    0x2d87(%rip),%rax
mov    (%rax),%esi
lea    -0x48(%rbp),%rdx
call   1040 <fcntl@plt>
cmp    $0x0,%eax
jge    127e <test8+0xbe>
mov    $0x1,%edi
lea    0xd91(%rip),%rsi
call   10c0 <err@plt>
mov    -0x20(%rbp),%edi
lea    0xd92(%rip),%rsi
mov    $0x1,%edx
call   1050 <write@plt>
cmp    $0x0,%rax
jge    12ad <test8+0xed>
mov    $0x1,%edi
lea    0xd74(%rip),%rsi
call   10c0 <err@plt>
mov    $0x0,%al
call   10b0 <pause@plt>
xor    %edi,%edi
call   10d0 <exit@plt>
mov    -0x24(%rbp),%edi
lea    -0x49(%rbp),%rsi
mov    $0x1,%edx
call   1090 <read@plt>
cmp    $0x1,%eax
je     12e6 <test8+0x126>
mov    $0x1,%edi
lea    0xd53(%rip),%rsi
call   10c0 <err@plt>
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2cbd(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2cd4(%rip),%rax
mov    (%rax),%esi
lea    -0x48(%rbp),%rdx
call   1040 <fcntl@plt>
mov    %eax,-0x50(%rbp)
mov    -0x1c(%rbp),%edi
mov    0x2cc4(%rip),%rax
mov    (%rax),%esi
call   10a0 <kill@plt>
mov    -0x1c(%rbp),%edi
call   1030 <safe_waitpid@plt>
mov    -0x24(%rbp),%edi
call   1070 <close@plt>
mov    -0x20(%rbp),%edi
call   1070 <close@plt>
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
mov    0x2c7e(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2c75(%rip),%rax
mov    (%rax),%esi
lea    -0x48(%rbp),%rdx
call   1040 <fcntl@plt>
cmp    $0x0,%eax
jge    1390 <test8+0x1d0>
mov    $0x1,%edi
lea    0xcf4(%rip),%rsi
call   10c0 <err@plt>
jmp    1395 <test8+0x1d5>
cmpl   $0x0,-0x50(%rbp)
je     13c0 <test8+0x200>
lea    0xce1(%rip),%rdi
lea    0xce5(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13df <test8+0x21f>
jmp    13c5 <test8+0x205>
jmp    13ca <test8+0x20a>
lea    0xcca(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test8>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %edi,%r14d
lea    0x10(%rsp),%rdi
call   1090 <pipe@plt>
test   %rax,%rax
jns    1201 <test8+0x31>
lea    0xe09(%rip),%rsi
mov    $0x1,%edi
call   10d0 <err@plt>
xorps  %xmm0,%xmm0
movups %xmm0,0x20(%rsp)
mov    0x2da8(%rip),%rbx
mov    (%rbx),%rax
mov    %rax,0x18(%rsp)
mov    0x2da9(%rip),%rax
mov    (%rax),%eax
mov    %eax,0x30(%rsp)
xor    %eax,%eax
call   10f0 <fork@plt>
mov    %eax,%ebp
test   %eax,%eax
js     1298 <test8+0xc8>
jne    12a9 <test8+0xd9>
mov    0x2da5(%rip),%rax
mov    (%rax),%esi
lea    0x18(%rsp),%rdx
mov    %r14d,%edi
call   1050 <fcntl@plt>
test   %eax,%eax
jns    125f <test8+0x8f>
lea    0xdb5(%rip),%rsi
mov    $0x1,%edi
call   10d0 <err@plt>
mov    0x14(%rsp),%edi
lea    0xdb0(%rip),%rsi
mov    $0x1,%edx
call   1060 <write@plt>
test   %rax,%rax
jns    128a <test8+0xba>
lea    0xd9c(%rip),%rsi
mov    $0x1,%edi
call   10d0 <err@plt>
xor    %eax,%eax
call   10c0 <pause@plt>
xor    %edi,%edi
call   10e0 <exit@plt>
lea    0xd66(%rip),%rsi
mov    $0x1,%edi
call   10d0 <err@plt>
lea    0x20(%rsp),%r12
mov    0x10(%rsp),%edi
lea    0xf(%rsp),%rsi
mov    $0x1,%edx
call   10a0 <read@plt>
cmp    $0x1,%eax
je     12d7 <test8+0x107>
lea    0xd67(%rip),%rsi
mov    $0x1,%edi
call   10d0 <err@plt>
lea    0xd70(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    (%rbx),%rax
mov    %rax,0x18(%rsp)
mov    0x2cec(%rip),%r13
mov    0x0(%r13),%esi
lea    0x18(%rsp),%r15
mov    %r14d,%edi
mov    %r15,%rdx
call   1050 <fcntl@plt>
mov    %eax,%ebx
mov    0x2cd7(%rip),%rax
mov    (%rax),%esi
mov    %ebp,%edi
call   10b0 <kill@plt>
mov    %ebp,%edi
call   1040 <safe_waitpid@plt>
mov    0x10(%rsp),%edi
call   1080 <close@plt>
mov    0x14(%rsp),%edi
call   1080 <close@plt>
xorps  %xmm0,%xmm0
movups %xmm0,(%r12)
mov    0x2c96(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x18(%rsp)
mov    0x0(%r13),%esi
mov    %r14d,%edi
mov    %r15,%rdx
call   1050 <fcntl@plt>
test   %eax,%eax
js     137d <test8+0x1ad>
test   %ebx,%ebx
je     1392 <test8+0x1c2>
lea    0xd1f(%rip),%rdi
lea    0xd23(%rip),%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0xffffffff,%eax
jmp    13a0 <test8+0x1d0>
lea    0xcfb(%rip),%rsi
mov    $0x1,%edi
call   10d0 <err@plt>
test   %ebx,%ebx
jne    1361 <test8+0x191>
lea    0xd02(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.flock = type { i8*, i64, i64, i32 }
@.str = [5 x i8] c"pipe\00"
@F_RDLCK = global i8* null
@SEEK_SET = global i32 0
@.str.1 = [5 x i8] c"fork\00"
@F_SETLK = global i32 0
@.str.2 = [16 x i8] c"F_SETLK (child)\00"
@.str.3 = [2 x i8] c"a\00"
@.str.4 = [24 x i8] c"writing to pipe (child)\00"
@.str.5 = [26 x i8] c"reading from pipe (child)\00"
@.str.6 = [49 x i8] c"8 - F_SETLK shared lock on share locked region: \00"
@SIGTERM = global i32 0
@F_UNLCK = global i8* null
@.str.7 = [8 x i8] c"F_UNLCK\00"
@.str.8 = [11 x i8] c"FAIL (%s)\0A\00"
@.str.9 = [9 x i8] c"res != 0\00"
@.str.10 = [9 x i8] c"SUCCEED\0A\00"
define i32 @test8(i32 %0, i32 %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8**
%8 = alloca i32
%9 = alloca [2 x i32]
%10 = alloca %struct.flock
%11 = alloca i8
%12 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i8** %2, i8*** %7
%13 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 0
%14 = call i64 @pipe(i32* %13)
%15 = icmp slt i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %3
%17 = call i32 @err(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %18
18: ; preds = %16, %3
%19 = getelementptr inbounds %struct.flock, %struct.flock* %10, i32 0, i32 2
store i64 0, i64* %19
%20 = getelementptr inbounds %struct.flock, %struct.flock* %10, i32 0, i32 1
store i64 0, i64* %20
%21 = load i8*, i8** @F_RDLCK
%22 = getelementptr inbounds %struct.flock, %struct.flock* %10, i32 0, i32 0
store i8* %21, i8** %22
%23 = load i32, i32* @SEEK_SET
%24 = getelementptr inbounds %struct.flock, %struct.flock* %10, i32 0, i32 3
store i32 %23, i32* %24
%25 = call i32 (...) @fork()
store i32 %25, i32* %8
%26 = load i32, i32* %8
%27 = icmp slt i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %18
%29 = call i32 @err(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %30
30: ; preds = %28, %18
%31 = load i32, i32* %8
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %50
33: ; preds = %30
%34 = load i32, i32* %5
%35 = load i32, i32* @F_SETLK
%36 = call i32 @fcntl(i32 %34, i32 %35, %struct.flock* %10)
%37 = icmp slt i32 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %33
%39 = call i32 @err(i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %40
40: ; preds = %38, %33
%41 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 1
%42 = load i32, i32* %41
%43 = call i64 @write(i32 %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%44 = icmp slt i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %40
%46 = call i32 @err(i32 1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
br label %47
47: ; preds = %45, %40
%48 = call i32 (...) @pause()
%49 = call i32 @exit(i32 0)
unreachable
50: ; preds = %30
%51 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 0
%52 = load i32, i32* %51
%53 = call i32 @read(i32 %52, i8* %11, i32 1)
%54 = icmp ne i32 %53, 1
br i1 %54, label %55, label %57
55: ; preds = %50
%56 = call i32 @err(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
br label %57
57: ; preds = %55, %50
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%59 = load i8*, i8** @F_RDLCK
%60 = getelementptr inbounds %struct.flock, %struct.flock* %10, i32 0, i32 0
store i8* %59, i8** %60
%61 = load i32, i32* %5
%62 = load i32, i32* @F_SETLK
%63 = call i32 @fcntl(i32 %61, i32 %62, %struct.flock* %10)
store i32 %63, i32* %12
%64 = load i32, i32* %8
%65 = load i32, i32* @SIGTERM
%66 = call i32 @kill(i32 %64, i32 %65)
%67 = load i32, i32* %8
%68 = call i32 @safe_waitpid(i32 %67)
%69 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 0
%70 = load i32, i32* %69
%71 = call i32 @close(i32 %70)
%72 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 1
%73 = load i32, i32* %72
%74 = call i32 @close(i32 %73)
%75 = getelementptr inbounds %struct.flock, %struct.flock* %10, i32 0, i32 2
store i64 0, i64* %75
%76 = getelementptr inbounds %struct.flock, %struct.flock* %10, i32 0, i32 1
store i64 0, i64* %76
%77 = load i8*, i8** @F_UNLCK
%78 = getelementptr inbounds %struct.flock, %struct.flock* %10, i32 0, i32 0
store i8* %77, i8** %78
%79 = load i32, i32* %5
%80 = load i32, i32* @F_SETLK
%81 = call i32 @fcntl(i32 %79, i32 %80, %struct.flock* %10)
%82 = icmp slt i32 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %57
%84 = call i32 @err(i32 1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
br label %85
85: ; preds = %83, %57
br label %86
86: ; preds = %85
%87 = load i32, i32* %12
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %91
89: ; preds = %86
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
store i32 -1, i32* %4
br label %95
91: ; preds = %86
br label %92
92: ; preds = %91
br label %93
93: ; preds = %92
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %4
br label %95
95: ; preds = %89, %93
%96 = load i32, i32* %4
ret i32 %96
}

LLVM IR (-O2):
%struct.flock = type { i8*, i64, i64, i32 }
@.str = [5 x i8] c"pipe\00"
@F_RDLCK = global i8* null
@SEEK_SET = global i32 0
@.str.1 = [5 x i8] c"fork\00"
@F_SETLK = global i32 0
@.str.2 = [16 x i8] c"F_SETLK (child)\00"
@.str.3 = [2 x i8] c"a\00"
@.str.4 = [24 x i8] c"writing to pipe (child)\00"
@.str.5 = [26 x i8] c"reading from pipe (child)\00"
@.str.6 = [49 x i8] c"8 - F_SETLK shared lock on share locked region: \00"
@SIGTERM = global i32 0
@F_UNLCK = global i8* null
@.str.7 = [8 x i8] c"F_UNLCK\00"
@.str.8 = [11 x i8] c"FAIL (%s)\0A\00"
@.str.9 = [9 x i8] c"res != 0\00"
@str = [8 x i8] c"SUCCEED\00"
define i32 @test8(i32 %0, i32 %1, i8** nocapture readnone %2) {
%4 = alloca [2 x i32]
%5 = alloca %struct.flock
%6 = alloca i8
%7 = bitcast [2 x i32]* %4 to i8*
%8 = bitcast %struct.flock* %5 to i8*
%9 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
%10 = call i64 @pipe(i32* %9)
%11 = icmp slt i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %3
%13 = call i32 @err(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %14
14: ; preds = %12, %3
%15 = getelementptr inbounds %struct.flock, %struct.flock* %5, i64 0, i32 1
%16 = bitcast i64* %15 to i8*
%17 = load i8*, i8** @F_RDLCK
%18 = getelementptr inbounds %struct.flock, %struct.flock* %5, i64 0, i32 0
store i8* %17, i8** %18
%19 = load i32, i32* @SEEK_SET
%20 = getelementptr inbounds %struct.flock, %struct.flock* %5, i64 0, i32 3
store i32 %19, i32* %20
%21 = call i32 (...) @fork()
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %14
%24 = call i32 @err(i32 1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %43
25: ; preds = %14
%26 = icmp eq i32 %21, 0
br i1 %26, label %27, label %43
27: ; preds = %25
%28 = load i32, i32* @F_SETLK
%29 = call i32 @fcntl(i32 %0, i32 %28, %struct.flock* %5)
%30 = icmp slt i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 @err(i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %33
33: ; preds = %31, %27
%34 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
%35 = load i32, i32* %34
%36 = call i64 @write(i32 %35, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%37 = icmp slt i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %33
%39 = call i32 @err(i32 1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
br label %40
40: ; preds = %38, %33
%41 = call i32 (...) @pause()
%42 = call i32 @exit(i32 0)
unreachable
43: ; preds = %23, %25
%44 = load i32, i32* %9
%45 = call i32 @read(i32 %44, i8* %6, i32 1)
%46 = icmp eq i32 %45, 1
br i1 %46, label %49, label %47
47: ; preds = %43
%48 = call i32 @err(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
br label %49
49: ; preds = %47, %43
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%51 = load i8*, i8** @F_RDLCK
store i8* %51, i8** %18
%52 = load i32, i32* @F_SETLK
%53 = call i32 @fcntl(i32 %0, i32 %52, %struct.flock* %5)
%54 = load i32, i32* @SIGTERM
%55 = call i32 @kill(i32 %21, i32 %54)
%56 = call i32 @safe_waitpid(i32 %21)
%57 = load i32, i32* %9
%58 = call i32 @close(i32 %57)
%59 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
%60 = load i32, i32* %59
%61 = call i32 @close(i32 %60)
%62 = bitcast i64* %15 to i8*
%63 = load i8*, i8** @F_UNLCK
store i8* %63, i8** %18
%64 = load i32, i32* @F_SETLK
%65 = call i32 @fcntl(i32 %0, i32 %64, %struct.flock* %5)
%66 = icmp slt i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %49
%68 = call i32 @err(i32 1, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
br label %69
69: ; preds = %49, %67
%70 = icmp eq i32 %53, 0
br i1 %70, label %73, label %71
71: ; preds = %69
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
br label %75
73: ; preds = %69
%74 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
br label %75
75: ; preds = %73, %71
%76 = phi i32 [ -1, %71 ], [ 0, %73 ]
ret i32 %76
}