#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int B1000000;
int B110;
int B115200;
int B1152000;
int B1200;
int B134;
int B150;
int B1500000;
int B1800;
int B19200;
int B200;
int B230400;
int B2400;
int B300;
int B38400;
int B460800;
int B4800;
int B50;
int B500000;
int B57600;
int B576000;
int B600;
int B75;
int B921600;
int B9600;
int rate_to_constant(int baudrate) {
  switch (baudrate) {
  case 50:
    return B50;
  case 75:
    return B75;
  case 110:
    return B110;
  case 134:
    return B134;
  case 150:
    return B150;
  case 200:
    return B200;
  case 300:
    return B300;
  case 600:
    return B600;
  case 1200:
    return B1200;
  case 1800:
    return B1800;
  case 2400:
    return B2400;
  case 4800:
    return B4800;
  case 9600:
    return B9600;
  case 19200:
    return B19200;
  case 38400:
    return B38400;
  case 57600:
    return B57600;
  case 115200:
    return B115200;
  case 230400:
    return B230400;
  case 460800:
    return B460800;
  case 500000:
    return B500000;
  case 576000:
    return B576000;
  case 921600:
    return B921600;
  case 1000000:
    return B1000000;
  case 1152000:
    return B1152000;
  case 1500000:
    return B1500000;
  default:
    return 0;
  }
}


