#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 */
scalar_t__ strcmp(char *, char *);
char *strrchr(char *, char);
char *get_mime_type(char *name) {
  char *dot;
  dot = strrchr(name, '.');
  if (dot == (char *)0)
    return "text/plain; charset=UTF-8";
  if (strcmp(dot, ".html") == 0 || strcmp(dot, ".htm") == 0)
    return "text/html; charset=UTF-8";
  if (strcmp(dot, ".xhtml") == 0 || strcmp(dot, ".xht") == 0)
    return "application/xhtml+xml; charset=UTF-8";
  if (strcmp(dot, ".jpg") == 0 || strcmp(dot, ".jpeg") == 0)
    return "image/jpeg";
  if (strcmp(dot, ".gif") == 0)
    return "image/gif";
  if (strcmp(dot, ".png") == 0)
    return "image/png";
  if (strcmp(dot, ".css") == 0)
    return "text/css";
  if (strcmp(dot, ".xml") == 0 || strcmp(dot, ".xsl") == 0)
    return "text/xml; charset=UTF-8";
  if (strcmp(dot, ".au") == 0)
    return "audio/basic";
  if (strcmp(dot, ".wav") == 0)
    return "audio/wav";
  if (strcmp(dot, ".avi") == 0)
    return "video/x-msvideo";
  if (strcmp(dot, ".mov") == 0 || strcmp(dot, ".qt") == 0)
    return "video/quicktime";
  if (strcmp(dot, ".mpeg") == 0 || strcmp(dot, ".mpe") == 0)
    return "video/mpeg";
  if (strcmp(dot, ".vrml") == 0 || strcmp(dot, ".wrl") == 0)
    return "model/vrml";
  if (strcmp(dot, ".midi") == 0 || strcmp(dot, ".mid") == 0)
    return "audio/midi";
  if (strcmp(dot, ".mp3") == 0)
    return "audio/mpeg";
  if (strcmp(dot, ".ogg") == 0)
    return "application/ogg";
  if (strcmp(dot, ".pac") == 0)
    return "application/x-ns-proxy-autoconfig";
  return "text/plain; charset=UTF-8";
}


