#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 */
#define B0 143
#define B110 142
#define B1200 141
#define B134 140
#define B150 139
#define B1800 138
#define B19200 137
#define B200 136
#define B2400 135
#define B300 134
#define B38400 133
#define B4800 132
#define B50 131
#define B600 130
#define B75 129
#define B9600 128
int /*<<< orphan*/ msg_Dbg(char *);
int check_baudrate(int pBaud) {
  switch (pBaud) {
  case B0:
    break;
  case B50:
    break;
  case B75:
    break;
  case B110:
    break;
  case B134:
    break;
  case B150:
    break;
  case B200:
    break;
  case B300:
    break;
  case B600:
    break;
  case B1200:
    break;
  case B1800:
    break;
  case B2400:
    break;
  case B4800:
    break;
  case B9600:
    break;
  case B19200:
    break;
  case B38400:
    break;
  default:
    msg_Dbg("BAUDRATE seems to be a little bit exotic\nbut hey, you'll know "
            "what you are doing ;)");
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<check_baudrate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0xf,%eax
ja     1194 <check_baudrate+0x84>
mov    -0x10(%rbp),%rax
lea    0xec5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    11a0 <check_baudrate+0x90>
jmp    11a0 <check_baudrate+0x90>
jmp    11a0 <check_baudrate+0x90>
jmp    11a0 <check_baudrate+0x90>
jmp    11a0 <check_baudrate+0x90>
jmp    11a0 <check_baudrate+0x90>
jmp    11a0 <check_baudrate+0x90>
jmp    11a0 <check_baudrate+0x90>
jmp    11a0 <check_baudrate+0x90>
jmp    11a0 <check_baudrate+0x90>
jmp    11a0 <check_baudrate+0x90>
jmp    11a0 <check_baudrate+0x90>
jmp    11a0 <check_baudrate+0x90>
jmp    11a0 <check_baudrate+0x90>
jmp    11a0 <check_baudrate+0x90>
jmp    11a0 <check_baudrate+0x90>
lea    0xea5(%rip),%rdi
call   1030 <msg_Dbg@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_baudrate>:
and    $0xfffffff0,%edi
cmp    $0x80,%edi
je     112c <check_baudrate+0x1c>
push   %rax
lea    0xedd(%rip),%rdi
call   1030 <msg_Dbg@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [84 x i8] c"BAUDRATE seems to be a little bit exotic\0Abut hey, you'll know what you are doing ;)\00"
define i32 @check_baudrate(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %20 [
i32 143, label %4
i32 131, label %5
i32 129, label %6
i32 142, label %7
i32 140, label %8
i32 139, label %9
i32 136, label %10
i32 134, label %11
i32 130, label %12
i32 141, label %13
i32 138, label %14
i32 135, label %15
i32 132, label %16
i32 128, label %17
i32 137, label %18
i32 133, label %19
]
4: ; preds = %1
br label %22
5: ; preds = %1
br label %22
6: ; preds = %1
br label %22
7: ; preds = %1
br label %22
8: ; preds = %1
br label %22
9: ; preds = %1
br label %22
10: ; preds = %1
br label %22
11: ; preds = %1
br label %22
12: ; preds = %1
br label %22
13: ; preds = %1
br label %22
14: ; preds = %1
br label %22
15: ; preds = %1
br label %22
16: ; preds = %1
br label %22
17: ; preds = %1
br label %22
18: ; preds = %1
br label %22
19: ; preds = %1
br label %22
20: ; preds = %1
%21 = call i32 @msg_Dbg(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str, i64 0, i64 0))
br label %22
22: ; preds = %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4
ret i32 0
}

LLVM IR (-O2):
@.str = [84 x i8] c"BAUDRATE seems to be a little bit exotic\0Abut hey, you'll know what you are doing ;)\00"
define i32 @check_baudrate(i32 %0) {
%2 = and i32 %0, -16
%3 = icmp eq i32 %2, 128
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @msg_Dbg(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %1, %4
ret i32 0
}