#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 */
void *strchr(char const *, int);
int rsh_isspecial(int c) {
  const char *normchars = "/.~@#%^-_=+:";
  if ((c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') ||
      (c >= 'a' && c <= 'z') || c >= 160 || strchr(normchars, c) != ((void *)0))
    return 0;
  else
    return 1;
}


x86 assembly (clang, -O0):
<rsh_isspecial>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
lea    0xede(%rip),%rax
mov    %rax,-0x10(%rbp)
cmpl   $0x30,-0x8(%rbp)
jl     113a <rsh_isspecial+0x2a>
cmpl   $0x39,-0x8(%rbp)
jle    1185 <rsh_isspecial+0x75>
cmpl   $0x41,-0x8(%rbp)
jl     114e <rsh_isspecial+0x3e>
cmpl   $0x5a,-0x8(%rbp)
jle    1185 <rsh_isspecial+0x75>
cmpl   $0x61,-0x8(%rbp)
jl     1162 <rsh_isspecial+0x52>
cmpl   $0x7a,-0x8(%rbp)
jle    1185 <rsh_isspecial+0x75>
cmpl   $0xa0,-0x8(%rbp)
jge    1185 <rsh_isspecial+0x75>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
je     1191 <rsh_isspecial+0x81>
movl   $0x0,-0x4(%rbp)
jmp    1198 <rsh_isspecial+0x88>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rsh_isspecial>:
mov    %edi,%esi
lea    -0x30(%rsi),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
jb     1155 <rsh_isspecial+0x45>
lea    -0x41(%rsi),%ecx
cmp    $0x1a,%ecx
jb     1155 <rsh_isspecial+0x45>
cmp    $0x9f,%esi
jg     1155 <rsh_isspecial+0x45>
lea    -0x61(%rsi),%ecx
cmp    $0x1a,%ecx
jb     1155 <rsh_isspecial+0x45>
push   %rax
lea    0xec4(%rip),%rdi
mov    $0xd,%edx
call   1030 <memchr@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
add    $0x8,%rsp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"/.~@#%^-_=+:\00"
define i32 @rsh_isspecial(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8** %4
%5 = load i32, i32* %3
%6 = icmp sge i32 %5, 48
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, i32* %3
%9 = icmp sle i32 %8, 57
br i1 %9, label %30, label %10
10: ; preds = %7, %1
%11 = load i32, i32* %3
%12 = icmp sge i32 %11, 65
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, i32* %3
%15 = icmp sle i32 %14, 90
br i1 %15, label %30, label %16
16: ; preds = %13, %10
%17 = load i32, i32* %3
%18 = icmp sge i32 %17, 97
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = load i32, i32* %3
%21 = icmp sle i32 %20, 122
br i1 %21, label %30, label %22
22: ; preds = %19, %16
%23 = load i32, i32* %3
%24 = icmp sge i32 %23, 160
br i1 %24, label %30, label %25
25: ; preds = %22
%26 = load i8*, i8** %4
%27 = load i32, i32* %3
%28 = call i8* @strchr(i8* %26, i32 %27)
%29 = icmp ne i8* %28, null
br i1 %29, label %30, label %31
30: ; preds = %25, %22, %19, %13, %7
store i32 0, i32* %2
br label %32
31: ; preds = %25
store i32 1, i32* %2
br label %32
32: ; preds = %31, %30
%33 = load i32, i32* %2
ret i32 %33
}

LLVM IR (-O2):
@.str = [13 x i8] c"/.~@#%^-_=+:\00"
define i32 @rsh_isspecial(i32 %0) {
%2 = add i32 %0, -48
%3 = icmp ult i32 %2, 10
%4 = add i32 %0, -65
%5 = icmp ult i32 %4, 26
%6 = or i1 %3, %5
br i1 %6, label %16, label %7
7: ; preds = %1
%8 = add i32 %0, -97
%9 = icmp ult i32 %8, 26
%10 = icmp sgt i32 %0, 159
%11 = or i1 %10, %9
br i1 %11, label %16, label %12
12: ; preds = %7
%13 = tail call i8* @memchr(i8* dereferenceable(13) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %0, i64 13)
%14 = icmp eq i8* %13, null
%15 = zext i1 %14 to i32
br label %16
16: ; preds = %12, %1, %7
%17 = phi i32 [ 0, %7 ], [ 0, %1 ], [ %15, %12 ]
ret i32 %17
}