const char *ws_code_reason(int code) {
  switch (code) {
  case 100:
    return "Continue";
  case 101:
    return "Switching Protocols";
  case 200:
    return "OK";
  case 201:
    return "Created";
  case 202:
    return "Accepted";
  case 203:
    return "Non-Authoritative Information";
  case 204:
    return "No Content";
  case 205:
    return "Reset Content";
  case 206:
    return "Partial Content";
  case 300:
    return "Multible Choices";
  case 301:
    return "Moved Permanently";
  case 302:
    return "Found";
  case 303:
    return "See Other";
  case 304:
    return "Not Modified";
  case 305:
    return "Use Proxy";
  case 307:
    return "Temporary Redirect";
  case 400:
    return "Bad Request";
  case 401:
    return "Unauthorized";
  case 402:
    return "Payment Required";
  case 403:
    return "Forbidden";
  case 404:
    return "Not Found";
  case 405:
    return "Method Not Allowed";
  case 406:
    return "Not Acceptable";
  case 407:
    return "Proxy Authentication Required";
  case 408:
    return "Request Time-out";
  case 409:
    return "Conflict";
  case 410:
    return "Gone";
  case 411:
    return "Length Required";
  case 412:
    return "Precondition Failed";
  case 413:
    return "Request Entify Too Large";
  case 414:
    return "Request-URI Too Large";
  case 415:
    return "Unsupported Media Type";
  case 416:
    return "Requested range not satisfiable";
  case 417:
    return "Expectation Failed";
  case 500:
    return "Internal Server Error";
  case 501:
    return "Not Implemented";
  case 502:
    return "Bad Gateway";
  case 503:
    return "Service Unavailable";
  case 504:
    return "Gateway Time-out";
  case 505:
    return "HTTP Version not supported";
  default:
    return "Unknown extension code";
  }
}


