#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 */
typedef int /*<<< orphan*/ hostnamebuf;

/* Variables and functions */
int /*<<< orphan*/ _XTransGetHostname(char *, int);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ prmsg(int, char *, char *);
char *strchr(char *, char);
char *strdup(char const *);
int strlen(char const *);
char *strrchr(char *, char);
int _XTransParseAddress(char *address, char **protocol, char **host,
                        char **port) {
  char *mybuf, *tmpptr;
  const char *_protocol;
  char *_host, *_port;
  char hostnamebuf[256];
  int _host_len;
  prmsg(3, "ParseAddress(%s)\n", address);
  tmpptr = mybuf = strdup(address);
  _protocol = mybuf;
  if (((mybuf = strchr(mybuf, '/')) == NULL) &&
      ((mybuf = strrchr(tmpptr, ':')) == NULL)) {
    *protocol = NULL;
    *host = NULL;
    *port = NULL;
    free(tmpptr);
    return 0;
  }
  if (*mybuf == ':') {
    if (mybuf == tmpptr) {
      _protocol = "local";
    } else {
      _protocol = "tcp";
      mybuf = tmpptr;
    }
  } else {
    *mybuf++ = '\0';
    if (strlen(_protocol) == 0) {
      if (*mybuf != ':')
        _protocol = "tcp";
      else
        _protocol = "local";
    }
  }
  _host = mybuf;
  if ((mybuf = strrchr(mybuf, ':')) == NULL) {
    *protocol = NULL;
    *host = NULL;
    *port = NULL;
    free(tmpptr);
    return 0;
  }
  *mybuf++ = '\0';
  _host_len = strlen(_host);
  if (_host_len == 0) {
    _XTransGetHostname(hostnamebuf, sizeof(hostnamebuf));
    _host = hostnamebuf;
  }
  _port = mybuf;
  if ((*protocol = strdup(_protocol)) == NULL) {
    *port = NULL;
    *host = NULL;
    *protocol = NULL;
    free(tmpptr);
    return 0;
  }
  if ((*host = strdup(_host)) == NULL) {
    *port = NULL;
    *host = NULL;
    free(*protocol);
    *protocol = NULL;
    free(tmpptr);
    return 0;
  }
  if ((*port = strdup(_port)) == NULL) {
    *port = NULL;
    free(*host);
    *host = NULL;
    free(*protocol);
    *protocol = NULL;
    free(tmpptr);
    return 0;
  }
  free(tmpptr);
  return 1;
}


