#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*/ is_bracket(char);
int /*<<< orphan*/ is_digit(char);
int /*<<< orphan*/ is_letter(char);
int /*<<< orphan*/ is_parenthesis(char);
int /*<<< orphan*/ is_white_space(char);
int is_operator(char c) {
  return (!is_digit(c) && !is_letter(c) && !is_white_space(c) && c != '"' &&
          c != ';' && !is_bracket(c) && !is_parenthesis(c));
}


x86 assembly (clang, -O0):
<is_operator>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edi
call   1060 <is_digit@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x2(%rbp)
jne    11fa <is_operator+0xaa>
movsbl -0x1(%rbp),%edi
call   1050 <is_letter@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x2(%rbp)
jne    11fa <is_operator+0xaa>
movsbl -0x1(%rbp),%edi
call   1070 <is_white_space@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x2(%rbp)
jne    11fa <is_operator+0xaa>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x22,%ecx
mov    %al,-0x2(%rbp)
je     11fa <is_operator+0xaa>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x3b,%ecx
mov    %al,-0x2(%rbp)
je     11fa <is_operator+0xaa>
movsbl -0x1(%rbp),%edi
call   1040 <is_bracket@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x2(%rbp)
jne    11fa <is_operator+0xaa>
movsbl -0x1(%rbp),%edi
call   1030 <is_parenthesis@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%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):
<is_operator>:
push   %rbp
push   %r14
push   %rbx
mov    %edi,%ebp
call   1060 <is_digit@plt>
xor    %ebx,%ebx
test   %eax,%eax
jne    117d <is_operator+0x2d>
movsbl %bpl,%r14d
mov    %r14d,%edi
call   1050 <is_letter@plt>
test   %eax,%eax
jne    117d <is_operator+0x2d>
mov    %r14d,%edi
call   1070 <is_white_space@plt>
test   %eax,%eax
je     1184 <is_operator+0x34>
mov    %ebx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret
cmp    $0x22,%bpl
je     117d <is_operator+0x2d>
cmp    $0x3b,%bpl
je     117d <is_operator+0x2d>
mov    %r14d,%edi
call   1040 <is_bracket@plt>
test   %eax,%eax
jne    117d <is_operator+0x2d>
mov    %r14d,%edi
call   1030 <is_parenthesis@plt>
xor    %ebx,%ebx
test   %eax,%eax
sete   %bl
jmp    117d <is_operator+0x2d>

LLVM IR (-O0):
define i32 @is_operator(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = call i32 @is_digit(i8 signext %3)
%5 = icmp ne i32 %4, 0
br i1 %5, label %31, label %6
6: ; preds = %1
%7 = load i8, i8* %2
%8 = call i32 @is_letter(i8 signext %7)
%9 = icmp ne i32 %8, 0
br i1 %9, label %31, label %10
10: ; preds = %6
%11 = load i8, i8* %2
%12 = call i32 @is_white_space(i8 signext %11)
%13 = icmp ne i32 %12, 0
br i1 %13, label %31, label %14
14: ; preds = %10
%15 = load i8, i8* %2
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 34
br i1 %17, label %18, label %31
18: ; preds = %14
%19 = load i8, i8* %2
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 59
br i1 %21, label %22, label %31
22: ; preds = %18
%23 = load i8, i8* %2
%24 = call i32 @is_bracket(i8 signext %23)
%25 = icmp ne i32 %24, 0
br i1 %25, label %31, label %26
26: ; preds = %22
%27 = load i8, i8* %2
%28 = call i32 @is_parenthesis(i8 signext %27)
%29 = icmp ne i32 %28, 0
%30 = xor i1 %29, true
br label %31
31: ; preds = %26, %22, %18, %14, %10, %6, %1
%32 = phi i1 [ false, %22 ], [ false, %18 ], [ false, %14 ], [ false, %10 ], [ false, %6 ], [ false, %1 ], [ %30, %26 ]
%33 = zext i1 %32 to i32
ret i32 %33
}

LLVM IR (-O2):
define i32 @is_operator(i8 signext %0) {
%2 = tail call i32 @is_digit(i8 signext %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %19
4: ; preds = %1
%5 = tail call i32 @is_letter(i8 signext %0)
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %19
7: ; preds = %4
%8 = tail call i32 @is_white_space(i8 signext %0)
%9 = freeze i32 %8
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %19
11: ; preds = %7
switch i8 %0, label %12 [
i8 59, label %19
i8 34, label %19
]
12: ; preds = %11
%13 = tail call i32 @is_bracket(i8 signext %0)
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %12
%16 = tail call i32 @is_parenthesis(i8 signext %0)
%17 = icmp eq i32 %16, 0
%18 = zext i1 %17 to i32
br label %19
19: ; preds = %11, %11, %7, %15, %12, %4, %1
%20 = phi i32 [ 0, %12 ], [ 0, %11 ], [ 0, %4 ], [ 0, %1 ], [ %18, %15 ], [ 0, %7 ], [ 0, %11 ]
ret i32 %20
}