#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 /*<<< orphan*/ tcc_error(char *);
int tok_ext_size(int t) {
  switch (t) {
  case 0xb3:
  case 0xc8:
  case 0xb4:
  case 0xb7:
  case 0xb9:
  case 0xba:
    return 1;
  case 0xb5:
  case 0xb8:
  case 0xce:
    tcc_error("unsupported token");
    return 1;
  case 0xc0:
  case 0xc9:
  case 0xca:
    return 2;
  default:
    return 0;
  }
}


x86 assembly (clang, -O0):
<tok_ext_size>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
add    $0xffffff4d,%eax
sub    $0x2,%eax
jb     11d2 <tok_ext_size+0xc2>
jmp    1134 <tok_ext_size+0x24>
mov    -0xc(%rbp),%eax
sub    $0xb5,%eax
je     11de <tok_ext_size+0xce>
jmp    1147 <tok_ext_size+0x37>
mov    -0xc(%rbp),%eax
sub    $0xb7,%eax
je     11d2 <tok_ext_size+0xc2>
jmp    115a <tok_ext_size+0x4a>
mov    -0xc(%rbp),%eax
sub    $0xb8,%eax
je     11de <tok_ext_size+0xce>
jmp    116d <tok_ext_size+0x5d>
mov    -0xc(%rbp),%eax
add    $0xffffff47,%eax
sub    $0x2,%eax
jb     11d2 <tok_ext_size+0xc2>
jmp    1183 <tok_ext_size+0x73>
mov    -0xc(%rbp),%eax
sub    $0xc0,%eax
je     11f6 <tok_ext_size+0xe6>
jmp    1196 <tok_ext_size+0x86>
mov    -0xc(%rbp),%eax
sub    $0xc8,%eax
je     11d2 <tok_ext_size+0xc2>
jmp    11a9 <tok_ext_size+0x99>
mov    -0xc(%rbp),%eax
add    $0xffffff37,%eax
sub    $0x2,%eax
jb     11f6 <tok_ext_size+0xe6>
jmp    11bf <tok_ext_size+0xaf>
mov    -0xc(%rbp),%eax
sub    $0xce,%eax
je     11de <tok_ext_size+0xce>
jmp    1202 <tok_ext_size+0xf2>
movl   $0x1,-0x4(%rbp)
jmp    1209 <tok_ext_size+0xf9>
lea    0xe1b(%rip),%rdi
call   1030 <tcc_error@plt>
movl   $0x1,-0x4(%rbp)
jmp    1209 <tok_ext_size+0xf9>
movl   $0x2,-0x4(%rbp)
jmp    1209 <tok_ext_size+0xf9>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tok_ext_size>:
push   %rbx
add    $0xffffff4d,%edi
cmp    $0x1b,%edi
ja     1154 <tok_ext_size+0x44>
mov    $0x1,%ebx
mov    $0x2000d3,%eax
bt     %edi,%eax
jb     1156 <tok_ext_size+0x46>
mov    $0xc02000,%eax
bt     %edi,%eax
jb     114d <tok_ext_size+0x3d>
mov    $0x8000024,%eax
bt     %edi,%eax
jae    1154 <tok_ext_size+0x44>
lea    0xeba(%rip),%rdi
call   1030 <tcc_error@plt>
jmp    1156 <tok_ext_size+0x46>
mov    $0x2,%ebx
jmp    1156 <tok_ext_size+0x46>
xor    %ebx,%ebx
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"unsupported token\00"
define i32 @tok_ext_size(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %9 [
i32 179, label %5
i32 200, label %5
i32 180, label %5
i32 183, label %5
i32 185, label %5
i32 186, label %5
i32 181, label %6
i32 184, label %6
i32 206, label %6
i32 192, label %8
i32 201, label %8
i32 202, label %8
]
5: ; preds = %1, %1, %1, %1, %1, %1
store i32 1, i32* %2
br label %10
6: ; preds = %1, %1, %1
%7 = call i32 @tcc_error(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %2
br label %10
8: ; preds = %1, %1, %1
store i32 2, i32* %2
br label %10
9: ; preds = %1
store i32 0, i32* %2
br label %10
10: ; preds = %9, %8, %6, %5
%11 = load i32, i32* %2
ret i32 %11
}

LLVM IR (-O2):
@.str = [18 x i8] c"unsupported token\00"
define i32 @tok_ext_size(i32 %0) {
switch i32 %0, label %5 [
i32 179, label %6
i32 200, label %6
i32 180, label %6
i32 183, label %6
i32 185, label %6
i32 186, label %6
i32 181, label %2
i32 184, label %2
i32 206, label %2
i32 192, label %4
i32 201, label %4
i32 202, label %4
]
2: ; preds = %1, %1, %1
%3 = tail call i32 @tcc_error(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
br label %6
4: ; preds = %1, %1, %1
br label %6
5: ; preds = %1
br label %6
6: ; preds = %1, %1, %1, %1, %1, %1, %5, %4, %2
%7 = phi i32 [ 0, %5 ], [ 2, %4 ], [ 1, %2 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %7
}