x86 assembly (clang, -O0):
<ws_code_reason>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0x64,%eax
je     13fe <ws_code_reason+0x2fe>
jmp    111b <ws_code_reason+0x1b>
mov    -0x10(%rbp),%eax
sub    $0x65,%eax
je     140e <ws_code_reason+0x30e>
jmp    112c <ws_code_reason+0x2c>
mov    -0x10(%rbp),%eax
sub    $0xc8,%eax
je     141e <ws_code_reason+0x31e>
jmp    113f <ws_code_reason+0x3f>
mov    -0x10(%rbp),%eax
sub    $0xc9,%eax
je     142e <ws_code_reason+0x32e>
jmp    1152 <ws_code_reason+0x52>
mov    -0x10(%rbp),%eax
sub    $0xca,%eax
je     143e <ws_code_reason+0x33e>
jmp    1165 <ws_code_reason+0x65>
mov    -0x10(%rbp),%eax
sub    $0xcb,%eax
je     144e <ws_code_reason+0x34e>
jmp    1178 <ws_code_reason+0x78>
mov    -0x10(%rbp),%eax
sub    $0xcc,%eax
je     145e <ws_code_reason+0x35e>
jmp    118b <ws_code_reason+0x8b>
mov    -0x10(%rbp),%eax
sub    $0xcd,%eax
je     146e <ws_code_reason+0x36e>
jmp    119e <ws_code_reason+0x9e>
mov    -0x10(%rbp),%eax
sub    $0xce,%eax
je     147e <ws_code_reason+0x37e>
jmp    11b1 <ws_code_reason+0xb1>
mov    -0x10(%rbp),%eax
sub    $0x12c,%eax
je     148e <ws_code_reason+0x38e>
jmp    11c4 <ws_code_reason+0xc4>
mov    -0x10(%rbp),%eax
sub    $0x12d,%eax
je     149e <ws_code_reason+0x39e>
jmp    11d7 <ws_code_reason+0xd7>
mov    -0x10(%rbp),%eax
sub    $0x12e,%eax
je     14ae <ws_code_reason+0x3ae>
jmp    11ea <ws_code_reason+0xea>
mov    -0x10(%rbp),%eax
sub    $0x12f,%eax
je     14be <ws_code_reason+0x3be>
jmp    11fd <ws_code_reason+0xfd>
mov    -0x10(%rbp),%eax
sub    $0x130,%eax
je     14ce <ws_code_reason+0x3ce>
jmp    1210 <ws_code_reason+0x110>
mov    -0x10(%rbp),%eax
sub    $0x131,%eax
je     14de <ws_code_reason+0x3de>
jmp    1223 <ws_code_reason+0x123>
mov    -0x10(%rbp),%eax
sub    $0x133,%eax
je     14ee <ws_code_reason+0x3ee>
jmp    1236 <ws_code_reason+0x136>
mov    -0x10(%rbp),%eax
sub    $0x190,%eax
je     14fe <ws_code_reason+0x3fe>
jmp    1249 <ws_code_reason+0x149>
mov    -0x10(%rbp),%eax
sub    $0x191,%eax
je     150e <ws_code_reason+0x40e>
jmp    125c <ws_code_reason+0x15c>
mov    -0x10(%rbp),%eax
sub    $0x192,%eax
je     151e <ws_code_reason+0x41e>
jmp    126f <ws_code_reason+0x16f>
mov    -0x10(%rbp),%eax
sub    $0x193,%eax
je     152e <ws_code_reason+0x42e>
jmp    1282 <ws_code_reason+0x182>
mov    -0x10(%rbp),%eax
sub    $0x194,%eax
je     153e <ws_code_reason+0x43e>
jmp    1295 <ws_code_reason+0x195>
mov    -0x10(%rbp),%eax
sub    $0x195,%eax
je     154e <ws_code_reason+0x44e>
jmp    12a8 <ws_code_reason+0x1a8>
mov    -0x10(%rbp),%eax
sub    $0x196,%eax
je     155e <ws_code_reason+0x45e>
jmp    12bb <ws_code_reason+0x1bb>
mov    -0x10(%rbp),%eax
sub    $0x197,%eax
je     156e <ws_code_reason+0x46e>
jmp    12ce <ws_code_reason+0x1ce>
mov    -0x10(%rbp),%eax
sub    $0x198,%eax
je     157e <ws_code_reason+0x47e>
jmp    12e1 <ws_code_reason+0x1e1>
mov    -0x10(%rbp),%eax
sub    $0x199,%eax
je     158e <ws_code_reason+0x48e>
jmp    12f4 <ws_code_reason+0x1f4>
mov    -0x10(%rbp),%eax
sub    $0x19a,%eax
je     159e <ws_code_reason+0x49e>
jmp    1307 <ws_code_reason+0x207>
mov    -0x10(%rbp),%eax
sub    $0x19b,%eax
je     15ae <ws_code_reason+0x4ae>
jmp    131a <ws_code_reason+0x21a>
mov    -0x10(%rbp),%eax
sub    $0x19c,%eax
je     15be <ws_code_reason+0x4be>
jmp    132d <ws_code_reason+0x22d>
mov    -0x10(%rbp),%eax
sub    $0x19d,%eax
je     15ce <ws_code_reason+0x4ce>
jmp    1340 <ws_code_reason+0x240>
mov    -0x10(%rbp),%eax
sub    $0x19e,%eax
je     15de <ws_code_reason+0x4de>
jmp    1353 <ws_code_reason+0x253>
mov    -0x10(%rbp),%eax
sub    $0x19f,%eax
je     15ee <ws_code_reason+0x4ee>
jmp    1366 <ws_code_reason+0x266>
mov    -0x10(%rbp),%eax
sub    $0x1a0,%eax
je     15fe <ws_code_reason+0x4fe>
jmp    1379 <ws_code_reason+0x279>
mov    -0x10(%rbp),%eax
sub    $0x1a1,%eax
je     160e <ws_code_reason+0x50e>
jmp    138c <ws_code_reason+0x28c>
mov    -0x10(%rbp),%eax
sub    $0x1f4,%eax
je     161e <ws_code_reason+0x51e>
jmp    139f <ws_code_reason+0x29f>
mov    -0x10(%rbp),%eax
sub    $0x1f5,%eax
je     162e <ws_code_reason+0x52e>
jmp    13b2 <ws_code_reason+0x2b2>
mov    -0x10(%rbp),%eax
sub    $0x1f6,%eax
je     163e <ws_code_reason+0x53e>
jmp    13c5 <ws_code_reason+0x2c5>
mov    -0x10(%rbp),%eax
sub    $0x1f7,%eax
je     164e <ws_code_reason+0x54e>
jmp    13d8 <ws_code_reason+0x2d8>
mov    -0x10(%rbp),%eax
sub    $0x1f8,%eax
je     165e <ws_code_reason+0x55e>
jmp    13eb <ws_code_reason+0x2eb>
mov    -0x10(%rbp),%eax
sub    $0x1f9,%eax
je     166e <ws_code_reason+0x56e>
jmp    167e <ws_code_reason+0x57e>
lea    0xbfb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbf4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbf8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbeb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbe3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbdc(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbea(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbe5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbe3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbe3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbe4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xc52(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbd6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbd0(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbcd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbc7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbca(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbc6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbc3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbc4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbbe(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbb8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbbb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbba(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbc8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbc9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbc2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbb7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbb7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbbb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbc4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbca(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbd1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbe1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbe4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbea(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbea(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbe6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbea(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbeb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1689 <ws_code_reason+0x589>
lea    0xbf6(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ws_code_reason>:
lea    -0x64(%rdi),%ecx
cmp    $0x13d,%ecx
ja     112a <ws_code_reason+0x2a>
lea    0x13fe(%rip),%rax
lea    0xee7(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
lea    0x13f0(%rip),%rax
ret
add    $0xfffffe0c,%edi
cmp    $0x5,%edi
ja     114d <ws_code_reason+0x4d>
lea    0x13bc(%rip),%rax
movslq (%rax,%rdi,4),%rcx
add    %rax,%rcx
jmp    *%rcx
lea    0x15cd(%rip),%rax
ret
lea    0x1637(%rip),%rax
ret
lea    0x13d1(%rip),%rax
ret
lea    0x13cc(%rip),%rax
ret
lea    0x13cc(%rip),%rax
ret
lea    0x13cd(%rip),%rax
ret
lea    0x13e3(%rip),%rax
ret
lea    0x13e6(%rip),%rax
ret
lea    0x13ec(%rip),%rax
ret
lea    0x13f4(%rip),%rax
ret
lea    0x13fd(%rip),%rax
ret
lea    0x1473(%rip),%rax
ret
lea    0x13ff(%rip),%rax
ret
lea    0x1401(%rip),%rax
ret
lea    0x1406(%rip),%rax
ret
lea    0x1408(%rip),%rax
ret
lea    0x1413(%rip),%rax
ret
lea    0x1417(%rip),%rax
ret
lea    0x141c(%rip),%rax
ret
lea    0x1425(%rip),%rax
ret
lea    0x1427(%rip),%rax
ret
lea    0x1429(%rip),%rax
ret
lea    0x1434(%rip),%rax
ret
lea    0x143b(%rip),%rax
ret
lea    0x1451(%rip),%rax
ret
lea    0x145a(%rip),%rax
ret
lea    0x145b(%rip),%rax
ret
lea    0x1458(%rip),%rax
ret
lea    0x1460(%rip),%rax
ret
lea    0x146c(%rip),%rax
ret
lea    0x147d(%rip),%rax
ret
lea    0x148b(%rip),%rax
ret
lea    0x149a(%rip),%rax
ret
lea    0x14b2(%rip),%rax
ret
lea    0x14d3(%rip),%rax
ret
lea    0x14db(%rip),%rax
ret
lea    0x14df(%rip),%rax
ret
lea    0x14eb(%rip),%rax
ret
lea    0x14f4(%rip),%rax
ret

LLVM IR (-O0):
@.str = [9 x i8] c"Continue\00"
@.str.1 = [20 x i8] c"Switching Protocols\00"
@.str.2 = [3 x i8] c"OK\00"
@.str.3 = [8 x i8] c"Created\00"
@.str.4 = [9 x i8] c"Accepted\00"
@.str.5 = [30 x i8] c"Non-Authoritative Information\00"
@.str.6 = [11 x i8] c"No Content\00"
@.str.7 = [14 x i8] c"Reset Content\00"
@.str.8 = [16 x i8] c"Partial Content\00"
@.str.9 = [17 x i8] c"Multible Choices\00"
@.str.10 = [18 x i8] c"Moved Permanently\00"
@.str.11 = [6 x i8] c"Found\00"
@.str.12 = [10 x i8] c"See Other\00"
@.str.13 = [13 x i8] c"Not Modified\00"
@.str.14 = [10 x i8] c"Use Proxy\00"
@.str.15 = [19 x i8] c"Temporary Redirect\00"
@.str.16 = [12 x i8] c"Bad Request\00"
@.str.17 = [13 x i8] c"Unauthorized\00"
@.str.18 = [17 x i8] c"Payment Required\00"
@.str.19 = [10 x i8] c"Forbidden\00"
@.str.20 = [10 x i8] c"Not Found\00"
@.str.21 = [19 x i8] c"Method Not Allowed\00"
@.str.22 = [15 x i8] c"Not Acceptable\00"
@.str.23 = [30 x i8] c"Proxy Authentication Required\00"
@.str.24 = [17 x i8] c"Request Time-out\00"
@.str.25 = [9 x i8] c"Conflict\00"
@.str.26 = [5 x i8] c"Gone\00"
@.str.27 = [16 x i8] c"Length Required\00"
@.str.28 = [20 x i8] c"Precondition Failed\00"
@.str.29 = [25 x i8] c"Request Entify Too Large\00"
@.str.30 = [22 x i8] c"Request-URI Too Large\00"
@.str.31 = [23 x i8] c"Unsupported Media Type\00"
@.str.32 = [32 x i8] c"Requested range not satisfiable\00"
@.str.33 = [19 x i8] c"Expectation Failed\00"
@.str.34 = [22 x i8] c"Internal Server Error\00"
@.str.35 = [16 x i8] c"Not Implemented\00"
@.str.36 = [12 x i8] c"Bad Gateway\00"
@.str.37 = [20 x i8] c"Service Unavailable\00"
@.str.38 = [17 x i8] c"Gateway Time-out\00"
@.str.39 = [27 x i8] c"HTTP Version not supported\00"
@.str.40 = [23 x i8] c"Unknown extension code\00"
define i8* @ws_code_reason(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %45 [
i32 100, label %5
i32 101, label %6
i32 200, label %7
i32 201, label %8
i32 202, label %9
i32 203, label %10
i32 204, label %11
i32 205, label %12
i32 206, label %13
i32 300, label %14
i32 301, label %15
i32 302, label %16
i32 303, label %17
i32 304, label %18
i32 305, label %19
i32 307, label %20
i32 400, label %21
i32 401, label %22
i32 402, label %23
i32 403, label %24
i32 404, label %25
i32 405, label %26
i32 406, label %27
i32 407, label %28
i32 408, label %29
i32 409, label %30
i32 410, label %31
i32 411, label %32
i32 412, label %33
i32 413, label %34
i32 414, label %35
i32 415, label %36
i32 416, label %37
i32 417, label %38
i32 500, label %39
i32 501, label %40
i32 502, label %41
i32 503, label %42
i32 504, label %43
i32 505, label %44
]
5: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8** %2
br label %46
6: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %46
7: ; preds = %1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %46
8: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %46
9: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %46
10: ; preds = %1
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %46
11: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %46
12: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %46
13: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %46
14: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %46
15: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %46
16: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %46
17: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %46
18: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %46
19: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %46
20: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %46
21: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %46
22: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %46
23: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %46
24: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %46
25: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %46
26: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %46
27: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %46
28: ; preds = %1
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %46
29: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %46
30: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %46
31: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %46
32: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %46
33: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.28, i64 0, i64 0), i8** %2
br label %46
34: ; preds = %1
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.29, i64 0, i64 0), i8** %2
br label %46
35: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.30, i64 0, i64 0), i8** %2
br label %46
36: ; preds = %1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.31, i64 0, i64 0), i8** %2
br label %46
37: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.32, i64 0, i64 0), i8** %2
br label %46
38: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.33, i64 0, i64 0), i8** %2
br label %46
39: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.34, i64 0, i64 0), i8** %2
br label %46
40: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.35, i64 0, i64 0), i8** %2
br label %46
41: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.36, i64 0, i64 0), i8** %2
br label %46
42: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.37, i64 0, i64 0), i8** %2
br label %46
43: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.38, i64 0, i64 0), i8** %2
br label %46
44: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.39, i64 0, i64 0), i8** %2
br label %46
45: ; preds = %1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.40, i64 0, i64 0), i8** %2
br label %46
46: ; preds = %45, %44, %43, %42, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%47 = load i8*, i8** %2
ret i8* %47
}

