#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 const *, char *);
const char *response_get_mime(const char *extension) {
  if (extension != NULL) {
    if (strcmp(extension + 1, "html") == 0)
      return "text/html";
    if (strcmp(extension + 1, "txt") == 0)
      return "text/plain";
    if (strcmp(extension + 1, "jpe") == 0)
      return "image/jpeg";
    if (strcmp(extension + 1, "jpg") == 0)
      return "image/jpeg";
    if (strcmp(extension + 1, "jpeg") == 0)
      return "image/jpeg";
    if (strcmp(extension + 1, "png") == 0)
      return "image/png";
    if (strcmp(extension + 1, "gif") == 0)
      return "image/gif";
    if (strcmp(extension + 1, "css") == 0)
      return "text/css";
    if (strcmp(extension + 1, "js") == 0)
      return "text/javascript";
    if (strcmp(extension + 1, "pdf") == 0)
      return "application/pdf";
  }
  return "application/octet-stream";
}


x86 assembly (clang, -O0):
<response_get_mime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     12f8 <response_get_mime+0x1e8>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
lea    0xecf(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1155 <response_get_mime+0x45>
lea    0xeb4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1303 <response_get_mime+0x1f3>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
lea    0xea6(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1183 <response_get_mime+0x73>
lea    0xe94(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1303 <response_get_mime+0x1f3>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
lea    0xe87(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11b1 <response_get_mime+0xa1>
lea    0xe75(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1303 <response_get_mime+0x1f3>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
lea    0xe68(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11df <response_get_mime+0xcf>
lea    0xe47(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1303 <response_get_mime+0x1f3>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
lea    0xe35(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    120d <response_get_mime+0xfd>
lea    0xe19(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1303 <response_get_mime+0x1f3>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
lea    0xe16(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    123b <response_get_mime+0x12b>
lea    0xdfa(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1303 <response_get_mime+0x1f3>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
lea    0xdf2(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1269 <response_get_mime+0x159>
lea    0xdd6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1303 <response_get_mime+0x1f3>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
lea    0xdcd(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1297 <response_get_mime+0x187>
lea    0xdb2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1303 <response_get_mime+0x1f3>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
lea    0xda3(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12c5 <response_get_mime+0x1b5>
lea    0xd90(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1303 <response_get_mime+0x1f3>
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
lea    0xd94(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12f3 <response_get_mime+0x1e3>
lea    0xd72(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1303 <response_get_mime+0x1f3>
jmp    12f8 <response_get_mime+0x1e8>
lea    0xd6d(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<response_get_mime>:
push   %r14
push   %rbx
push   %rax
test   %rdi,%rdi
je     1203 <response_get_mime+0xf3>
mov    %rdi,%rbx
add    $0x1,%rbx
lea    0xeda(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     120c <response_get_mime+0xfc>
lea    0xec7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1215 <response_get_mime+0x105>
lea    0xebe(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
lea    0xeb3(%rip),%r14
test   %rax,%rax
je     121c <response_get_mime+0x10c>
lea    0xeae(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     121c <response_get_mime+0x10c>
lea    0xe91(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     121c <response_get_mime+0x10c>
lea    0xe8c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1227 <response_get_mime+0x117>
lea    0xe82(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1230 <response_get_mime+0x120>
lea    0xe77(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1239 <response_get_mime+0x129>
lea    0xe67(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1242 <response_get_mime+0x132>
lea    0xe72(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     124b <response_get_mime+0x13b>
lea    0xe62(%rip),%r14
jmp    121c <response_get_mime+0x10c>
lea    0xded(%rip),%r14
jmp    121c <response_get_mime+0x10c>
lea    0xdf2(%rip),%r14
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
lea    0xdfe(%rip),%r14
jmp    121c <response_get_mime+0x10c>
lea    0xdff(%rip),%r14
jmp    121c <response_get_mime+0x10c>
lea    0xe00(%rip),%r14
jmp    121c <response_get_mime+0x10c>
lea    0xe03(%rip),%r14
jmp    121c <response_get_mime+0x10c>
lea    0xe0a(%rip),%r14
jmp    121c <response_get_mime+0x10c>

LLVM IR (-O0):
@.str = [5 x i8] c"html\00"
@.str.1 = [10 x i8] c"text/html\00"
@.str.2 = [4 x i8] c"txt\00"
@.str.3 = [11 x i8] c"text/plain\00"
@.str.4 = [4 x i8] c"jpe\00"
@.str.5 = [11 x i8] c"image/jpeg\00"
@.str.6 = [4 x i8] c"jpg\00"
@.str.7 = [5 x i8] c"jpeg\00"
@.str.8 = [4 x i8] c"png\00"
@.str.9 = [10 x i8] c"image/png\00"
@.str.10 = [4 x i8] c"gif\00"
@.str.11 = [10 x i8] c"image/gif\00"
@.str.12 = [4 x i8] c"css\00"
@.str.13 = [9 x i8] c"text/css\00"
@.str.14 = [3 x i8] c"js\00"
@.str.15 = [16 x i8] c"text/javascript\00"
@.str.16 = [4 x i8] c"pdf\00"
@.str.17 = [16 x i8] c"application/pdf\00"
@.str.18 = [25 x i8] c"application/octet-stream\00"
define i8* @response_get_mime(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 %6, label %67
6: ; preds = %1
%7 = load i8*, i8** %3
%8 = getelementptr inbounds i8, i8* %7, i64 1
%9 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %6
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %68
12: ; preds = %6
%13 = load i8*, i8** %3
%14 = getelementptr inbounds i8, i8* %13, i64 1
%15 = call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %12
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %68
18: ; preds = %12
%19 = load i8*, i8** %3
%20 = getelementptr inbounds i8, i8* %19, i64 1
%21 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %18
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %68
24: ; preds = %18
%25 = load i8*, i8** %3
%26 = getelementptr inbounds i8, i8* %25, i64 1
%27 = call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %24
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %68
30: ; preds = %24
%31 = load i8*, i8** %3
%32 = getelementptr inbounds i8, i8* %31, i64 1
%33 = call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %30
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %68
36: ; preds = %30
%37 = load i8*, i8** %3
%38 = getelementptr inbounds i8, i8* %37, i64 1
%39 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %36
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %68
42: ; preds = %36
%43 = load i8*, i8** %3
%44 = getelementptr inbounds i8, i8* %43, i64 1
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %42
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %68
48: ; preds = %42
%49 = load i8*, i8** %3
%50 = getelementptr inbounds i8, i8* %49, i64 1
%51 = call i64 @strcmp(i8* %50, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %54
53: ; preds = %48
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %68
54: ; preds = %48
%55 = load i8*, i8** %3
%56 = getelementptr inbounds i8, i8* %55, i64 1
%57 = call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %54
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %68
60: ; preds = %54
%61 = load i8*, i8** %3
%62 = getelementptr inbounds i8, i8* %61, i64 1
%63 = call i64 @strcmp(i8* %62, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %66
65: ; preds = %60
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %68
66: ; preds = %60
br label %67
67: ; preds = %66, %1
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %68
68: ; preds = %67, %65, %59, %53, %47, %41, %35, %29, %23, %17, %11
%69 = load i8*, i8** %2
ret i8* %69
}

LLVM IR (-O2):
@.str = [5 x i8] c"html\00"
@.str.1 = [10 x i8] c"text/html\00"
@.str.2 = [4 x i8] c"txt\00"
@.str.3 = [11 x i8] c"text/plain\00"
@.str.4 = [4 x i8] c"jpe\00"
@.str.5 = [11 x i8] c"image/jpeg\00"
@.str.6 = [4 x i8] c"jpg\00"
@.str.7 = [5 x i8] c"jpeg\00"
@.str.8 = [4 x i8] c"png\00"
@.str.9 = [10 x i8] c"image/png\00"
@.str.10 = [4 x i8] c"gif\00"
@.str.11 = [10 x i8] c"image/gif\00"
@.str.12 = [4 x i8] c"css\00"
@.str.13 = [9 x i8] c"text/css\00"
@.str.14 = [3 x i8] c"js\00"
@.str.15 = [16 x i8] c"text/javascript\00"
@.str.16 = [4 x i8] c"pdf\00"
@.str.17 = [16 x i8] c"application/pdf\00"
@.str.18 = [25 x i8] c"application/octet-stream\00"
define i8* @response_get_mime(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %34, label %3
3: ; preds = %1
%4 = getelementptr inbounds i8, i8* %0, i64 1
%5 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %35, label %7
7: ; preds = %3
%8 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %35, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %35, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %35, label %16
16: ; preds = %13
%17 = tail call i64 @strcmp(i8* %4, 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 %35, label %19
19: ; preds = %16
%20 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %35, label %22
22: ; preds = %19
%23 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %35, label %25
25: ; preds = %22
%26 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %35, label %28
28: ; preds = %25
%29 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %35, label %31
31: ; preds = %28
%32 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %35, label %34
34: ; preds = %31, %1
br label %35
35: ; preds = %31, %28, %25, %22, %19, %16, %13, %10, %7, %3, %34
%36 = phi i8* [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.18, i64 0, i64 0), %34 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), %3 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), %7 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), %10 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), %13 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), %16 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), %19 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), %22 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0), %25 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.15, i64 0, i64 0), %28 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), %31 ]
ret i8* %36
}