#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 */
int /*<<< orphan*/ ft_putchar(char const);
unsigned char ft_ech_isoption(const char c) {
  char is;
  is = ((c >= 'a' && c <= 'c') || (c >= 'e' && c <= 'f') || (c == 'n') ||
        (c == 'r') || (c == 't') || (c == 'v') || (c == '\\'));
  if (!is) {
    (void)ft_putchar('\\');
    (void)ft_putchar(c);
  }
  return (is);
}


x86 assembly (clang, -O0):
<ft_ech_isoption>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x61,%eax
jl     113d <ft_ech_isoption+0x2d>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x63,%ecx
mov    %al,-0x3(%rbp)
jle    11b1 <ft_ech_isoption+0xa1>
movsbl -0x1(%rbp),%eax
cmp    $0x65,%eax
jl     115c <ft_ech_isoption+0x4c>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x66,%ecx
mov    %al,-0x3(%rbp)
jle    11b1 <ft_ech_isoption+0xa1>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x6e,%ecx
mov    %al,-0x3(%rbp)
je     11b1 <ft_ech_isoption+0xa1>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x72,%ecx
mov    %al,-0x3(%rbp)
je     11b1 <ft_ech_isoption+0xa1>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x74,%ecx
mov    %al,-0x3(%rbp)
je     11b1 <ft_ech_isoption+0xa1>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x76,%ecx
mov    %al,-0x3(%rbp)
je     11b1 <ft_ech_isoption+0xa1>
movsbl -0x1(%rbp),%eax
cmp    $0x5c,%eax
sete   %al
mov    %al,-0x3(%rbp)
mov    -0x3(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %al,-0x2(%rbp)
cmpb   $0x0,-0x2(%rbp)
jne    11d9 <ft_ech_isoption+0xc9>
mov    $0x5c,%edi
call   1030 <ft_putchar@plt>
movsbl -0x1(%rbp),%edi
call   1030 <ft_putchar@plt>
movzbl -0x2(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_ech_isoption>:
push   %rbx
mov    %edi,%ebx
lea    -0x61(%rbx),%ecx
mov    $0x1,%al
cmp    $0x3,%cl
jb     1133 <ft_ech_isoption+0x23>
lea    -0x5c(%rbx),%ecx
cmp    $0x1a,%cl
ja     1135 <ft_ech_isoption+0x25>
movzbl %cl,%ecx
mov    $0x5440601,%edx
bt     %rcx,%rdx
jae    1135 <ft_ech_isoption+0x25>
pop    %rbx
ret
mov    $0x5c,%edi
call   1030 <ft_putchar@plt>
movsbl %bl,%edi
call   1030 <ft_putchar@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define zeroext i8 @ft_ech_isoption(i8 signext %0) {
%2 = alloca i8
%3 = alloca i8
store i8 %0, i8* %2
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 97
br i1 %6, label %7, label %11
7: ; preds = %1
%8 = load i8, i8* %2
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 99
br i1 %10, label %39, label %11
11: ; preds = %7, %1
%12 = load i8, i8* %2
%13 = sext i8 %12 to i32
%14 = icmp sge i32 %13, 101
br i1 %14, label %15, label %19
15: ; preds = %11
%16 = load i8, i8* %2
%17 = sext i8 %16 to i32
%18 = icmp sle i32 %17, 102
br i1 %18, label %39, label %19
19: ; preds = %15, %11
%20 = load i8, i8* %2
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 110
br i1 %22, label %39, label %23
23: ; preds = %19
%24 = load i8, i8* %2
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 114
br i1 %26, label %39, label %27
27: ; preds = %23
%28 = load i8, i8* %2
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 116
br i1 %30, label %39, label %31
31: ; preds = %27
%32 = load i8, i8* %2
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 118
br i1 %34, label %39, label %35
35: ; preds = %31
%36 = load i8, i8* %2
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 92
br label %39
39: ; preds = %35, %31, %27, %23, %19, %15, %7
%40 = phi i1 [ true, %31 ], [ true, %27 ], [ true, %23 ], [ true, %19 ], [ true, %15 ], [ true, %7 ], [ %38, %35 ]
%41 = zext i1 %40 to i32
%42 = trunc i32 %41 to i8
store i8 %42, i8* %3
%43 = load i8, i8* %3
%44 = icmp ne i8 %43, 0
br i1 %44, label %49, label %45
45: ; preds = %39
%46 = call i32 @ft_putchar(i8 signext 92)
%47 = load i8, i8* %2
%48 = call i32 @ft_putchar(i8 signext %47)
br label %49
49: ; preds = %45, %39
%50 = load i8, i8* %3
ret i8 %50
}

LLVM IR (-O2):
define zeroext i8 @ft_ech_isoption(i8 signext %0) {
%2 = add i8 %0, -97
%3 = icmp ult i8 %2, 3
br i1 %3, label %8, label %4
4: ; preds = %1
switch i8 %0, label %5 [
i8 118, label %8
i8 116, label %8
i8 114, label %8
i8 110, label %8
i8 102, label %8
i8 101, label %8
i8 92, label %8
]
5: ; preds = %4
%6 = tail call i32 @ft_putchar(i8 signext 92)
%7 = tail call i32 @ft_putchar(i8 signext %0)
br label %8
8: ; preds = %4, %4, %4, %4, %4, %4, %4, %1, %5
%9 = phi i8 [ 0, %5 ], [ 1, %1 ], [ 1, %4 ], [ 1, %4 ], [ 1, %4 ], [ 1, %4 ], [ 1, %4 ], [ 1, %4 ], [ 1, %4 ]
ret i8 %9
}