#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 /*<<< orphan*/ speed_t;

/* Variables and functions */
int /*<<< orphan*/ B1000000;
int /*<<< orphan*/ B110;
int /*<<< orphan*/ B115200;
int /*<<< orphan*/ B1152000;
int /*<<< orphan*/ B1200;
int /*<<< orphan*/ B134;
int /*<<< orphan*/ B150;
int /*<<< orphan*/ B1500000;
int /*<<< orphan*/ B1800;
int /*<<< orphan*/ B19200;
int /*<<< orphan*/ B200;
int /*<<< orphan*/ B2000000;
int /*<<< orphan*/ B230400;
int /*<<< orphan*/ B2400;
int /*<<< orphan*/ B2500000;
int /*<<< orphan*/ B300;
int /*<<< orphan*/ B3000000;
int /*<<< orphan*/ B3500000;
int /*<<< orphan*/ B38400;
int /*<<< orphan*/ B4000000;
int /*<<< orphan*/ B460800;
int /*<<< orphan*/ B4800;
int /*<<< orphan*/ B50;
int /*<<< orphan*/ B500000;
int /*<<< orphan*/ B57600;
int /*<<< orphan*/ B576000;
int /*<<< orphan*/ B600;
int /*<<< orphan*/ B75;
int /*<<< orphan*/ B921600;
int /*<<< orphan*/ B9600;
speed_t lookupbaudrate(int br) {
  switch (br) {
  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;
  case 2000000:
    return B2000000;
  case 2500000:
    return B2500000;
  case 3000000:
    return B3000000;
  case 3500000:
    return B3500000;
  case 4000000:
    return B4000000;
  }
  return 0;
}