LLVM IR (-O2):
@.str = [9 x i8] c"Continue\00"
@.str.1 = [20 x i8] c"Switching Protocols\00"
@.str.2 = [3 x i8] c"OK\00"
@.str.3 = [8 x i8] c"Created\00"
@.str.4 = [9 x i8] c"Accepted\00"
@.str.5 = [30 x i8] c"Non-Authoritative Information\00"
@.str.6 = [11 x i8] c"No Content\00"
@.str.7 = [14 x i8] c"Reset Content\00"
@.str.8 = [16 x i8] c"Partial Content\00"
@.str.9 = [17 x i8] c"Multible Choices\00"
@.str.10 = [18 x i8] c"Moved Permanently\00"
@.str.11 = [6 x i8] c"Found\00"
@.str.12 = [10 x i8] c"See Other\00"
@.str.13 = [13 x i8] c"Not Modified\00"
@.str.14 = [10 x i8] c"Use Proxy\00"
@.str.15 = [19 x i8] c"Temporary Redirect\00"
@.str.16 = [12 x i8] c"Bad Request\00"
@.str.17 = [13 x i8] c"Unauthorized\00"
@.str.18 = [17 x i8] c"Payment Required\00"
@.str.19 = [10 x i8] c"Forbidden\00"
@.str.20 = [10 x i8] c"Not Found\00"
@.str.21 = [19 x i8] c"Method Not Allowed\00"
@.str.22 = [15 x i8] c"Not Acceptable\00"
@.str.23 = [30 x i8] c"Proxy Authentication Required\00"
@.str.24 = [17 x i8] c"Request Time-out\00"
@.str.25 = [9 x i8] c"Conflict\00"
@.str.26 = [5 x i8] c"Gone\00"
@.str.27 = [16 x i8] c"Length Required\00"
@.str.28 = [20 x i8] c"Precondition Failed\00"
@.str.29 = [25 x i8] c"Request Entify Too Large\00"
@.str.30 = [22 x i8] c"Request-URI Too Large\00"
@.str.31 = [23 x i8] c"Unsupported Media Type\00"
@.str.32 = [32 x i8] c"Requested range not satisfiable\00"
@.str.33 = [19 x i8] c"Expectation Failed\00"
@.str.34 = [22 x i8] c"Internal Server Error\00"
@.str.35 = [16 x i8] c"Not Implemented\00"
@.str.36 = [12 x i8] c"Bad Gateway\00"
@.str.37 = [20 x i8] c"Service Unavailable\00"
@.str.38 = [17 x i8] c"Gateway Time-out\00"
@.str.39 = [27 x i8] c"HTTP Version not supported\00"
@.str.40 = [23 x i8] c"Unknown extension code\00"
define i8* @ws_code_reason(i32 %0) {
switch i32 %0, label %41 [
i32 100, label %42
i32 101, label %2
i32 200, label %3
i32 201, label %4
i32 202, label %5
i32 203, label %6
i32 204, label %7
i32 205, label %8
i32 206, label %9
i32 300, label %10
i32 301, label %11
i32 302, label %12
i32 303, label %13
i32 304, label %14
i32 305, label %15
i32 307, label %16
i32 400, label %17
i32 401, label %18
i32 402, label %19
i32 403, label %20
i32 404, label %21
i32 405, label %22
i32 406, label %23
i32 407, label %24
i32 408, label %25
i32 409, label %26
i32 410, label %27
i32 411, label %28
i32 412, label %29
i32 413, label %30
i32 414, label %31
i32 415, label %32
i32 416, label %33
i32 417, label %34
i32 500, label %35
i32 501, label %36
i32 502, label %37
i32 503, label %38
i32 504, label %39
i32 505, label %40
]
2: ; preds = %1
br label %42
3: ; preds = %1
br label %42
4: ; preds = %1
br label %42
5: ; preds = %1
br label %42
6: ; preds = %1
br label %42
7: ; preds = %1
br label %42
8: ; preds = %1
br label %42
9: ; preds = %1
br label %42
10: ; preds = %1
br label %42
11: ; preds = %1
br label %42
12: ; preds = %1
br label %42
13: ; preds = %1
br label %42
14: ; preds = %1
br label %42
15: ; preds = %1
br label %42
16: ; preds = %1
br label %42
17: ; preds = %1
br label %42
18: ; preds = %1
br label %42
19: ; preds = %1
br label %42
20: ; preds = %1
br label %42
21: ; preds = %1
br label %42
22: ; preds = %1
br label %42
23: ; preds = %1
br label %42
24: ; preds = %1
br label %42
25: ; preds = %1
br label %42
26: ; preds = %1
br label %42
27: ; preds = %1
br label %42
28: ; preds = %1
br label %42
29: ; preds = %1
br label %42
30: ; preds = %1
br label %42
31: ; preds = %1
br label %42
32: ; preds = %1
br label %42
33: ; preds = %1
br label %42
34: ; preds = %1
br label %42
35: ; preds = %1
br label %42
36: ; preds = %1
br label %42
37: ; preds = %1
br label %42
38: ; preds = %1
br label %42
39: ; preds = %1
br label %42
40: ; preds = %1
br label %42
41: ; preds = %1
br label %42
42: ; preds = %1, %41, %40, %39, %38, %37, %36, %35, %34, %33, %32, %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4, %3, %2
%43 = phi i8* [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.40, i64 0, i64 0), %41 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.39, i64 0, i64 0), %40 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.38, i64 0, i64 0), %39 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.37, i64 0, i64 0), %38 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.36, i64 0, i64 0), %37 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.35, i64 0, i64 0), %36 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.34, i64 0, i64 0), %35 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.33, i64 0, i64 0), %34 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @.str.32, i64 0, i64 0), %33 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.31, i64 0, i64 0), %32 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.30, i64 0, i64 0), %31 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.29, i64 0, i64 0), %30 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.28, i64 0, i64 0), %29 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.27, i64 0, i64 0), %28 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0), %27 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0), %26 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.24, i64 0, i64 0), %25 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.23, i64 0, i64 0), %24 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.22, i64 0, i64 0), %23 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.21, i64 0, i64 0), %22 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0), %21 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), %20 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.18, i64 0, i64 0), %19 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), %18 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i64 0, i64 0), %17 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.15, i64 0, i64 0), %16 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), %15 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), %14 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), %13 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), %12 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), %11 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), %10 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), %9 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), %7 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %43
}