x86 assembly (clang, -O0):
<rate_to_constant>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x32,%eax
je     12df <rate_to_constant+0x1df>
jmp    111b <rate_to_constant+0x1b>
mov    -0xc(%rbp),%eax
sub    $0x4b,%eax
je     12f0 <rate_to_constant+0x1f0>
jmp    112c <rate_to_constant+0x2c>
mov    -0xc(%rbp),%eax
sub    $0x6e,%eax
je     1301 <rate_to_constant+0x201>
jmp    113d <rate_to_constant+0x3d>
mov    -0xc(%rbp),%eax
sub    $0x86,%eax
je     1312 <rate_to_constant+0x212>
jmp    1150 <rate_to_constant+0x50>
mov    -0xc(%rbp),%eax
sub    $0x96,%eax
je     1323 <rate_to_constant+0x223>
jmp    1163 <rate_to_constant+0x63>
mov    -0xc(%rbp),%eax
sub    $0xc8,%eax
je     1334 <rate_to_constant+0x234>
jmp    1176 <rate_to_constant+0x76>
mov    -0xc(%rbp),%eax
sub    $0x12c,%eax
je     1345 <rate_to_constant+0x245>
jmp    1189 <rate_to_constant+0x89>
mov    -0xc(%rbp),%eax
sub    $0x258,%eax
je     1356 <rate_to_constant+0x256>
jmp    119c <rate_to_constant+0x9c>
mov    -0xc(%rbp),%eax
sub    $0x4b0,%eax
je     1367 <rate_to_constant+0x267>
jmp    11af <rate_to_constant+0xaf>
mov    -0xc(%rbp),%eax
sub    $0x708,%eax
je     1378 <rate_to_constant+0x278>
jmp    11c2 <rate_to_constant+0xc2>
mov    -0xc(%rbp),%eax
sub    $0x960,%eax
je     1389 <rate_to_constant+0x289>
jmp    11d5 <rate_to_constant+0xd5>
mov    -0xc(%rbp),%eax
sub    $0x12c0,%eax
je     139a <rate_to_constant+0x29a>
jmp    11e8 <rate_to_constant+0xe8>
mov    -0xc(%rbp),%eax
sub    $0x2580,%eax
je     13ab <rate_to_constant+0x2ab>
jmp    11fb <rate_to_constant+0xfb>
mov    -0xc(%rbp),%eax
sub    $0x4b00,%eax
je     13bc <rate_to_constant+0x2bc>
jmp    120e <rate_to_constant+0x10e>
mov    -0xc(%rbp),%eax
sub    $0x9600,%eax
je     13cd <rate_to_constant+0x2cd>
jmp    1221 <rate_to_constant+0x121>
mov    -0xc(%rbp),%eax
sub    $0xe100,%eax
je     13de <rate_to_constant+0x2de>
jmp    1234 <rate_to_constant+0x134>
mov    -0xc(%rbp),%eax
sub    $0x1c200,%eax
je     13ef <rate_to_constant+0x2ef>
jmp    1247 <rate_to_constant+0x147>
mov    -0xc(%rbp),%eax
sub    $0x38400,%eax
je     1400 <rate_to_constant+0x300>
jmp    125a <rate_to_constant+0x15a>
mov    -0xc(%rbp),%eax
sub    $0x70800,%eax
je     1411 <rate_to_constant+0x311>
jmp    126d <rate_to_constant+0x16d>
mov    -0xc(%rbp),%eax
sub    $0x7a120,%eax
je     1422 <rate_to_constant+0x322>
jmp    1280 <rate_to_constant+0x180>
mov    -0xc(%rbp),%eax
sub    $0x8ca00,%eax
je     1433 <rate_to_constant+0x333>
jmp    1293 <rate_to_constant+0x193>
mov    -0xc(%rbp),%eax
sub    $0xe1000,%eax
je     1444 <rate_to_constant+0x344>
jmp    12a6 <rate_to_constant+0x1a6>
mov    -0xc(%rbp),%eax
sub    $0xf4240,%eax
je     1455 <rate_to_constant+0x355>
jmp    12b9 <rate_to_constant+0x1b9>
mov    -0xc(%rbp),%eax
sub    $0x119400,%eax
je     1466 <rate_to_constant+0x366>
jmp    12cc <rate_to_constant+0x1cc>
mov    -0xc(%rbp),%eax
sub    $0x16e360,%eax
je     1477 <rate_to_constant+0x377>
jmp    1488 <rate_to_constant+0x388>
mov    0x2cb2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2ce1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2cd8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2ca7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2c36(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2c55(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2c54(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2c73(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2bda(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2bf1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2bd8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2c0f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2bf6(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2c2d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2b44(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2b9b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2b4a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2b19(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2b38(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2b0f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2b7e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2b7d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2b2c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2aeb(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
mov    0x2ab2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    148f <rate_to_constant+0x38f>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<rate_to_constant>:
xor    %eax,%eax
cmp    $0x257f,%edi
jle    114e <rate_to_constant+0x4e>
cmp    $0x707ff,%edi
jle    1189 <rate_to_constant+0x89>
cmp    $0xe0fff,%edi
jle    1201 <rate_to_constant+0x101>
cmp    $0x1193ff,%edi
jg     12c1 <rate_to_constant+0x1c1>
cmp    $0xe1000,%edi
je     12e5 <rate_to_constant+0x1e5>
cmp    $0xf4240,%edi
jne    1378 <rate_to_constant+0x278>
mov    0x2e3f(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
cmp    $0x12b,%edi
jg     11c5 <rate_to_constant+0xc5>
cmp    $0x85,%edi
jg     1231 <rate_to_constant+0x131>
cmp    $0x32,%edi
je     12f1 <rate_to_constant+0x1f1>
cmp    $0x4b,%edi
je     12fa <rate_to_constant+0x1fa>
cmp    $0x6e,%edi
jne    1378 <rate_to_constant+0x278>
mov    0x2e5c(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
cmp    $0xe0ff,%edi
jg     1261 <rate_to_constant+0x161>
cmp    $0x2580,%edi
je     1303 <rate_to_constant+0x203>
cmp    $0x4b00,%edi
je     130c <rate_to_constant+0x20c>
cmp    $0x9600,%edi
jne    1378 <rate_to_constant+0x278>
mov    0x2d58(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
cmp    $0x707,%edi
jg     1291 <rate_to_constant+0x191>
cmp    $0x12c,%edi
je     1315 <rate_to_constant+0x215>
cmp    $0x258,%edi
je     131e <rate_to_constant+0x21e>
cmp    $0x4b0,%edi
jne    1378 <rate_to_constant+0x278>
mov    0x2d4c(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
cmp    $0x70800,%edi
je     1327 <rate_to_constant+0x227>
cmp    $0x7a120,%edi
je     1330 <rate_to_constant+0x230>
cmp    $0x8ca00,%edi
jne    1378 <rate_to_constant+0x278>
mov    0x2d8c(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
cmp    $0x86,%edi
je     1339 <rate_to_constant+0x239>
cmp    $0x96,%edi
je     1342 <rate_to_constant+0x242>
cmp    $0xc8,%edi
jne    1378 <rate_to_constant+0x278>
mov    0x2d34(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
cmp    $0xe100,%edi
je     134b <rate_to_constant+0x24b>
cmp    $0x1c200,%edi
je     1354 <rate_to_constant+0x254>
cmp    $0x38400,%edi
jne    1378 <rate_to_constant+0x278>
mov    0x2c94(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
cmp    $0x708,%edi
je     135d <rate_to_constant+0x25d>
cmp    $0x960,%edi
je     1366 <rate_to_constant+0x266>
cmp    $0x12c0,%edi
jne    1378 <rate_to_constant+0x278>
mov    0x2cf4(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
cmp    $0x119400,%edi
je     136f <rate_to_constant+0x26f>
cmp    $0x16e360,%edi
jne    1378 <rate_to_constant+0x278>
mov    0x2c50(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2cdc(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2ca0(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2cd7(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2c9e(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2cdd(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2c84(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2cab(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2c22(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2c01(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2c80(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2c17(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2c2e(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2be5(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2c0c(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2bfb(%rip),%rax
jmp    1376 <rate_to_constant+0x276>
mov    0x2be2(%rip),%rax
mov    (%rax),%eax
ret

LLVM IR (-O0):
@B50 = global i32 0
@B75 = global i32 0
@B110 = global i32 0
@B134 = global i32 0
@B150 = global i32 0
@B200 = global i32 0
@B300 = global i32 0
@B600 = global i32 0
@B1200 = global i32 0
@B1800 = global i32 0
@B2400 = global i32 0
@B4800 = global i32 0
@B9600 = global i32 0
@B19200 = global i32 0
@B38400 = global i32 0
@B57600 = global i32 0
@B115200 = global i32 0
@B230400 = global i32 0
@B460800 = global i32 0
@B500000 = global i32 0
@B576000 = global i32 0
@B921600 = global i32 0
@B1000000 = global i32 0
@B1152000 = global i32 0
@B1500000 = global i32 0
define i32 @rate_to_constant(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %55 [
i32 50, label %5
i32 75, label %7
i32 110, label %9
i32 134, label %11
i32 150, label %13
i32 200, label %15
i32 300, label %17
i32 600, label %19
i32 1200, label %21
i32 1800, label %23
i32 2400, label %25
i32 4800, label %27
i32 9600, label %29
i32 19200, label %31
i32 38400, label %33
i32 57600, label %35
i32 115200, label %37
i32 230400, label %39
i32 460800, label %41
i32 500000, label %43
i32 576000, label %45
i32 921600, label %47
i32 1000000, label %49
i32 1152000, label %51
i32 1500000, label %53
]
5: ; preds = %1
%6 = load i32, i32* @B50
store i32 %6, i32* %2
br label %56
7: ; preds = %1
%8 = load i32, i32* @B75
store i32 %8, i32* %2
br label %56
9: ; preds = %1
%10 = load i32, i32* @B110
store i32 %10, i32* %2
br label %56
11: ; preds = %1
%12 = load i32, i32* @B134
store i32 %12, i32* %2
br label %56
13: ; preds = %1
%14 = load i32, i32* @B150
store i32 %14, i32* %2
br label %56
15: ; preds = %1
%16 = load i32, i32* @B200
store i32 %16, i32* %2
br label %56
17: ; preds = %1
%18 = load i32, i32* @B300
store i32 %18, i32* %2
br label %56
19: ; preds = %1
%20 = load i32, i32* @B600
store i32 %20, i32* %2
br label %56
21: ; preds = %1
%22 = load i32, i32* @B1200
store i32 %22, i32* %2
br label %56
23: ; preds = %1
%24 = load i32, i32* @B1800
store i32 %24, i32* %2
br label %56
25: ; preds = %1
%26 = load i32, i32* @B2400
store i32 %26, i32* %2
br label %56
27: ; preds = %1
%28 = load i32, i32* @B4800
store i32 %28, i32* %2
br label %56
29: ; preds = %1
%30 = load i32, i32* @B9600
store i32 %30, i32* %2
br label %56
31: ; preds = %1
%32 = load i32, i32* @B19200
store i32 %32, i32* %2
br label %56
33: ; preds = %1
%34 = load i32, i32* @B38400
store i32 %34, i32* %2
br label %56
35: ; preds = %1
%36 = load i32, i32* @B57600
store i32 %36, i32* %2
br label %56
37: ; preds = %1
%38 = load i32, i32* @B115200
store i32 %38, i32* %2
br label %56
39: ; preds = %1
%40 = load i32, i32* @B230400
store i32 %40, i32* %2
br label %56
41: ; preds = %1
%42 = load i32, i32* @B460800
store i32 %42, i32* %2
br label %56
43: ; preds = %1
%44 = load i32, i32* @B500000
store i32 %44, i32* %2
br label %56
45: ; preds = %1
%46 = load i32, i32* @B576000
store i32 %46, i32* %2
br label %56
47: ; preds = %1
%48 = load i32, i32* @B921600
store i32 %48, i32* %2
br label %56
49: ; preds = %1
%50 = load i32, i32* @B1000000
store i32 %50, i32* %2
br label %56
51: ; preds = %1
%52 = load i32, i32* @B1152000
store i32 %52, i32* %2
br label %56
53: ; preds = %1
%54 = load i32, i32* @B1500000
store i32 %54, i32* %2
br label %56
55: ; preds = %1
store i32 0, i32* %2
br label %56
56: ; preds = %55, %53, %51, %49, %47, %45, %43, %41, %39, %37, %35, %33, %31, %29, %27, %25, %23, %21, %19, %17, %15, %13, %11, %9, %7, %5
%57 = load i32, i32* %2
ret i32 %57
}

LLVM IR (-O2):
@B50 = global i32 0
@B75 = global i32 0
@B110 = global i32 0
@B134 = global i32 0
@B150 = global i32 0
@B200 = global i32 0
@B300 = global i32 0
@B600 = global i32 0
@B1200 = global i32 0
@B1800 = global i32 0
@B2400 = global i32 0
@B4800 = global i32 0
@B9600 = global i32 0
@B19200 = global i32 0
@B38400 = global i32 0
@B57600 = global i32 0
@B115200 = global i32 0
@B230400 = global i32 0
@B460800 = global i32 0
@B500000 = global i32 0
@B576000 = global i32 0
@B921600 = global i32 0
@B1000000 = global i32 0
@B1152000 = global i32 0
@B1500000 = global i32 0
define i32 @rate_to_constant(i32 %0) {
switch i32 %0, label %52 [
i32 50, label %2
i32 75, label %4
i32 110, label %6
i32 134, label %8
i32 150, label %10
i32 200, label %12
i32 300, label %14
i32 600, label %16
i32 1200, label %18
i32 1800, label %20
i32 2400, label %22
i32 4800, label %24
i32 9600, label %26
i32 19200, label %28
i32 38400, label %30
i32 57600, label %32
i32 115200, label %34
i32 230400, label %36
i32 460800, label %38
i32 500000, label %40
i32 576000, label %42
i32 921600, label %44
i32 1000000, label %46
i32 1152000, label %48
i32 1500000, label %50
]
2: ; preds = %1
%3 = load i32, i32* @B50
br label %52
4: ; preds = %1
%5 = load i32, i32* @B75
br label %52
6: ; preds = %1
%7 = load i32, i32* @B110
br label %52
8: ; preds = %1
%9 = load i32, i32* @B134
br label %52
10: ; preds = %1
%11 = load i32, i32* @B150
br label %52
12: ; preds = %1
%13 = load i32, i32* @B200
br label %52
14: ; preds = %1
%15 = load i32, i32* @B300
br label %52
16: ; preds = %1
%17 = load i32, i32* @B600
br label %52
18: ; preds = %1
%19 = load i32, i32* @B1200
br label %52
20: ; preds = %1
%21 = load i32, i32* @B1800
br label %52
22: ; preds = %1
%23 = load i32, i32* @B2400
br label %52
24: ; preds = %1
%25 = load i32, i32* @B4800
br label %52
26: ; preds = %1
%27 = load i32, i32* @B9600
br label %52
28: ; preds = %1
%29 = load i32, i32* @B19200
br label %52
30: ; preds = %1
%31 = load i32, i32* @B38400
br label %52
32: ; preds = %1
%33 = load i32, i32* @B57600
br label %52
34: ; preds = %1
%35 = load i32, i32* @B115200
br label %52
36: ; preds = %1
%37 = load i32, i32* @B230400
br label %52
38: ; preds = %1
%39 = load i32, i32* @B460800
br label %52
40: ; preds = %1
%41 = load i32, i32* @B500000
br label %52
42: ; preds = %1
%43 = load i32, i32* @B576000
br label %52
44: ; preds = %1
%45 = load i32, i32* @B921600
br label %52
46: ; preds = %1
%47 = load i32, i32* @B1000000
br label %52
48: ; preds = %1
%49 = load i32, i32* @B1152000
br label %52
50: ; preds = %1
%51 = load i32, i32* @B1500000
br label %52
52: ; preds = %1, %50, %48, %46, %44, %42, %40, %38, %36, %34, %32, %30, %28, %26, %24, %22, %20, %18, %16, %14, %12, %10, %8, %6, %4, %2
%53 = phi i32 [ %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 ], [ 0, %1 ]
ret i32 %53
}