x86 assembly (clang, -O0):
<lookupbaudrate>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x32,%eax
je     133e <lookupbaudrate+0x23e>
jmp    111b <lookupbaudrate+0x1b>
mov    -0xc(%rbp),%eax
sub    $0x4b,%eax
je     134f <lookupbaudrate+0x24f>
jmp    112c <lookupbaudrate+0x2c>
mov    -0xc(%rbp),%eax
sub    $0x6e,%eax
je     1360 <lookupbaudrate+0x260>
jmp    113d <lookupbaudrate+0x3d>
mov    -0xc(%rbp),%eax
sub    $0x86,%eax
je     1371 <lookupbaudrate+0x271>
jmp    1150 <lookupbaudrate+0x50>
mov    -0xc(%rbp),%eax
sub    $0x96,%eax
je     1382 <lookupbaudrate+0x282>
jmp    1163 <lookupbaudrate+0x63>
mov    -0xc(%rbp),%eax
sub    $0xc8,%eax
je     1393 <lookupbaudrate+0x293>
jmp    1176 <lookupbaudrate+0x76>
mov    -0xc(%rbp),%eax
sub    $0x12c,%eax
je     13a4 <lookupbaudrate+0x2a4>
jmp    1189 <lookupbaudrate+0x89>
mov    -0xc(%rbp),%eax
sub    $0x258,%eax
je     13b5 <lookupbaudrate+0x2b5>
jmp    119c <lookupbaudrate+0x9c>
mov    -0xc(%rbp),%eax
sub    $0x4b0,%eax
je     13c6 <lookupbaudrate+0x2c6>
jmp    11af <lookupbaudrate+0xaf>
mov    -0xc(%rbp),%eax
sub    $0x708,%eax
je     13d7 <lookupbaudrate+0x2d7>
jmp    11c2 <lookupbaudrate+0xc2>
mov    -0xc(%rbp),%eax
sub    $0x960,%eax
je     13e8 <lookupbaudrate+0x2e8>
jmp    11d5 <lookupbaudrate+0xd5>
mov    -0xc(%rbp),%eax
sub    $0x12c0,%eax
je     13f9 <lookupbaudrate+0x2f9>
jmp    11e8 <lookupbaudrate+0xe8>
mov    -0xc(%rbp),%eax
sub    $0x2580,%eax
je     140a <lookupbaudrate+0x30a>
jmp    11fb <lookupbaudrate+0xfb>
mov    -0xc(%rbp),%eax
sub    $0x4b00,%eax
je     141b <lookupbaudrate+0x31b>
jmp    120e <lookupbaudrate+0x10e>
mov    -0xc(%rbp),%eax
sub    $0x9600,%eax
je     142c <lookupbaudrate+0x32c>
jmp    1221 <lookupbaudrate+0x121>
mov    -0xc(%rbp),%eax
sub    $0xe100,%eax
je     143d <lookupbaudrate+0x33d>
jmp    1234 <lookupbaudrate+0x134>
mov    -0xc(%rbp),%eax
sub    $0x1c200,%eax
je     144e <lookupbaudrate+0x34e>
jmp    1247 <lookupbaudrate+0x147>
mov    -0xc(%rbp),%eax
sub    $0x38400,%eax
je     145f <lookupbaudrate+0x35f>
jmp    125a <lookupbaudrate+0x15a>
mov    -0xc(%rbp),%eax
sub    $0x70800,%eax
je     1470 <lookupbaudrate+0x370>
jmp    126d <lookupbaudrate+0x16d>
mov    -0xc(%rbp),%eax
sub    $0x7a120,%eax
je     1481 <lookupbaudrate+0x381>
jmp    1280 <lookupbaudrate+0x180>
mov    -0xc(%rbp),%eax
sub    $0x8ca00,%eax
je     1492 <lookupbaudrate+0x392>
jmp    1293 <lookupbaudrate+0x193>
mov    -0xc(%rbp),%eax
sub    $0xe1000,%eax
je     14a3 <lookupbaudrate+0x3a3>
jmp    12a6 <lookupbaudrate+0x1a6>
mov    -0xc(%rbp),%eax
sub    $0xf4240,%eax
je     14b4 <lookupbaudrate+0x3b4>
jmp    12b9 <lookupbaudrate+0x1b9>
mov    -0xc(%rbp),%eax
sub    $0x119400,%eax
je     14c5 <lookupbaudrate+0x3c5>
jmp    12cc <lookupbaudrate+0x1cc>
mov    -0xc(%rbp),%eax
sub    $0x16e360,%eax
je     14d6 <lookupbaudrate+0x3d6>
jmp    12df <lookupbaudrate+0x1df>
mov    -0xc(%rbp),%eax
sub    $0x1e8480,%eax
je     14e7 <lookupbaudrate+0x3e7>
jmp    12f2 <lookupbaudrate+0x1f2>
mov    -0xc(%rbp),%eax
sub    $0x2625a0,%eax
je     14f8 <lookupbaudrate+0x3f8>
jmp    1305 <lookupbaudrate+0x205>
mov    -0xc(%rbp),%eax
sub    $0x2dc6c0,%eax
je     1509 <lookupbaudrate+0x409>
jmp    1318 <lookupbaudrate+0x218>
mov    -0xc(%rbp),%eax
sub    $0x3567e0,%eax
je     151a <lookupbaudrate+0x41a>
jmp    132b <lookupbaudrate+0x22b>
mov    -0xc(%rbp),%eax
sub    $0x3d0900,%eax
je     152b <lookupbaudrate+0x42b>
jmp    153c <lookupbaudrate+0x43c>
mov    0x2c4b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2c82(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2c79(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2c40(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2baf(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2bee(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2bed(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2c0c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2b53(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2b6a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2b51(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2ba8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2b8f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2bce(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2abd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2b24(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2ac3(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2a92(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2ab1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2a88(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2b17(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2b16(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2abd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2a64(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2a2b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2a82(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2a81(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2a48(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2aaf(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
mov    0x2a2e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1543 <lookupbaudrate+0x443>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<lookupbaudrate>:
xor    %eax,%eax
cmp    $0xe0ff,%edi
jg     1152 <lookupbaudrate+0x52>
cmp    $0x257,%edi
jle    1196 <lookupbaudrate+0x96>
cmp    $0x12bf,%edi
jg     120e <lookupbaudrate+0x10e>
cmp    $0x707,%edi
jg     12c5 <lookupbaudrate+0x1c5>
cmp    $0x258,%edi
je     139d <lookupbaudrate+0x29d>
cmp    $0x4b0,%edi
jne    1430 <lookupbaudrate+0x330>
mov    0x2dd3(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
cmp    $0xf423f,%edi
jle    11d2 <lookupbaudrate+0xd2>
cmp    $0x26259f,%edi
jg     123e <lookupbaudrate+0x13e>
cmp    $0x16e35f,%edi
jg     12e9 <lookupbaudrate+0x1e9>
cmp    $0xf4240,%edi
je     13a9 <lookupbaudrate+0x2a9>
cmp    $0x119400,%edi
jne    1430 <lookupbaudrate+0x330>
mov    0x2d9f(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
cmp    $0x85,%edi
jle    126e <lookupbaudrate+0x16e>
cmp    $0xc7,%edi
jg     130d <lookupbaudrate+0x20d>
cmp    $0x86,%edi
je     13b2 <lookupbaudrate+0x2b2>
cmp    $0x96,%edi
jne    1430 <lookupbaudrate+0x330>
mov    0x2d6b(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
cmp    $0x707ff,%edi
jle    1295 <lookupbaudrate+0x195>
cmp    $0x8c9ff,%edi
jg     1331 <lookupbaudrate+0x231>
cmp    $0x70800,%edi
je     13bb <lookupbaudrate+0x2bb>
cmp    $0x7a120,%edi
jne    1430 <lookupbaudrate+0x330>
mov    0x2d07(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
cmp    $0x4aff,%edi
jg     1355 <lookupbaudrate+0x255>
cmp    $0x12c0,%edi
je     13c4 <lookupbaudrate+0x2c4>
cmp    $0x2580,%edi
jne    1430 <lookupbaudrate+0x330>
mov    0x2d67(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
cmp    $0x3567df,%edi
jg     1379 <lookupbaudrate+0x279>
cmp    $0x2625a0,%edi
je     13cd <lookupbaudrate+0x2cd>
cmp    $0x2dc6c0,%edi
jne    1430 <lookupbaudrate+0x330>
mov    0x2cef(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
cmp    $0x32,%edi
je     13d6 <lookupbaudrate+0x2d6>
cmp    $0x4b,%edi
je     13df <lookupbaudrate+0x2df>
cmp    $0x6e,%edi
jne    1430 <lookupbaudrate+0x330>
mov    0x2d50(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
cmp    $0xe100,%edi
je     13e8 <lookupbaudrate+0x2e8>
cmp    $0x1c200,%edi
je     13f1 <lookupbaudrate+0x2f1>
cmp    $0x38400,%edi
jne    1430 <lookupbaudrate+0x330>
mov    0x2c38(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
cmp    $0x708,%edi
je     13fa <lookupbaudrate+0x2fa>
cmp    $0x960,%edi
jne    1430 <lookupbaudrate+0x330>
mov    0x2c5c(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
cmp    $0x16e360,%edi
je     1403 <lookupbaudrate+0x303>
cmp    $0x1e8480,%edi
jne    1430 <lookupbaudrate+0x330>
mov    0x2c68(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
cmp    $0xc8,%edi
je     140c <lookupbaudrate+0x30c>
cmp    $0x12c,%edi
jne    1430 <lookupbaudrate+0x330>
mov    0x2c6c(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
cmp    $0x8ca00,%edi
je     1415 <lookupbaudrate+0x315>
cmp    $0xe1000,%edi
jne    1430 <lookupbaudrate+0x330>
mov    0x2c70(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
cmp    $0x4b00,%edi
je     141e <lookupbaudrate+0x31e>
cmp    $0x9600,%edi
jne    1430 <lookupbaudrate+0x330>
mov    0x2b7c(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
cmp    $0x3567e0,%edi
je     1427 <lookupbaudrate+0x327>
cmp    $0x3d0900,%edi
jne    1430 <lookupbaudrate+0x330>
mov    0x2bc8(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2c24(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2bc8(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2bff(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2b66(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2bdd(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2bac(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2bb3(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2bf2(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2b79(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2b20(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2b47(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2afe(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2b75(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2b94(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2bcb(%rip),%rax
jmp    142e <lookupbaudrate+0x32e>
mov    0x2ba2(%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
@B2000000 = global i32 0
@B2500000 = global i32 0
@B3000000 = global i32 0
@B3500000 = global i32 0
@B4000000 = global i32 0
define i32 @lookupbaudrate(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %65 [
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
i32 2000000, label %55
i32 2500000, label %57
i32 3000000, label %59
i32 3500000, label %61
i32 4000000, label %63
]
5: ; preds = %1
%6 = load i32, i32* @B50
store i32 %6, i32* %2
br label %66
7: ; preds = %1
%8 = load i32, i32* @B75
store i32 %8, i32* %2
br label %66
9: ; preds = %1
%10 = load i32, i32* @B110
store i32 %10, i32* %2
br label %66
11: ; preds = %1
%12 = load i32, i32* @B134
store i32 %12, i32* %2
br label %66
13: ; preds = %1
%14 = load i32, i32* @B150
store i32 %14, i32* %2
br label %66
15: ; preds = %1
%16 = load i32, i32* @B200
store i32 %16, i32* %2
br label %66
17: ; preds = %1
%18 = load i32, i32* @B300
store i32 %18, i32* %2
br label %66
19: ; preds = %1
%20 = load i32, i32* @B600
store i32 %20, i32* %2
br label %66
21: ; preds = %1
%22 = load i32, i32* @B1200
store i32 %22, i32* %2
br label %66
23: ; preds = %1
%24 = load i32, i32* @B1800
store i32 %24, i32* %2
br label %66
25: ; preds = %1
%26 = load i32, i32* @B2400
store i32 %26, i32* %2
br label %66
27: ; preds = %1
%28 = load i32, i32* @B4800
store i32 %28, i32* %2
br label %66
29: ; preds = %1
%30 = load i32, i32* @B9600
store i32 %30, i32* %2
br label %66
31: ; preds = %1
%32 = load i32, i32* @B19200
store i32 %32, i32* %2
br label %66
33: ; preds = %1
%34 = load i32, i32* @B38400
store i32 %34, i32* %2
br label %66
35: ; preds = %1
%36 = load i32, i32* @B57600
store i32 %36, i32* %2
br label %66
37: ; preds = %1
%38 = load i32, i32* @B115200
store i32 %38, i32* %2
br label %66
39: ; preds = %1
%40 = load i32, i32* @B230400
store i32 %40, i32* %2
br label %66
41: ; preds = %1
%42 = load i32, i32* @B460800
store i32 %42, i32* %2
br label %66
43: ; preds = %1
%44 = load i32, i32* @B500000
store i32 %44, i32* %2
br label %66
45: ; preds = %1
%46 = load i32, i32* @B576000
store i32 %46, i32* %2
br label %66
47: ; preds = %1
%48 = load i32, i32* @B921600
store i32 %48, i32* %2
br label %66
49: ; preds = %1
%50 = load i32, i32* @B1000000
store i32 %50, i32* %2
br label %66
51: ; preds = %1
%52 = load i32, i32* @B1152000
store i32 %52, i32* %2
br label %66
53: ; preds = %1
%54 = load i32, i32* @B1500000
store i32 %54, i32* %2
br label %66
55: ; preds = %1
%56 = load i32, i32* @B2000000
store i32 %56, i32* %2
br label %66
57: ; preds = %1
%58 = load i32, i32* @B2500000
store i32 %58, i32* %2
br label %66
59: ; preds = %1
%60 = load i32, i32* @B3000000
store i32 %60, i32* %2
br label %66
61: ; preds = %1
%62 = load i32, i32* @B3500000
store i32 %62, i32* %2
br label %66
63: ; preds = %1
%64 = load i32, i32* @B4000000
store i32 %64, i32* %2
br label %66
65: ; preds = %1
store i32 0, i32* %2
br label %66
66: ; preds = %65, %63, %61, %59, %57, %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
%67 = load i32, i32* %2
ret i32 %67
}

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
@B2000000 = global i32 0
@B2500000 = global i32 0
@B3000000 = global i32 0
@B3500000 = global i32 0
@B4000000 = global i32 0
define i32 @lookupbaudrate(i32 %0) {
switch i32 %0, label %62 [
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
i32 2000000, label %52
i32 2500000, label %54
i32 3000000, label %56
i32 3500000, label %58
i32 4000000, label %60
]
2: ; preds = %1
%3 = load i32, i32* @B50
br label %62
4: ; preds = %1
%5 = load i32, i32* @B75
br label %62
6: ; preds = %1
%7 = load i32, i32* @B110
br label %62
8: ; preds = %1
%9 = load i32, i32* @B134
br label %62
10: ; preds = %1
%11 = load i32, i32* @B150
br label %62
12: ; preds = %1
%13 = load i32, i32* @B200
br label %62
14: ; preds = %1
%15 = load i32, i32* @B300
br label %62
16: ; preds = %1
%17 = load i32, i32* @B600
br label %62
18: ; preds = %1
%19 = load i32, i32* @B1200
br label %62
20: ; preds = %1
%21 = load i32, i32* @B1800
br label %62
22: ; preds = %1
%23 = load i32, i32* @B2400
br label %62
24: ; preds = %1
%25 = load i32, i32* @B4800
br label %62
26: ; preds = %1
%27 = load i32, i32* @B9600
br label %62
28: ; preds = %1
%29 = load i32, i32* @B19200
br label %62
30: ; preds = %1
%31 = load i32, i32* @B38400
br label %62
32: ; preds = %1
%33 = load i32, i32* @B57600
br label %62
34: ; preds = %1
%35 = load i32, i32* @B115200
br label %62
36: ; preds = %1
%37 = load i32, i32* @B230400
br label %62
38: ; preds = %1
%39 = load i32, i32* @B460800
br label %62
40: ; preds = %1
%41 = load i32, i32* @B500000
br label %62
42: ; preds = %1
%43 = load i32, i32* @B576000
br label %62
44: ; preds = %1
%45 = load i32, i32* @B921600
br label %62
46: ; preds = %1
%47 = load i32, i32* @B1000000
br label %62
48: ; preds = %1
%49 = load i32, i32* @B1152000
br label %62
50: ; preds = %1
%51 = load i32, i32* @B1500000
br label %62
52: ; preds = %1
%53 = load i32, i32* @B2000000
br label %62
54: ; preds = %1
%55 = load i32, i32* @B2500000
br label %62
56: ; preds = %1
%57 = load i32, i32* @B3000000
br label %62
58: ; preds = %1
%59 = load i32, i32* @B3500000
br label %62
60: ; preds = %1
%61 = load i32, i32* @B4000000
br label %62
62: ; preds = %1, %60, %58, %56, %54, %52, %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
%63 = phi i32 [ %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, %4 ], [ %3, %2 ], [ 0, %1 ]
ret i32 %63
}