#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 */
char ft_tolower(char);
int ft_spe_exists(char c) {
  c = ft_tolower(c);
  if (c == 's' || c == 'p' || c == 'd' || c == 'i' || c == 'o' || c == 'u' ||
      c == 'x' || c == 'c' || c == '%')
    return (0);
  return (1);
}


x86 assembly (clang, -O0):
<ft_spe_exists>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%edi
call   1030 <ft_tolower@plt>
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x73,%eax
je     119f <ft_spe_exists+0x8f>
movsbl -0x5(%rbp),%eax
cmp    $0x70,%eax
je     119f <ft_spe_exists+0x8f>
movsbl -0x5(%rbp),%eax
cmp    $0x64,%eax
je     119f <ft_spe_exists+0x8f>
movsbl -0x5(%rbp),%eax
cmp    $0x69,%eax
je     119f <ft_spe_exists+0x8f>
movsbl -0x5(%rbp),%eax
cmp    $0x6f,%eax
je     119f <ft_spe_exists+0x8f>
movsbl -0x5(%rbp),%eax
cmp    $0x75,%eax
je     119f <ft_spe_exists+0x8f>
movsbl -0x5(%rbp),%eax
cmp    $0x78,%eax
je     119f <ft_spe_exists+0x8f>
movsbl -0x5(%rbp),%eax
cmp    $0x63,%eax
je     119f <ft_spe_exists+0x8f>
movsbl -0x5(%rbp),%eax
cmp    $0x25,%eax
jne    11ab <ft_spe_exists+0x9b>
movl   $0x0,-0x4(%rbp)
jmp    11b2 <ft_spe_exists+0xa2>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_spe_exists>:
push   %rax
call   1030 <ft_tolower@plt>
mov    %eax,%ecx
add    $0xdb,%cl
cmp    $0x53,%cl
ja     1137 <ft_spe_exists+0x27>
xor    %eax,%eax
movzbl %cl,%ecx
lea    0xed4(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
pop    %rcx
ret
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @ft_spe_exists(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = call signext i8 @ft_tolower(i8 signext %4)
store i8 %5, i8* %3
%6 = load i8, i8* %3
%7 = sext i8 %6 to i32
%8 = icmp eq i32 %7, 115
br i1 %8, label %41, label %9
9: ; preds = %1
%10 = load i8, i8* %3
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 112
br i1 %12, label %41, label %13
13: ; preds = %9
%14 = load i8, i8* %3
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 100
br i1 %16, label %41, label %17
17: ; preds = %13
%18 = load i8, i8* %3
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 105
br i1 %20, label %41, label %21
21: ; preds = %17
%22 = load i8, i8* %3
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 111
br i1 %24, label %41, label %25
25: ; preds = %21
%26 = load i8, i8* %3
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 117
br i1 %28, label %41, label %29
29: ; preds = %25
%30 = load i8, i8* %3
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 120
br i1 %32, label %41, label %33
33: ; preds = %29
%34 = load i8, i8* %3
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 99
br i1 %36, label %41, label %37
37: ; preds = %33
%38 = load i8, i8* %3
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 37
br i1 %40, label %41, label %42
41: ; preds = %37, %33, %29, %25, %21, %17, %13, %9, %1
store i32 0, i32* %2
br label %43
42: ; preds = %37
store i32 1, i32* %2
br label %43
43: ; preds = %42, %41
%44 = load i32, i32* %2
ret i32 %44
}

LLVM IR (-O2):
define i32 @ft_spe_exists(i8 signext %0) {
%2 = tail call signext i8 @ft_tolower(i8 signext %0)
switch i8 %2, label %3 [
i8 120, label %4
i8 117, label %4
i8 115, label %4
i8 112, label %4
i8 111, label %4
i8 105, label %4
i8 100, label %4
i8 99, label %4
i8 37, label %4
]
3: ; preds = %1
br label %4
4: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %3
%5 = phi i32 [ 1, %3 ], [ 0, %1 ], [ 0, %1 ], [ 0, %1 ], [ 0, %1 ], [ 0, %1 ], [ 0, %1 ], [ 0, %1 ], [ 0, %1 ], [ 0, %1 ]
ret i32 %5
}