#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*/ asprintf(char **, char *, ...);
int /*<<< orphan*/ free(char *);
scalar_t__ read_mimefile(char *, char *);
scalar_t__ strcmp(char *, char *);
char *strdup(scalar_t__);
scalar_t__ strrchr(char *, char);
char *get_mime_type(char *filename) {
  char *fileext;
  char *mimetype = NULL;
  if (read_mimefile(filename, mimetype))
    return mimetype;
  if (strrchr(filename, '.')) {
    fileext = strdup(strrchr(filename, '.') + 1);
    if (strcmp(fileext, "html") == 0) {
      asprintf(&mimetype, "text/html");
    } else if (strcmp(fileext, "gif") == 0) {
      asprintf(&mimetype, "image/gif");
    } else if (strcmp(fileext, "png") == 0) {
      asprintf(&mimetype, "image/png");
    } else if (strcmp(fileext, "xml") == 0) {
      asprintf(&mimetype, "application/xml");
    } else if (strcmp(fileext, "xsl") == 0) {
      asprintf(&mimetype, "application/xml");
    } else if (strcmp(fileext, "css") == 0) {
      asprintf(&mimetype, "text/css");
    } else if (strcmp(fileext, "js") == 0) {
      asprintf(&mimetype, "text/javascript");
    } else if (strcmp(fileext, "pdf") == 0) {
      asprintf(&mimetype, "application/pdf");
    } else if (strcmp(fileext, "ogv") == 0) {
      asprintf(&mimetype, "video/ogg");
    } else {
      asprintf(&mimetype, "%s", "application/octet-stream");
    }
    free(fileext);
  }
  return mimetype;
}


