#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 const *const, char *);
char const *path_exttype(char const *const ext) {
  if (!ext)
    return NULL;
  if (0 == strcasecmp(ext, ".html"))
    return "text/html; charset=utf-8";
  if (0 == strcasecmp(ext, ".css"))
    return "text/css; charset=utf-8";
  if (0 == strcasecmp(ext, ".js"))
    return "text/javascript; charset=utf-8";
  if (0 == strcasecmp(ext, ".png"))
    return "image/png";
  if (0 == strcasecmp(ext, ".jpg"))
    return "image/jpeg";
  if (0 == strcasecmp(ext, ".jpeg"))
    return "image/jpeg";
  if (0 == strcasecmp(ext, ".gif"))
    return "image/gif";
  if (0 == strcasecmp(ext, ".ico"))
    return "image/vnd.microsoft.icon";
  return NULL;
}


x86 assembly (clang, -O0):
<path_exttype>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1134 <path_exttype+0x24>
movq   $0x0,-0x8(%rbp)
jmp    12ac <path_exttype+0x19c>
mov    -0x10(%rbp),%rdi
lea    0xec1(%rip),%rsi
call   1030 <strcasecmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1162 <path_exttype+0x52>
lea    0xead(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12ac <path_exttype+0x19c>
mov    -0x10(%rbp),%rdi
lea    0xeb2(%rip),%rsi
call   1030 <strcasecmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1190 <path_exttype+0x80>
lea    0xe9d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12ac <path_exttype+0x19c>
mov    -0x10(%rbp),%rdi
lea    0xea1(%rip),%rsi
call   1030 <strcasecmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    11be <path_exttype+0xae>
lea    0xe8b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12ac <path_exttype+0x19c>
mov    -0x10(%rbp),%rdi
lea    0xe96(%rip),%rsi
call   1030 <strcasecmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    11ec <path_exttype+0xdc>
lea    0xe81(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12ac <path_exttype+0x19c>
mov    -0x10(%rbp),%rdi
lea    0xe77(%rip),%rsi
call   1030 <strcasecmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    121a <path_exttype+0x10a>
lea    0xe62(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12ac <path_exttype+0x19c>
mov    -0x10(%rbp),%rdi
lea    0xe59(%rip),%rsi
call   1030 <strcasecmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1248 <path_exttype+0x138>
lea    0xe34(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12ac <path_exttype+0x19c>
mov    -0x10(%rbp),%rdi
lea    0xe31(%rip),%rsi
call   1030 <strcasecmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    1276 <path_exttype+0x166>
lea    0xe1c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12ac <path_exttype+0x19c>
mov    -0x10(%rbp),%rdi
lea    0xe12(%rip),%rsi
call   1030 <strcasecmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rax
jne    12a4 <path_exttype+0x194>
lea    0xdfd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    12ac <path_exttype+0x19c>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<path_exttype>:
push   %r14
push   %rbx
push   %rax
test   %rdi,%rdi
je     11e2 <path_exttype+0xd2>
mov    %rdi,%rbx
lea    0xed9(%rip),%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     11e7 <path_exttype+0xd7>
lea    0xee3(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     11f0 <path_exttype+0xe0>
lea    0xee8(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     11f9 <path_exttype+0xe9>
lea    0xef3(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1202 <path_exttype+0xf2>
lea    0xeea(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
lea    0xee0(%rip),%r14
test   %rax,%rax
je     1212 <path_exttype+0x102>
lea    0xedf(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     1212 <path_exttype+0x102>
lea    0xed1(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     120b <path_exttype+0xfb>
lea    0xecc(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcasecmp@plt>
xor    %r14d,%r14d
test   %rax,%rax
lea    0xebc(%rip),%rax
cmove  %rax,%r14
jmp    1212 <path_exttype+0x102>
xor    %r14d,%r14d
jmp    1212 <path_exttype+0x102>
lea    0xe18(%rip),%r14
jmp    1212 <path_exttype+0x102>
lea    0xe2d(%rip),%r14
jmp    1212 <path_exttype+0x102>
lea    0xe40(%rip),%r14
jmp    1212 <path_exttype+0x102>
lea    0xe5b(%rip),%r14
jmp    1212 <path_exttype+0x102>
lea    0xe77(%rip),%r14
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [6 x i8] c".html\00"
@.str.1 = [25 x i8] c"text/html; charset=utf-8\00"
@.str.2 = [5 x i8] c".css\00"
@.str.3 = [24 x i8] c"text/css; charset=utf-8\00"
@.str.4 = [4 x i8] c".js\00"
@.str.5 = [31 x i8] c"text/javascript; charset=utf-8\00"
@.str.6 = [5 x i8] c".png\00"
@.str.7 = [10 x i8] c"image/png\00"
@.str.8 = [5 x i8] c".jpg\00"
@.str.9 = [11 x i8] c"image/jpeg\00"
@.str.10 = [6 x i8] c".jpeg\00"
@.str.11 = [5 x i8] c".gif\00"
@.str.12 = [10 x i8] c"image/gif\00"
@.str.13 = [5 x i8] c".ico\00"
@.str.14 = [25 x i8] c"image/vnd.microsoft.icon\00"
define i8* @path_exttype(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = icmp ne i8* %4, null
br i1 %5, label %7, label %6
6: ; preds = %1
store i8* null, i8** %2
br label %48
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = call i64 @strcasecmp(i8* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i64 0, %9
br i1 %10, label %11, label %12
11: ; preds = %7
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %48
12: ; preds = %7
%13 = load i8*, i8** %3
%14 = call i64 @strcasecmp(i8* %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%15 = icmp eq i64 0, %14
br i1 %15, label %16, label %17
16: ; preds = %12
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %48
17: ; preds = %12
%18 = load i8*, i8** %3
%19 = call i64 @strcasecmp(i8* %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%20 = icmp eq i64 0, %19
br i1 %20, label %21, label %22
21: ; preds = %17
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %48
22: ; preds = %17
%23 = load i8*, i8** %3
%24 = call i64 @strcasecmp(i8* %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%25 = icmp eq i64 0, %24
br i1 %25, label %26, label %27
26: ; preds = %22
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %48
27: ; preds = %22
%28 = load i8*, i8** %3
%29 = call i64 @strcasecmp(i8* %28, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%30 = icmp eq i64 0, %29
br i1 %30, label %31, label %32
31: ; preds = %27
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %48
32: ; preds = %27
%33 = load i8*, i8** %3
%34 = call i64 @strcasecmp(i8* %33, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%35 = icmp eq i64 0, %34
br i1 %35, label %36, label %37
36: ; preds = %32
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %48
37: ; preds = %32
%38 = load i8*, i8** %3
%39 = call i64 @strcasecmp(i8* %38, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%40 = icmp eq i64 0, %39
br i1 %40, label %41, label %42
41: ; preds = %37
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %48
42: ; preds = %37
%43 = load i8*, i8** %3
%44 = call i64 @strcasecmp(i8* %43, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%45 = icmp eq i64 0, %44
br i1 %45, label %46, label %47
46: ; preds = %42
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %48
47: ; preds = %42
store i8* null, i8** %2
br label %48
48: ; preds = %47, %46, %41, %36, %31, %26, %21, %16, %11, %6
%49 = load i8*, i8** %2
ret i8* %49
}

LLVM IR (-O2):
@.str = [6 x i8] c".html\00"
@.str.1 = [25 x i8] c"text/html; charset=utf-8\00"
@.str.2 = [5 x i8] c".css\00"
@.str.3 = [24 x i8] c"text/css; charset=utf-8\00"
@.str.4 = [4 x i8] c".js\00"
@.str.5 = [31 x i8] c"text/javascript; charset=utf-8\00"
@.str.6 = [5 x i8] c".png\00"
@.str.7 = [10 x i8] c"image/png\00"
@.str.8 = [5 x i8] c".jpg\00"
@.str.9 = [11 x i8] c"image/jpeg\00"
@.str.10 = [6 x i8] c".jpeg\00"
@.str.11 = [5 x i8] c".gif\00"
@.str.12 = [10 x i8] c"image/gif\00"
@.str.13 = [5 x i8] c".ico\00"
@.str.14 = [25 x i8] c"image/vnd.microsoft.icon\00"
define i8* @path_exttype(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %28, label %3
3: ; preds = %1
%4 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
br i1 %5, label %28, label %6
6: ; preds = %3
%7 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %28, label %9
9: ; preds = %6
%10 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %28, label %12
12: ; preds = %9
%13 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %28, label %15
15: ; preds = %12
%16 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %28, label %18
18: ; preds = %15
%19 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %28, label %21
21: ; preds = %18
%22 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %28, label %24
24: ; preds = %21
%25 = tail call i64 @strcasecmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
%27 = select i1 %26, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), i8* null
br label %28
28: ; preds = %24, %21, %18, %15, %12, %9, %6, %3, %1
%29 = phi i8* [ null, %1 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), %3 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), %6 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), %9 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), %12 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), %15 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), %18 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), %21 ], [ %27, %24 ]
ret i8* %29
}