#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 int wint_t;

/* Variables and functions */
int iswspace(wint_t wc) {
  return (wc >= 0 && wc < 128 ? wc == ' ' || wc == '\t' || wc == '\n' ||
                                    wc == '\v' || wc == '\f' || wc == '\r'
                              : 0);
}


x86 assembly (clang, -O0):
<iswspace>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jl     1183 <iswspace+0x83>
cmpl   $0x80,-0x4(%rbp)
jge    1183 <iswspace+0x83>
mov    $0x1,%al
cmpl   $0x20,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1173 <iswspace+0x73>
mov    $0x1,%al
cmpl   $0x9,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1173 <iswspace+0x73>
mov    $0x1,%al
cmpl   $0xa,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1173 <iswspace+0x73>
mov    $0x1,%al
cmpl   $0xb,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1173 <iswspace+0x73>
mov    $0x1,%al
cmpl   $0xc,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1173 <iswspace+0x73>
cmpl   $0xd,-0x4(%rbp)
sete   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc(%rbp)
jmp    118d <iswspace+0x8d>
xor    %eax,%eax
mov    %eax,-0xc(%rbp)
jmp    118d <iswspace+0x8d>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<iswspace>:
xor    %eax,%eax
cmp    $0x7f,%edi
ja     1114 <iswspace+0x14>
mov    $0x1,%eax
lea    -0x9(%rdi),%ecx
cmp    $0x4,%ecx
jae    1115 <iswspace+0x15>
ret
cmp    $0x20,%edi
je     1114 <iswspace+0x14>
xor    %eax,%eax
cmp    $0xd,%edi
sete   %al
ret

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

LLVM IR (-O2):
define i32 @iswspace(i32 %0) {
%2 = icmp ult i32 %0, 128
br i1 %2, label %3, label %7
3: ; preds = %1
switch i32 %0, label %4 [
i32 32, label %7
i32 12, label %7
i32 11, label %7
i32 10, label %7
i32 9, label %7
]
4: ; preds = %3
%5 = icmp eq i32 %0, 13
%6 = zext i1 %5 to i32
br label %7
7: ; preds = %4, %3, %3, %3, %3, %3, %1
%8 = phi i32 [ 0, %1 ], [ 1, %3 ], [ %6, %4 ], [ 1, %3 ], [ 1, %3 ], [ 1, %3 ], [ 1, %3 ]
ret i32 %8
}