x86 assembly (clang, -O0):
<get_mime_type>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movq   $0x0,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1060 <read_mimefile@plt>
cmp    $0x0,%rax
je     1198 <get_mime_type+0x38>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    13d9 <get_mime_type+0x279>
mov    -0x10(%rbp),%rdi
mov    $0x2e,%esi
call   1040 <strrchr@plt>
cmp    $0x0,%rax
je     13d1 <get_mime_type+0x271>
mov    -0x10(%rbp),%rdi
mov    $0x2e,%esi
call   1040 <strrchr@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1080 <strdup@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe2c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11ff <get_mime_type+0x9f>
lea    -0x20(%rbp),%rdi
lea    0xe0d(%rip),%rsi
mov    $0x0,%al
call   1070 <asprintf@plt>
jmp    13c8 <get_mime_type+0x268>
mov    -0x18(%rbp),%rdi
lea    0xe06(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1230 <get_mime_type+0xd0>
lea    -0x20(%rbp),%rdi
lea    0xde6(%rip),%rsi
mov    $0x0,%al
call   1070 <asprintf@plt>
jmp    13c3 <get_mime_type+0x263>
mov    -0x18(%rbp),%rdi
lea    0xddf(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1261 <get_mime_type+0x101>
lea    -0x20(%rbp),%rdi
lea    0xdbf(%rip),%rsi
mov    $0x0,%al
call   1070 <asprintf@plt>
jmp    13be <get_mime_type+0x25e>
mov    -0x18(%rbp),%rdi
lea    0xdbe(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1292 <get_mime_type+0x132>
lea    -0x20(%rbp),%rdi
lea    0xd98(%rip),%rsi
mov    $0x0,%al
call   1070 <asprintf@plt>
jmp    13b9 <get_mime_type+0x259>
mov    -0x18(%rbp),%rdi
lea    0xd91(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12c3 <get_mime_type+0x163>
lea    -0x20(%rbp),%rdi
lea    0xd67(%rip),%rsi
mov    $0x0,%al
call   1070 <asprintf@plt>
jmp    13b4 <get_mime_type+0x254>
mov    -0x18(%rbp),%rdi
lea    0xd69(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12f4 <get_mime_type+0x194>
lea    -0x20(%rbp),%rdi
lea    0xd4a(%rip),%rsi
mov    $0x0,%al
call   1070 <asprintf@plt>
jmp    13af <get_mime_type+0x24f>
mov    -0x18(%rbp),%rdi
lea    0xd3c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1325 <get_mime_type+0x1c5>
lea    -0x20(%rbp),%rdi
lea    0xd25(%rip),%rsi
mov    $0x0,%al
call   1070 <asprintf@plt>
jmp    13aa <get_mime_type+0x24a>
mov    -0x18(%rbp),%rdi
lea    0xd2a(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1356 <get_mime_type+0x1f6>
lea    -0x20(%rbp),%rdi
lea    0xd04(%rip),%rsi
mov    $0x0,%al
call   1070 <asprintf@plt>
jmp    13a5 <get_mime_type+0x245>
mov    -0x18(%rbp),%rdi
lea    0xcfd(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1387 <get_mime_type+0x227>
lea    -0x20(%rbp),%rdi
lea    0xce7(%rip),%rsi
mov    $0x0,%al
call   1070 <asprintf@plt>
jmp    13a0 <get_mime_type+0x240>
lea    -0x20(%rbp),%rdi
lea    0xcda(%rip),%rsi
lea    0xcd6(%rip),%rdx
mov    $0x0,%al
call   1070 <asprintf@plt>
jmp    13a5 <get_mime_type+0x245>
jmp    13aa <get_mime_type+0x24a>
jmp    13af <get_mime_type+0x24f>
jmp    13b4 <get_mime_type+0x254>
jmp    13b9 <get_mime_type+0x259>
jmp    13be <get_mime_type+0x25e>
jmp    13c3 <get_mime_type+0x263>
jmp    13c8 <get_mime_type+0x268>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_mime_type>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
movq   $0x0,(%rsp)
xor    %ebx,%ebx
xor    %esi,%esi
call   1060 <read_mimefile@plt>
test   %rax,%rax
jne    12da <get_mime_type+0x17a>
mov    %r14,%rdi
mov    $0x2e,%esi
call   1040 <strrchr@plt>
test   %rax,%rax
je     129e <get_mime_type+0x13e>
mov    %r14,%rdi
mov    $0x2e,%esi
call   1040 <strrchr@plt>
lea    0x1(%rax),%rdi
call   1080 <strdup@plt>
mov    %rax,%rbx
lea    0xe4e(%rip),%rsi
mov    %rax,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12a2 <get_mime_type+0x142>
lea    0xe41(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12ab <get_mime_type+0x14b>
lea    0xe33(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12bd <get_mime_type+0x15d>
lea    0xe2b(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12b4 <get_mime_type+0x154>
lea    0xe17(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12b4 <get_mime_type+0x154>
lea    0xe08(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12e5 <get_mime_type+0x185>
lea    0xdf4(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12ee <get_mime_type+0x18e>
lea    0xdfb(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     12f7 <get_mime_type+0x197>
lea    0xde7(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1300 <get_mime_type+0x1a0>
lea    0xde1(%rip),%rsi
lea    0xddd(%rip),%rdx
mov    %rsp,%rdi
xor    %eax,%eax
call   1070 <asprintf@plt>
jmp    12ce <get_mime_type+0x16e>
xor    %ebx,%ebx
jmp    12da <get_mime_type+0x17a>
lea    0xd57(%rip),%rsi
jmp    12c4 <get_mime_type+0x164>
lea    0xd58(%rip),%rsi
jmp    12c4 <get_mime_type+0x164>
lea    0xd63(%rip),%rsi
jmp    12c4 <get_mime_type+0x164>
lea    0xd50(%rip),%rsi
mov    %rsp,%rdi
xor    %eax,%eax
call   1070 <asprintf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    (%rsp),%rbx
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
lea    0xd46(%rip),%rsi
jmp    12c4 <get_mime_type+0x164>
lea    0xd49(%rip),%rsi
jmp    12c4 <get_mime_type+0x164>
lea    0xd50(%rip),%rsi
jmp    12c4 <get_mime_type+0x164>
lea    0xd5b(%rip),%rsi
jmp    12c4 <get_mime_type+0x164>

LLVM IR (-O0):
@.str = [5 x i8] c"html\00"
@.str.1 = [10 x i8] c"text/html\00"
@.str.2 = [4 x i8] c"gif\00"
@.str.3 = [10 x i8] c"image/gif\00"
@.str.4 = [4 x i8] c"png\00"
@.str.5 = [10 x i8] c"image/png\00"
@.str.6 = [4 x i8] c"xml\00"
@.str.7 = [16 x i8] c"application/xml\00"
@.str.8 = [4 x i8] c"xsl\00"
@.str.9 = [4 x i8] c"css\00"
@.str.10 = [9 x i8] c"text/css\00"
@.str.11 = [3 x i8] c"js\00"
@.str.12 = [16 x i8] c"text/javascript\00"
@.str.13 = [4 x i8] c"pdf\00"
@.str.14 = [16 x i8] c"application/pdf\00"
@.str.15 = [4 x i8] c"ogv\00"
@.str.16 = [10 x i8] c"video/ogg\00"
@.str.17 = [3 x i8] c"%s\00"
@.str.18 = [25 x i8] c"application/octet-stream\00"
define i8* @get_mime_type(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %3
store i8* null, i8** %5
%6 = load i8*, i8** %3
%7 = load i8*, i8** %5
%8 = call i64 @read_mimefile(i8* %6, i8* %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = load i8*, i8** %5
store i8* %11, i8** %2
br label %89
12: ; preds = %1
%13 = load i8*, i8** %3
%14 = call i64 @strrchr(i8* %13, i8 signext 46)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %87
16: ; preds = %12
%17 = load i8*, i8** %3
%18 = call i64 @strrchr(i8* %17, i8 signext 46)
%19 = add nsw i64 %18, 1
%20 = call i8* @strdup(i64 %19)
store i8* %20, i8** %4
%21 = load i8*, i8** %4
%22 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %16
%25 = call i32 (i8**, i8*, ...) @asprintf(i8** %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %84
26: ; preds = %16
%27 = load i8*, i8** %4
%28 = call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 (i8**, i8*, ...) @asprintf(i8** %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %83
32: ; preds = %26
%33 = load i8*, i8** %4
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 (i8**, i8*, ...) @asprintf(i8** %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
br label %82
38: ; preds = %32
%39 = load i8*, i8** %4
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 (i8**, i8*, ...) @asprintf(i8** %5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
br label %81
44: ; preds = %38
%45 = load i8*, i8** %4
%46 = call i64 @strcmp(i8* %45, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = call i32 (i8**, i8*, ...) @asprintf(i8** %5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
br label %80
50: ; preds = %44
%51 = load i8*, i8** %4
%52 = call i64 @strcmp(i8* %51, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = call i32 (i8**, i8*, ...) @asprintf(i8** %5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
br label %79
56: ; preds = %50
%57 = load i8*, i8** %4
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = call i32 (i8**, i8*, ...) @asprintf(i8** %5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0))
br label %78
62: ; preds = %56
%63 = load i8*, i8** %4
%64 = call i64 @strcmp(i8* %63, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = call i32 (i8**, i8*, ...) @asprintf(i8** %5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0))
br label %77
68: ; preds = %62
%69 = load i8*, i8** %4
%70 = call i64 @strcmp(i8* %69, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %68
%73 = call i32 (i8**, i8*, ...) @asprintf(i8** %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
br label %76
74: ; preds = %68
%75 = call i32 (i8**, i8*, ...) @asprintf(i8** %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0))
br label %76
76: ; preds = %74, %72
br label %77
77: ; preds = %76, %66
br label %78
78: ; preds = %77, %60
br label %79
79: ; preds = %78, %54
br label %80
80: ; preds = %79, %48
br label %81
81: ; preds = %80, %42
br label %82
82: ; preds = %81, %36
br label %83
83: ; preds = %82, %30
br label %84
84: ; preds = %83, %24
%85 = load i8*, i8** %4
%86 = call i32 @free(i8* %85)
br label %87
87: ; preds = %84, %12
%88 = load i8*, i8** %5
store i8* %88, i8** %2
br label %89
89: ; preds = %87, %10
%90 = load i8*, i8** %2
ret i8* %90
}

LLVM IR (-O2):
@.str = [5 x i8] c"html\00"
@.str.1 = [10 x i8] c"text/html\00"
@.str.2 = [4 x i8] c"gif\00"
@.str.3 = [10 x i8] c"image/gif\00"
@.str.4 = [4 x i8] c"png\00"
@.str.5 = [10 x i8] c"image/png\00"
@.str.6 = [4 x i8] c"xml\00"
@.str.7 = [16 x i8] c"application/xml\00"
@.str.8 = [4 x i8] c"xsl\00"
@.str.9 = [4 x i8] c"css\00"
@.str.10 = [9 x i8] c"text/css\00"
@.str.11 = [3 x i8] c"js\00"
@.str.12 = [16 x i8] c"text/javascript\00"
@.str.13 = [4 x i8] c"pdf\00"
@.str.14 = [16 x i8] c"application/pdf\00"
@.str.15 = [4 x i8] c"ogv\00"
@.str.16 = [10 x i8] c"video/ogg\00"
@.str.17 = [3 x i8] c"%s\00"
@.str.18 = [25 x i8] c"application/octet-stream\00"
define i8* @get_mime_type(i8* %0) {
%2 = alloca i8*
%3 = bitcast i8** %2 to i8*
store i8* null, i8** %2
%4 = tail call i64 @read_mimefile(i8* %0, i8* null)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %62
6: ; preds = %1
%7 = tail call i64 @strrchr(i8* %0, i8 signext 46)
%8 = icmp eq i64 %7, 0
br i1 %8, label %62, label %9
9: ; preds = %6
%10 = tail call i64 @strrchr(i8* %0, i8 signext 46)
%11 = add nsw i64 %10, 1
%12 = tail call i8* @strdup(i64 %11)
%13 = tail call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %9
%16 = call i32 (i8**, i8*, ...) @asprintf(i8** %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %59
17: ; preds = %9
%18 = tail call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 (i8**, i8*, ...) @asprintf(i8** %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %59
22: ; preds = %17
%23 = tail call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 (i8**, i8*, ...) @asprintf(i8** %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
br label %59
27: ; preds = %22
%28 = tail call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 (i8**, i8*, ...) @asprintf(i8** %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
br label %59
32: ; preds = %27
%33 = tail call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 (i8**, i8*, ...) @asprintf(i8** %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
br label %59
37: ; preds = %32
%38 = tail call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 (i8**, i8*, ...) @asprintf(i8** %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
br label %59
42: ; preds = %37
%43 = tail call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 (i8**, i8*, ...) @asprintf(i8** %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0))
br label %59
47: ; preds = %42
%48 = tail call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 (i8**, i8*, ...) @asprintf(i8** %2, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0))
br label %59
52: ; preds = %47
%53 = tail call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %52
%56 = call i32 (i8**, i8*, ...) @asprintf(i8** %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
br label %59
57: ; preds = %52
%58 = call i32 (i8**, i8*, ...) @asprintf(i8** %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0))
br label %59
59: ; preds = %20, %30, %40, %50, %57, %55, %45, %35, %25, %15
%60 = call i32 @free(i8* %12)
%61 = load i8*, i8** %2
br label %62
62: ; preds = %6, %59, %1
%63 = phi i8* [ null, %6 ], [ %61, %59 ], [ null, %1 ]
ret i8* %63
}