#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=iso-8859-1";
  if (strcmp(dot, ".html") == 0 || strcmp(dot, ".htm") == 0)
    return "text/html; charset=iso-8859-1";
  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, ".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=iso-8859-1";
}


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    1476 <get_mime_type+0x356>
mov    -0x18(%rbp),%rdi
lea    0xebb(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     118d <get_mime_type+0x6d>
mov    -0x18(%rbp),%rdi
lea    0xea7(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    119d <get_mime_type+0x7d>
lea    0xe96(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1476 <get_mime_type+0x356>
mov    -0x18(%rbp),%rdi
lea    0xea0(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     11d1 <get_mime_type+0xb1>
mov    -0x18(%rbp),%rdi
lea    0xe8b(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11e1 <get_mime_type+0xc1>
lea    0xe7b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1476 <get_mime_type+0x356>
mov    -0x18(%rbp),%rdi
lea    0xe72(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    120b <get_mime_type+0xeb>
lea    0xe61(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1476 <get_mime_type+0x356>
mov    -0x18(%rbp),%rdi
lea    0xe57(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1235 <get_mime_type+0x115>
lea    0xe46(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1476 <get_mime_type+0x356>
mov    -0x18(%rbp),%rdi
lea    0xe3c(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    125f <get_mime_type+0x13f>
lea    0xe2b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1476 <get_mime_type+0x356>
mov    -0x18(%rbp),%rdi
lea    0xe20(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1289 <get_mime_type+0x169>
lea    0xe0e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1476 <get_mime_type+0x356>
mov    -0x18(%rbp),%rdi
lea    0xe06(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12b3 <get_mime_type+0x193>
lea    0xdf5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1476 <get_mime_type+0x356>
mov    -0x18(%rbp),%rdi
lea    0xdeb(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12dd <get_mime_type+0x1bd>
lea    0xdda(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1476 <get_mime_type+0x356>
mov    -0x18(%rbp),%rdi
lea    0xdd6(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1311 <get_mime_type+0x1f1>
mov    -0x18(%rbp),%rdi
lea    0xdc1(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1321 <get_mime_type+0x201>
lea    0xdaf(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1476 <get_mime_type+0x356>
mov    -0x18(%rbp),%rdi
lea    0xdab(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1355 <get_mime_type+0x235>
mov    -0x18(%rbp),%rdi
lea    0xd97(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1365 <get_mime_type+0x245>
lea    0xd86(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1476 <get_mime_type+0x356>
mov    -0x18(%rbp),%rdi
lea    0xd7d(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     1399 <get_mime_type+0x279>
mov    -0x18(%rbp),%rdi
lea    0xd69(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    13a9 <get_mime_type+0x289>
lea    0xd58(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1476 <get_mime_type+0x356>
mov    -0x18(%rbp),%rdi
lea    0xd4f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
je     13dd <get_mime_type+0x2bd>
mov    -0x18(%rbp),%rdi
lea    0xd3b(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    13ed <get_mime_type+0x2cd>
lea    0xd2a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1476 <get_mime_type+0x356>
mov    -0x18(%rbp),%rdi
lea    0xd21(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1417 <get_mime_type+0x2f7>
lea    0xd10(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1476 <get_mime_type+0x356>
mov    -0x18(%rbp),%rdi
lea    0xd07(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1441 <get_mime_type+0x321>
lea    0xcf6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1476 <get_mime_type+0x356>
mov    -0x18(%rbp),%rdi
lea    0xcf2(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    146b <get_mime_type+0x34b>
lea    0xce1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1476 <get_mime_type+0x356>
lea    0xb8e(%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     135e <get_mime_type+0x23e>
mov    %rax,%rbx
lea    0xede(%rip),%rsi
mov    %rax,%rdi
call   1040 <strcmp@plt>
lea    0xeda(%rip),%r14
test   %rax,%rax
je     1365 <get_mime_type+0x245>
lea    0xec5(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1365 <get_mime_type+0x245>
lea    0xed0(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
lea    0xecc(%rip),%r14
test   %rax,%rax
je     1365 <get_mime_type+0x245>
lea    0xeb6(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1365 <get_mime_type+0x245>
lea    0xeaf(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1370 <get_mime_type+0x250>
lea    0xea6(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1379 <get_mime_type+0x259>
lea    0xe9d(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1382 <get_mime_type+0x262>
lea    0xe93(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     138b <get_mime_type+0x26b>
lea    0xe8b(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1394 <get_mime_type+0x274>
lea    0xe82(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     139d <get_mime_type+0x27d>
lea    0xe7f(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
lea    0xe79(%rip),%r14
test   %rax,%rax
je     1365 <get_mime_type+0x245>
lea    0xe65(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1365 <get_mime_type+0x245>
lea    0xe61(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
lea    0xe5d(%rip),%r14
test   %rax,%rax
je     1365 <get_mime_type+0x245>
lea    0xe48(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1365 <get_mime_type+0x245>
lea    0xe40(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
lea    0xe3c(%rip),%r14
test   %rax,%rax
je     1365 <get_mime_type+0x245>
lea    0xe27(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1365 <get_mime_type+0x245>
lea    0xe1f(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
lea    0xe1b(%rip),%r14
test   %rax,%rax
je     1365 <get_mime_type+0x245>
lea    0xe0a(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1365 <get_mime_type+0x245>
lea    0xe06(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13a6 <get_mime_type+0x286>
lea    0xdfe(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     13af <get_mime_type+0x28f>
lea    0xdff(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
lea    0xdf2(%rip),%rax
lea    0xca8(%rip),%r14
cmove  %rax,%r14
jmp    1365 <get_mime_type+0x245>
lea    0xc9b(%rip),%r14
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
lea    0xcec(%rip),%r14
jmp    1365 <get_mime_type+0x245>
lea    0xcf2(%rip),%r14
jmp    1365 <get_mime_type+0x245>
lea    0xcf8(%rip),%r14
jmp    1365 <get_mime_type+0x245>
lea    0xcfc(%rip),%r14
jmp    1365 <get_mime_type+0x245>
lea    0xd04(%rip),%r14
jmp    1365 <get_mime_type+0x245>
lea    0xd0a(%rip),%r14
jmp    1365 <get_mime_type+0x245>
lea    0xd71(%rip),%r14
jmp    1365 <get_mime_type+0x245>
lea    0xd78(%rip),%r14
jmp    1365 <get_mime_type+0x245>

LLVM IR (-O0):
@.str = [31 x i8] c"text/plain; charset=iso-8859-1\00"
@.str.1 = [6 x i8] c".html\00"
@.str.2 = [5 x i8] c".htm\00"
@.str.3 = [30 x i8] c"text/html; charset=iso-8859-1\00"
@.str.4 = [5 x i8] c".jpg\00"
@.str.5 = [6 x i8] c".jpeg\00"
@.str.6 = [11 x i8] c"image/jpeg\00"
@.str.7 = [5 x i8] c".gif\00"
@.str.8 = [10 x i8] c"image/gif\00"
@.str.9 = [5 x i8] c".png\00"
@.str.10 = [10 x i8] c"image/png\00"
@.str.11 = [5 x i8] c".css\00"
@.str.12 = [9 x i8] c"text/css\00"
@.str.13 = [4 x i8] c".au\00"
@.str.14 = [12 x i8] c"audio/basic\00"
@.str.15 = [5 x i8] c".wav\00"
@.str.16 = [10 x i8] c"audio/wav\00"
@.str.17 = [5 x i8] c".avi\00"
@.str.18 = [16 x i8] c"video/x-msvideo\00"
@.str.19 = [5 x i8] c".mov\00"
@.str.20 = [4 x i8] c".qt\00"
@.str.21 = [16 x i8] c"video/quicktime\00"
@.str.22 = [6 x i8] c".mpeg\00"
@.str.23 = [5 x i8] c".mpe\00"
@.str.24 = [11 x i8] c"video/mpeg\00"
@.str.25 = [6 x i8] c".vrml\00"
@.str.26 = [5 x i8] c".wrl\00"
@.str.27 = [11 x i8] c"model/vrml\00"
@.str.28 = [6 x i8] c".midi\00"
@.str.29 = [5 x i8] c".mid\00"
@.str.30 = [11 x i8] c"audio/midi\00"
@.str.31 = [5 x i8] c".mp3\00"
@.str.32 = [11 x i8] c"audio/mpeg\00"
@.str.33 = [5 x i8] c".ogg\00"
@.str.34 = [16 x i8] c"application/ogg\00"
@.str.35 = [5 x i8] c".pac\00"
@.str.36 = [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 ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8** %2
br label %110
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 ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %110
19: ; preds = %14
%20 = load i8*, i8** %4
%21 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([5 x i8], [5 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 ([6 x i8], [6 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 ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %110
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 %32, label %33
32: ; preds = %28
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %110
33: ; preds = %28
%34 = load i8*, i8** %4
%35 = call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %110
38: ; preds = %33
%39 = load i8*, i8** %4
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %38
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %110
43: ; preds = %38
%44 = load i8*, i8** %4
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %43
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %110
48: ; preds = %43
%49 = load i8*, i8** %4
%50 = call i64 @strcmp(i8* %49, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %48
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %110
53: ; preds = %48
%54 = load i8*, i8** %4
%55 = call i64 @strcmp(i8* %54, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %53
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %110
58: ; preds = %53
%59 = load i8*, i8** %4
%60 = call i64 @strcmp(i8* %59, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %66, label %62
62: ; preds = %58
%63 = load i8*, i8** %4
%64 = call i64 @strcmp(i8* %63, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %62, %58
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %110
67: ; preds = %62
%68 = load i8*, i8** %4
%69 = call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %75, label %71
71: ; preds = %67
%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, %67
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %110
76: ; preds = %71
%77 = load i8*, i8** %4
%78 = call i64 @strcmp(i8* %77, i8* getelementptr inbounds ([6 x i8], [6 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 ([5 x i8], [5 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 ([11 x i8], [11 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %110
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 %110
94: ; preds = %89
%95 = load i8*, i8** %4
%96 = call i64 @strcmp(i8* %95, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.31, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %99
98: ; preds = %94
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.32, i64 0, i64 0), i8** %2
br label %110
99: ; preds = %94
%100 = load i8*, i8** %4
%101 = call i64 @strcmp(i8* %100, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i64 0, i64 0))
%102 = icmp eq i64 %101, 0
br i1 %102, label %103, label %104
103: ; preds = %99
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.34, i64 0, i64 0), i8** %2
br label %110
104: ; preds = %99
%105 = load i8*, i8** %4
%106 = call i64 @strcmp(i8* %105, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.35, i64 0, i64 0))
%107 = icmp eq i64 %106, 0
br i1 %107, label %108, label %109
108: ; preds = %104
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.36, i64 0, i64 0), i8** %2
br label %110
109: ; preds = %104
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i8** %2
br label %110
110: ; preds = %109, %108, %103, %98, %93, %84, %75, %66, %57, %52, %47, %42, %37, %32, %27, %18, %9
%111 = load i8*, i8** %2
ret i8* %111
}

LLVM IR (-O2):
@.str = [31 x i8] c"text/plain; charset=iso-8859-1\00"
@.str.1 = [6 x i8] c".html\00"
@.str.2 = [5 x i8] c".htm\00"
@.str.3 = [30 x i8] c"text/html; charset=iso-8859-1\00"
@.str.4 = [5 x i8] c".jpg\00"
@.str.5 = [6 x i8] c".jpeg\00"
@.str.6 = [11 x i8] c"image/jpeg\00"
@.str.7 = [5 x i8] c".gif\00"
@.str.8 = [10 x i8] c"image/gif\00"
@.str.9 = [5 x i8] c".png\00"
@.str.10 = [10 x i8] c"image/png\00"
@.str.11 = [5 x i8] c".css\00"
@.str.12 = [9 x i8] c"text/css\00"
@.str.13 = [4 x i8] c".au\00"
@.str.14 = [12 x i8] c"audio/basic\00"
@.str.15 = [5 x i8] c".wav\00"
@.str.16 = [10 x i8] c"audio/wav\00"
@.str.17 = [5 x i8] c".avi\00"
@.str.18 = [16 x i8] c"video/x-msvideo\00"
@.str.19 = [5 x i8] c".mov\00"
@.str.20 = [4 x i8] c".qt\00"
@.str.21 = [16 x i8] c"video/quicktime\00"
@.str.22 = [6 x i8] c".mpeg\00"
@.str.23 = [5 x i8] c".mpe\00"
@.str.24 = [11 x i8] c"video/mpeg\00"
@.str.25 = [6 x i8] c".vrml\00"
@.str.26 = [5 x i8] c".wrl\00"
@.str.27 = [11 x i8] c"model/vrml\00"
@.str.28 = [6 x i8] c".midi\00"
@.str.29 = [5 x i8] c".mid\00"
@.str.30 = [11 x i8] c"audio/midi\00"
@.str.31 = [5 x i8] c".mp3\00"
@.str.32 = [11 x i8] c"audio/mpeg\00"
@.str.33 = [5 x i8] c".ogg\00"
@.str.34 = [16 x i8] c"application/ogg\00"
@.str.35 = [5 x i8] c".pac\00"
@.str.36 = [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 %68, 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 %68, 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 %68, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %68, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %68, 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 %68, label %19
19: ; preds = %16
%20 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %68, label %22
22: ; preds = %19
%23 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %68, label %25
25: ; preds = %22
%26 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %68, label %28
28: ; preds = %25
%29 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %68, label %31
31: ; preds = %28
%32 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %68, label %34
34: ; preds = %31
%35 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %68, label %37
37: ; preds = %34
%38 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %68, label %40
40: ; preds = %37
%41 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %68, 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 %68, label %46
46: ; preds = %43
%47 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %68, label %49
49: ; preds = %46
%50 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %68, 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 %68, 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 %68, label %58
58: ; preds = %55
%59 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.31, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %68, label %61
61: ; preds = %58
%62 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %68, label %64
64: ; preds = %61
%65 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.35, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
%67 = select i1 %66, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.36, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0)
br label %68
68: ; preds = %64, %61, %58, %52, %55, %46, %49, %40, %43, %34, %37, %31, %28, %25, %22, %19, %16, %10, %13, %4, %7, %1
%69 = phi i8* [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), %1 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), %7 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), %13 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), %10 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), %16 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), %19 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), %22 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0), %25 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0), %28 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.18, i64 0, i64 0), %31 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.21, i64 0, i64 0), %37 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.21, i64 0, i64 0), %34 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.24, i64 0, i64 0), %43 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.24, i64 0, i64 0), %40 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.27, i64 0, i64 0), %49 ], [ getelementptr inbounds ([11 x i8], [11 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.32, i64 0, i64 0), %58 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.34, i64 0, i64 0), %61 ], [ %67, %64 ]
ret i8* %69
}