#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 yamlprintable(wint_t c) {
  if (c == 0x9 || c == 0xA || c == 0xD || (c >= 0x20 && c <= 0x7E) ||
      c == 0x85 || (c >= 0xA0 && c <= 0xD7FF) || (c <= 0xE000 && c >= 0xFFFD) ||
      (c >= 0x10000 && c <= 0x10FFFF)) {
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<yamlprintable>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x9,-0x8(%rbp)
je     1194 <yamlprintable+0x94>
cmpl   $0xa,-0x8(%rbp)
je     1194 <yamlprintable+0x94>
cmpl   $0xd,-0x8(%rbp)
je     1194 <yamlprintable+0x94>
cmpl   $0x20,-0x8(%rbp)
jl     1139 <yamlprintable+0x39>
cmpl   $0x7e,-0x8(%rbp)
jle    1194 <yamlprintable+0x94>
cmpl   $0x85,-0x8(%rbp)
je     1194 <yamlprintable+0x94>
cmpl   $0xa0,-0x8(%rbp)
jl     1160 <yamlprintable+0x60>
cmpl   $0xd7ff,-0x8(%rbp)
jle    1194 <yamlprintable+0x94>
cmpl   $0xe000,-0x8(%rbp)
jg     117a <yamlprintable+0x7a>
cmpl   $0xfffd,-0x8(%rbp)
jge    1194 <yamlprintable+0x94>
cmpl   $0x10000,-0x8(%rbp)
jl     11a0 <yamlprintable+0xa0>
cmpl   $0x10ffff,-0x8(%rbp)
jg     11a0 <yamlprintable+0xa0>
movl   $0x1,-0x4(%rbp)
jmp    11a7 <yamlprintable+0xa7>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<yamlprintable>:
cmp    $0xd,%edi
ja     1115 <yamlprintable+0x15>
mov    $0x1,%eax
mov    $0x2600,%ecx
bt     %edi,%ecx
jae    1115 <yamlprintable+0x15>
ret
lea    -0x20(%rdi),%eax
cmp    $0x5f,%eax
setb   %al
cmp    $0x85,%edi
sete   %cl
or     %al,%cl
lea    -0xa0(%rdi),%eax
cmp    $0xd760,%eax
setb   %al
add    $0xffff0000,%edi
cmp    $0x100000,%edi
setb   %dl
or     %al,%dl
or     %cl,%dl
movzbl %dl,%eax
ret

LLVM IR (-O0):
define i32 @yamlprintable(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp eq i32 %4, 9
br i1 %5, label %39, label %6
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp eq i32 %7, 10
br i1 %8, label %39, label %9
9: ; preds = %6
%10 = load i32, i32* %3
%11 = icmp eq i32 %10, 13
br i1 %11, label %39, label %12
12: ; preds = %9
%13 = load i32, i32* %3
%14 = icmp sge i32 %13, 32
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load i32, i32* %3
%17 = icmp sle i32 %16, 126
br i1 %17, label %39, label %18
18: ; preds = %15, %12
%19 = load i32, i32* %3
%20 = icmp eq i32 %19, 133
br i1 %20, label %39, label %21
21: ; preds = %18
%22 = load i32, i32* %3
%23 = icmp sge i32 %22, 160
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i32, i32* %3
%26 = icmp sle i32 %25, 55295
br i1 %26, label %39, label %27
27: ; preds = %24, %21
%28 = load i32, i32* %3
%29 = icmp sle i32 %28, 57344
br i1 %29, label %30, label %33
30: ; preds = %27
%31 = load i32, i32* %3
%32 = icmp sge i32 %31, 65533
br i1 %32, label %39, label %33
33: ; preds = %30, %27
%34 = load i32, i32* %3
%35 = icmp sge i32 %34, 65536
br i1 %35, label %36, label %40
36: ; preds = %33
%37 = load i32, i32* %3
%38 = icmp sle i32 %37, 1114111
br i1 %38, label %39, label %40
39: ; preds = %36, %30, %24, %18, %15, %9, %6, %1
store i32 1, i32* %2
br label %41
40: ; preds = %36, %33
store i32 0, i32* %2
br label %41
41: ; preds = %40, %39
%42 = load i32, i32* %2
ret i32 %42
}

LLVM IR (-O2):
define i32 @yamlprintable(i32 %0) {
switch i32 %0, label %2 [
i32 13, label %14
i32 10, label %14
i32 9, label %14
]
2: ; preds = %1
%3 = add i32 %0, -32
%4 = icmp ult i32 %3, 95
%5 = icmp eq i32 %0, 133
%6 = or i1 %5, %4
%7 = add i32 %0, -160
%8 = icmp ult i32 %7, 55136
%9 = or i1 %8, %6
%10 = add i32 %0, -65536
%11 = icmp ult i32 %10, 1048576
%12 = or i1 %11, %9
%13 = zext i1 %12 to i32
br label %14
14: ; preds = %2, %1, %1, %1
%15 = phi i32 [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ %13, %2 ]
ret i32 %15
}