#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);
int poe_iscmdword(char c) {
  return !(c == '[' || c == ']' || c == '\'' || c == '"' || c == '=') &&
         (c == '?' || isalnum(c));
}


x86 assembly (clang, -O0):
<poe_iscmdword>:
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     11a3 <poe_iscmdword+0x93>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x5d,%ecx
mov    %al,-0x2(%rbp)
je     11a3 <poe_iscmdword+0x93>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x27,%ecx
mov    %al,-0x2(%rbp)
je     11a3 <poe_iscmdword+0x93>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x22,%ecx
mov    %al,-0x2(%rbp)
je     11a3 <poe_iscmdword+0x93>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x3d,%ecx
mov    %al,-0x2(%rbp)
je     11a3 <poe_iscmdword+0x93>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x3f,%ecx
mov    %al,-0x3(%rbp)
je     119d <poe_iscmdword+0x8d>
movsbl -0x1(%rbp),%edi
call   1030 <isalnum@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_iscmdword>:
lea    -0x22(%rdi),%ecx
cmp    $0x3b,%cl
ja     113a <poe_iscmdword+0x2a>
xor    %eax,%eax
movzbl %cl,%ecx
movabs $0xa00000008000021,%rdx
bt     %rcx,%rdx
jae    112e <poe_iscmdword+0x1e>
ret
cmp    $0x1d,%rcx
jne    113a <poe_iscmdword+0x2a>
mov    $0x1,%eax
ret
push   %rax
movsbl %dil,%edi
call   1030 <isalnum@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
add    $0x8,%rsp
ret

LLVM IR (-O0):
define i32 @poe_iscmdword(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 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 63
br i1 %25, label %30, label %26
26: ; preds = %22
%27 = load i8, i8* %2
%28 = call i64 @isalnum(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_iscmdword(i8 signext %0) {
switch i8 %0, label %2 [
i8 93, label %7
i8 91, label %7
i8 61, label %7
i8 39, label %7
i8 34, label %7
i8 63, label %6
]
2: ; preds = %1
%3 = tail call i64 @isalnum(i8 signext %0)
%4 = icmp ne i64 %3, 0
%5 = zext i1 %4 to i32
br label %7
6: ; preds = %1
br label %7
7: ; preds = %1, %1, %1, %1, %1, %6, %2
%8 = phi i32 [ 0, %1 ], [ %5, %2 ], [ 0, %1 ], [ 0, %1 ], [ 0, %1 ], [ 0, %1 ], [ 1, %6 ]
ret i32 %8
}