#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 */
typedef int uint8_t;

/* Variables and functions */
char *get_string_for_tcp_message(uint8_t message) {
  switch (message) {
  case 0x01:
    return "Heartbeat Request";
  case 0x02:
    return "Heartbeat Response";
  case 0x03:
    return "Ping";
  case 0x04:
    return "Pong";
  case 0x05:
    return "Prepare Acknowledgment";
  case 0x06:
    return "Commit Acknowledgment";
  case 0x07:
    return "Slave Assignment";
  case 0x08:
    return "Clone Assignment";
  case 0x10:
    return "Sudirribe Replica";
  case 0x11:
    return "Replica Log Position Acknowledgment";
  case 0x12:
    return "Create Chunk";
  case 0x13:
    return "Raw Chunk Bulk";
  case 0x14:
    return "Data Chunk Bulk";
  case 0x15:
    return "Replica Sudirription Retry";
  case 0x16:
    return "Replica Sudirriber";
  case 0x82:
    return "Write Events";
  case 0x83:
    return "Write Events Completed";
  case 0x84:
    return "Transaction Start";
  case 0x85:
    return "Transaction Start Completed";
  case 0x86:
    return "Transaction Write";
  case 0x87:
    return "Transaction Write Completed";
  case 0x88:
    return "Transaction Commit";
  case 0x89:
    return "Transaction Commit Completed";
  case 0x8A:
    return "Delete Stream";
  case 0x8B:
    return "Delete Stream Completed";
  case 0xB0:
    return "Read Event";
  case 0xB1:
    return "Read Event Completed";
  case 0xB2:
    return "Read Stream Events Forward";
  case 0xB3:
    return "Read Stream Events Forward Completed";
  case 0xB4:
    return "Read Stream Events Backward";
  case 0xB5:
    return "Read Stream Events Backward Completed";
  case 0xB6:
    return "Read All Events Forward";
  case 0xB7:
    return "Read All Events Forward Completed";
  case 0xB8:
    return "Read All Events Backward";
  case 0xB9:
    return "Read All Events Backward Completed";
  case 0xC0:
    return "Sudirribe To Stream";
  case 0xC1:
    return "Sudirription Confirmation";
  case 0xC2:
    return "Stream Event Appeared";
  case 0xC3:
    return "Unsudirribe from stream";
  case 0xC4:
    return "Sudirription Dropped";
  case 0xC5:
    return "Connect to Persistent Sudirription";
  case 0xC6:
    return "Persistent Sudirription Confirmation";
  case 0xC7:
    return "Persistent Sudirription Stream Event Appeared";
  case 0xC8:
    return "Create Persistent Sudirription";
  case 0xC9:
    return "Create Persistent Sudirription Completed";
  case 0xCA:
    return "Delete Persistent Sudirription";
  case 0xCB:
    return "Delete Persistent Sudirription Completed";
  case 0xCC:
    return "Persistent Sudirription Ack Events";
  case 0xCD:
    return "Persistent Sudirription Nak Events";
  case 0xCE:
    return "Update Persistent Sudirription";
  case 0xCF:
    return "Update Persistent Sudirription Completed";
  case 0xD0:
    return "Scavenge Database";
  case 0xD1:
    return "Scavenge Database Completed";
  case 0xF0:
    return "Bad Request";
  case 0xF1:
    return "Not Handled";
  case 0xF2:
    return "Authenticate";
  case 0xF3:
    return "Authenticated";
  case 0xF4:
    return "Not Authenticated";
  default:
    return "Unknown Message Code";
  }
}


