#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 speed_t;

/* Variables and functions */
scalar_t__ strcmp(char *, char *);
speed_t get_speed_t(char *speed) {
  if (strcmp("B0", speed) == 0) {
    return 0000000;
  } else if (strcmp("B75", speed) == 0) {
    return 0000001;
  } else if (strcmp("B50", speed) == 0) {
    return 0000001;
  } else if (strcmp("B75", speed) == 0) {
    return 0000002;
  } else if (strcmp("B110", speed) == 0) {
    return 0000003;
  } else if (strcmp("B134", speed) == 0) {
    return 0000004;
  } else if (strcmp("B150", speed) == 0) {
    return 0000005;
  } else if (strcmp("B200", speed) == 0) {
    return 0000006;
  } else if (strcmp("B300", speed) == 0) {
    return 0000007;
  } else if (strcmp("B600", speed) == 0) {
    return 0000010;
  } else if (strcmp("B1200", speed) == 0) {
    return 0000011;
  } else if (strcmp("B1800", speed) == 0) {
    return 0000012;
  } else if (strcmp("B2400", speed) == 0) {
    return 0000013;
  } else if (strcmp("B4800", speed) == 0) {
    return 0000014;
  } else if (strcmp("B9600", speed) == 0) {
    return 0000015;
  } else if (strcmp("B19200", speed) == 0) {
    return 0000016;
  } else if (strcmp("B38400", speed) == 0) {
    return 0000017;
  } else if (strcmp("BOTHER", speed) == 0) {
    return 0010000;
  } else if (strcmp("B57600", speed) == 0) {
    return 0010001;
  } else if (strcmp("B115200", speed) == 0) {
    return 0010002;
  } else if (strcmp("B230400", speed) == 0) {
    return 0010003;
  } else if (strcmp("B460800", speed) == 0) {
    return 0010004;
  } else if (strcmp("B500000", speed) == 0) {
    return 0010005;
  } else if (strcmp("B576000", speed) == 0) {
    return 0010006;
  } else if (strcmp("B921600", speed) == 0) {
    return 0010007;
  } else if (strcmp("B1000000", speed) == 0) {
    return 0010010;
  } else if (strcmp("B1152000", speed) == 0) {
    return 0010011;
  } else if (strcmp("B1500000", speed) == 0) {
    return 0010012;
  } else if (strcmp("B2000000", speed) == 0) {
    return 0010013;
  } else if (strcmp("B2500000", speed) == 0) {
    return 0010014;
  } else if (strcmp("B3000000", speed) == 0) {
    return 0010015;
  } else if (strcmp("B3500000", speed) == 0) {
    return 0010016;
  } else if (strcmp("B4000000", speed) == 0) {
    return 0010017;
  } else {
    return 0;
  }
}


