#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 stat {
  int /*<<< orphan*/ st_mode;
};

/* Variables and functions */
int BUFSIZ;
int /*<<< orphan*/ F_OK;
scalar_t__ S_ISDIR(int /*<<< orphan*/);
scalar_t__ S_ISLNK(int /*<<< orphan*/);
int /*<<< orphan*/ X_OK;
int access(char *, int /*<<< orphan*/);
int /*<<< orphan*/ fail(char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
int /*<<< orphan*/ free(char *);
int lstat(char *, struct stat *);
int /*<<< orphan*/ perror(char *);
int readlink(char *, char *, int);
int /*<<< orphan*/ stderr;
char *strdup(char const *);
char *strrchr(char *, char);
void diagnosePath(const char *path) {
  char *myPath;
  char *slash;
  int rv;
  struct stat sb;
  char buf[BUFSIZ];
  if (!path || !path[0])
    fail("Null pointer or empty string passed to mkdirs()");
  myPath = strdup(path);
  if (!myPath)
    fail("strdup() failed!");
  do {
    rv = lstat(myPath, &sb);
    if (rv < 0) {
      perror(myPath);
    } else if (S_ISLNK(sb.st_mode)) {
      rv = readlink(myPath, buf, sizeof buf);
      if (rv < 0) {
        perror("readlink");
        buf[0] = 0;
      } else {
        buf[rv] = 0;
      }
      fprintf(stderr, "%s is a link to %s\n", myPath, buf);
    } else if (S_ISDIR(sb.st_mode)) {
      fprintf(stderr, "%s is a directory\n", myPath);
      rv = access(myPath, X_OK);
      if (rv < 0) {
        fprintf(stderr, "%s: no search permission\n", myPath);
      }
    } else {
      fprintf(stderr, "%s is a file !?!\n", myPath);
      rv = access(myPath, F_OK);
      if (rv < 0) {
        fprintf(stderr, "%s does not exist\n", myPath);
      }
    }
    slash = strrchr(myPath, '/');
    if (!slash)
      slash = strrchr(myPath, '\\');
    if (!slash)
      slash = myPath;
    *slash = 0;
  } while (myPath[0]);
  free(myPath);
}


x86 assembly (clang, -O0):
<diagnosePath>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2e0d(%rip),%rax
mov    (%rax),%eax
mov    %rax,-0x40(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x38(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1204 <diagnosePath+0x54>
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
jne    1210 <diagnosePath+0x60>
lea    0xdf5(%rip),%rdi
call   1060 <fail@plt>
mov    -0x8(%rbp),%rdi
call   10d0 <strdup@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1234 <diagnosePath+0x84>
lea    0xe01(%rip),%rdi
call   1060 <fail@plt>
jmp    1239 <diagnosePath+0x89>
mov    -0x10(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1090 <lstat@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    1261 <diagnosePath+0xb1>
mov    -0x10(%rbp),%rdi
call   10c0 <perror@plt>
jmp    13ab <diagnosePath+0x1fb>
mov    -0x20(%rbp),%edi
call   1040 <S_ISLNK@plt>
cmp    $0x0,%rax
je     12db <diagnosePath+0x12b>
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rax
mov    -0x10(%rbp),%rdi
mov    %eax,%edx
call   1050 <readlink@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    12ab <diagnosePath+0xfb>
lea    0xda7(%rip),%rdi
call   10c0 <perror@plt>
mov    -0x38(%rbp),%rax
movb   $0x0,(%rax)
jmp    12b7 <diagnosePath+0x107>
mov    -0x38(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x38(%rbp),%rcx
mov    0x2d16(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xd7b(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
jmp    13a6 <diagnosePath+0x1f6>
mov    -0x20(%rbp),%edi
call   1070 <S_ISDIR@plt>
cmp    $0x0,%rax
je     1347 <diagnosePath+0x197>
mov    0x2ce4(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xd5d(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2cd5(%rip),%rax
mov    (%rax),%esi
call   10b0 <access@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    1342 <diagnosePath+0x192>
mov    0x2caa(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xd36(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
jmp    13a1 <diagnosePath+0x1f1>
mov    0x2c8a(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xd30(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2c53(%rip),%rax
mov    (%rax),%esi
call   10b0 <access@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    139c <diagnosePath+0x1ec>
mov    0x2c50(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xd08(%rip),%rsi
mov    $0x0,%al
call   10a0 <fprintf@plt>
jmp    13a1 <diagnosePath+0x1f1>
jmp    13a6 <diagnosePath+0x1f6>
jmp    13ab <diagnosePath+0x1fb>
mov    -0x10(%rbp),%rdi
mov    $0x2f,%esi
call   1080 <strrchr@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    13da <diagnosePath+0x22a>
mov    -0x10(%rbp),%rdi
mov    $0x5c,%esi
call   1080 <strrchr@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    13ed <diagnosePath+0x23d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
jne    1239 <diagnosePath+0x89>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<diagnosePath>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdi,%rbx
mov    %rsp,-0x38(%rbp)
mov    0x2e01(%rip),%rax
mov    (%rax),%r14d
mov    %rsp,%r15
lea    0xf(%r14),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r15
mov    %r15,%rsp
test   %rdi,%rdi
je     11ed <diagnosePath+0x3d>
cmpb   $0x0,(%rbx)
jne    11f9 <diagnosePath+0x49>
lea    0xe0c(%rip),%rdi
call   1060 <fail@plt>
mov    %rbx,%rdi
call   10d0 <strdup@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1215 <diagnosePath+0x65>
lea    0xe20(%rip),%rdi
call   1060 <fail@plt>
mov    0x2dbc(%rip),%r12
jmp    1233 <diagnosePath+0x83>
xchg   %ax,%ax
test   %rax,%rax
cmove  %rbx,%rax
movb   $0x0,(%rax)
cmpb   $0x0,(%rbx)
je     136a <diagnosePath+0x1ba>
mov    %rbx,%rdi
lea    -0x30(%rbp),%rsi
call   1090 <lstat@plt>
test   %eax,%eax
js     1348 <diagnosePath+0x198>
mov    -0x30(%rbp),%r13d
mov    %r13d,%edi
call   1040 <S_ISLNK@plt>
test   %rax,%rax
je     12c0 <diagnosePath+0x110>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14d,%edx
call   1050 <readlink@plt>
test   %eax,%eax
js     1355 <diagnosePath+0x1a5>
mov    %eax,%eax
movb   $0x0,(%r15,%rax,1)
mov    (%r12),%edi
lea    0xdca(%rip),%rsi
mov    %rbx,%rdx
mov    %r15,%rcx
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    %rbx,%rdi
mov    $0x2f,%esi
call   1080 <strrchr@plt>
test   %rax,%rax
jne    1220 <diagnosePath+0x70>
mov    %rbx,%rdi
mov    $0x5c,%esi
call   1080 <strrchr@plt>
jmp    1220 <diagnosePath+0x70>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r13d,%edi
call   1070 <S_ISDIR@plt>
mov    (%r12),%edi
test   %rax,%rax
je     1304 <diagnosePath+0x154>
lea    0xd86(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    0x2cff(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   10b0 <access@plt>
test   %eax,%eax
jns    128d <diagnosePath+0xdd>
mov    (%r12),%edi
lea    0xd6f(%rip),%rsi
jmp    1339 <diagnosePath+0x189>
lea    0xd80(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    0x2ca4(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   10b0 <access@plt>
test   %eax,%eax
jns    128d <diagnosePath+0xdd>
mov    (%r12),%edi
lea    0xd64(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   10a0 <fprintf@plt>
jmp    128d <diagnosePath+0xdd>
mov    %rbx,%rdi
call   10c0 <perror@plt>
jmp    128d <diagnosePath+0xdd>
lea    0xce5(%rip),%rdi
call   10c0 <perror@plt>
movb   $0x0,(%r15)
jmp    1275 <diagnosePath+0xc5>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.stat = type { i32 }
@BUFSIZ = global i32 0
@.str = [48 x i8] c"Null pointer or empty string passed to mkdirs()\00"
@.str.1 = [17 x i8] c"strdup() failed!\00"
@.str.2 = [9 x i8] c"readlink\00"
@stderr = global i32 0
@.str.3 = [20 x i8] c"%s is a link to %s\0A\00"
@.str.4 = [19 x i8] c"%s is a directory\0A\00"
@X_OK = global i32 0
@.str.5 = [26 x i8] c"%s: no search permission\0A\00"
@.str.6 = [18 x i8] c"%s is a file !?!\0A\00"
@F_OK = global i32 0
@.str.7 = [19 x i8] c"%s does not exist\0A\00"
define void @diagnosePath(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca %struct.stat
%7 = alloca i8*
%8 = alloca i64
store i8* %0, i8** %2
%9 = load i32, i32* @BUFSIZ
%10 = zext i32 %9 to i64
%11 = call i8* @llvm.stacksave()
store i8* %11, i8** %7
%12 = alloca i8, i64 %10
store i64 %10, i64* %8
%13 = load i8*, i8** %2
%14 = icmp ne i8* %13, null
br i1 %14, label %15, label %20
15: ; preds = %1
%16 = load i8*, i8** %2
%17 = getelementptr inbounds i8, i8* %16, i64 0
%18 = load i8, i8* %17
%19 = icmp ne i8 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %15, %1
%21 = call i32 @fail(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0))
br label %22
22: ; preds = %20, %15
%23 = load i8*, i8** %2
%24 = call i8* @strdup(i8* %23)
store i8* %24, i8** %3
%25 = load i8*, i8** %3
%26 = icmp ne i8* %25, null
br i1 %26, label %29, label %27
27: ; preds = %22
%28 = call i32 @fail(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %29
29: ; preds = %27, %22
br label %30
30: ; preds = %110, %29
%31 = load i8*, i8** %3
%32 = call i32 @lstat(i8* %31, %struct.stat* %6)
store i32 %32, i32* %5
%33 = load i32, i32* %5
%34 = icmp slt i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %30
%36 = load i8*, i8** %3
%37 = call i32 @perror(i8* %36)
br label %95
38: ; preds = %30
%39 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%40 = load i32, i32* %39
%41 = call i64 @S_ISLNK(i32 %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %60
43: ; preds = %38
%44 = load i8*, i8** %3
%45 = trunc i64 %10 to i32
%46 = call i32 @readlink(i8* %44, i8* %12, i32 %45)
store i32 %46, i32* %5
%47 = load i32, i32* %5
%48 = icmp slt i32 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %43
%50 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%51 = getelementptr inbounds i8, i8* %12, i64 0
store i8 0, i8* %51
br label %56
52: ; preds = %43
%53 = load i32, i32* %5
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, i8* %12, i64 %54
store i8 0, i8* %55
br label %56
56: ; preds = %52, %49
%57 = load i32, i32* @stderr
%58 = load i8*, i8** %3
%59 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %58, i8* %12)
br label %94
60: ; preds = %38
%61 = getelementptr inbounds %struct.stat, %struct.stat* %6, i32 0, i32 0
%62 = load i32, i32* %61
%63 = call i64 @S_ISDIR(i32 %62)
%64 = icmp ne i64 %63, 0
br i1 %64, label %65, label %79
65: ; preds = %60
%66 = load i32, i32* @stderr
%67 = load i8*, i8** %3
%68 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %66, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* %67)
%69 = load i8*, i8** %3
%70 = load i32, i32* @X_OK
%71 = call i32 @access(i8* %69, i32 %70)
store i32 %71, i32* %5
%72 = load i32, i32* %5
%73 = icmp slt i32 %72, 0
br i1 %73, label %74, label %78
74: ; preds = %65
%75 = load i32, i32* @stderr
%76 = load i8*, i8** %3
%77 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %75, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i8* %76)
br label %78
78: ; preds = %74, %65
br label %93
79: ; preds = %60
%80 = load i32, i32* @stderr
%81 = load i8*, i8** %3
%82 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %80, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* %81)
%83 = load i8*, i8** %3
%84 = load i32, i32* @F_OK
%85 = call i32 @access(i8* %83, i32 %84)
store i32 %85, i32* %5
%86 = load i32, i32* %5
%87 = icmp slt i32 %86, 0
br i1 %87, label %88, label %92
88: ; preds = %79
%89 = load i32, i32* @stderr
%90 = load i8*, i8** %3
%91 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %89, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i8* %90)
br label %92
92: ; preds = %88, %79
br label %93
93: ; preds = %92, %78
br label %94
94: ; preds = %93, %56
br label %95
95: ; preds = %94, %35
%96 = load i8*, i8** %3
%97 = call i8* @strrchr(i8* %96, i8 signext 47)
store i8* %97, i8** %4
%98 = load i8*, i8** %4
%99 = icmp ne i8* %98, null
br i1 %99, label %103, label %100
100: ; preds = %95
%101 = load i8*, i8** %3
%102 = call i8* @strrchr(i8* %101, i8 signext 92)
store i8* %102, i8** %4
br label %103
103: ; preds = %100, %95
%104 = load i8*, i8** %4
%105 = icmp ne i8* %104, null
br i1 %105, label %108, label %106
106: ; preds = %103
%107 = load i8*, i8** %3
store i8* %107, i8** %4
br label %108
108: ; preds = %106, %103
%109 = load i8*, i8** %4
store i8 0, i8* %109
br label %110
110: ; preds = %108
%111 = load i8*, i8** %3
%112 = getelementptr inbounds i8, i8* %111, i64 0
%113 = load i8, i8* %112
%114 = icmp ne i8 %113, 0
br i1 %114, label %30, label %115
115: ; preds = %110
%116 = load i8*, i8** %3
%117 = call i32 @free(i8* %116)
%118 = load i8*, i8** %7
ret void
}

LLVM IR (-O2):
%struct.stat = type { i32 }
@BUFSIZ = global i32 0
@.str = [48 x i8] c"Null pointer or empty string passed to mkdirs()\00"
@.str.1 = [17 x i8] c"strdup() failed!\00"
@.str.2 = [9 x i8] c"readlink\00"
@stderr = global i32 0
@.str.3 = [20 x i8] c"%s is a link to %s\0A\00"
@.str.4 = [19 x i8] c"%s is a directory\0A\00"
@X_OK = global i32 0
@.str.5 = [26 x i8] c"%s: no search permission\0A\00"
@.str.6 = [18 x i8] c"%s is a file !?!\0A\00"
@F_OK = global i32 0
@.str.7 = [19 x i8] c"%s does not exist\0A\00"
define void @diagnosePath(i8* %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = load i32, i32* @BUFSIZ
%5 = zext i32 %4 to i64
%6 = tail call i8* @llvm.stacksave()
%7 = alloca i8, i64 %5
%8 = icmp eq i8* %0, null
br i1 %8, label %12, label %9
9: ; preds = %1
%10 = load i8, i8* %0
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9, %1
%13 = tail call i32 @fail(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0))
br label %14
14: ; preds = %12, %9
%15 = tail call i8* @strdup(i8* %0)
%16 = icmp eq i8* %15, null
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = tail call i32 @fail(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %19
19: ; preds = %17, %14
%20 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
br label %21
21: ; preds = %66, %19
%22 = call i32 @lstat(i8* %15, %struct.stat* %2)
%23 = icmp slt i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @perror(i8* %15)
br label %61
26: ; preds = %21
%27 = load i32, i32* %20
%28 = call i64 @S_ISLNK(i32 %27)
%29 = icmp eq i64 %28, 0
br i1 %29, label %41, label %30
30: ; preds = %26
%31 = call i32 @readlink(i8* %15, i8* %7, i32 %4)
%32 = icmp slt i32 %31, 0
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 @perror(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
store i8 0, i8* %7
br label %38
35: ; preds = %30
%36 = zext i32 %31 to i64
%37 = getelementptr inbounds i8, i8* %7, i64 %36
store i8 0, i8* %37
br label %38
38: ; preds = %35, %33
%39 = load i32, i32* @stderr
%40 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %15, i8* %7)
br label %61
41: ; preds = %26
%42 = call i64 @S_ISDIR(i32 %27)
%43 = icmp eq i64 %42, 0
%44 = load i32, i32* @stderr
br i1 %43, label %53, label %45
45: ; preds = %41
%46 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i8* %15)
%47 = load i32, i32* @X_OK
%48 = call i32 @access(i8* %15, i32 %47)
%49 = icmp slt i32 %48, 0
br i1 %49, label %50, label %61
50: ; preds = %45
%51 = load i32, i32* @stderr
%52 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i8* %15)
br label %61
53: ; preds = %41
%54 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* %15)
%55 = load i32, i32* @F_OK
%56 = call i32 @access(i8* %15, i32 %55)
%57 = icmp slt i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %53
%59 = load i32, i32* @stderr
%60 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i8* %15)
br label %61
61: ; preds = %38, %53, %58, %45, %50, %24
%62 = call i8* @strrchr(i8* dereferenceable(1) %15, i8 signext 47)
%63 = icmp eq i8* %62, null
br i1 %63, label %64, label %66
64: ; preds = %61
%65 = call i8* @strrchr(i8* dereferenceable(1) %15, i8 signext 92)
br label %66
66: ; preds = %64, %61
%67 = phi i8* [ %62, %61 ], [ %65, %64 ]
%68 = icmp eq i8* %67, null
%69 = select i1 %68, i8* %15, i8* %67
store i8 0, i8* %69
%70 = load i8, i8* %15
%71 = icmp eq i8 %70, 0
br i1 %71, label %72, label %21
72: ; preds = %66
%73 = call i32 @free(i8* %15)
ret void
}