#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*/ assert(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
size_t strlen(char const *);
scalar_t__ strncmp(char const *, char const *, size_t);
char *strstr(char const *, char const *);
int parse_service_path(const char *buf, size_t buflen,
                       const char *cable_pattern, const char *begin_delimiter,
                       const char *end_delimiter, const char **begin,
                       const char **end) {
  size_t beginlen = strlen(begin_delimiter);
  const char *i;
  assert(buf != NULL);
  assert(begin != NULL);
  assert(end != NULL);
  const char *min = strstr(buf, begin_delimiter);
  if (min == NULL) {
    fprintf(stderr,
            "Device paths string missing "
            "beginning delimiter '%s':\n'%s'\n",
            begin_delimiter, buf);
    return (7);
  }
  if (cable_pattern == NULL) {
    const char *next_closing_brace = strstr(min, end_delimiter);
    if (next_closing_brace == NULL) {
      fprintf(stderr,
              "Device paths string missing "
              " end delimiter '%s':\n'%s'\n",
              end_delimiter, buf);
      return (7);
    }
    if (strstr(next_closing_brace, begin_delimiter) != NULL) {
      fprintf(stderr, "Found multiple cables. "
                      "Use -c <cable> to select the right one.\n");
      return ((-1));
    }
    *begin = min + beginlen;
    *end = next_closing_brace;
    return (0);
  }
  const char *match = strstr(min, cable_pattern);
  if (match == NULL) {
    fprintf(stderr, "No such cable '%s'\n", cable_pattern);
    return (7);
  }
  if (strstr(match + 1, cable_pattern) != NULL) {
    fprintf(stderr, "Ambiguous cable '%s'\n", cable_pattern);
    return ((-1));
  }
  assert(strstr(match, end_delimiter) != NULL);
  *end = strstr(match, end_delimiter);
  for (i = match; i >= min; i--) {
    if (strncmp(i, begin_delimiter, beginlen) == 0) {
      *begin = i + beginlen;
      return (0);
    }
  }
  assert(0 && ("unable to find beginning delimiter,"
               " but we have already confirmed its existence!"));
  return ((-1));
}