x86 assembly (clang, -O0):
<get_string_for_tcp_message>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0xf3,%eax
ja     14d2 <get_string_for_tcp_message+0x3d2>
mov    -0x18(%rbp),%rax
lea    0xed7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1297(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1299(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x129c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1291(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1286(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x128d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1293(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1294(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1295(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1297(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12ab(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12a8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12a7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12a7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12b2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12b5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12b2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12b9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12bb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12c7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12c9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12d5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12d8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12e5(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12e3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12eb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12e6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12eb(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x12f6(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x130b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1317(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x132d(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1335(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1347(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1350(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1363(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x13c2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x13e4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1347(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x134f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1354(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1367(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x137c(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x139a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x13a9(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x13c2(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x13d1(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x13ea(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x13fd(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1410(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x141f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1438(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x143a(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1446(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x1442(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x143e(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x143f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x142b(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    14dd <get_string_for_tcp_message+0x3dd>
lea    0x142d(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_string_for_tcp_message>:
add    $0xffffffff,%edi
cmp    $0xf3,%edi
ja     12ee <get_string_for_tcp_message+0x1ee>
lea    0x12ba(%rip),%rax
lea    0xee3(%rip),%rcx
movslq (%rcx,%rdi,4),%rdx
add    %rcx,%rdx
jmp    *%rdx
lea    0x12b5(%rip),%rax
ret
lea    0x12c0(%rip),%rax
ret
lea    0x12bd(%rip),%rax
ret
lea    0x12ba(%rip),%rax
ret
lea    0x12c9(%rip),%rax
ret
lea    0x12d7(%rip),%rax
ret
lea    0x12e0(%rip),%rax
ret
lea    0x12e9(%rip),%rax
ret
lea    0x12f3(%rip),%rax
ret
lea    0x130f(%rip),%rax
ret
lea    0x1314(%rip),%rax
ret
lea    0x131b(%rip),%rax
ret
lea    0x1323(%rip),%rax
ret
lea    0x1336(%rip),%rax
ret
lea    0x1341(%rip),%rax
ret
lea    0x1346(%rip),%rax
ret
lea    0x1355(%rip),%rax
ret
lea    0x135f(%rip),%rax
ret
lea    0x1373(%rip),%rax
ret
lea    0x137d(%rip),%rax
ret
lea    0x1391(%rip),%rax
ret
lea    0x139c(%rip),%rax
ret
lea    0x13b1(%rip),%rax
ret
lea    0x13b7(%rip),%rax
ret
lea    0x13c7(%rip),%rax
ret
lea    0x13ca(%rip),%rax
ret
lea    0x13d7(%rip),%rax
ret
lea    0x13ea(%rip),%rax
ret
lea    0x1407(%rip),%rax
ret
lea    0x141b(%rip),%rax
ret
lea    0x1439(%rip),%rax
ret
lea    0x1449(%rip),%rax
ret
lea    0x1463(%rip),%rax
ret
lea    0x1474(%rip),%rax
ret
lea    0x148f(%rip),%rax
ret
lea    0x14f6(%rip),%rax
ret
lea    0x1520(%rip),%rax
ret
lea    0x148b(%rip),%rax
ret
lea    0x149b(%rip),%rax
ret
lea    0x14a8(%rip),%rax
ret
lea    0x14c3(%rip),%rax
ret
lea    0x14e0(%rip),%rax
ret
lea    0x1506(%rip),%rax
ret
lea    0x151d(%rip),%rax
ret
lea    0x153e(%rip),%rax
ret
lea    0x1555(%rip),%rax
ret
lea    0x1576(%rip),%rax
ret
lea    0x1591(%rip),%rax
ret
lea    0x15ac(%rip),%rax
ret
lea    0x15c3(%rip),%rax
ret
lea    0x15e4(%rip),%rax
ret
lea    0x15ee(%rip),%rax
ret
lea    0x1602(%rip),%rax
ret
lea    0x1606(%rip),%rax
ret
lea    0x160a(%rip),%rax
ret
lea    0x1613(%rip),%rax
ret
lea    0x1607(%rip),%rax
ret
lea    0x1611(%rip),%rax
ret

LLVM IR (-O0):
@.str = [18 x i8] c"Heartbeat Request\00"
@.str.1 = [19 x i8] c"Heartbeat Response\00"
@.str.2 = [5 x i8] c"Ping\00"
@.str.3 = [5 x i8] c"Pong\00"
@.str.4 = [23 x i8] c"Prepare Acknowledgment\00"
@.str.5 = [22 x i8] c"Commit Acknowledgment\00"
@.str.6 = [17 x i8] c"Slave Assignment\00"
@.str.7 = [17 x i8] c"Clone Assignment\00"
@.str.8 = [18 x i8] c"Sudirribe Replica\00"
@.str.9 = [36 x i8] c"Replica Log Position Acknowledgment\00"
@.str.10 = [13 x i8] c"Create Chunk\00"
@.str.11 = [15 x i8] c"Raw Chunk Bulk\00"
@.str.12 = [16 x i8] c"Data Chunk Bulk\00"
@.str.13 = [27 x i8] c"Replica Sudirription Retry\00"
@.str.14 = [19 x i8] c"Replica Sudirriber\00"
@.str.15 = [13 x i8] c"Write Events\00"
@.str.16 = [23 x i8] c"Write Events Completed\00"
@.str.17 = [18 x i8] c"Transaction Start\00"
@.str.18 = [28 x i8] c"Transaction Start Completed\00"
@.str.19 = [18 x i8] c"Transaction Write\00"
@.str.20 = [28 x i8] c"Transaction Write Completed\00"
@.str.21 = [19 x i8] c"Transaction Commit\00"
@.str.22 = [29 x i8] c"Transaction Commit Completed\00"
@.str.23 = [14 x i8] c"Delete Stream\00"
@.str.24 = [24 x i8] c"Delete Stream Completed\00"
@.str.25 = [11 x i8] c"Read Event\00"
@.str.26 = [21 x i8] c"Read Event Completed\00"
@.str.27 = [27 x i8] c"Read Stream Events Forward\00"
@.str.28 = [37 x i8] c"Read Stream Events Forward Completed\00"
@.str.29 = [28 x i8] c"Read Stream Events Backward\00"
@.str.30 = [38 x i8] c"Read Stream Events Backward Completed\00"
@.str.31 = [24 x i8] c"Read All Events Forward\00"
@.str.32 = [34 x i8] c"Read All Events Forward Completed\00"
@.str.33 = [25 x i8] c"Read All Events Backward\00"
@.str.34 = [35 x i8] c"Read All Events Backward Completed\00"
@.str.35 = [20 x i8] c"Sudirribe To Stream\00"
@.str.36 = [26 x i8] c"Sudirription Confirmation\00"
@.str.37 = [22 x i8] c"Stream Event Appeared\00"
@.str.38 = [24 x i8] c"Unsudirribe from stream\00"
@.str.39 = [21 x i8] c"Sudirription Dropped\00"
@.str.40 = [35 x i8] c"Connect to Persistent Sudirription\00"
@.str.41 = [37 x i8] c"Persistent Sudirription Confirmation\00"
@.str.42 = [46 x i8] c"Persistent Sudirription Stream Event Appeared\00"
@.str.43 = [31 x i8] c"Create Persistent Sudirription\00"
@.str.44 = [41 x i8] c"Create Persistent Sudirription Completed\00"
@.str.45 = [31 x i8] c"Delete Persistent Sudirription\00"
@.str.46 = [41 x i8] c"Delete Persistent Sudirription Completed\00"
@.str.47 = [35 x i8] c"Persistent Sudirription Ack Events\00"
@.str.48 = [35 x i8] c"Persistent Sudirription Nak Events\00"
@.str.49 = [31 x i8] c"Update Persistent Sudirription\00"
@.str.50 = [41 x i8] c"Update Persistent Sudirription Completed\00"
@.str.51 = [18 x i8] c"Scavenge Database\00"
@.str.52 = [28 x i8] c"Scavenge Database Completed\00"
@.str.53 = [12 x i8] c"Bad Request\00"
@.str.54 = [12 x i8] c"Not Handled\00"
@.str.55 = [13 x i8] c"Authenticate\00"
@.str.56 = [14 x i8] c"Authenticated\00"
@.str.57 = [18 x i8] c"Not Authenticated\00"
@.str.58 = [21 x i8] c"Unknown Message Code\00"
define i8* @get_string_for_tcp_message(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %63 [
i32 1, label %5
i32 2, label %6
i32 3, label %7
i32 4, label %8
i32 5, label %9
i32 6, label %10
i32 7, label %11
i32 8, label %12
i32 16, label %13
i32 17, label %14
i32 18, label %15
i32 19, label %16
i32 20, label %17
i32 21, label %18
i32 22, label %19
i32 130, label %20
i32 131, label %21
i32 132, label %22
i32 133, label %23
i32 134, label %24
i32 135, label %25
i32 136, label %26
i32 137, label %27
i32 138, label %28
i32 139, label %29
i32 176, label %30
i32 177, label %31
i32 178, label %32
i32 179, label %33
i32 180, label %34
i32 181, label %35
i32 182, label %36
i32 183, label %37
i32 184, label %38
i32 185, label %39
i32 192, label %40
i32 193, label %41
i32 194, label %42
i32 195, label %43
i32 196, label %44
i32 197, label %45
i32 198, label %46
i32 199, label %47
i32 200, label %48
i32 201, label %49
i32 202, label %50
i32 203, label %51
i32 204, label %52
i32 205, label %53
i32 206, label %54
i32 207, label %55
i32 208, label %56
i32 209, label %57
i32 240, label %58
i32 241, label %59
i32 242, label %60
i32 243, label %61
i32 244, label %62
]
5: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8** %2
br label %64
6: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %64
7: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %64
8: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %64
9: ; preds = %1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8** %2
br label %64
10: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %64
11: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8** %2
br label %64
12: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8** %2
br label %64
13: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i8** %2
br label %64
14: ; preds = %1
store i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %64
15: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i8** %2
br label %64
16: ; preds = %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8** %2
br label %64
17: ; preds = %1
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0), i8** %2
br label %64
18: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0), i8** %2
br label %64
19: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), i8** %2
br label %64
20: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i8** %2
br label %64
21: ; preds = %1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0), i8** %2
br label %64
22: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), i8** %2
br label %64
23: ; preds = %1
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0), i8** %2
br label %64
24: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0), i8** %2
br label %64
25: ; preds = %1
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.20, i64 0, i64 0), i8** %2
br label %64
26: ; preds = %1
store i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.21, i64 0, i64 0), i8** %2
br label %64
27: ; preds = %1
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.22, i64 0, i64 0), i8** %2
br label %64
28: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.23, i64 0, i64 0), i8** %2
br label %64
29: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i64 0, i64 0), i8** %2
br label %64
30: ; preds = %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i8** %2
br label %64
31: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.26, i64 0, i64 0), i8** %2
br label %64
32: ; preds = %1
store i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.27, i64 0, i64 0), i8** %2
br label %64
33: ; preds = %1
store i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.28, i64 0, i64 0), i8** %2
br label %64
34: ; preds = %1
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.29, i64 0, i64 0), i8** %2
br label %64
35: ; preds = %1
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.30, i64 0, i64 0), i8** %2
br label %64
36: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.31, i64 0, i64 0), i8** %2
br label %64
37: ; preds = %1
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.32, i64 0, i64 0), i8** %2
br label %64
38: ; preds = %1
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.33, i64 0, i64 0), i8** %2
br label %64
39: ; preds = %1
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.34, i64 0, i64 0), i8** %2
br label %64
40: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.35, i64 0, i64 0), i8** %2
br label %64
41: ; preds = %1
store i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.36, i64 0, i64 0), i8** %2
br label %64
42: ; preds = %1
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.37, i64 0, i64 0), i8** %2
br label %64
43: ; preds = %1
store i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.38, i64 0, i64 0), i8** %2
br label %64
44: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.39, i64 0, i64 0), i8** %2
br label %64
45: ; preds = %1
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.40, i64 0, i64 0), i8** %2
br label %64
46: ; preds = %1
store i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.41, i64 0, i64 0), i8** %2
br label %64
47: ; preds = %1
store i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.42, i64 0, i64 0), i8** %2
br label %64
48: ; preds = %1
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.43, i64 0, i64 0), i8** %2
br label %64
49: ; preds = %1
store i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.44, i64 0, i64 0), i8** %2
br label %64
50: ; preds = %1
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.45, i64 0, i64 0), i8** %2
br label %64
51: ; preds = %1
store i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.46, i64 0, i64 0), i8** %2
br label %64
52: ; preds = %1
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.47, i64 0, i64 0), i8** %2
br label %64
53: ; preds = %1
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.48, i64 0, i64 0), i8** %2
br label %64
54: ; preds = %1
store i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.49, i64 0, i64 0), i8** %2
br label %64
55: ; preds = %1
store i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.50, i64 0, i64 0), i8** %2
br label %64
56: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.51, i64 0, i64 0), i8** %2
br label %64
57: ; preds = %1
store i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.52, i64 0, i64 0), i8** %2
br label %64
58: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.53, i64 0, i64 0), i8** %2
br label %64
59: ; preds = %1
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.54, i64 0, i64 0), i8** %2
br label %64
60: ; preds = %1
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.55, i64 0, i64 0), i8** %2
br label %64
61: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.56, i64 0, i64 0), i8** %2
br label %64
62: ; preds = %1
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.57, i64 0, i64 0), i8** %2
br label %64
63: ; preds = %1
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.58, i64 0, i64 0), i8** %2
br label %64
64: ; preds = %63, %62, %61, %60, %59, %58, %57, %56, %55, %54, %53, %52, %51, %50, %49, %48, %47, %46, %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
%65 = load i8*, i8** %2
ret i8* %65
}

