#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 */
char *alloc_string(char *);
char *char_replace(char *, char, char);
size_t count_matches(char *, char);
int /*<<< orphan*/ memmove(char *, char *, scalar_t__);
char *parse_opera(char *);
char *strchr(char *, char);
scalar_t__ strlen(char *);
char *strpbrk(char *, char *);
char *strrchr(char *, char);
int /*<<< orphan*/ *strstr(char *, char *);
int /*<<< orphan*/ xstrncpy(char *, char *, int);
char *parse_browser(char *match, char *type, int i, char ***hash) {
  char *b = NULL, *ptr = NULL, *slh = NULL;
  size_t cnt = 0, space = 0;
  if ((cnt = count_matches(hash[i][0], ' ')) && (b = match)) {
    while (space++ < cnt && (b = strchr(b, ' ')))
      b++;
  } else
    b = match;
  xstrncpy(type, hash[i][1], 13);
  if (strstr(match, "rv:11") && strstr(match, "Trident/7.0")) {
    return alloc_string("MSIE/11.0");
  }
  if (strstr(match, "OPR") != NULL && (slh = strrchr(match, '/'))) {
    return parse_opera(slh);
  }
  if (strstr(match, "Opera") && (slh = strrchr(match, '/')) && match < slh) {
    memmove(match + 5, slh, strlen(slh) + 1);
  }
  if (strstr(match, "MSIE") != NULL) {
    if ((ptr = strpbrk(match, ";)-")) != NULL)
      *ptr = '\0';
    match = char_replace(match, ' ', '/');
  } else if ((ptr = strpbrk(b ? b : match, ";) ")) != NULL) {
    *ptr = '\0';
  }
  return alloc_string(match);
}