x86 assembly (clang, -O0):
<parse_service_path>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x28(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x10(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
cmpq   $0x0,-0x38(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
cmpq   $0x0,0x10(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1070 <strstr@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
jne    11fe <parse_service_path+0xae>
mov    0x2e06(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    0xe15(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x7,-0x4(%rbp)
jmp    13da <parse_service_path+0x28a>
cmpq   $0x0,-0x20(%rbp)
jne    12b0 <parse_service_path+0x160>
mov    -0x50(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1070 <strstr@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
jne    1250 <parse_service_path+0x100>
mov    0x2db4(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    0xdff(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x7,-0x4(%rbp)
jmp    13da <parse_service_path+0x28a>
mov    -0x58(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1070 <strstr@plt>
cmp    $0x0,%rax
je     128a <parse_service_path+0x13a>
mov    0x2d72(%rip),%rax
mov    (%rax),%edi
lea    0xdfc(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13da <parse_service_path+0x28a>
mov    -0x50(%rbp),%rcx
add    -0x40(%rbp),%rcx
mov    -0x38(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x58(%rbp),%rcx
mov    0x10(%rbp),%rax
mov    %rcx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    13da <parse_service_path+0x28a>
mov    -0x50(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1070 <strstr@plt>
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x60(%rbp)
jne    12f3 <parse_service_path+0x1a3>
mov    0x2d0d(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rdx
lea    0xdd3(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x7,-0x4(%rbp)
jmp    13da <parse_service_path+0x28a>
mov    -0x60(%rbp),%rdi
add    $0x1,%rdi
mov    -0x20(%rbp),%rsi
call   1070 <strstr@plt>
cmp    $0x0,%rax
je     1335 <parse_service_path+0x1e5>
mov    0x2ccb(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rdx
lea    0xda5(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13da <parse_service_path+0x28a>
mov    -0x60(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1070 <strstr@plt>
cmp    $0x0,%rax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    -0x60(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1070 <strstr@plt>
mov    %rax,%rcx
mov    0x10(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x60(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x50(%rbp),%rax
jb     13cc <parse_service_path+0x27c>
mov    -0x48(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x40(%rbp),%rdx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    13b6 <parse_service_path+0x266>
mov    -0x48(%rbp),%rcx
add    -0x40(%rbp),%rcx
mov    -0x38(%rbp),%rax
mov    %rcx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    13da <parse_service_path+0x28a>
jmp    13bb <parse_service_path+0x26b>
mov    -0x48(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x48(%rbp)
jmp    1372 <parse_service_path+0x222>
xor    %edi,%edi
call   1050 <assert@plt>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_service_path>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9,%rbx
mov    %r8,%r14
mov    %rcx,%r13
mov    %rdx,%r15
mov    %rdi,%r12
mov    0x50(%rsp),%rbp
mov    %rcx,%rdi
call   1040 <strlen@plt>
mov    %rax,0x10(%rsp)
xor    %edi,%edi
test   %r12,%r12
setne  %dil
call   1050 <assert@plt>
xor    %edi,%edi
mov    %rbx,0x8(%rsp)
test   %rbx,%rbx
setne  %dil
call   1050 <assert@plt>
xor    %edi,%edi
test   %rbp,%rbp
setne  %dil
call   1050 <assert@plt>
mov    %r12,%rdi
mov    %r13,%rsi
call   1070 <strstr@plt>
test   %rax,%rax
je     1214 <parse_service_path+0xc4>
mov    %rax,%rbx
test   %r15,%r15
je     123b <parse_service_path+0xeb>
mov    %rbp,%r12
mov    %rbx,%rdi
mov    %r15,%rsi
call   1070 <strstr@plt>
test   %rax,%rax
je     1285 <parse_service_path+0x135>
mov    %rax,%rbp
lea    0x1(%rax),%rdi
mov    %r15,%rsi
call   1070 <strstr@plt>
test   %rax,%rax
je     12a6 <parse_service_path+0x156>
mov    0x2de4(%rip),%rax
mov    (%rax),%edi
lea    0xec2(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    1303 <parse_service_path+0x1b3>
mov    0x2dc5(%rip),%rax
mov    (%rax),%edi
lea    0xddc(%rip),%rsi
mov    %r13,%rdx
mov    %r12,%rcx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x7,%eax
jmp    1308 <parse_service_path+0x1b8>
mov    %rbp,%r15
mov    %rbx,%rdi
mov    %r14,%rsi
call   1070 <strstr@plt>
test   %rax,%rax
je     1317 <parse_service_path+0x1c7>
mov    %rax,%rbp
mov    %rax,%rdi
mov    %r13,%rsi
call   1070 <strstr@plt>
test   %rax,%rax
je     132f <parse_service_path+0x1df>
mov    0x2d70(%rip),%rax
mov    (%rax),%edi
lea    0xdfa(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    1303 <parse_service_path+0x1b3>
mov    0x2d54(%rip),%rax
mov    (%rax),%edi
lea    0xe1e(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x7,%eax
jmp    1308 <parse_service_path+0x1b8>
mov    %rbp,%rdi
mov    %r14,%rsi
call   1070 <strstr@plt>
xor    %edi,%edi
test   %rax,%rax
setne  %dil
call   1050 <assert@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
call   1070 <strstr@plt>
mov    %rax,(%r12)
cmp    %rbx,%rbp
mov    0x10(%rsp),%r15
jb     12fc <parse_service_path+0x1ac>
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r15,%rdx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1343 <parse_service_path+0x1f3>
add    $0xffffffffffffffff,%rbp
cmp    %rbx,%rbp
jae    12e0 <parse_service_path+0x190>
xor    %edi,%edi
call   1050 <assert@plt>
mov    $0xffffffff,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2cc2(%rip),%rax
mov    (%rax),%edi
lea    0xd15(%rip),%rsi
mov    %r14,%rdx
jmp    1227 <parse_service_path+0xd7>
add    0x10(%rsp),%rbx
mov    0x8(%rsp),%rax
mov    %rbx,(%rax)
mov    %rbp,(%r15)
xor    %eax,%eax
jmp    1308 <parse_service_path+0x1b8>
add    %r15,%rbp
mov    0x8(%rsp),%rax
mov    %rbp,(%rax)
xor    %eax,%eax
jmp    1308 <parse_service_path+0x1b8>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [60 x i8] c"Device paths string missing beginning delimiter '%s':\0A'%s'\0A\00"
@.str.1 = [55 x i8] c"Device paths string missing end delimiter '%s':\0A'%s'\0A\00"
@.str.2 = [64 x i8] c"Found multiple cables. Use -c <cable> to select the right one.\0A\00"
@.str.3 = [20 x i8] c"No such cable '%s'\0A\00"
@.str.4 = [22 x i8] c"Ambiguous cable '%s'\0A\00"
define i32 @parse_service_path(i8* %0, i64 %1, i8* %2, i8* %3, i8* %4, i8** %5, i8** %6) {
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8**
%15 = alloca i8**
%16 = alloca i64
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i8*
store i8* %0, i8** %9
store i64 %1, i64* %10
store i8* %2, i8** %11
store i8* %3, i8** %12
store i8* %4, i8** %13
store i8** %5, i8*** %14
store i8** %6, i8*** %15
%21 = load i8*, i8** %12
%22 = call i64 @strlen(i8* %21)
store i64 %22, i64* %16
%23 = load i8*, i8** %9
%24 = icmp ne i8* %23, null
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 %25)
%27 = load i8**, i8*** %14
%28 = icmp ne i8** %27, null
%29 = zext i1 %28 to i32
%30 = call i32 @assert(i32 %29)
%31 = load i8**, i8*** %15
%32 = icmp ne i8** %31, null
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
%35 = load i8*, i8** %9
%36 = load i8*, i8** %12
%37 = call i8* @strstr(i8* %35, i8* %36)
store i8* %37, i8** %18
%38 = load i8*, i8** %18
%39 = icmp eq i8* %38, null
br i1 %39, label %40, label %45
40: ; preds = %7
%41 = load i32, i32* @stderr
%42 = load i8*, i8** %12
%43 = load i8*, i8** %9
%44 = call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0), i8* %42, i8* %43)
store i32 7, i32* %8
br label %127
45: ; preds = %7
%46 = load i8*, i8** %11
%47 = icmp eq i8* %46, null
br i1 %47, label %48, label %74
48: ; preds = %45
%49 = load i8*, i8** %18
%50 = load i8*, i8** %13
%51 = call i8* @strstr(i8* %49, i8* %50)
store i8* %51, i8** %19
%52 = load i8*, i8** %19
%53 = icmp eq i8* %52, null
br i1 %53, label %54, label %59
54: ; preds = %48
%55 = load i32, i32* @stderr
%56 = load i8*, i8** %13
%57 = load i8*, i8** %9
%58 = call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), i8* %56, i8* %57)
store i32 7, i32* %8
br label %127
59: ; preds = %48
%60 = load i8*, i8** %19
%61 = load i8*, i8** %12
%62 = call i8* @strstr(i8* %60, i8* %61)
%63 = icmp ne i8* %62, null
br i1 %63, label %64, label %67
64: ; preds = %59
%65 = load i32, i32* @stderr
%66 = call i32 (i32, i8*, ...) @fprintf(i32 %65, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %8
br label %127
67: ; preds = %59
%68 = load i8*, i8** %18
%69 = load i64, i64* %16
%70 = getelementptr inbounds i8, i8* %68, i64 %69
%71 = load i8**, i8*** %14
store i8* %70, i8** %71
%72 = load i8*, i8** %19
%73 = load i8**, i8*** %15
store i8* %72, i8** %73
store i32 0, i32* %8
br label %127
74: ; preds = %45
%75 = load i8*, i8** %18
%76 = load i8*, i8** %11
%77 = call i8* @strstr(i8* %75, i8* %76)
store i8* %77, i8** %20
%78 = load i8*, i8** %20
%79 = icmp eq i8* %78, null
br i1 %79, label %80, label %84
80: ; preds = %74
%81 = load i32, i32* @stderr
%82 = load i8*, i8** %11
%83 = call i32 (i32, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %82)
store i32 7, i32* %8
br label %127
84: ; preds = %74
%85 = load i8*, i8** %20
%86 = getelementptr inbounds i8, i8* %85, i64 1
%87 = load i8*, i8** %11
%88 = call i8* @strstr(i8* %86, i8* %87)
%89 = icmp ne i8* %88, null
br i1 %89, label %90, label %94
90: ; preds = %84
%91 = load i32, i32* @stderr
%92 = load i8*, i8** %11
%93 = call i32 (i32, i8*, ...) @fprintf(i32 %91, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i8* %92)
store i32 -1, i32* %8
br label %127
94: ; preds = %84
%95 = load i8*, i8** %20
%96 = load i8*, i8** %13
%97 = call i8* @strstr(i8* %95, i8* %96)
%98 = icmp ne i8* %97, null
%99 = zext i1 %98 to i32
%100 = call i32 @assert(i32 %99)
%101 = load i8*, i8** %20
%102 = load i8*, i8** %13
%103 = call i8* @strstr(i8* %101, i8* %102)
%104 = load i8**, i8*** %15
store i8* %103, i8** %104
%105 = load i8*, i8** %20
store i8* %105, i8** %17
br label %106
106: ; preds = %122, %94
%107 = load i8*, i8** %17
%108 = load i8*, i8** %18
%109 = icmp uge i8* %107, %108
br i1 %109, label %110, label %125
110: ; preds = %106
%111 = load i8*, i8** %17
%112 = load i8*, i8** %12
%113 = load i64, i64* %16
%114 = call i64 @strncmp(i8* %111, i8* %112, i64 %113)
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %121
116: ; preds = %110
%117 = load i8*, i8** %17
%118 = load i64, i64* %16
%119 = getelementptr inbounds i8, i8* %117, i64 %118
%120 = load i8**, i8*** %14
store i8* %119, i8** %120
store i32 0, i32* %8
br label %127
121: ; preds = %110
br label %122
122: ; preds = %121
%123 = load i8*, i8** %17
%124 = getelementptr inbounds i8, i8* %123, i32 -1
store i8* %124, i8** %17
br label %106
125: ; preds = %106
%126 = call i32 @assert(i32 0)
store i32 -1, i32* %8
br label %127
127: ; preds = %125, %116, %90, %80, %67, %64, %54, %40
%128 = load i32, i32* %8
ret i32 %128
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [60 x i8] c"Device paths string missing beginning delimiter '%s':\0A'%s'\0A\00"
@.str.1 = [55 x i8] c"Device paths string missing end delimiter '%s':\0A'%s'\0A\00"
@.str.2 = [64 x i8] c"Found multiple cables. Use -c <cable> to select the right one.\0A\00"
@.str.3 = [20 x i8] c"No such cable '%s'\0A\00"
@.str.4 = [22 x i8] c"Ambiguous cable '%s'\0A\00"
define i32 @parse_service_path(i8* %0, i64 %1, i8* %2, i8* %3, i8* %4, i8** writeonly %5, i8** writeonly %6) {
%8 = tail call i64 @strlen(i8* dereferenceable(1) %3)
%9 = icmp ne i8* %0, null
%10 = zext i1 %9 to i32
%11 = tail call i32 @assert(i32 %10)
%12 = icmp ne i8** %5, null
%13 = zext i1 %12 to i32
%14 = tail call i32 @assert(i32 %13)
%15 = icmp ne i8** %6, null
%16 = zext i1 %15 to i32
%17 = tail call i32 @assert(i32 %16)
%18 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) %3)
%19 = icmp eq i8* %18, null
br i1 %19, label %20, label %23
20: ; preds = %7
%21 = load i32, i32* @stderr
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %0)
br label %70
23: ; preds = %7
%24 = icmp eq i8* %2, null
br i1 %24, label %25, label %39
25: ; preds = %23
%26 = tail call i8* @strstr(i8* %18, i8* dereferenceable(1) %4)
%27 = icmp eq i8* %26, null
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = load i32, i32* @stderr
%30 = tail call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), i8* %4, i8* %0)
br label %70
31: ; preds = %25
%32 = tail call i8* @strstr(i8* %26, i8* dereferenceable(1) %3)
%33 = icmp eq i8* %32, null
br i1 %33, label %37, label %34
34: ; preds = %31
%35 = load i32, i32* @stderr
%36 = tail call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
br label %70
37: ; preds = %31
%38 = getelementptr inbounds i8, i8* %18, i64 %8
store i8* %38, i8** %5
store i8* %26, i8** %6
br label %70
39: ; preds = %23
%40 = tail call i8* @strstr(i8* %18, i8* %2)
%41 = icmp eq i8* %40, null
br i1 %41, label %42, label %45
42: ; preds = %39
%43 = load i32, i32* @stderr
%44 = tail call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %2)
br label %70
45: ; preds = %39
%46 = getelementptr inbounds i8, i8* %40, i64 1
%47 = tail call i8* @strstr(i8* %46, i8* %2)
%48 = icmp eq i8* %47, null
br i1 %48, label %52, label %49
49: ; preds = %45
%50 = load i32, i32* @stderr
%51 = tail call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i8* %2)
br label %70
52: ; preds = %45
%53 = tail call i8* @strstr(i8* %40, i8* dereferenceable(1) %4)
%54 = icmp ne i8* %53, null
%55 = zext i1 %54 to i32
%56 = tail call i32 @assert(i32 %55)
%57 = tail call i8* @strstr(i8* %40, i8* dereferenceable(1) %4)
store i8* %57, i8** %6
%58 = icmp ult i8* %40, %18
br i1 %58, label %68, label %59
59: ; preds = %52, %65
%60 = phi i8* [ %66, %65 ], [ %40, %52 ]
%61 = tail call i64 @strncmp(i8* %60, i8* %3, i64 %8)
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %59
%64 = getelementptr inbounds i8, i8* %60, i64 %8
store i8* %64, i8** %5
br label %70
65: ; preds = %59
%66 = getelementptr inbounds i8, i8* %60, i64 -1
%67 = icmp ult i8* %66, %18
br i1 %67, label %68, label %59
68: ; preds = %65, %52
%69 = tail call i32 @assert(i32 0)
br label %70
70: ; preds = %42, %49, %63, %68, %28, %34, %37, %20
%71 = phi i32 [ 7, %20 ], [ 7, %28 ], [ -1, %34 ], [ 0, %37 ], [ 7, %42 ], [ -1, %49 ], [ 0, %63 ], [ -1, %68 ]
ret i32 %71
}