#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 */
scalar_t__ isalnum(char);
scalar_t__ ispunct(char);
int poe_isword(char c) {
  return !(c == '[' || c == ']' || c == '\'' || c == '"' || c == '=') &&
         (isalnum(c) || ispunct(c));
}


x86 assembly (clang, -O0):
<poe_isword>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x5b,%ecx
mov    %al,-0x2(%rbp)
je     11bc <poe_isword+0x9c>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x5d,%ecx
mov    %al,-0x2(%rbp)
je     11bc <poe_isword+0x9c>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x27,%ecx
mov    %al,-0x2(%rbp)
je     11bc <poe_isword+0x9c>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x22,%ecx
mov    %al,-0x2(%rbp)
je     11bc <poe_isword+0x9c>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x3d,%ecx
mov    %al,-0x2(%rbp)
je     11bc <poe_isword+0x9c>
movsbl -0x1(%rbp),%edi
call   1030 <isalnum@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x3(%rbp)
jne    11b6 <poe_isword+0x96>
movsbl -0x1(%rbp),%edi
call   1040 <ispunct@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x3(%rbp)
mov    -0x3(%rbp),%al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<poe_isword>:
push   %rbx
lea    -0x22(%rdi),%ecx
cmp    $0x3b,%cl
ja     1140 <poe_isword+0x20>
xor    %eax,%eax
movzbl %cl,%ecx
movabs $0xa00000008000021,%rdx
bt     %rcx,%rdx
jae    1140 <poe_isword+0x20>
pop    %rbx
ret
movsbl %dil,%ebx
mov    %ebx,%edi
call   1030 <isalnum@plt>
mov    %rax,%rcx
mov    $0x1,%eax
test   %rcx,%rcx
jne    113e <poe_isword+0x1e>
mov    %ebx,%edi
call   1040 <ispunct@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
pop    %rbx
ret

LLVM IR (-O0):
define i32 @poe_isword(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, 91
br i1 %5, label %32, label %6
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 93
br i1 %9, label %32, label %10
10: ; preds = %6
%11 = load i8, i8* %2
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 39
br i1 %13, label %32, label %14
14: ; preds = %10
%15 = load i8, i8* %2
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %16, 34
br i1 %17, label %32, label %18
18: ; preds = %14
%19 = load i8, i8* %2
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 61
br i1 %21, label %32, label %22
22: ; preds = %18
%23 = load i8, i8* %2
%24 = call i64 @isalnum(i8 signext %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %22
%27 = load i8, i8* %2
%28 = call i64 @ispunct(i8 signext %27)
%29 = icmp ne i64 %28, 0
br label %30
30: ; preds = %26, %22
%31 = phi i1 [ true, %22 ], [ %29, %26 ]
br label %32
32: ; preds = %30, %18, %14, %10, %6, %1
%33 = phi i1 [ false, %18 ], [ false, %14 ], [ false, %10 ], [ false, %6 ], [ false, %1 ], [ %31, %30 ]
%34 = zext i1 %33 to i32
ret i32 %34
}

LLVM IR (-O2):
define i32 @poe_isword(i8 signext %0) {
switch i8 %0, label %2 [
i8 93, label %9
i8 91, label %9
i8 61, label %9
i8 39, label %9
i8 34, label %9
]
2: ; preds = %1
%3 = tail call i64 @isalnum(i8 signext %0)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %2
%6 = tail call i64 @ispunct(i8 signext %0)
%7 = icmp ne i64 %6, 0
%8 = zext i1 %7 to i32
br label %9
9: ; preds = %1, %1, %1, %1, %1, %2, %5
%10 = phi i32 [ 0, %1 ], [ 1, %2 ], [ %8, %5 ], [ 0, %1 ], [ 0, %1 ], [ 0, %1 ], [ 0, %1 ]
ret i32 %10
}