x86 assembly (clang, -O0):
<parse_browser>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
movq   $0x0,-0x48(%rbp)
movq   $0x0,-0x50(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    (%rax),%rdi
mov    $0x20,%esi
call   10a0 <count_matches@plt>
mov    %rax,-0x48(%rbp)
cmp    $0x0,%rax
je     128d <parse_browser+0xdd>
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
je     128d <parse_browser+0xdd>
jmp    122d <parse_browser+0x7d>
mov    -0x50(%rbp),%rcx
mov    %rcx,%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
xor    %eax,%eax
cmp    -0x48(%rbp),%rcx
mov    %al,-0x51(%rbp)
jae    1267 <parse_browser+0xb7>
mov    -0x30(%rbp),%rdi
mov    $0x20,%esi
call   1050 <strchr@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
setne  %al
mov    %al,-0x51(%rbp)
mov    -0x51(%rbp),%al
test   $0x1,%al
jne    1277 <parse_browser+0xc7>
jmp    1288 <parse_browser+0xd8>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
jmp    122d <parse_browser+0x7d>
jmp    1295 <parse_browser+0xe5>
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x28(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    0x8(%rax),%rsi
mov    $0xd,%edx
call   1030 <xstrncpy@plt>
mov    -0x10(%rbp),%rdi
lea    0xd42(%rip),%rsi
call   10d0 <strstr@plt>
cmp    $0x0,%rax
je     12fc <parse_browser+0x14c>
mov    -0x10(%rbp),%rdi
lea    0xd2e(%rip),%rsi
call   10d0 <strstr@plt>
cmp    $0x0,%rax
je     12fc <parse_browser+0x14c>
lea    0xd24(%rip),%rdi
call   10b0 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    146b <parse_browser+0x2bb>
mov    -0x10(%rbp),%rdi
lea    0xd15(%rip),%rsi
call   10d0 <strstr@plt>
cmp    $0x0,%rax
je     1344 <parse_browser+0x194>
mov    -0x10(%rbp),%rdi
mov    $0x2f,%esi
call   1060 <strrchr@plt>
mov    %rax,-0x40(%rbp)
cmp    $0x0,%rax
je     1344 <parse_browser+0x194>
mov    -0x40(%rbp),%rdi
call   10c0 <parse_opera@plt>
mov    %rax,-0x8(%rbp)
jmp    146b <parse_browser+0x2bb>
mov    -0x10(%rbp),%rdi
lea    0xcd1(%rip),%rsi
call   10d0 <strstr@plt>
cmp    $0x0,%rax
je     13b9 <parse_browser+0x209>
mov    -0x10(%rbp),%rdi
mov    $0x2f,%esi
call   1060 <strrchr@plt>
mov    %rax,-0x40(%rbp)
cmp    $0x0,%rax
je     13b9 <parse_browser+0x209>
mov    -0x10(%rbp),%rax
cmp    -0x40(%rbp),%rax
jae    13b9 <parse_browser+0x209>
mov    -0x10(%rbp),%rax
add    $0x5,%rax
mov    %rax,-0x68(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x40(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x68(%rbp),%rdi
mov    -0x60(%rbp),%rsi
mov    %rax,%rdx
add    $0x1,%rdx
call   1090 <memmove@plt>
mov    -0x10(%rbp),%rdi
lea    0xc62(%rip),%rsi
call   10d0 <strstr@plt>
cmp    $0x0,%rax
je     1414 <parse_browser+0x264>
mov    -0x10(%rbp),%rdi
lea    0xc4d(%rip),%rsi
call   1080 <strpbrk@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
je     13f8 <parse_browser+0x248>
mov    -0x38(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
mov    $0x20,%esi
mov    $0x2f,%edx
call   1070 <char_replace@plt>
mov    %rax,-0x10(%rbp)
jmp    145e <parse_browser+0x2ae>
cmpq   $0x0,-0x30(%rbp)
je     142c <parse_browser+0x27c>
mov    -0x30(%rbp),%rax
mov    %rax,-0x70(%rbp)
jmp    1434 <parse_browser+0x284>
mov    -0x10(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rdi
lea    0xbf0(%rip),%rsi
call   1080 <strpbrk@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
je     1459 <parse_browser+0x2a9>
mov    -0x38(%rbp),%rax
movb   $0x0,(%rax)
jmp    145e <parse_browser+0x2ae>
mov    -0x10(%rbp),%rdi
call   10b0 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_browser>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r12
mov    %rsi,%r15
mov    %rdi,%r14
movslq %edx,%rbp
mov    (%rcx,%rbp,8),%rax
mov    (%rax),%rdi
mov    $0x20,%esi
call   10a0 <count_matches@plt>
mov    %r14,%r13
test   %r14,%r14
je     1214 <parse_browser+0x64>
mov    %rax,%rbx
mov    %r14,%r13
test   %rax,%rax
je     1214 <parse_browser+0x64>
mov    %r14,%r13
xchg   %ax,%ax
mov    %r13,%rdi
mov    $0x20,%esi
call   1050 <strchr@plt>
test   %rax,%rax
je     1211 <parse_browser+0x61>
mov    %rax,%r13
add    $0x1,%r13
add    $0xffffffffffffffff,%rbx
jne    11f0 <parse_browser+0x40>
jmp    1214 <parse_browser+0x64>
xor    %r13d,%r13d
mov    (%r12,%rbp,8),%rax
mov    0x8(%rax),%rsi
mov    %r15,%rdi
mov    $0xd,%edx
call   1030 <xstrncpy@plt>
lea    0xdd0(%rip),%rsi
mov    %r14,%rdi
call   10d0 <strstr@plt>
test   %rax,%rax
je     125d <parse_browser+0xad>
lea    0xdc2(%rip),%rsi
mov    %r14,%rdi
call   10d0 <strstr@plt>
test   %rax,%rax
je     125d <parse_browser+0xad>
lea    0xdba(%rip),%rdi
jmp    1343 <parse_browser+0x193>
lea    0xdb8(%rip),%rsi
mov    %r14,%rdi
call   10d0 <strstr@plt>
test   %rax,%rax
je     1299 <parse_browser+0xe9>
mov    %r14,%rdi
mov    $0x2f,%esi
call   1060 <strrchr@plt>
test   %rax,%rax
je     1299 <parse_browser+0xe9>
mov    %rax,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    10c0 <parse_opera@plt>
lea    0xd80(%rip),%rsi
mov    %r14,%rdi
call   10d0 <strstr@plt>
test   %rax,%rax
je     12dd <parse_browser+0x12d>
mov    %r14,%rdi
mov    $0x2f,%esi
call   1060 <strrchr@plt>
cmp    %r14,%rax
jbe    12dd <parse_browser+0x12d>
mov    %rax,%rbx
lea    0x5(%r14),%r15
mov    %rax,%rdi
call   1040 <strlen@plt>
lea    0x1(%rax),%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1090 <memmove@plt>
lea    0xd42(%rip),%rsi
mov    %r14,%rdi
call   10d0 <strstr@plt>
test   %rax,%rax
je     1322 <parse_browser+0x172>
lea    0xd33(%rip),%rsi
mov    %r14,%rdi
call   1080 <strpbrk@plt>
test   %rax,%rax
je     1308 <parse_browser+0x158>
movb   $0x0,(%rax)
mov    %r14,%rdi
mov    $0x20,%esi
mov    $0x2f,%edx
call   1070 <char_replace@plt>
mov    %rax,%r14
mov    %rax,%rdi
jmp    1343 <parse_browser+0x193>
test   %r13,%r13
cmove  %r14,%r13
lea    0xcff(%rip),%rsi
mov    %r13,%rdi
call   1080 <strpbrk@plt>
test   %rax,%rax
je     1340 <parse_browser+0x190>
movb   $0x0,(%rax)
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    10b0 <alloc_string@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"rv:11\00"
@.str.1 = [12 x i8] c"Trident/7.0\00"
@.str.2 = [10 x i8] c"MSIE/11.0\00"
@.str.3 = [4 x i8] c"OPR\00"
@.str.4 = [6 x i8] c"Opera\00"
@.str.5 = [5 x i8] c"MSIE\00"
@.str.6 = [4 x i8] c";)-\00"
@.str.7 = [4 x i8] c";) \00"
define i8* @parse_browser(i8* %0, i8* %1, i32 %2, i8*** %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i8***
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i64
store i8* %0, i8** %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i8*** %3, i8**** %9
store i8* null, i8** %10
store i8* null, i8** %11
store i8* null, i8** %12
store i64 0, i64* %13
store i64 0, i64* %14
%15 = load i8***, i8**** %9
%16 = load i32, i32* %8
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8**, i8*** %15, i64 %17
%19 = load i8**, i8*** %18
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
%22 = call i64 @count_matches(i8* %21, i8 signext 32)
store i64 %22, i64* %13
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %43
24: ; preds = %4
%25 = load i8*, i8** %6
store i8* %25, i8** %10
%26 = icmp ne i8* %25, null
br i1 %26, label %27, label %43
27: ; preds = %24
br label %28
28: ; preds = %39, %27
%29 = load i64, i64* %14
%30 = add i64 %29, 1
store i64 %30, i64* %14
%31 = load i64, i64* %13
%32 = icmp ult i64 %29, %31
br i1 %32, label %33, label %37
33: ; preds = %28
%34 = load i8*, i8** %10
%35 = call i8* @strchr(i8* %34, i8 signext 32)
store i8* %35, i8** %10
%36 = icmp ne i8* %35, null
br label %37
37: ; preds = %33, %28
%38 = phi i1 [ false, %28 ], [ %36, %33 ]
br i1 %38, label %39, label %42
39: ; preds = %37
%40 = load i8*, i8** %10
%41 = getelementptr inbounds i8, i8* %40, i32 1
store i8* %41, i8** %10
br label %28
42: ; preds = %37
br label %45
43: ; preds = %24, %4
%44 = load i8*, i8** %6
store i8* %44, i8** %10
br label %45
45: ; preds = %43, %42
%46 = load i8*, i8** %7
%47 = load i8***, i8**** %9
%48 = load i32, i32* %8
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8**, i8*** %47, i64 %49
%51 = load i8**, i8*** %50
%52 = getelementptr inbounds i8*, i8** %51, i64 1
%53 = load i8*, i8** %52
%54 = call i32 @xstrncpy(i8* %46, i8* %53, i32 13)
%55 = load i8*, i8** %6
%56 = call i32* @strstr(i8* %55, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%57 = icmp ne i32* %56, null
br i1 %57, label %58, label %64
58: ; preds = %45
%59 = load i8*, i8** %6
%60 = call i32* @strstr(i8* %59, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%61 = icmp ne i32* %60, null
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = call i8* @alloc_string(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
store i8* %63, i8** %5
br label %125
64: ; preds = %58, %45
%65 = load i8*, i8** %6
%66 = call i32* @strstr(i8* %65, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%67 = icmp ne i32* %66, null
br i1 %67, label %68, label %75
68: ; preds = %64
%69 = load i8*, i8** %6
%70 = call i8* @strrchr(i8* %69, i8 signext 47)
store i8* %70, i8** %12
%71 = icmp ne i8* %70, null
br i1 %71, label %72, label %75
72: ; preds = %68
%73 = load i8*, i8** %12
%74 = call i8* @parse_opera(i8* %73)
store i8* %74, i8** %5
br label %125
75: ; preds = %68, %64
%76 = load i8*, i8** %6
%77 = call i32* @strstr(i8* %76, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%78 = icmp ne i32* %77, null
br i1 %78, label %79, label %95
79: ; preds = %75
%80 = load i8*, i8** %6
%81 = call i8* @strrchr(i8* %80, i8 signext 47)
store i8* %81, i8** %12
%82 = icmp ne i8* %81, null
br i1 %82, label %83, label %95
83: ; preds = %79
%84 = load i8*, i8** %6
%85 = load i8*, i8** %12
%86 = icmp ult i8* %84, %85
br i1 %86, label %87, label %95
87: ; preds = %83
%88 = load i8*, i8** %6
%89 = getelementptr inbounds i8, i8* %88, i64 5
%90 = load i8*, i8** %12
%91 = load i8*, i8** %12
%92 = call i64 @strlen(i8* %91)
%93 = add nsw i64 %92, 1
%94 = call i32 @memmove(i8* %89, i8* %90, i64 %93)
br label %95
95: ; preds = %87, %83, %79, %75
%96 = load i8*, i8** %6
%97 = call i32* @strstr(i8* %96, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%98 = icmp ne i32* %97, null
br i1 %98, label %99, label %108
99: ; preds = %95
%100 = load i8*, i8** %6
%101 = call i8* @strpbrk(i8* %100, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
store i8* %101, i8** %11
%102 = icmp ne i8* %101, null
br i1 %102, label %103, label %105
103: ; preds = %99
%104 = load i8*, i8** %11
store i8 0, i8* %104
br label %105
105: ; preds = %103, %99
%106 = load i8*, i8** %6
%107 = call i8* @char_replace(i8* %106, i8 signext 32, i8 signext 47)
store i8* %107, i8** %6
br label %122
108: ; preds = %95
%109 = load i8*, i8** %10
%110 = icmp ne i8* %109, null
br i1 %110, label %111, label %113
111: ; preds = %108
%112 = load i8*, i8** %10
br label %115
113: ; preds = %108
%114 = load i8*, i8** %6
br label %115
115: ; preds = %113, %111
%116 = phi i8* [ %112, %111 ], [ %114, %113 ]
%117 = call i8* @strpbrk(i8* %116, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
store i8* %117, i8** %11
%118 = icmp ne i8* %117, null
br i1 %118, label %119, label %121
119: ; preds = %115
%120 = load i8*, i8** %11
store i8 0, i8* %120
br label %121
121: ; preds = %119, %115
br label %122
122: ; preds = %121, %105
%123 = load i8*, i8** %6
%124 = call i8* @alloc_string(i8* %123)
store i8* %124, i8** %5
br label %125
125: ; preds = %122, %72, %62
%126 = load i8*, i8** %5
ret i8* %126
}

LLVM IR (-O2):
@.str = [6 x i8] c"rv:11\00"
@.str.1 = [12 x i8] c"Trident/7.0\00"
@.str.2 = [10 x i8] c"MSIE/11.0\00"
@.str.3 = [4 x i8] c"OPR\00"
@.str.4 = [6 x i8] c"Opera\00"
@.str.5 = [5 x i8] c"MSIE\00"
@.str.6 = [4 x i8] c";)-\00"
@.str.7 = [4 x i8] c";) \00"
define i8* @parse_browser(i8* %0, i8* %1, i32 %2, i8*** nocapture %3) {
%5 = sext i32 %2 to i64
%6 = getelementptr inbounds i8**, i8*** %3, i64 %5
%7 = load i8**, i8*** %6
%8 = load i8*, i8** %7
%9 = tail call i64 @count_matches(i8* %8, i8 signext 32)
%10 = icmp ne i64 %9, 0
%11 = icmp ne i8* %0, null
%12 = and i1 %11, %10
br i1 %12, label %16, label %22
13: ; preds = %16
%14 = add i64 %17, 1
%15 = icmp eq i64 %17, %9
br i1 %15, label %22, label %16
16: ; preds = %4, %13
%17 = phi i64 [ %14, %13 ], [ 1, %4 ]
%18 = phi i8* [ %21, %13 ], [ %0, %4 ]
%19 = tail call i8* @strchr(i8* dereferenceable(1) %18, i8 signext 32)
%20 = icmp eq i8* %19, null
%21 = getelementptr inbounds i8, i8* %19, i64 1
br i1 %20, label %22, label %13
22: ; preds = %13, %16, %4
%23 = phi i8* [ %0, %4 ], [ %21, %13 ], [ null, %16 ]
%24 = load i8**, i8*** %6
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = tail call i32 @xstrncpy(i8* %1, i8* %26, i32 13)
%28 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%29 = icmp eq i32* %28, null
br i1 %29, label %35, label %30
30: ; preds = %22
%31 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%32 = icmp eq i32* %31, null
br i1 %32, label %35, label %33
33: ; preds = %30
%34 = tail call i8* @alloc_string(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
br label %72
35: ; preds = %30, %22
%36 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%37 = icmp eq i32* %36, null
br i1 %37, label %43, label %38
38: ; preds = %35
%39 = tail call i8* @strrchr(i8* dereferenceable(1) %0, i8 signext 47)
%40 = icmp eq i8* %39, null
br i1 %40, label %43, label %41
41: ; preds = %38
%42 = tail call i8* @parse_opera(i8* %39)
br label %72
43: ; preds = %38, %35
%44 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%45 = icmp eq i32* %44, null
br i1 %45, label %54, label %46
46: ; preds = %43
%47 = tail call i8* @strrchr(i8* dereferenceable(1) %0, i8 signext 47)
%48 = icmp ugt i8* %47, %0
br i1 %48, label %49, label %54
49: ; preds = %46
%50 = getelementptr inbounds i8, i8* %0, i64 5
%51 = tail call i64 @strlen(i8* %47)
%52 = add nsw i64 %51, 1
%53 = tail call i32 @memmove(i8* %50, i8* %47, i64 %52)
br label %54
54: ; preds = %49, %46, %43
%55 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%56 = icmp eq i32* %55, null
br i1 %56, label %63, label %57
57: ; preds = %54
%58 = tail call i8* @strpbrk(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%59 = icmp eq i8* %58, null
br i1 %59, label %61, label %60
60: ; preds = %57
store i8 0, i8* %58
br label %61
61: ; preds = %60, %57
%62 = tail call i8* @char_replace(i8* %0, i8 signext 32, i8 signext 47)
br label %69
63: ; preds = %54
%64 = icmp eq i8* %23, null
%65 = select i1 %64, i8* %0, i8* %23
%66 = tail call i8* @strpbrk(i8* %65, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%67 = icmp eq i8* %66, null
br i1 %67, label %69, label %68
68: ; preds = %63
store i8 0, i8* %66
br label %69
69: ; preds = %63, %68, %61
%70 = phi i8* [ %62, %61 ], [ %0, %68 ], [ %0, %63 ]
%71 = tail call i8* @alloc_string(i8* %70)
br label %72
72: ; preds = %69, %41, %33
%73 = phi i8* [ %34, %33 ], [ %42, %41 ], [ %71, %69 ]
ret i8* %73
}