#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 */
typedef char uint8_t;

/* Variables and functions */
int fuzix_isspace(int c) {
  return ((uint8_t)c == ' ') || ((uint8_t)c == '\t') || ((uint8_t)c == '\n') ||
         ((uint8_t)c == '\r') || ((uint8_t)c == '\f') || ((uint8_t)c == '\v');
}


x86 assembly (clang, -O0):
<fuzix_isspace>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
movsbl %al,%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x5(%rbp)
je     117a <fuzix_isspace+0x7a>
mov    -0x4(%rbp),%eax
movsbl %al,%ecx
mov    $0x1,%al
cmp    $0x9,%ecx
mov    %al,-0x5(%rbp)
je     117a <fuzix_isspace+0x7a>
mov    -0x4(%rbp),%eax
movsbl %al,%ecx
mov    $0x1,%al
cmp    $0xa,%ecx
mov    %al,-0x5(%rbp)
je     117a <fuzix_isspace+0x7a>
mov    -0x4(%rbp),%eax
movsbl %al,%ecx
mov    $0x1,%al
cmp    $0xd,%ecx
mov    %al,-0x5(%rbp)
je     117a <fuzix_isspace+0x7a>
mov    -0x4(%rbp),%eax
movsbl %al,%ecx
mov    $0x1,%al
cmp    $0xc,%ecx
mov    %al,-0x5(%rbp)
je     117a <fuzix_isspace+0x7a>
mov    -0x4(%rbp),%eax
movsbl %al,%eax
cmp    $0xb,%eax
sete   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fuzix_isspace>:
shl    $0x18,%edi
mov    $0x1,%eax
cmp    $0xbffffff,%edi
jle    1129 <fuzix_isspace+0x29>
cmp    $0xc000000,%edi
je     1128 <fuzix_isspace+0x28>
cmp    $0xd000000,%edi
je     1128 <fuzix_isspace+0x28>
cmp    $0x20000000,%edi
jne    1139 <fuzix_isspace+0x39>
ret
cmp    $0x9000000,%edi
je     1128 <fuzix_isspace+0x28>
cmp    $0xa000000,%edi
je     1128 <fuzix_isspace+0x28>
xor    %eax,%eax
cmp    $0xb000000,%edi
sete   %al
ret

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

LLVM IR (-O2):
define i32 @fuzix_isspace(i32 %0) {
%2 = shl i32 %0, 24
switch i32 %2, label %3 [
i32 536870912, label %6
i32 150994944, label %6
i32 167772160, label %6
i32 218103808, label %6
i32 201326592, label %6
]
3: ; preds = %1
%4 = icmp eq i32 %2, 184549376
%5 = zext i1 %4 to i32
br label %6
6: ; preds = %1, %1, %1, %1, %1, %3
%7 = phi i32 [ 1, %1 ], [ %5, %3 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %7
}