#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 B0;
int B110;
int B115200;
int B1200;
int B134;
int B150;
int B1800;
int B19200;
int B200;
int B230400;
int B2400;
int B300;
int B38400;
int B4800;
int B50;
int B57600;
int B600;
int B9600;
int _BaudFlag(int BaudRate) {
  switch (BaudRate) {
  case 50:
    return B50;
    break;
  case 110:
    return B110;
    break;
  case 134:
    return B134;
    break;
  case 150:
    return B150;
    break;
  case 200:
    return B200;
    break;
  case 300:
    return B300;
    break;
  case 600:
    return B600;
    break;
  case 1200:
    return B1200;
    break;
  case 1800:
    return B1800;
    break;
  case 2400:
    return B2400;
    break;
  case 4800:
    return B4800;
    break;
  case 9600:
    return B9600;
    break;
  case 19200:
    return B19200;
    break;
  case 38400:
    return B38400;
    break;
  case 57600:
    return B57600;
    break;
  case 115200:
    return B115200;
    break;
  case 230400:
    return B230400;
    break;
  default:
    return B0;
    break;
  }
}


x86 assembly (clang, -O0):
<_BaudFlag>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x32,%eax
je     1249 <_BaudFlag+0x149>
jmp    111b <_BaudFlag+0x1b>
mov    -0xc(%rbp),%eax
sub    $0x6e,%eax
je     125a <_BaudFlag+0x15a>
jmp    112c <_BaudFlag+0x2c>
mov    -0xc(%rbp),%eax
sub    $0x86,%eax
je     126b <_BaudFlag+0x16b>
jmp    113f <_BaudFlag+0x3f>
mov    -0xc(%rbp),%eax
sub    $0x96,%eax
je     127c <_BaudFlag+0x17c>
jmp    1152 <_BaudFlag+0x52>
mov    -0xc(%rbp),%eax
sub    $0xc8,%eax
je     128d <_BaudFlag+0x18d>
jmp    1165 <_BaudFlag+0x65>
mov    -0xc(%rbp),%eax
sub    $0x12c,%eax
je     129e <_BaudFlag+0x19e>
jmp    1178 <_BaudFlag+0x78>
mov    -0xc(%rbp),%eax
sub    $0x258,%eax
je     12af <_BaudFlag+0x1af>
jmp    118b <_BaudFlag+0x8b>
mov    -0xc(%rbp),%eax
sub    $0x4b0,%eax
je     12c0 <_BaudFlag+0x1c0>
jmp    119e <_BaudFlag+0x9e>
mov    -0xc(%rbp),%eax
sub    $0x708,%eax
je     12d1 <_BaudFlag+0x1d1>
jmp    11b1 <_BaudFlag+0xb1>
mov    -0xc(%rbp),%eax
sub    $0x960,%eax
je     12e2 <_BaudFlag+0x1e2>
jmp    11c4 <_BaudFlag+0xc4>
mov    -0xc(%rbp),%eax
sub    $0x12c0,%eax
je     12f3 <_BaudFlag+0x1f3>
jmp    11d7 <_BaudFlag+0xd7>
mov    -0xc(%rbp),%eax
sub    $0x2580,%eax
je     1304 <_BaudFlag+0x204>
jmp    11ea <_BaudFlag+0xea>
mov    -0xc(%rbp),%eax
sub    $0x4b00,%eax
je     1315 <_BaudFlag+0x215>
jmp    11fd <_BaudFlag+0xfd>
mov    -0xc(%rbp),%eax
sub    $0x9600,%eax
je     1326 <_BaudFlag+0x226>
jmp    1210 <_BaudFlag+0x110>
mov    -0xc(%rbp),%eax
sub    $0xe100,%eax
je     1337 <_BaudFlag+0x237>
jmp    1223 <_BaudFlag+0x123>
mov    -0xc(%rbp),%eax
sub    $0x1c200,%eax
je     1348 <_BaudFlag+0x248>
jmp    1236 <_BaudFlag+0x136>
mov    -0xc(%rbp),%eax
sub    $0x38400,%eax
je     1359 <_BaudFlag+0x259>
jmp    136a <_BaudFlag+0x26a>
mov    0x2d60(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2d7f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2d5e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2cf5(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2d14(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2d13(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2d22(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2ca9(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2cb0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2c97(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2cce(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2cb5(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2cd4(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2c23(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2c62(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2c19(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2bf8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1376 <_BaudFlag+0x276>
mov    0x2c1f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_BaudFlag>:
cmp    $0x707,%edi
jle    114a <_BaudFlag+0x4a>
cmp    $0x4aff,%edi
jle    117a <_BaudFlag+0x7a>
cmp    $0xe0ff,%edi
jle    11d6 <_BaudFlag+0xd6>
cmp    $0xe100,%edi
je     124e <_BaudFlag+0x14e>
cmp    $0x1c200,%edi
je     1258 <_BaudFlag+0x158>
cmp    $0x38400,%edi
jne    12a8 <_BaudFlag+0x1a8>
mov    0x2e11(%rip),%rax
mov    (%rax),%eax
ret
cmp    $0xc7,%edi
jg     11a8 <_BaudFlag+0xa8>
cmp    $0x85,%edi
jg     11f8 <_BaudFlag+0xf8>
cmp    $0x32,%edi
je     1262 <_BaudFlag+0x162>
cmp    $0x6e,%edi
jne    12a8 <_BaudFlag+0x1a8>
mov    0x2e69(%rip),%rax
mov    (%rax),%eax
ret
cmp    $0x12bf,%edi
jg     121a <_BaudFlag+0x11a>
cmp    $0x708,%edi
je     126c <_BaudFlag+0x16c>
cmp    $0x960,%edi
jne    12a8 <_BaudFlag+0x1a8>
mov    0x2ddb(%rip),%rax
mov    (%rax),%eax
ret
cmp    $0x257,%edi
jg     1234 <_BaudFlag+0x134>
cmp    $0xc8,%edi
je     1276 <_BaudFlag+0x176>
cmp    $0x12c,%edi
jne    12a8 <_BaudFlag+0x1a8>
mov    0x2de5(%rip),%rax
mov    (%rax),%eax
ret
cmp    $0x4b00,%edi
je     1280 <_BaudFlag+0x180>
cmp    $0x9600,%edi
jne    12a8 <_BaudFlag+0x1a8>
mov    0x2d5b(%rip),%rax
mov    (%rax),%eax
ret
cmp    $0x86,%edi
je     128a <_BaudFlag+0x18a>
cmp    $0x96,%edi
jne    12a8 <_BaudFlag+0x1a8>
mov    0x2d61(%rip),%rax
mov    (%rax),%eax
ret
cmp    $0x12c0,%edi
je     1294 <_BaudFlag+0x194>
cmp    $0x2580,%edi
jne    12a8 <_BaudFlag+0x1a8>
mov    0x2d8f(%rip),%rax
mov    (%rax),%eax
ret
cmp    $0x258,%edi
je     129e <_BaudFlag+0x19e>
cmp    $0x4b0,%edi
jne    12a8 <_BaudFlag+0x1a8>
mov    0x2d25(%rip),%rax
mov    (%rax),%eax
ret
mov    0x2d4b(%rip),%rax
mov    (%rax),%eax
ret
mov    0x2d09(%rip),%rax
mov    (%rax),%eax
ret
mov    0x2d47(%rip),%rax
mov    (%rax),%eax
ret
mov    0x2d15(%rip),%rax
mov    (%rax),%eax
ret
mov    0x2d2b(%rip),%rax
mov    (%rax),%eax
ret
mov    0x2d69(%rip),%rax
mov    (%rax),%eax
ret
mov    0x2d3f(%rip),%rax
mov    (%rax),%eax
ret
mov    0x2d2d(%rip),%rax
mov    (%rax),%eax
ret
mov    0x2d33(%rip),%rax
mov    (%rax),%eax
ret
mov    0x2ce1(%rip),%rax
mov    (%rax),%eax
ret

LLVM IR (-O0):
@B50 = 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
@B0 = global i32 0
define i32 @_BaudFlag(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %39 [
i32 50, label %5
i32 110, label %7
i32 134, label %9
i32 150, label %11
i32 200, label %13
i32 300, label %15
i32 600, label %17
i32 1200, label %19
i32 1800, label %21
i32 2400, label %23
i32 4800, label %25
i32 9600, label %27
i32 19200, label %29
i32 38400, label %31
i32 57600, label %33
i32 115200, label %35
i32 230400, label %37
]
5: ; preds = %1
%6 = load i32, i32* @B50
store i32 %6, i32* %2
br label %41
7: ; preds = %1
%8 = load i32, i32* @B110
store i32 %8, i32* %2
br label %41
9: ; preds = %1
%10 = load i32, i32* @B134
store i32 %10, i32* %2
br label %41
11: ; preds = %1
%12 = load i32, i32* @B150
store i32 %12, i32* %2
br label %41
13: ; preds = %1
%14 = load i32, i32* @B200
store i32 %14, i32* %2
br label %41
15: ; preds = %1
%16 = load i32, i32* @B300
store i32 %16, i32* %2
br label %41
17: ; preds = %1
%18 = load i32, i32* @B600
store i32 %18, i32* %2
br label %41
19: ; preds = %1
%20 = load i32, i32* @B1200
store i32 %20, i32* %2
br label %41
21: ; preds = %1
%22 = load i32, i32* @B1800
store i32 %22, i32* %2
br label %41
23: ; preds = %1
%24 = load i32, i32* @B2400
store i32 %24, i32* %2
br label %41
25: ; preds = %1
%26 = load i32, i32* @B4800
store i32 %26, i32* %2
br label %41
27: ; preds = %1
%28 = load i32, i32* @B9600
store i32 %28, i32* %2
br label %41
29: ; preds = %1
%30 = load i32, i32* @B19200
store i32 %30, i32* %2
br label %41
31: ; preds = %1
%32 = load i32, i32* @B38400
store i32 %32, i32* %2
br label %41
33: ; preds = %1
%34 = load i32, i32* @B57600
store i32 %34, i32* %2
br label %41
35: ; preds = %1
%36 = load i32, i32* @B115200
store i32 %36, i32* %2
br label %41
37: ; preds = %1
%38 = load i32, i32* @B230400
store i32 %38, i32* %2
br label %41
39: ; preds = %1
%40 = load i32, i32* @B0
store i32 %40, i32* %2
br label %41
41: ; preds = %39, %37, %35, %33, %31, %29, %27, %25, %23, %21, %19, %17, %15, %13, %11, %9, %7, %5
%42 = load i32, i32* %2
ret i32 %42
}

LLVM IR (-O2):
@B50 = 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
@B0 = global i32 0
define i32 @_BaudFlag(i32 %0) {
switch i32 %0, label %18 [
i32 50, label %19
i32 110, label %2
i32 134, label %3
i32 150, label %4
i32 200, label %5
i32 300, label %6
i32 600, label %7
i32 1200, label %8
i32 1800, label %9
i32 2400, label %10
i32 4800, label %11
i32 9600, label %12
i32 19200, label %13
i32 38400, label %14
i32 57600, label %15
i32 115200, label %16
i32 230400, label %17
]
2: ; preds = %1
br label %19
3: ; preds = %1
br label %19
4: ; preds = %1
br label %19
5: ; preds = %1
br label %19
6: ; preds = %1
br label %19
7: ; preds = %1
br label %19
8: ; preds = %1
br label %19
9: ; preds = %1
br label %19
10: ; preds = %1
br label %19
11: ; preds = %1
br label %19
12: ; preds = %1
br label %19
13: ; preds = %1
br label %19
14: ; preds = %1
br label %19
15: ; preds = %1
br label %19
16: ; preds = %1
br label %19
17: ; preds = %1
br label %19
18: ; preds = %1
br label %19
19: ; preds = %1, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4, %3, %2
%20 = phi i32* [ @B0, %18 ], [ @B230400, %17 ], [ @B115200, %16 ], [ @B57600, %15 ], [ @B38400, %14 ], [ @B19200, %13 ], [ @B9600, %12 ], [ @B4800, %11 ], [ @B2400, %10 ], [ @B1800, %9 ], [ @B1200, %8 ], [ @B600, %7 ], [ @B300, %6 ], [ @B200, %5 ], [ @B150, %4 ], [ @B134, %3 ], [ @B110, %2 ], [ @B50, %1 ]
%21 = load i32, i32* %20
ret i32 %21
}