x86 assembly (clang, -O0):
<get_mime_type>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x2e,%esi
call   1030 <strrchr@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1159 <get_mime_type+0x39>
lea    0xeb0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xeb6(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     118d <get_mime_type+0x6d>
mov    -0x18(%rbp),%rdi
lea    0xea2(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    119d <get_mime_type+0x7d>
lea    0xe91(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xe96(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11d1 <get_mime_type+0xb1>
mov    -0x18(%rbp),%rdi
lea    0xe83(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11e1 <get_mime_type+0xc1>
lea    0xe72(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xe83(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1215 <get_mime_type+0xf5>
mov    -0x18(%rbp),%rdi
lea    0xe6e(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1225 <get_mime_type+0x105>
lea    0xe5e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xe55(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    124f <get_mime_type+0x12f>
lea    0xe44(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xe3a(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1279 <get_mime_type+0x159>
lea    0xe29(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xe1f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12a3 <get_mime_type+0x183>
lea    0xe0e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xe03(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     12d7 <get_mime_type+0x1b7>
mov    -0x18(%rbp),%rdi
lea    0xdee(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12e7 <get_mime_type+0x1c7>
lea    0xddd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xde1(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1311 <get_mime_type+0x1f1>
lea    0xdcf(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xdc7(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    133b <get_mime_type+0x21b>
lea    0xdb6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xdac(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1365 <get_mime_type+0x245>
lea    0xd9b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xd97(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1399 <get_mime_type+0x279>
mov    -0x18(%rbp),%rdi
lea    0xd82(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    13a9 <get_mime_type+0x289>
lea    0xd70(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xd6c(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     13dd <get_mime_type+0x2bd>
mov    -0x18(%rbp),%rdi
lea    0xd58(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    13ed <get_mime_type+0x2cd>
lea    0xd47(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xd3e(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1421 <get_mime_type+0x301>
mov    -0x18(%rbp),%rdi
lea    0xd2a(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1431 <get_mime_type+0x311>
lea    0xd19(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xd10(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1465 <get_mime_type+0x345>
mov    -0x18(%rbp),%rdi
lea    0xcfc(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1475 <get_mime_type+0x355>
lea    0xceb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xce2(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    149f <get_mime_type+0x37f>
lea    0xcd1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xcc8(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    14c9 <get_mime_type+0x3a9>
lea    0xcb7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
mov    -0x18(%rbp),%rdi
lea    0xcb3(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    14f3 <get_mime_type+0x3d3>
lea    0xca2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14fe <get_mime_type+0x3de>
lea    0xb06(%rip),%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    $0x2e,%esi
call   1030 <strrchr@plt>
test   %rax,%rax
je     13cc <get_mime_type+0x2ac>
mov    %rax,%rbx
lea    0xed9(%rip),%rsi
mov    %rax,%rdi
call   1040 <strcmp@plt>
lea    0xed5(%rip),%r14
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xec0(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xec6(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
lea    0xec3(%rip),%r14
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xeae(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xec0(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
lea    0xebc(%rip),%r14
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xea6(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xe9f(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13de <get_mime_type+0x2be>
lea    0xe96(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13e7 <get_mime_type+0x2c7>
lea    0xe8d(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13f0 <get_mime_type+0x2d0>
lea    0xe83(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
lea    0xe7e(%rip),%r14
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xe69(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xe6e(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13f9 <get_mime_type+0x2d9>
lea    0xe66(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1402 <get_mime_type+0x2e2>
lea    0xe5d(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     140b <get_mime_type+0x2eb>
lea    0xe5a(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
lea    0xe54(%rip),%r14
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xe40(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xe3c(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
lea    0xe38(%rip),%r14
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xe23(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xe1b(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
lea    0xe17(%rip),%r14
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xe02(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xdfa(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
lea    0xdf6(%rip),%r14
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xde5(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xde1(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1414 <get_mime_type+0x2f4>
lea    0xdd9(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     141d <get_mime_type+0x2fd>
lea    0xdda(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
lea    0xdcd(%rip),%rax
lea    0xc3a(%rip),%r14
cmove  %rax,%r14
jmp    13d3 <get_mime_type+0x2b3>
lea    0xc2d(%rip),%r14
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
lea    0xca5(%rip),%r14
jmp    13d3 <get_mime_type+0x2b3>
lea    0xcab(%rip),%r14
jmp    13d3 <get_mime_type+0x2b3>
lea    0xcb1(%rip),%r14
jmp    13d3 <get_mime_type+0x2b3>
lea    0xcd7(%rip),%r14
jmp    13d3 <get_mime_type+0x2b3>
lea    0xcdf(%rip),%r14
jmp    13d3 <get_mime_type+0x2b3>
lea    0xce5(%rip),%r14
jmp    13d3 <get_mime_type+0x2b3>
lea    0xd4c(%rip),%r14
jmp    13d3 <get_mime_type+0x2b3>
lea    0xd53(%rip),%r14
jmp    13d3 <get_mime_type+0x2b3>

LLVM IR (-O0):
@.str = [26 x i8] c"text/plain; charset=UTF-8\00"
@.str.1 = [6 x i8] c".html\00"
@.str.2 = [5 x i8] c".htm\00"
@.str.3 = [25 x i8] c"text/html; charset=UTF-8\00"
@.str.4 = [7 x i8] c".xhtml\00"
@.str.5 = [5 x i8] c".xht\00"
@.str.6 = [37 x i8] c"application/xhtml+xml; charset=UTF-8\00"
@.str.7 = [5 x i8] c".jpg\00"
@.str.8 = [6 x i8] c".jpeg\00"
@.str.9 = [11 x i8] c"image/jpeg\00"
@.str.10 = [5 x i8] c".gif\00"
@.str.11 = [10 x i8] c"image/gif\00"
@.str.12 = [5 x i8] c".png\00"
@.str.13 = [10 x i8] c"image/png\00"
@.str.14 = [5 x i8] c".css\00"
@.str.15 = [9 x i8] c"text/css\00"
@.str.16 = [5 x i8] c".xml\00"
@.str.17 = [5 x i8] c".xsl\00"
@.str.18 = [24 x i8] c"text/xml; charset=UTF-8\00"
@.str.19 = [4 x i8] c".au\00"
@.str.20 = [12 x i8] c"audio/basic\00"
@.str.21 = [5 x i8] c".wav\00"
@.str.22 = [10 x i8] c"audio/wav\00"
@.str.23 = [5 x i8] c".avi\00"
@.str.24 = [16 x i8] c"video/x-msvideo\00"
@.str.25 = [5 x i8] c".mov\00"
@.str.26 = [4 x i8] c".qt\00"
@.str.27 = [16 x i8] c"video/quicktime\00"
@.str.28 = [6 x i8] c".mpeg\00"
@.str.29 = [5 x i8] c".mpe\00"
@.str.30 = [11 x i8] c"video/mpeg\00"
@.str.31 = [6 x i8] c".vrml\00"
@.str.32 = [5 x i8] c".wrl\00"
@.str.33 = [11 x i8] c"model/vrml\00"
@.str.34 = [6 x i8] c".midi\00"
@.str.35 = [5 x i8] c".mid\00"
@.str.36 = [11 x i8] c"audio/midi\00"
@.str.37 = [5 x i8] c".mp3\00"
@.str.38 = [11 x i8] c"audio/mpeg\00"
@.str.39 = [5 x i8] c".ogg\00"
@.str.40 = [16 x i8] c"application/ogg\00"
@.str.41 = [5 x i8] c".pac\00"
@.str.42 = [34 x i8] c"application/x-ns-proxy-autoconfig\00"
define i8* @get_mime_type(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = call i8* @strrchr(i8* %5, i8 signext 46)
store i8* %6, i8** %4
%7 = load i8*, i8** %4
%8 = icmp eq i8* %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8** %2
br label %128
10: ; preds = %1
%11 = load i8*, i8** %4
%12 = call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %18, label %14
14: ; preds = %10
%15 = load i8*, i8** %4
%16 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %14, %10
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %128
19: ; preds = %14
%20 = load i8*, i8** %4
%21 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %27, label %23
23: ; preds = %19
%24 = load i8*, i8** %4
%25 = call i64 @strcmp(i8* %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23, %19
store i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %128
28: ; preds = %23
%29 = load i8*, i8** %4
%30 = call i64 @strcmp(i8* %29, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %36, label %32
32: ; preds = %28
%33 = load i8*, i8** %4
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %32, %28
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %128
37: ; preds = %32
%38 = load i8*, i8** %4
%39 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %37
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %128
42: ; preds = %37
%43 = load i8*, i8** %4
%44 = call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %42
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %128
47: ; preds = %42
%48 = load i8*, i8** %4
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %47
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %128
52: ; preds = %47
%53 = load i8*, i8** %4
%54 = call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %60, label %56
56: ; preds = %52
%57 = load i8*, i8** %4
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %56, %52
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %128
61: ; preds = %56
%62 = load i8*, i8** %4
%63 = call i64 @strcmp(i8* %62, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %66
65: ; preds = %61
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %128
66: ; preds = %61
%67 = load i8*, i8** %4
%68 = call i64 @strcmp(i8* %67, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %71
70: ; preds = %66
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %128
71: ; preds = %66
%72 = load i8*, i8** %4
%73 = call i64 @strcmp(i8* %72, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %76
75: ; preds = %71
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %128
76: ; preds = %71
%77 = load i8*, i8** %4
%78 = call i64 @strcmp(i8* %77, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %84, label %80
80: ; preds = %76
%81 = load i8*, i8** %4
%82 = call i64 @strcmp(i8* %81, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %85
84: ; preds = %80, %76
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %128
85: ; preds = %80
%86 = load i8*, i8** %4
%87 = call i64 @strcmp(i8* %86, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.28, i64 0, i64 0))
%88 = icmp eq i64 %87, 0
br i1 %88, label %93, label %89
89: ; preds = %85
%90 = load i8*, i8** %4
%91 = call i64 @strcmp(i8* %90, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0))
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %94
93: ; preds = %89, %85
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.30, i64 0, i64 0), i8** %2
br label %128
94: ; preds = %89
%95 = load i8*, i8** %4
%96 = call i64 @strcmp(i8* %95, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.31, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %102, label %98
98: ; preds = %94
%99 = load i8*, i8** %4
%100 = call i64 @strcmp(i8* %99, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.32, i64 0, i64 0))
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %103
102: ; preds = %98, %94
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.33, i64 0, i64 0), i8** %2
br label %128
103: ; preds = %98
%104 = load i8*, i8** %4
%105 = call i64 @strcmp(i8* %104, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0))
%106 = icmp eq i64 %105, 0
br i1 %106, label %111, label %107
107: ; preds = %103
%108 = load i8*, i8** %4
%109 = call i64 @strcmp(i8* %108, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.35, i64 0, i64 0))
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %107, %103
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.36, i64 0, i64 0), i8** %2
br label %128
112: ; preds = %107
%113 = load i8*, i8** %4
%114 = call i64 @strcmp(i8* %113, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.37, i64 0, i64 0))
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %117
116: ; preds = %112
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.38, i64 0, i64 0), i8** %2
br label %128
117: ; preds = %112
%118 = load i8*, i8** %4
%119 = call i64 @strcmp(i8* %118, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.39, i64 0, i64 0))
%120 = icmp eq i64 %119, 0
br i1 %120, label %121, label %122
121: ; preds = %117
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.40, i64 0, i64 0), i8** %2
br label %128
122: ; preds = %117
%123 = load i8*, i8** %4
%124 = call i64 @strcmp(i8* %123, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.41, i64 0, i64 0))
%125 = icmp eq i64 %124, 0
br i1 %125, label %126, label %127
126: ; preds = %122
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.42, i64 0, i64 0), i8** %2
br label %128
127: ; preds = %122
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i8** %2
br label %128
128: ; preds = %127, %126, %121, %116, %111, %102, %93, %84, %75, %70, %65, %60, %51, %46, %41, %36, %27, %18, %9
%129 = load i8*, i8** %2
ret i8* %129
}

LLVM IR (-O2):
@.str = [26 x i8] c"text/plain; charset=UTF-8\00"
@.str.1 = [6 x i8] c".html\00"
@.str.2 = [5 x i8] c".htm\00"
@.str.3 = [25 x i8] c"text/html; charset=UTF-8\00"
@.str.4 = [7 x i8] c".xhtml\00"
@.str.5 = [5 x i8] c".xht\00"
@.str.6 = [37 x i8] c"application/xhtml+xml; charset=UTF-8\00"
@.str.7 = [5 x i8] c".jpg\00"
@.str.8 = [6 x i8] c".jpeg\00"
@.str.9 = [11 x i8] c"image/jpeg\00"
@.str.10 = [5 x i8] c".gif\00"
@.str.11 = [10 x i8] c"image/gif\00"
@.str.12 = [5 x i8] c".png\00"
@.str.13 = [10 x i8] c"image/png\00"
@.str.14 = [5 x i8] c".css\00"
@.str.15 = [9 x i8] c"text/css\00"
@.str.16 = [5 x i8] c".xml\00"
@.str.17 = [5 x i8] c".xsl\00"
@.str.18 = [24 x i8] c"text/xml; charset=UTF-8\00"
@.str.19 = [4 x i8] c".au\00"
@.str.20 = [12 x i8] c"audio/basic\00"
@.str.21 = [5 x i8] c".wav\00"
@.str.22 = [10 x i8] c"audio/wav\00"
@.str.23 = [5 x i8] c".avi\00"
@.str.24 = [16 x i8] c"video/x-msvideo\00"
@.str.25 = [5 x i8] c".mov\00"
@.str.26 = [4 x i8] c".qt\00"
@.str.27 = [16 x i8] c"video/quicktime\00"
@.str.28 = [6 x i8] c".mpeg\00"
@.str.29 = [5 x i8] c".mpe\00"
@.str.30 = [11 x i8] c"video/mpeg\00"
@.str.31 = [6 x i8] c".vrml\00"
@.str.32 = [5 x i8] c".wrl\00"
@.str.33 = [11 x i8] c"model/vrml\00"
@.str.34 = [6 x i8] c".midi\00"
@.str.35 = [5 x i8] c".mid\00"
@.str.36 = [11 x i8] c"audio/midi\00"
@.str.37 = [5 x i8] c".mp3\00"
@.str.38 = [11 x i8] c"audio/mpeg\00"
@.str.39 = [5 x i8] c".ogg\00"
@.str.40 = [16 x i8] c"application/ogg\00"
@.str.41 = [5 x i8] c".pac\00"
@.str.42 = [34 x i8] c"application/x-ns-proxy-autoconfig\00"
define i8* @get_mime_type(i8* %0) {
%2 = tail call i8* @strrchr(i8* dereferenceable(1) %0, i8 signext 46)
%3 = icmp eq i8* %2, null
br i1 %3, label %80, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %80, label %7
7: ; preds = %4
%8 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %80, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %80, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %80, label %16
16: ; preds = %13
%17 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %80, label %19
19: ; preds = %16
%20 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %80, label %22
22: ; preds = %19
%23 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %80, label %25
25: ; preds = %22
%26 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %80, label %28
28: ; preds = %25
%29 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %80, label %31
31: ; preds = %28
%32 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %80, label %34
34: ; preds = %31
%35 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %80, label %37
37: ; preds = %34
%38 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %80, label %40
40: ; preds = %37
%41 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %80, label %43
43: ; preds = %40
%44 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %80, label %46
46: ; preds = %43
%47 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %80, label %49
49: ; preds = %46
%50 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %80, label %52
52: ; preds = %49
%53 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.28, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %80, label %55
55: ; preds = %52
%56 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %80, label %58
58: ; preds = %55
%59 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.31, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %80, label %61
61: ; preds = %58
%62 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.32, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %80, label %64
64: ; preds = %61
%65 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %80, label %67
67: ; preds = %64
%68 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.35, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %80, label %70
70: ; preds = %67
%71 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.37, i64 0, i64 0))
%72 = icmp eq i64 %71, 0
br i1 %72, label %80, label %73
73: ; preds = %70
%74 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.39, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %80, label %76
76: ; preds = %73
%77 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.41, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
%79 = select i1 %78, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.42, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0)
br label %80
80: ; preds = %76, %73, %70, %64, %67, %58, %61, %52, %55, %46, %49, %43, %40, %37, %31, %34, %28, %25, %22, %16, %19, %10, %13, %4, %7, %1
%81 = phi i8* [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), %1 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), %7 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), %13 ], [ getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), %10 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), %19 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), %16 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), %22 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0), %25 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), %28 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0), %34 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.18, i64 0, i64 0), %31 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), %37 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0), %40 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.24, i64 0, i64 0), %43 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.27, i64 0, i64 0), %49 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.27, i64 0, i64 0), %46 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.30, i64 0, i64 0), %55 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.30, i64 0, i64 0), %52 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.33, i64 0, i64 0), %61 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.33, i64 0, i64 0), %58 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.36, i64 0, i64 0), %67 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.36, i64 0, i64 0), %64 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.38, i64 0, i64 0), %70 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.40, i64 0, i64 0), %73 ], [ %79, %76 ]
ret i8* %81
}