LLVM IR (-O2):
@.str = [18 x i8] c"Heartbeat Request\00"
@.str.1 = [19 x i8] c"Heartbeat Response\00"
@.str.2 = [5 x i8] c"Ping\00"
@.str.3 = [5 x i8] c"Pong\00"
@.str.4 = [23 x i8] c"Prepare Acknowledgment\00"
@.str.5 = [22 x i8] c"Commit Acknowledgment\00"
@.str.6 = [17 x i8] c"Slave Assignment\00"
@.str.7 = [17 x i8] c"Clone Assignment\00"
@.str.8 = [18 x i8] c"Sudirribe Replica\00"
@.str.9 = [36 x i8] c"Replica Log Position Acknowledgment\00"
@.str.10 = [13 x i8] c"Create Chunk\00"
@.str.11 = [15 x i8] c"Raw Chunk Bulk\00"
@.str.12 = [16 x i8] c"Data Chunk Bulk\00"
@.str.13 = [27 x i8] c"Replica Sudirription Retry\00"
@.str.14 = [19 x i8] c"Replica Sudirriber\00"
@.str.15 = [13 x i8] c"Write Events\00"
@.str.16 = [23 x i8] c"Write Events Completed\00"
@.str.17 = [18 x i8] c"Transaction Start\00"
@.str.18 = [28 x i8] c"Transaction Start Completed\00"
@.str.19 = [18 x i8] c"Transaction Write\00"
@.str.20 = [28 x i8] c"Transaction Write Completed\00"
@.str.21 = [19 x i8] c"Transaction Commit\00"
@.str.22 = [29 x i8] c"Transaction Commit Completed\00"
@.str.23 = [14 x i8] c"Delete Stream\00"
@.str.24 = [24 x i8] c"Delete Stream Completed\00"
@.str.25 = [11 x i8] c"Read Event\00"
@.str.26 = [21 x i8] c"Read Event Completed\00"
@.str.27 = [27 x i8] c"Read Stream Events Forward\00"
@.str.28 = [37 x i8] c"Read Stream Events Forward Completed\00"
@.str.29 = [28 x i8] c"Read Stream Events Backward\00"
@.str.30 = [38 x i8] c"Read Stream Events Backward Completed\00"
@.str.31 = [24 x i8] c"Read All Events Forward\00"
@.str.32 = [34 x i8] c"Read All Events Forward Completed\00"
@.str.33 = [25 x i8] c"Read All Events Backward\00"
@.str.34 = [35 x i8] c"Read All Events Backward Completed\00"
@.str.35 = [20 x i8] c"Sudirribe To Stream\00"
@.str.36 = [26 x i8] c"Sudirription Confirmation\00"
@.str.37 = [22 x i8] c"Stream Event Appeared\00"
@.str.38 = [24 x i8] c"Unsudirribe from stream\00"
@.str.39 = [21 x i8] c"Sudirription Dropped\00"
@.str.40 = [35 x i8] c"Connect to Persistent Sudirription\00"
@.str.41 = [37 x i8] c"Persistent Sudirription Confirmation\00"
@.str.42 = [46 x i8] c"Persistent Sudirription Stream Event Appeared\00"
@.str.43 = [31 x i8] c"Create Persistent Sudirription\00"
@.str.44 = [41 x i8] c"Create Persistent Sudirription Completed\00"
@.str.45 = [31 x i8] c"Delete Persistent Sudirription\00"
@.str.46 = [41 x i8] c"Delete Persistent Sudirription Completed\00"
@.str.47 = [35 x i8] c"Persistent Sudirription Ack Events\00"
@.str.48 = [35 x i8] c"Persistent Sudirription Nak Events\00"
@.str.49 = [31 x i8] c"Update Persistent Sudirription\00"
@.str.50 = [41 x i8] c"Update Persistent Sudirription Completed\00"
@.str.51 = [18 x i8] c"Scavenge Database\00"
@.str.52 = [28 x i8] c"Scavenge Database Completed\00"
@.str.53 = [12 x i8] c"Bad Request\00"
@.str.54 = [12 x i8] c"Not Handled\00"
@.str.55 = [13 x i8] c"Authenticate\00"
@.str.56 = [14 x i8] c"Authenticated\00"
@.str.57 = [18 x i8] c"Not Authenticated\00"
@.str.58 = [21 x i8] c"Unknown Message Code\00"
define i8* @get_string_for_tcp_message(i32 %0) {
switch i32 %0, label %59 [
i32 1, label %60
i32 2, label %2
i32 3, label %3
i32 4, label %4
i32 5, label %5
i32 6, label %6
i32 7, label %7
i32 8, label %8
i32 16, label %9
i32 17, label %10
i32 18, label %11
i32 19, label %12
i32 20, label %13
i32 21, label %14
i32 22, label %15
i32 130, label %16
i32 131, label %17
i32 132, label %18
i32 133, label %19
i32 134, label %20
i32 135, label %21
i32 136, label %22
i32 137, label %23
i32 138, label %24
i32 139, label %25
i32 176, label %26
i32 177, label %27
i32 178, label %28
i32 179, label %29
i32 180, label %30
i32 181, label %31
i32 182, label %32
i32 183, label %33
i32 184, label %34
i32 185, label %35
i32 192, label %36
i32 193, label %37
i32 194, label %38
i32 195, label %39
i32 196, label %40
i32 197, label %41
i32 198, label %42
i32 199, label %43
i32 200, label %44
i32 201, label %45
i32 202, label %46
i32 203, label %47
i32 204, label %48
i32 205, label %49
i32 206, label %50
i32 207, label %51
i32 208, label %52
i32 209, label %53
i32 240, label %54
i32 241, label %55
i32 242, label %56
i32 243, label %57
i32 244, label %58
]
2: ; preds = %1
br label %60
3: ; preds = %1
br label %60
4: ; preds = %1
br label %60
5: ; preds = %1
br label %60
6: ; preds = %1
br label %60
7: ; preds = %1
br label %60
8: ; preds = %1
br label %60
9: ; preds = %1
br label %60
10: ; preds = %1
br label %60
11: ; preds = %1
br label %60
12: ; preds = %1
br label %60
13: ; preds = %1
br label %60
14: ; preds = %1
br label %60
15: ; preds = %1
br label %60
16: ; preds = %1
br label %60
17: ; preds = %1
br label %60
18: ; preds = %1
br label %60
19: ; preds = %1
br label %60
20: ; preds = %1
br label %60
21: ; preds = %1
br label %60
22: ; preds = %1
br label %60
23: ; preds = %1
br label %60
24: ; preds = %1
br label %60
25: ; preds = %1
br label %60
26: ; preds = %1
br label %60
27: ; preds = %1
br label %60
28: ; preds = %1
br label %60
29: ; preds = %1
br label %60
30: ; preds = %1
br label %60
31: ; preds = %1
br label %60
32: ; preds = %1
br label %60
33: ; preds = %1
br label %60
34: ; preds = %1
br label %60
35: ; preds = %1
br label %60
36: ; preds = %1
br label %60
37: ; preds = %1
br label %60
38: ; preds = %1
br label %60
39: ; preds = %1
br label %60
40: ; preds = %1
br label %60
41: ; preds = %1
br label %60
42: ; preds = %1
br label %60
43: ; preds = %1
br label %60
44: ; preds = %1
br label %60
45: ; preds = %1
br label %60
46: ; preds = %1
br label %60
47: ; preds = %1
br label %60
48: ; preds = %1
br label %60
49: ; preds = %1
br label %60
50: ; preds = %1
br label %60
51: ; preds = %1
br label %60
52: ; preds = %1
br label %60
53: ; preds = %1
br label %60
54: ; preds = %1
br label %60
55: ; preds = %1
br label %60
56: ; preds = %1
br label %60
57: ; preds = %1
br label %60
58: ; preds = %1
br label %60
59: ; preds = %1
br label %60
60: ; preds = %1, %59, %58, %57, %56, %55, %54, %53, %52, %51, %50, %49, %48, %47, %46, %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, %4, %3, %2
%61 = phi i8* [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.58, i64 0, i64 0), %59 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.57, i64 0, i64 0), %58 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.56, i64 0, i64 0), %57 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.55, i64 0, i64 0), %56 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.54, i64 0, i64 0), %55 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.53, i64 0, i64 0), %54 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.52, i64 0, i64 0), %53 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.51, i64 0, i64 0), %52 ], [ getelementptr inbounds ([41 x i8], [41 x i8]* @.str.50, i64 0, i64 0), %51 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.49, i64 0, i64 0), %50 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.48, i64 0, i64 0), %49 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.47, i64 0, i64 0), %48 ], [ getelementptr inbounds ([41 x i8], [41 x i8]* @.str.46, i64 0, i64 0), %47 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.45, i64 0, i64 0), %46 ], [ getelementptr inbounds ([41 x i8], [41 x i8]* @.str.44, i64 0, i64 0), %45 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.43, i64 0, i64 0), %44 ], [ getelementptr inbounds ([46 x i8], [46 x i8]* @.str.42, i64 0, i64 0), %43 ], [ getelementptr inbounds ([37 x i8], [37 x i8]* @.str.41, i64 0, i64 0), %42 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.40, i64 0, i64 0), %41 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.39, i64 0, i64 0), %40 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.38, i64 0, i64 0), %39 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.37, i64 0, i64 0), %38 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @.str.36, i64 0, i64 0), %37 ], [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.35, i64 0, i64 0), %36 ], [ getelementptr inbounds ([35 x i8], [35 x i8]* @.str.34, i64 0, i64 0), %35 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.33, i64 0, i64 0), %34 ], [ getelementptr inbounds ([34 x i8], [34 x i8]* @.str.32, i64 0, i64 0), %33 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.31, i64 0, i64 0), %32 ], [ getelementptr inbounds ([38 x i8], [38 x i8]* @.str.30, i64 0, i64 0), %31 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.29, i64 0, i64 0), %30 ], [ getelementptr inbounds ([37 x i8], [37 x i8]* @.str.28, i64 0, i64 0), %29 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.27, i64 0, i64 0), %28 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @.str.26, i64 0, i64 0), %27 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), %26 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.24, i64 0, i64 0), %25 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.23, i64 0, i64 0), %24 ], [ getelementptr inbounds ([29 x i8], [29 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 ([28 x i8], [28 x i8]* @.str.20, i64 0, i64 0), %21 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0), %20 ], [ getelementptr inbounds ([28 x i8], [28 x i8]* @.str.18, i64 0, i64 0), %19 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0), %18 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0), %17 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), %16 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.14, i64 0, i64 0), %15 ], [ getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0), %14 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0), %13 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), %12 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), %11 ], [ getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0), %10 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), %9 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), %8 ], [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), %7 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), %6 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), %5 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), %1 ]
ret i8* %61
}