const char *ureq_get_code_description(const int c) {
  switch (c) {
  case 200:
    return "OK";
  case 302:
    return "Found";
  case 400:
    return "Bad Request";
  case 401:
    return "Unauthorized";
  case 403:
    return "Forbidden";
  case 404:
    return "Not Found";
  case 408:
    return "Request Timeout";
  case 413:
    return "Request-URI Too Long";
  case 500:
    return "Internal Error";
  case 503:
    return "Service Temporarily Overloaded";
  default:
    return "Not Implemented";
  }
}


x86 assembly (clang, -O0):
<ureq_get_code_description>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0xc8,%eax
je     11c8 <ureq_get_code_description+0xc8>
jmp    111d <ureq_get_code_description+0x1d>
mov    -0x10(%rbp),%eax
sub    $0x12e,%eax
je     11d8 <ureq_get_code_description+0xd8>
jmp    1130 <ureq_get_code_description+0x30>
mov    -0x10(%rbp),%eax
sub    $0x190,%eax
je     11e8 <ureq_get_code_description+0xe8>
jmp    1143 <ureq_get_code_description+0x43>
mov    -0x10(%rbp),%eax
sub    $0x191,%eax
je     11f8 <ureq_get_code_description+0xf8>
jmp    1156 <ureq_get_code_description+0x56>
mov    -0x10(%rbp),%eax
sub    $0x193,%eax
je     1208 <ureq_get_code_description+0x108>
jmp    1169 <ureq_get_code_description+0x69>
mov    -0x10(%rbp),%eax
sub    $0x194,%eax
je     1218 <ureq_get_code_description+0x118>
jmp    117c <ureq_get_code_description+0x7c>
mov    -0x10(%rbp),%eax
sub    $0x198,%eax
je     1228 <ureq_get_code_description+0x128>
jmp    118f <ureq_get_code_description+0x8f>
mov    -0x10(%rbp),%eax
sub    $0x19d,%eax
je     1238 <ureq_get_code_description+0x138>
jmp    11a2 <ureq_get_code_description+0xa2>
mov    -0x10(%rbp),%eax
sub    $0x1f4,%eax
je     1248 <ureq_get_code_description+0x148>
jmp    11b5 <ureq_get_code_description+0xb5>
mov    -0x10(%rbp),%eax
sub    $0x1f7,%eax
je     1258 <ureq_get_code_description+0x158>
jmp    1268 <ureq_get_code_description+0x168>
lea    0xe31(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1273 <ureq_get_code_description+0x173>
lea    0xe4b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1273 <ureq_get_code_description+0x173>
lea    0xe14(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1273 <ureq_get_code_description+0x173>
lea    0xe10(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1273 <ureq_get_code_description+0x173>
lea    0xe0d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1273 <ureq_get_code_description+0x173>
lea    0xe07(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1273 <ureq_get_code_description+0x173>
lea    0xe01(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1273 <ureq_get_code_description+0x173>
lea    0xe01(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1273 <ureq_get_code_description+0x173>
lea    0xe06(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1273 <ureq_get_code_description+0x173>
lea    0xe05(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1273 <ureq_get_code_description+0x173>
lea    0xe14(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ureq_get_code_description>:
cmp    $0x18f,%edi
jle    112b <ureq_get_code_description+0x2b>
lea    -0x190(%rdi),%eax
cmp    $0xd,%eax
ja     1143 <ureq_get_code_description+0x43>
lea    0xee6(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf11(%rip),%rax
ret
cmp    $0xc8,%edi
je     118b <ureq_get_code_description+0x8b>
cmp    $0x12e,%edi
jne    1183 <ureq_get_code_description+0x83>
lea    0xf20(%rip),%rax
ret
cmp    $0x1f4,%edi
je     1193 <ureq_get_code_description+0x93>
cmp    $0x1f7,%edi
jne    1183 <ureq_get_code_description+0x83>
lea    0xf42(%rip),%rax
ret
lea    0xee5(%rip),%rax
ret
lea    0xeea(%rip),%rax
ret
lea    0xeec(%rip),%rax
ret
lea    0xeee(%rip),%rax
ret
lea    0xef6(%rip),%rax
ret
lea    0xf31(%rip),%rax
ret
lea    0xea6(%rip),%rax
ret
lea    0xef3(%rip),%rax
ret

LLVM IR (-O0):
@.str = [3 x i8] c"OK\00"
@.str.1 = [6 x i8] c"Found\00"
@.str.2 = [12 x i8] c"Bad Request\00"
@.str.3 = [13 x i8] c"Unauthorized\00"
@.str.4 = [10 x i8] c"Forbidden\00"
@.str.5 = [10 x i8] c"Not Found\00"
@.str.6 = [16 x i8] c"Request Timeout\00"
@.str.7 = [21 x i8] c"Request-URI Too Long\00"
@.str.8 = [15 x i8] c"Internal Error\00"
@.str.9 = [31 x i8] c"Service Temporarily Overloaded\00"
@.str.10 = [16 x i8] c"Not Implemented\00"
define i8* @ureq_get_code_description(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %15 [
i32 200, label %5
i32 302, label %6
i32 400, label %7
i32 401, label %8
i32 403, label %9
i32 404, label %10
i32 408, label %11
i32 413, label %12
i32 500, label %13
i32 503, label %14
]
5: ; preds = %1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %2
br label %16
6: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %16
7: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %16
8: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %16
9: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %16
10: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %16
11: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %16
12: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %16
13: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %16
14: ; preds = %1
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %16
15: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %16
16: ; preds = %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%17 = load i8*, i8** %2
ret i8* %17
}

LLVM IR (-O2):
@.str = [3 x i8] c"OK\00"
@.str.1 = [6 x i8] c"Found\00"
@.str.2 = [12 x i8] c"Bad Request\00"
@.str.3 = [13 x i8] c"Unauthorized\00"
@.str.4 = [10 x i8] c"Forbidden\00"
@.str.5 = [10 x i8] c"Not Found\00"
@.str.6 = [16 x i8] c"Request Timeout\00"
@.str.7 = [21 x i8] c"Request-URI Too Long\00"
@.str.8 = [15 x i8] c"Internal Error\00"
@.str.9 = [31 x i8] c"Service Temporarily Overloaded\00"
@.str.10 = [16 x i8] c"Not Implemented\00"
define i8* @ureq_get_code_description(i32 %0) {
switch i32 %0, label %11 [
i32 200, label %12
i32 302, label %2
i32 400, label %3
i32 401, label %4
i32 403, label %5
i32 404, label %6
i32 408, label %7
i32 413, label %8
i32 500, label %9
i32 503, label %10
]
2: ; preds = %1
br label %12
3: ; preds = %1
br label %12
4: ; preds = %1
br label %12
5: ; preds = %1
br label %12
6: ; preds = %1
br label %12
7: ; preds = %1
br label %12
8: ; preds = %1
br label %12
9: ; preds = %1
br label %12
10: ; preds = %1
br label %12
11: ; preds = %1
br label %12
12: ; preds = %1, %11, %10, %9, %8, %7, %6, %5, %4, %3, %2
%13 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), %11 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), %10 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), %9 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), %7 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %13
}