x86 assembly (clang, -O0):
<get_speed_t>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xed9(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1142 <get_speed_t+0x32>
movl   $0x0,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xeb6(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1168 <get_speed_t+0x58>
movl   $0x1,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xe94(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    118e <get_speed_t+0x7e>
movl   $0x1,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xe6a(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11b4 <get_speed_t+0xa4>
movl   $0x2,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xe4c(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11da <get_speed_t+0xca>
movl   $0x3,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xe2b(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1200 <get_speed_t+0xf0>
movl   $0x4,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xe0a(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1226 <get_speed_t+0x116>
movl   $0x5,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xde9(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    124c <get_speed_t+0x13c>
movl   $0x6,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xdc8(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1272 <get_speed_t+0x162>
movl   $0x7,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xda7(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1298 <get_speed_t+0x188>
movl   $0x8,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xd86(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12be <get_speed_t+0x1ae>
movl   $0x9,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xd66(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12e4 <get_speed_t+0x1d4>
movl   $0xa,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xd46(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    130a <get_speed_t+0x1fa>
movl   $0xb,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xd26(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1330 <get_speed_t+0x220>
movl   $0xc,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xd06(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1356 <get_speed_t+0x246>
movl   $0xd,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xce6(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    137c <get_speed_t+0x26c>
movl   $0xe,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xcc7(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    13a2 <get_speed_t+0x292>
movl   $0xf,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xca8(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    13c8 <get_speed_t+0x2b8>
movl   $0x1000,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xc89(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    13ee <get_speed_t+0x2de>
movl   $0x1001,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xc6a(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1414 <get_speed_t+0x304>
movl   $0x1002,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xc4c(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    143a <get_speed_t+0x32a>
movl   $0x1003,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xc2e(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1460 <get_speed_t+0x350>
movl   $0x1004,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xc10(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1486 <get_speed_t+0x376>
movl   $0x1005,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xbf2(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    14ac <get_speed_t+0x39c>
movl   $0x1006,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xbd4(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    14d2 <get_speed_t+0x3c2>
movl   $0x1007,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xbb6(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    14f8 <get_speed_t+0x3e8>
movl   $0x1008,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xb99(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    151e <get_speed_t+0x40e>
movl   $0x1009,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xb7c(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1544 <get_speed_t+0x434>
movl   $0x100a,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xb5f(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    156a <get_speed_t+0x45a>
movl   $0x100b,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xb42(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1590 <get_speed_t+0x480>
movl   $0x100c,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xb25(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    15b6 <get_speed_t+0x4a6>
movl   $0x100d,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xb08(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    15dc <get_speed_t+0x4cc>
movl   $0x100e,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
mov    -0x10(%rbp),%rsi
lea    0xaeb(%rip),%rdi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1602 <get_speed_t+0x4f2>
movl   $0x100f,-0x4(%rbp)
jmp    1609 <get_speed_t+0x4f9>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_speed_t>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xee3(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1439 <get_speed_t+0x329>
lea    0xece(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
mov    $0x1,%ebp
test   %rax,%rax
je     143b <get_speed_t+0x32b>
lea    0xeb5(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     143b <get_speed_t+0x32b>
lea    0xe99(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1444 <get_speed_t+0x334>
lea    0xe89(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     144b <get_speed_t+0x33b>
lea    0xe76(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1452 <get_speed_t+0x342>
lea    0xe63(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1459 <get_speed_t+0x349>
lea    0xe50(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1460 <get_speed_t+0x350>
lea    0xe3d(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1467 <get_speed_t+0x357>
lea    0xe2a(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     146e <get_speed_t+0x35e>
lea    0xe17(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1475 <get_speed_t+0x365>
lea    0xe05(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     147c <get_speed_t+0x36c>
lea    0xdf3(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1483 <get_speed_t+0x373>
lea    0xde1(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     148a <get_speed_t+0x37a>
lea    0xdcf(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1491 <get_speed_t+0x381>
lea    0xdbd(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1498 <get_speed_t+0x388>
lea    0xdac(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     149f <get_speed_t+0x38f>
lea    0xd9b(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14a6 <get_speed_t+0x396>
lea    0xd8a(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14ad <get_speed_t+0x39d>
lea    0xd79(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14b4 <get_speed_t+0x3a4>
lea    0xd69(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14bb <get_speed_t+0x3ab>
lea    0xd59(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14c5 <get_speed_t+0x3b5>
lea    0xd49(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14cf <get_speed_t+0x3bf>
lea    0xd39(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14d9 <get_speed_t+0x3c9>
lea    0xd29(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14e3 <get_speed_t+0x3d3>
lea    0xd19(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14ed <get_speed_t+0x3dd>
lea    0xd0a(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14f7 <get_speed_t+0x3e7>
lea    0xcfb(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1501 <get_speed_t+0x3f1>
lea    0xcec(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     150b <get_speed_t+0x3fb>
lea    0xcdd(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1515 <get_speed_t+0x405>
lea    0xcce(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     151f <get_speed_t+0x40f>
lea    0xcbf(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1529 <get_speed_t+0x419>
lea    0xcb0(%rip),%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
mov    $0x100f,%ebp
cmovne %ecx,%ebp
jmp    143b <get_speed_t+0x32b>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
mov    $0x2,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x3,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x4,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x5,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x6,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x7,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x8,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x9,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0xa,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0xb,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0xc,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0xd,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0xe,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0xf,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x1000,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x1001,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x1002,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x1003,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x1004,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x1005,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x1006,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x1007,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x1008,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x1009,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x100a,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x100b,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x100c,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x100d,%ebp
jmp    143b <get_speed_t+0x32b>
mov    $0x100e,%ebp
jmp    143b <get_speed_t+0x32b>

LLVM IR (-O0):
@.str = [3 x i8] c"B0\00"
@.str.1 = [4 x i8] c"B75\00"
@.str.2 = [4 x i8] c"B50\00"
@.str.3 = [5 x i8] c"B110\00"
@.str.4 = [5 x i8] c"B134\00"
@.str.5 = [5 x i8] c"B150\00"
@.str.6 = [5 x i8] c"B200\00"
@.str.7 = [5 x i8] c"B300\00"
@.str.8 = [5 x i8] c"B600\00"
@.str.9 = [6 x i8] c"B1200\00"
@.str.10 = [6 x i8] c"B1800\00"
@.str.11 = [6 x i8] c"B2400\00"
@.str.12 = [6 x i8] c"B4800\00"
@.str.13 = [6 x i8] c"B9600\00"
@.str.14 = [7 x i8] c"B19200\00"
@.str.15 = [7 x i8] c"B38400\00"
@.str.16 = [7 x i8] c"BOTHER\00"
@.str.17 = [7 x i8] c"B57600\00"
@.str.18 = [8 x i8] c"B115200\00"
@.str.19 = [8 x i8] c"B230400\00"
@.str.20 = [8 x i8] c"B460800\00"
@.str.21 = [8 x i8] c"B500000\00"
@.str.22 = [8 x i8] c"B576000\00"
@.str.23 = [8 x i8] c"B921600\00"
@.str.24 = [9 x i8] c"B1000000\00"
@.str.25 = [9 x i8] c"B1152000\00"
@.str.26 = [9 x i8] c"B1500000\00"
@.str.27 = [9 x i8] c"B2000000\00"
@.str.28 = [9 x i8] c"B2500000\00"
@.str.29 = [9 x i8] c"B3000000\00"
@.str.30 = [9 x i8] c"B3500000\00"
@.str.31 = [9 x i8] c"B4000000\00"
define i32 @get_speed_t(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i64 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 0, i32* %2
br label %169
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 1, i32* %2
br label %169
13: ; preds = %8
%14 = load i8*, i8** %3
%15 = call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %14)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 1, i32* %2
br label %169
18: ; preds = %13
%19 = load i8*, i8** %3
%20 = call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %19)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 2, i32* %2
br label %169
23: ; preds = %18
%24 = load i8*, i8** %3
%25 = call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %24)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i32 3, i32* %2
br label %169
28: ; preds = %23
%29 = load i8*, i8** %3
%30 = call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %29)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 4, i32* %2
br label %169
33: ; preds = %28
%34 = load i8*, i8** %3
%35 = call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %34)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
store i32 5, i32* %2
br label %169
38: ; preds = %33
%39 = load i8*, i8** %3
%40 = call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %39)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %38
store i32 6, i32* %2
br label %169
43: ; preds = %38
%44 = load i8*, i8** %3
%45 = call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* %44)
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %43
store i32 7, i32* %2
br label %169
48: ; preds = %43
%49 = load i8*, i8** %3
%50 = call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* %49)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %48
store i32 8, i32* %2
br label %169
53: ; preds = %48
%54 = load i8*, i8** %3
%55 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* %54)
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %53
store i32 9, i32* %2
br label %169
58: ; preds = %53
%59 = load i8*, i8** %3
%60 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* %59)
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %63
62: ; preds = %58
store i32 10, i32* %2
br label %169
63: ; preds = %58
%64 = load i8*, i8** %3
%65 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i8* %64)
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %68
67: ; preds = %63
store i32 11, i32* %2
br label %169
68: ; preds = %63
%69 = load i8*, i8** %3
%70 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i8* %69)
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %73
72: ; preds = %68
store i32 12, i32* %2
br label %169
73: ; preds = %68
%74 = load i8*, i8** %3
%75 = call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* %74)
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %78
77: ; preds = %73
store i32 13, i32* %2
br label %169
78: ; preds = %73
%79 = load i8*, i8** %3
%80 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i8* %79)
%81 = icmp eq i64 %80, 0
br i1 %81, label %82, label %83
82: ; preds = %78
store i32 14, i32* %2
br label %169
83: ; preds = %78
%84 = load i8*, i8** %3
%85 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0), i8* %84)
%86 = icmp eq i64 %85, 0
br i1 %86, label %87, label %88
87: ; preds = %83
store i32 15, i32* %2
br label %169
88: ; preds = %83
%89 = load i8*, i8** %3
%90 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0), i8* %89)
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %93
92: ; preds = %88
store i32 4096, i32* %2
br label %169
93: ; preds = %88
%94 = load i8*, i8** %3
%95 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), i8* %94)
%96 = icmp eq i64 %95, 0
br i1 %96, label %97, label %98
97: ; preds = %93
store i32 4097, i32* %2
br label %169
98: ; preds = %93
%99 = load i8*, i8** %3
%100 = call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* %99)
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %103
102: ; preds = %98
store i32 4098, i32* %2
br label %169
103: ; preds = %98
%104 = load i8*, i8** %3
%105 = call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.19, i64 0, i64 0), i8* %104)
%106 = icmp eq i64 %105, 0
br i1 %106, label %107, label %108
107: ; preds = %103
store i32 4099, i32* %2
br label %169
108: ; preds = %103
%109 = load i8*, i8** %3
%110 = call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0), i8* %109)
%111 = icmp eq i64 %110, 0
br i1 %111, label %112, label %113
112: ; preds = %108
store i32 4100, i32* %2
br label %169
113: ; preds = %108
%114 = load i8*, i8** %3
%115 = call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0), i8* %114)
%116 = icmp eq i64 %115, 0
br i1 %116, label %117, label %118
117: ; preds = %113
store i32 4101, i32* %2
br label %169
118: ; preds = %113
%119 = load i8*, i8** %3
%120 = call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0), i8* %119)
%121 = icmp eq i64 %120, 0
br i1 %121, label %122, label %123
122: ; preds = %118
store i32 4102, i32* %2
br label %169
123: ; preds = %118
%124 = load i8*, i8** %3
%125 = call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.23, i64 0, i64 0), i8* %124)
%126 = icmp eq i64 %125, 0
br i1 %126, label %127, label %128
127: ; preds = %123
store i32 4103, i32* %2
br label %169
128: ; preds = %123
%129 = load i8*, i8** %3
%130 = call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.24, i64 0, i64 0), i8* %129)
%131 = icmp eq i64 %130, 0
br i1 %131, label %132, label %133
132: ; preds = %128
store i32 4104, i32* %2
br label %169
133: ; preds = %128
%134 = load i8*, i8** %3
%135 = call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0), i8* %134)
%136 = icmp eq i64 %135, 0
br i1 %136, label %137, label %138
137: ; preds = %133
store i32 4105, i32* %2
br label %169
138: ; preds = %133
%139 = load i8*, i8** %3
%140 = call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.26, i64 0, i64 0), i8* %139)
%141 = icmp eq i64 %140, 0
br i1 %141, label %142, label %143
142: ; preds = %138
store i32 4106, i32* %2
br label %169
143: ; preds = %138
%144 = load i8*, i8** %3
%145 = call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.27, i64 0, i64 0), i8* %144)
%146 = icmp eq i64 %145, 0
br i1 %146, label %147, label %148
147: ; preds = %143
store i32 4107, i32* %2
br label %169
148: ; preds = %143
%149 = load i8*, i8** %3
%150 = call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.28, i64 0, i64 0), i8* %149)
%151 = icmp eq i64 %150, 0
br i1 %151, label %152, label %153
152: ; preds = %148
store i32 4108, i32* %2
br label %169
153: ; preds = %148
%154 = load i8*, i8** %3
%155 = call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), i8* %154)
%156 = icmp eq i64 %155, 0
br i1 %156, label %157, label %158
157: ; preds = %153
store i32 4109, i32* %2
br label %169
158: ; preds = %153
%159 = load i8*, i8** %3
%160 = call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.30, i64 0, i64 0), i8* %159)
%161 = icmp eq i64 %160, 0
br i1 %161, label %162, label %163
162: ; preds = %158
store i32 4110, i32* %2
br label %169
163: ; preds = %158
%164 = load i8*, i8** %3
%165 = call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.31, i64 0, i64 0), i8* %164)
%166 = icmp eq i64 %165, 0
br i1 %166, label %167, label %168
167: ; preds = %163
store i32 4111, i32* %2
br label %169
168: ; preds = %163
store i32 0, i32* %2
br label %169
169: ; preds = %168, %167, %162, %157, %152, %147, %142, %137, %132, %127, %122, %117, %112, %107, %102, %97, %92, %87, %82, %77, %72, %67, %62, %57, %52, %47, %42, %37, %32, %27, %22, %17, %12, %7
%170 = load i32, i32* %2
ret i32 %170
}

LLVM IR (-O2):
@.str = [3 x i8] c"B0\00"
@.str.1 = [4 x i8] c"B75\00"
@.str.2 = [4 x i8] c"B50\00"
@.str.3 = [5 x i8] c"B110\00"
@.str.4 = [5 x i8] c"B134\00"
@.str.5 = [5 x i8] c"B150\00"
@.str.6 = [5 x i8] c"B200\00"
@.str.7 = [5 x i8] c"B300\00"
@.str.8 = [5 x i8] c"B600\00"
@.str.9 = [6 x i8] c"B1200\00"
@.str.10 = [6 x i8] c"B1800\00"
@.str.11 = [6 x i8] c"B2400\00"
@.str.12 = [6 x i8] c"B4800\00"
@.str.13 = [6 x i8] c"B9600\00"
@.str.14 = [7 x i8] c"B19200\00"
@.str.15 = [7 x i8] c"B38400\00"
@.str.16 = [7 x i8] c"BOTHER\00"
@.str.17 = [7 x i8] c"B57600\00"
@.str.18 = [8 x i8] c"B115200\00"
@.str.19 = [8 x i8] c"B230400\00"
@.str.20 = [8 x i8] c"B460800\00"
@.str.21 = [8 x i8] c"B500000\00"
@.str.22 = [8 x i8] c"B576000\00"
@.str.23 = [8 x i8] c"B921600\00"
@.str.24 = [9 x i8] c"B1000000\00"
@.str.25 = [9 x i8] c"B1152000\00"
@.str.26 = [9 x i8] c"B1500000\00"
@.str.27 = [9 x i8] c"B2000000\00"
@.str.28 = [9 x i8] c"B2500000\00"
@.str.29 = [9 x i8] c"B3000000\00"
@.str.30 = [9 x i8] c"B3500000\00"
@.str.31 = [9 x i8] c"B4000000\00"
define i32 @get_speed_t(i8* %0) {
%2 = tail call i64 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %101, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%6 = icmp eq i64 %5, 0
br i1 %6, label %101, label %7
7: ; preds = %4
%8 = tail call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%9 = icmp eq i64 %8, 0
br i1 %9, label %101, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%12 = icmp eq i64 %11, 0
br i1 %12, label %101, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%15 = icmp eq i64 %14, 0
br i1 %15, label %101, label %16
16: ; preds = %13
%17 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %0)
%18 = icmp eq i64 %17, 0
br i1 %18, label %101, label %19
19: ; preds = %16
%20 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %0)
%21 = icmp eq i64 %20, 0
br i1 %21, label %101, label %22
22: ; preds = %19
%23 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %0)
%24 = icmp eq i64 %23, 0
br i1 %24, label %101, label %25
25: ; preds = %22
%26 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* %0)
%27 = icmp eq i64 %26, 0
br i1 %27, label %101, label %28
28: ; preds = %25
%29 = tail call i64 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* %0)
%30 = icmp eq i64 %29, 0
br i1 %30, label %101, label %31
31: ; preds = %28
%32 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* %0)
%33 = icmp eq i64 %32, 0
br i1 %33, label %101, label %34
34: ; preds = %31
%35 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* %0)
%36 = icmp eq i64 %35, 0
br i1 %36, label %101, label %37
37: ; preds = %34
%38 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i8* %0)
%39 = icmp eq i64 %38, 0
br i1 %39, label %101, label %40
40: ; preds = %37
%41 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i8* %0)
%42 = icmp eq i64 %41, 0
br i1 %42, label %101, label %43
43: ; preds = %40
%44 = tail call i64 @strcmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* %0)
%45 = icmp eq i64 %44, 0
br i1 %45, label %101, label %46
46: ; preds = %43
%47 = tail call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i8* %0)
%48 = icmp eq i64 %47, 0
br i1 %48, label %101, label %49
49: ; preds = %46
%50 = tail call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0), i8* %0)
%51 = icmp eq i64 %50, 0
br i1 %51, label %101, label %52
52: ; preds = %49
%53 = tail call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0), i8* %0)
%54 = icmp eq i64 %53, 0
br i1 %54, label %101, label %55
55: ; preds = %52
%56 = tail call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), i8* %0)
%57 = icmp eq i64 %56, 0
br i1 %57, label %101, label %58
58: ; preds = %55
%59 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i8* %0)
%60 = icmp eq i64 %59, 0
br i1 %60, label %101, label %61
61: ; preds = %58
%62 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.19, i64 0, i64 0), i8* %0)
%63 = icmp eq i64 %62, 0
br i1 %63, label %101, label %64
64: ; preds = %61
%65 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0), i8* %0)
%66 = icmp eq i64 %65, 0
br i1 %66, label %101, label %67
67: ; preds = %64
%68 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0), i8* %0)
%69 = icmp eq i64 %68, 0
br i1 %69, label %101, label %70
70: ; preds = %67
%71 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0), i8* %0)
%72 = icmp eq i64 %71, 0
br i1 %72, label %101, label %73
73: ; preds = %70
%74 = tail call i64 @strcmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.23, i64 0, i64 0), i8* %0)
%75 = icmp eq i64 %74, 0
br i1 %75, label %101, label %76
76: ; preds = %73
%77 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.24, i64 0, i64 0), i8* %0)
%78 = icmp eq i64 %77, 0
br i1 %78, label %101, label %79
79: ; preds = %76
%80 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0), i8* %0)
%81 = icmp eq i64 %80, 0
br i1 %81, label %101, label %82
82: ; preds = %79
%83 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.26, i64 0, i64 0), i8* %0)
%84 = icmp eq i64 %83, 0
br i1 %84, label %101, label %85
85: ; preds = %82
%86 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.27, i64 0, i64 0), i8* %0)
%87 = icmp eq i64 %86, 0
br i1 %87, label %101, label %88
88: ; preds = %85
%89 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.28, i64 0, i64 0), i8* %0)
%90 = icmp eq i64 %89, 0
br i1 %90, label %101, label %91
91: ; preds = %88
%92 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0), i8* %0)
%93 = icmp eq i64 %92, 0
br i1 %93, label %101, label %94
94: ; preds = %91
%95 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.30, i64 0, i64 0), i8* %0)
%96 = icmp eq i64 %95, 0
br i1 %96, label %101, label %97
97: ; preds = %94
%98 = tail call i64 @strcmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.31, i64 0, i64 0), i8* %0)
%99 = icmp eq i64 %98, 0
%100 = select i1 %99, i32 4111, i32 0
br label %101
101: ; preds = %97, %94, %91, %88, %85, %82, %79, %76, %73, %70, %67, %64, %61, %58, %55, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %4, %1
%102 = phi i32 [ 0, %1 ], [ 1, %4 ], [ 1, %7 ], [ 2, %10 ], [ 3, %13 ], [ 4, %16 ], [ 5, %19 ], [ 6, %22 ], [ 7, %25 ], [ 8, %28 ], [ 9, %31 ], [ 10, %34 ], [ 11, %37 ], [ 12, %40 ], [ 13, %43 ], [ 14, %46 ], [ 15, %49 ], [ 4096, %52 ], [ 4097, %55 ], [ 4098, %58 ], [ 4099, %61 ], [ 4100, %64 ], [ 4101, %67 ], [ 4102, %70 ], [ 4103, %73 ], [ 4104, %76 ], [ 4105, %79 ], [ 4106, %82 ], [ 4107, %85 ], [ 4108, %88 ], [ 4109, %91 ], [ 4110, %94 ], [ %100, %97 ]
ret i32 %102
}