x86 assembly (clang, -O0):
<_XTransParseAddress>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x10(%rbp),%rdx
mov    $0x3,%edi
lea    0xe65(%rip),%rsi
call   1080 <prmsg@plt>
mov    -0x10(%rbp),%rdi
call   1090 <strdup@plt>
mov    %rax,-0x30(%rbp)
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x30(%rbp),%rdi
mov    $0x2f,%esi
call   1050 <strchr@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
jne    1227 <_XTransParseAddress+0xb7>
mov    -0x38(%rbp),%rdi
mov    $0x3a,%esi
call   1060 <strrchr@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
jne    1227 <_XTransParseAddress+0xb7>
mov    -0x18(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x28(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
jmp    1496 <_XTransParseAddress+0x326>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
jne    126d <_XTransParseAddress+0xfd>
mov    -0x30(%rbp),%rax
cmp    -0x38(%rbp),%rax
jne    1255 <_XTransParseAddress+0xe5>
lea    0xdc6(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    1268 <_XTransParseAddress+0xf8>
lea    0xdbc(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x30(%rbp)
jmp    12c6 <_XTransParseAddress+0x156>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
movb   $0x0,(%rax)
mov    -0x40(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%eax
jne    12c1 <_XTransParseAddress+0x151>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
je     12b1 <_XTransParseAddress+0x141>
lea    0xd70(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    12bc <_XTransParseAddress+0x14c>
lea    0xd5a(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    12c1 <_XTransParseAddress+0x151>
jmp    12c6 <_XTransParseAddress+0x156>
mov    -0x30(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x30(%rbp),%rdi
mov    $0x3a,%esi
call   1060 <strrchr@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
jne    1320 <_XTransParseAddress+0x1b0>
mov    -0x18(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x28(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
jmp    1496 <_XTransParseAddress+0x326>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
movb   $0x0,(%rax)
mov    -0x48(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x154(%rbp)
cmpl   $0x0,-0x154(%rbp)
jne    136a <_XTransParseAddress+0x1fa>
lea    -0x150(%rbp),%rdi
mov    $0x100,%esi
call   1070 <_XTransGetHostname@plt>
lea    -0x150(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x40(%rbp),%rdi
call   1090 <strdup@plt>
mov    -0x18(%rbp),%rcx
mov    %rax,(%rcx)
cmp    $0x0,%rax
jne    13c2 <_XTransParseAddress+0x252>
mov    -0x28(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x18(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
jmp    1496 <_XTransParseAddress+0x326>
mov    -0x48(%rbp),%rdi
call   1090 <strdup@plt>
mov    -0x20(%rbp),%rcx
mov    %rax,(%rcx)
cmp    $0x0,%rax
jne    141e <_XTransParseAddress+0x2ae>
mov    -0x28(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
jmp    1496 <_XTransParseAddress+0x326>
mov    -0x50(%rbp),%rdi
call   1090 <strdup@plt>
mov    -0x28(%rbp),%rcx
mov    %rax,(%rcx)
cmp    $0x0,%rax
jne    1486 <_XTransParseAddress+0x316>
mov    -0x28(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
jmp    1496 <_XTransParseAddress+0x326>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_XTransParseAddress>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
mov    %rcx,%r15
mov    %rdx,0x8(%rsp)
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xe6a(%rip),%rsi
mov    $0x3,%edi
mov    %rbx,%rdx
call   1080 <prmsg@plt>
mov    %rbx,%rdi
call   1090 <strdup@plt>
mov    %rax,%r13
mov    %rax,%rdi
mov    $0x2f,%esi
call   1050 <strchr@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    11dc <_XTransParseAddress+0x6c>
mov    %r13,%rdi
mov    $0x3a,%esi
call   1060 <strrchr@plt>
mov    %rax,%rbx
test   %rax,%rax
je     12a6 <_XTransParseAddress+0x136>
cmpb   $0x3a,(%rbx)
jne    11fb <_XTransParseAddress+0x8b>
cmp    %r13,%rbx
lea    0xe27(%rip),%rax
lea    0xe26(%rip),%rbp
cmove  %rax,%rbp
mov    %r13,%rbx
jmp    1228 <_XTransParseAddress+0xb8>
movb   $0x0,(%rbx)
add    $0x1,%rbx
mov    %r13,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
je     1213 <_XTransParseAddress+0xa3>
mov    %r13,%rbp
jmp    1228 <_XTransParseAddress+0xb8>
cmpb   $0x3a,(%rbx)
lea    0xdf5(%rip),%rax
lea    0xdf4(%rip),%rbp
cmove  %rax,%rbp
mov    %rbx,%rdi
mov    $0x3a,%esi
call   1060 <strrchr@plt>
test   %rax,%rax
je     12a6 <_XTransParseAddress+0x136>
mov    %rax,%r12
movb   $0x0,(%rax)
mov    %rbx,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jne    125e <_XTransParseAddress+0xee>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
call   1070 <_XTransGetHostname@plt>
mov    %rbp,%rdi
call   1090 <strdup@plt>
mov    %rax,(%r14)
test   %rax,%rax
je     12c2 <_XTransParseAddress+0x152>
mov    %rbx,%rdi
call   1090 <strdup@plt>
mov    0x8(%rsp),%rbx
mov    %rax,(%rbx)
test   %rax,%rax
je     12d7 <_XTransParseAddress+0x167>
add    $0x1,%r12
mov    %r12,%rdi
call   1090 <strdup@plt>
mov    %rax,(%r15)
test   %rax,%rax
je     12e0 <_XTransParseAddress+0x170>
mov    %r13,%rdi
call   1030 <free@plt>
mov    $0x1,%eax
jmp    130f <_XTransParseAddress+0x19f>
movq   $0x0,(%r14)
mov    0x8(%rsp),%rax
movq   $0x0,(%rax)
movq   $0x0,(%r15)
jmp    1305 <_XTransParseAddress+0x195>
movq   $0x0,(%r15)
mov    0x8(%rsp),%rax
movq   $0x0,(%rax)
jmp    12fe <_XTransParseAddress+0x18e>
movq   $0x0,(%r15)
jmp    12ef <_XTransParseAddress+0x17f>
movq   $0x0,(%r15)
mov    (%rbx),%rdi
call   1030 <free@plt>
movq   $0x0,(%rbx)
mov    (%r14),%rdi
call   1030 <free@plt>
movq   $0x0,(%r14)
mov    %r13,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [18 x i8] c"ParseAddress(%s)\0A\00"
@.str.1 = [6 x i8] c"local\00"
@.str.2 = [4 x i8] c"tcp\00"
define i32 @_XTransParseAddress(i8* %0, i8** nocapture %1, i8** nocapture %2, i8** nocapture writeonly %3) {
%5 = alloca [256 x i8]
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%7 = tail call i32 @prmsg(i32 3, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %0)
%8 = tail call i8* @strdup(i8* %0)
%9 = tail call i8* @strchr(i8* dereferenceable(1) %8, i8 signext 47)
%10 = icmp eq i8* %9, null
br i1 %10, label %11, label %16
11: ; preds = %4
%12 = tail call i8* @strrchr(i8* dereferenceable(1) %8, i8 signext 58)
%13 = icmp eq i8* %12, null
br i1 %13, label %14, label %16
14: ; preds = %11
store i8* null, i8** %1
store i8* null, i8** %2
store i8* null, i8** %3
%15 = tail call i32 @free(i8* %8)
br label %68
16: ; preds = %11, %4
%17 = phi i8* [ %12, %11 ], [ %9, %4 ]
%18 = load i8, i8* %17
%19 = icmp eq i8 %18, 58
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = icmp eq i8* %17, %8
%22 = select i1 %21, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
br label %31
23: ; preds = %16
%24 = getelementptr inbounds i8, i8* %17, i64 1
store i8 0, i8* %17
%25 = tail call i32 @strlen(i8* %8)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %23
%28 = load i8, i8* %24
%29 = icmp eq i8 %28, 58
%30 = select i1 %29, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
br label %31
31: ; preds = %27, %20, %23
%32 = phi i8* [ %8, %23 ], [ %22, %20 ], [ %30, %27 ]
%33 = phi i8* [ %24, %23 ], [ %8, %20 ], [ %24, %27 ]
%34 = tail call i8* @strrchr(i8* dereferenceable(1) %33, i8 signext 58)
%35 = icmp eq i8* %34, null
br i1 %35, label %36, label %38
36: ; preds = %31
store i8* null, i8** %1
store i8* null, i8** %2
store i8* null, i8** %3
%37 = tail call i32 @free(i8* %8)
br label %68
38: ; preds = %31
%39 = getelementptr inbounds i8, i8* %34, i64 1
store i8 0, i8* %34
%40 = tail call i32 @strlen(i8* %33)
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 @_XTransGetHostname(i8* %6, i32 256)
br label %44
44: ; preds = %42, %38
%45 = phi i8* [ %6, %42 ], [ %33, %38 ]
%46 = call i8* @strdup(i8* %32)
store i8* %46, i8** %1
%47 = icmp eq i8* %46, null
br i1 %47, label %48, label %50
48: ; preds = %44
store i8* null, i8** %3
store i8* null, i8** %2
store i8* null, i8** %1
%49 = call i32 @free(i8* %8)
br label %68
50: ; preds = %44
%51 = call i8* @strdup(i8* %45)
store i8* %51, i8** %2
%52 = icmp eq i8* %51, null
br i1 %52, label %53, label %57
53: ; preds = %50
store i8* null, i8** %3
store i8* null, i8** %2
%54 = load i8*, i8** %1
%55 = call i32 @free(i8* %54)
store i8* null, i8** %1
%56 = call i32 @free(i8* %8)
br label %68
57: ; preds = %50
%58 = call i8* @strdup(i8* %39)
store i8* %58, i8** %3
%59 = icmp eq i8* %58, null
br i1 %59, label %60, label %66
60: ; preds = %57
store i8* null, i8** %3
%61 = load i8*, i8** %2
%62 = call i32 @free(i8* %61)
store i8* null, i8** %2
%63 = load i8*, i8** %1
%64 = call i32 @free(i8* %63)
store i8* null, i8** %1
%65 = call i32 @free(i8* %8)
br label %68
66: ; preds = %57
%67 = call i32 @free(i8* %8)
br label %68
68: ; preds = %66, %60, %53, %48, %36, %14
%69 = phi i32 [ 0, %14 ], [ 0, %36 ], [ 0, %48 ], [ 0, %53 ], [ 0, %60 ], [ 1, %66 ]
ret i32 %69
}