#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__ strcasecmp(char *, char *);
char *strrchr(char *, char);
char *get_mime_type(char *name) {
  char *dot;
  dot = strrchr(name, '.');
  if (dot == (char *)0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "text/plain; charset="
           "gb2312"
           "\r\n";
  if (strcasecmp(dot, ".html") == 0 || strcasecmp(dot, ".htm") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "text/html; charset="
           "gb2312"
           "\r\n";
  if (strcasecmp(dot, ".jpg") == 0 || strcasecmp(dot, ".jpeg") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "image/jpeg"
           "\r\n";
  if (strcasecmp(dot, ".gif") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "image/gif"
           "\r\n";
  if (strcasecmp(dot, ".png") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "image/png"
           "\r\n";
  if (strcasecmp(dot, ".pcx") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "image/pcx"
           "\r\n";
  if (strcasecmp(dot, ".css") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "text/css"
           "\r\n";
  if (strcasecmp(dot, ".au") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "audio/basic"
           "\r\n";
  if (strcasecmp(dot, ".wav") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "audio/wav"
           "\r\n";
  if (strcasecmp(dot, ".avi") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "video/x-msvideo"
           "\r\n";
  if (strcasecmp(dot, ".mov") == 0 || strcasecmp(dot, ".qt") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "video/quicktime"
           "\r\n";
  if (strcasecmp(dot, ".mpeg") == 0 || strcasecmp(dot, ".mpe") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "video/mpeg"
           "\r\n";
  if (strcasecmp(dot, ".vrml") == 0 || strcasecmp(dot, ".wrl") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "model/vrml"
           "\r\n";
  if (strcasecmp(dot, ".midi") == 0 || strcasecmp(dot, ".mid") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "audio/midi"
           "\r\n";
  if (strcasecmp(dot, ".mp3") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "audio/mpeg"
           "\r\n";
  if (strcasecmp(dot, ".pac") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "application/x-ns-proxy-autoconfig"
           "\r\n";
  if (strcasecmp(dot, ".txt") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "text/plain; charset="
           "gb2312"
           "\r\n";
  if (strcasecmp(dot, ".xht") == 0 || strcasecmp(dot, ".xhtml") == 0)
    return "HTTP/1.0 200 OK\nContent-type: "
           "application/xhtml+xml"
           "\r\n";
  if (strcasecmp(dot, ".xml") == 0)
    return "text/xml";
  return "HTTP/1.0 200 OK\nContent-type: "
         "application/octet-stream"
         "\r\n";
}


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   1040 <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    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xed7(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     118d <get_mime_type+0x6d>
mov    -0x18(%rbp),%rdi
lea    0xec3(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    119d <get_mime_type+0x7d>
lea    0xeb2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xed8(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     11d1 <get_mime_type+0xb1>
mov    -0x18(%rbp),%rdi
lea    0xec3(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    11e1 <get_mime_type+0xc1>
lea    0xeb3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xeca(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    120b <get_mime_type+0xeb>
lea    0xeb9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xecf(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1235 <get_mime_type+0x115>
lea    0xebe(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xed4(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    125f <get_mime_type+0x13f>
lea    0xec3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1289 <get_mime_type+0x169>
lea    0xec8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xedd(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    12b3 <get_mime_type+0x193>
lea    0xecb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xee3(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    12dd <get_mime_type+0x1bd>
lea    0xed2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xee8(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1307 <get_mime_type+0x1e7>
lea    0xed7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xef3(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     133b <get_mime_type+0x21b>
mov    -0x18(%rbp),%rdi
lea    0xede(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    134b <get_mime_type+0x22b>
lea    0xecc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xee8(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     137f <get_mime_type+0x25f>
mov    -0x18(%rbp),%rdi
lea    0xed4(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    138f <get_mime_type+0x26f>
lea    0xec3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xeda(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     13c3 <get_mime_type+0x2a3>
mov    -0x18(%rbp),%rdi
lea    0xec6(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    13d3 <get_mime_type+0x2b3>
lea    0xeb5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xecc(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     1407 <get_mime_type+0x2e7>
mov    -0x18(%rbp),%rdi
lea    0xeb8(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1417 <get_mime_type+0x2f7>
lea    0xea7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xebe(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1441 <get_mime_type+0x321>
lea    0xead(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xec4(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    146b <get_mime_type+0x34b>
lea    0xeb3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xee1(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1495 <get_mime_type+0x375>
lea    0xb74(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xebc(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     14c9 <get_mime_type+0x3a9>
mov    -0x18(%rbp),%rdi
lea    0xea7(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    14d9 <get_mime_type+0x3b9>
lea    0xe98(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
mov    -0x18(%rbp),%rdi
lea    0xeba(%rip),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1503 <get_mime_type+0x3e3>
lea    0xea9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    150e <get_mime_type+0x3ee>
lea    0xea2(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_mime_type>:
push   %r15
push   %r14
push   %rbx
mov    $0x2e,%esi
call   1040 <strrchr@plt>
lea    0xeca(%rip),%r15
test   %rax,%rax
je     13d0 <get_mime_type+0x2b0>
mov    %rax,%r14
lea    0xef2(%rip),%rsi
mov    %rax,%rdi
call   1030 <strcasecmp@plt>
lea    0xeee(%rip),%rbx
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xed9(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xf00(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
lea    0xefc(%rip),%rbx
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xee6(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xeff(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     13dc <get_mime_type+0x2bc>
lea    0xf16(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     13e5 <get_mime_type+0x2c5>
lea    0xf2d(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     13ee <get_mime_type+0x2ce>
lea    0xf44(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     13f7 <get_mime_type+0x2d7>
lea    0xf5a(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1400 <get_mime_type+0x2e0>
lea    0xf72(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1409 <get_mime_type+0x2e9>
lea    0xf89(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1412 <get_mime_type+0x2f2>
lea    0xfa6(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
lea    0xfa0(%rip),%rbx
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xf8c(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xfa8(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
lea    0xfa4(%rip),%rbx
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xf8f(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xfa7(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
lea    0xfa3(%rip),%rbx
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xf8e(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xfa6(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
lea    0xfa2(%rip),%rbx
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xf8d(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xfa5(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     141b <get_mime_type+0x2fb>
lea    0xfbd(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1424 <get_mime_type+0x304>
lea    0xfec(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
mov    %r15,%rbx
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xfda(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
lea    0xfd7(%rip),%rbx
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xfc4(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     13d3 <get_mime_type+0x2b3>
lea    0xfed(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
lea    0xfe0(%rip),%rax
lea    0xfe2(%rip),%rbx
cmove  %rax,%rbx
jmp    13d3 <get_mime_type+0x2b3>
mov    %r15,%rbx
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %r15
ret
lea    0xcd8(%rip),%rbx
jmp    13d3 <get_mime_type+0x2b3>
lea    0xcfe(%rip),%rbx
jmp    13d3 <get_mime_type+0x2b3>
lea    0xd24(%rip),%rbx
jmp    13d3 <get_mime_type+0x2b3>
lea    0xd4a(%rip),%rbx
jmp    13d3 <get_mime_type+0x2b3>
lea    0xd6e(%rip),%rbx
jmp    13d3 <get_mime_type+0x2b3>
lea    0xd96(%rip),%rbx
jmp    13d3 <get_mime_type+0x2b3>
lea    0xdbc(%rip),%rbx
jmp    13d3 <get_mime_type+0x2b3>
lea    0xec3(%rip),%rbx
jmp    13d3 <get_mime_type+0x2b3>
lea    0xeea(%rip),%rbx
jmp    13d3 <get_mime_type+0x2b3>

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

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