#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__ in_class(int, char *);
int in_printable_class(int c) {
  return ('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z') ||
         ('0' <= c && c <= '9') || in_class(c, "!$%&*+,-./:;<=>?@^_`{|}~");
}


x86 assembly (clang, -O0):
<in_printable_class>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x41,%eax
cmp    -0x4(%rbp),%eax
jg     1138 <in_printable_class+0x28>
mov    $0x1,%al
cmpl   $0x5a,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    118b <in_printable_class+0x7b>
mov    $0x61,%eax
cmp    -0x4(%rbp),%eax
jg     1155 <in_printable_class+0x45>
mov    $0x1,%al
cmpl   $0x7a,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    118b <in_printable_class+0x7b>
mov    $0x30,%eax
cmp    -0x4(%rbp),%eax
jg     1172 <in_printable_class+0x62>
mov    $0x1,%al
cmpl   $0x39,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    118b <in_printable_class+0x7b>
mov    -0x4(%rbp),%edi
lea    0xe84(%rip),%rsi
call   1030 <in_class@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<in_printable_class>:
lea    -0x30(%rdi),%ecx
mov    $0x1,%eax
cmp    $0xa,%ecx
jb     1146 <in_printable_class+0x36>
mov    %edi,%ecx
and    $0xffffffdf,%ecx
add    $0xffffffbf,%ecx
cmp    $0x1a,%ecx
jb     1146 <in_printable_class+0x36>
push   %rax
lea    0xece(%rip),%rsi
call   1030 <in_class@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
add    $0x8,%rsp
ret

LLVM IR (-O0):
@.str = [25 x i8] c"!$%&*+,-./:;<=>?@^_`{|}~\00"
define i32 @in_printable_class(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sle i32 65, %3
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 90
br i1 %7, label %24, label %8
8: ; preds = %5, %1
%9 = load i32, i32* %2
%10 = icmp sle i32 97, %9
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, i32* %2
%13 = icmp sle i32 %12, 122
br i1 %13, label %24, label %14
14: ; preds = %11, %8
%15 = load i32, i32* %2
%16 = icmp sle i32 48, %15
br i1 %16, label %17, label %20
17: ; preds = %14
%18 = load i32, i32* %2
%19 = icmp sle i32 %18, 57
br i1 %19, label %24, label %20
20: ; preds = %17, %14
%21 = load i32, i32* %2
%22 = call i64 @in_class(i32 %21, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%23 = icmp ne i64 %22, 0
br label %24
24: ; preds = %20, %17, %11, %5
%25 = phi i1 [ true, %17 ], [ true, %11 ], [ true, %5 ], [ %23, %20 ]
%26 = zext i1 %25 to i32
ret i32 %26
}

LLVM IR (-O2):
@.str = [25 x i8] c"!$%&*+,-./:;<=>?@^_`{|}~\00"
define i32 @in_printable_class(i32 %0) {
%2 = and i32 %0, -33
%3 = add i32 %2, -65
%4 = icmp ult i32 %3, 26
%5 = add i32 %0, -48
%6 = icmp ult i32 %5, 10
%7 = or i1 %6, %4
br i1 %7, label %12, label %8
8: ; preds = %1
%9 = tail call i64 @in_class(i32 %0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%10 = icmp ne i64 %9, 0
%11 = zext i1 %10 to i32
br label %12
12: ; preds = %1, %8
%13 = phi i32 [ %11, %8 ], [ 1, %1 ]
ret i32 %13
}