#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 */
bool recognised_itemtype(char itemtype) {
  return (itemtype == '0' || itemtype == '1' || itemtype == '4' ||
          itemtype == '5' || itemtype == '6' || itemtype == '9' ||
          itemtype == 'g' || itemtype == 'h' || itemtype == 'I' ||
          itemtype == 's');
}


x86 assembly (clang, -O0):
<recognised_itemtype>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x30,%ecx
mov    %al,-0x2(%rbp)
je     11b9 <recognised_itemtype+0xb9>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x31,%ecx
mov    %al,-0x2(%rbp)
je     11b9 <recognised_itemtype+0xb9>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x34,%ecx
mov    %al,-0x2(%rbp)
je     11b9 <recognised_itemtype+0xb9>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x35,%ecx
mov    %al,-0x2(%rbp)
je     11b9 <recognised_itemtype+0xb9>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x36,%ecx
mov    %al,-0x2(%rbp)
je     11b9 <recognised_itemtype+0xb9>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x39,%ecx
mov    %al,-0x2(%rbp)
je     11b9 <recognised_itemtype+0xb9>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x67,%ecx
mov    %al,-0x2(%rbp)
je     11b9 <recognised_itemtype+0xb9>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x68,%ecx
mov    %al,-0x2(%rbp)
je     11b9 <recognised_itemtype+0xb9>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x49,%ecx
mov    %al,-0x2(%rbp)
je     11b9 <recognised_itemtype+0xb9>
movsbl -0x1(%rbp),%eax
cmp    $0x73,%eax
sete   %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<recognised_itemtype>:
lea    -0x30(%rdi),%ecx
cmp    $0x38,%cl
ja     1121 <recognised_itemtype+0x21>
mov    $0x1,%eax
movzbl %cl,%ecx
movabs $0x180000002000273,%rdx
bt     %rcx,%rdx
jae    1121 <recognised_itemtype+0x21>
ret
xor    %eax,%eax
cmp    $0x73,%dil
sete   %al
ret

LLVM IR (-O0):
define i32 @recognised_itemtype(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 48
br i1 %5, label %42, label %6
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 49
br i1 %9, label %42, label %10
10: ; preds = %6
%11 = load i8, i8* %2
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 52
br i1 %13, label %42, label %14
14: ; preds = %10
%15 = load i8, i8* %2
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 53
br i1 %17, label %42, label %18
18: ; preds = %14
%19 = load i8, i8* %2
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 54
br i1 %21, label %42, label %22
22: ; preds = %18
%23 = load i8, i8* %2
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 57
br i1 %25, label %42, label %26
26: ; preds = %22
%27 = load i8, i8* %2
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 103
br i1 %29, label %42, label %30
30: ; preds = %26
%31 = load i8, i8* %2
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 104
br i1 %33, label %42, label %34
34: ; preds = %30
%35 = load i8, i8* %2
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 73
br i1 %37, label %42, label %38
38: ; preds = %34
%39 = load i8, i8* %2
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 115
br label %42
42: ; preds = %38, %34, %30, %26, %22, %18, %14, %10, %6, %1
%43 = phi i1 [ true, %34 ], [ true, %30 ], [ true, %26 ], [ true, %22 ], [ true, %18 ], [ true, %14 ], [ true, %10 ], [ true, %6 ], [ true, %1 ], [ %41, %38 ]
%44 = zext i1 %43 to i32
ret i32 %44
}

LLVM IR (-O2):
define i32 @recognised_itemtype(i8 signext %0) {
switch i8 %0, label %2 [
i8 104, label %5
i8 103, label %5
i8 73, label %5
i8 57, label %5
i8 54, label %5
i8 53, label %5
i8 52, label %5
i8 49, label %5
i8 48, label %5
]
2: ; preds = %1
%3 = icmp eq i8 %0, 115
%4 = zext i1 %3 to i32
br label %5
5: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %2
%6 = phi i32 [ 1, %1 ], [ %4, %2 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %6
}