#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*/ *strchr(char *, char);
int filtratu(char k) {
  unsigned char kar;
  kar = (unsigned)k;
  if (((int)kar >= 128) && (k != ((char)241)) && (k != ((char)209)))
    return (1);
  if ((strchr("abcdefghijklmn\361opqrstuvwxyz", k) != NULL) ||
      (strchr("ABCDEFGHIJKLMN\321OPQRSTUVWXYZ", k) != NULL) ||
      (strchr("0123456789", k) != NULL))
    return (0);
  else
    return (1);
}


x86 assembly (clang, -O0):
<filtratu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
mov    %al,-0x6(%rbp)
movzbl -0x6(%rbp),%eax
cmp    $0x80,%eax
jl     115a <filtratu+0x4a>
movsbl -0x5(%rbp),%eax
cmp    $0xfffffff1,%eax
je     115a <filtratu+0x4a>
movsbl -0x5(%rbp),%eax
cmp    $0xffffffd1,%eax
je     115a <filtratu+0x4a>
movl   $0x1,-0x4(%rbp)
jmp    11bb <filtratu+0xab>
lea    0xe9f(%rip),%rdi
movsbl -0x5(%rbp),%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
jne    11a8 <filtratu+0x98>
lea    0xea1(%rip),%rdi
movsbl -0x5(%rbp),%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
jne    11a8 <filtratu+0x98>
lea    0xea3(%rip),%rdi
movsbl -0x5(%rbp),%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
je     11b4 <filtratu+0xa4>
movl   $0x0,-0x4(%rbp)
jmp    11bb <filtratu+0xab>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<filtratu>:
push   %rbp
push   %rbx
push   %rax
test   %dil,%dil
jns    1125 <filtratu+0x15>
mov    %edi,%eax
and    $0xdf,%al
mov    $0x1,%ebx
cmp    $0xd1,%al
jne    1167 <filtratu+0x57>
movsbl %dil,%ebp
lea    0xed0(%rip),%rdi
mov    %ebp,%esi
call   1030 <strchr@plt>
xor    %ebx,%ebx
test   %rax,%rax
jne    1167 <filtratu+0x57>
lea    0xed7(%rip),%rdi
mov    %ebp,%esi
call   1030 <strchr@plt>
test   %rax,%rax
jne    1167 <filtratu+0x57>
lea    0xee0(%rip),%rdi
mov    %ebp,%esi
call   1030 <strchr@plt>
xor    %ebx,%ebx
test   %rax,%rax
sete   %bl
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [28 x i8] c"abcdefghijklmn\F1opqrstuvwxyz\00"
@.str.1 = [28 x i8] c"ABCDEFGHIJKLMN\D1OPQRSTUVWXYZ\00"
@.str.2 = [11 x i8] c"0123456789\00"
define i32 @filtratu(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
%4 = alloca i8
store i8 %0, i8* %3
%5 = load i8, i8* %3
%6 = sext i8 %5 to i32
%7 = trunc i32 %6 to i8
store i8 %7, i8* %4
%8 = load i8, i8* %4
%9 = zext i8 %8 to i32
%10 = icmp sge i32 %9, 128
br i1 %10, label %11, label %20
11: ; preds = %1
%12 = load i8, i8* %3
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, -15
br i1 %14, label %15, label %20
15: ; preds = %11
%16 = load i8, i8* %3
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, -47
br i1 %18, label %19, label %20
19: ; preds = %15
store i32 1, i32* %2
br label %34
20: ; preds = %15, %11, %1
%21 = load i8, i8* %3
%22 = call i32* @strchr(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8 signext %21)
%23 = icmp ne i32* %22, null
br i1 %23, label %32, label %24
24: ; preds = %20
%25 = load i8, i8* %3
%26 = call i32* @strchr(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8 signext %25)
%27 = icmp ne i32* %26, null
br i1 %27, label %32, label %28
28: ; preds = %24
%29 = load i8, i8* %3
%30 = call i32* @strchr(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8 signext %29)
%31 = icmp ne i32* %30, null
br i1 %31, label %32, label %33
32: ; preds = %28, %24, %20
store i32 0, i32* %2
br label %34
33: ; preds = %28
store i32 1, i32* %2
br label %34
34: ; preds = %33, %32, %19
%35 = load i32, i32* %2
ret i32 %35
}

LLVM IR (-O2):
@.str = [28 x i8] c"abcdefghijklmn\F1opqrstuvwxyz\00"
@.str.1 = [28 x i8] c"ABCDEFGHIJKLMN\D1OPQRSTUVWXYZ\00"
@.str.2 = [11 x i8] c"0123456789\00"
define i32 @filtratu(i8 signext %0) {
%2 = icmp slt i8 %0, 0
%3 = and i8 %0, -33
%4 = icmp ne i8 %3, -47
%5 = and i1 %2, %4
br i1 %5, label %16, label %6
6: ; preds = %1
%7 = tail call i32* @strchr(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8 signext %0)
%8 = icmp eq i32* %7, null
br i1 %8, label %9, label %16
9: ; preds = %6
%10 = tail call i32* @strchr(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8 signext %0)
%11 = icmp eq i32* %10, null
br i1 %11, label %12, label %16
12: ; preds = %9
%13 = tail call i32* @strchr(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8 signext %0)
%14 = icmp eq i32* %13, null
%15 = zext i1 %14 to i32
br label %16
16: ; preds = %12, %6, %9, %1
%17 = phi i32 [ 1, %1 ], [ 0, %9 ], [ 0, %6 ], [ %15, %12 ]
ret i32 %17
}