int iscmene(p)
char *p;
{
  if (!(strchr("bcdfgjklmnprstvxz", (p[strlen(p) - 1])) ? 1 : 0))
    return 0;
  cmenecheck(p, "la");
  cmenecheck(p, "doi");
  cmenecheck(p, "h");
  cmenecheck(p, "w");
  cmenecheck(p, "q");
  return 1;
}


x86 assembly (clang, -O0):
<iscmene>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
sub    $0x1,%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xe9d(%rip),%rdi
call   1050 <strchr@plt>
cmp    $0x0,%rax
je     1181 <iscmene+0x51>
mov    $0x1,%al
test   $0x1,%al
jne    119c <iscmene+0x6c>
jmp    1190 <iscmene+0x60>
xor    %eax,%eax
test   $0x1,%al
jne    119c <iscmene+0x6c>
jmp    1190 <iscmene+0x60>
movl   $0x0,-0x4(%rbp)
jmp    11fd <iscmene+0xcd>
mov    -0x10(%rbp),%rdi
lea    0xe6b(%rip),%rsi
mov    $0x0,%al
call   1030 <cmenecheck@plt>
mov    -0x10(%rbp),%rdi
lea    0xe5c(%rip),%rsi
mov    $0x0,%al
call   1030 <cmenecheck@plt>
mov    -0x10(%rbp),%rdi
lea    0xe4e(%rip),%rsi
mov    $0x0,%al
call   1030 <cmenecheck@plt>
mov    -0x10(%rbp),%rdi
lea    0xe3e(%rip),%rsi
mov    $0x0,%al
call   1030 <cmenecheck@plt>
mov    -0x10(%rbp),%rdi
lea    0xe2e(%rip),%rsi
mov    $0x0,%al
call   1030 <cmenecheck@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iscmene>:
push   %rbx
mov    %rdi,%rbx
call   1040 <strlen@plt>
movsbl -0x1(%rax,%rbx,1),%esi
lea    0xebb(%rip),%rdi
mov    $0x12,%edx
call   1050 <memchr@plt>
test   %rax,%rax
je     11b0 <iscmene+0x80>
lea    0xeb7(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <cmenecheck@plt>
lea    0xea9(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <cmenecheck@plt>
lea    0xe9c(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <cmenecheck@plt>
lea    0xe8d(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <cmenecheck@plt>
lea    0xe7e(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <cmenecheck@plt>
mov    $0x1,%eax
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"bcdfgjklmnprstvxz\00"
@.str.1 = [3 x i8] c"la\00"
@.str.2 = [4 x i8] c"doi\00"
@.str.3 = [2 x i8] c"h\00"
@.str.4 = [2 x i8] c"w\00"
@.str.5 = [2 x i8] c"q\00"
define i32 @iscmene(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = load i8*, i8** %3
%6 = call i64 @strlen(i8* %5)
%7 = sub i64 %6, 1
%8 = getelementptr inbounds i8, i8* %4, i64 %7
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = call i8* @strchr(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = icmp ne i8* %11, null
br i1 %12, label %13, label %14
13: ; preds = %1
br i1 true, label %16, label %15
14: ; preds = %1
br i1 false, label %16, label %15
15: ; preds = %14, %13
store i32 0, i32* %2
br label %27
16: ; preds = %14, %13
%17 = load i8*, i8** %3
%18 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmenecheck to i32 (i8*, i8*, ...)*)(i8* %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%19 = load i8*, i8** %3
%20 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmenecheck to i32 (i8*, i8*, ...)*)(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%21 = load i8*, i8** %3
%22 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmenecheck to i32 (i8*, i8*, ...)*)(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%23 = load i8*, i8** %3
%24 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmenecheck to i32 (i8*, i8*, ...)*)(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%25 = load i8*, i8** %3
%26 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmenecheck to i32 (i8*, i8*, ...)*)(i8* %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32 1, i32* %2
br label %27
27: ; preds = %16, %15
%28 = load i32, i32* %2
ret i32 %28
}

LLVM IR (-O2):
@.str = [18 x i8] c"bcdfgjklmnprstvxz\00"
@.str.1 = [3 x i8] c"la\00"
@.str.2 = [4 x i8] c"doi\00"
@.str.3 = [2 x i8] c"h\00"
@.str.4 = [2 x i8] c"w\00"
@.str.5 = [2 x i8] c"q\00"
define i32 @iscmene(i8* %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = add i64 %2, -1
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = tail call i8* @memchr(i8* dereferenceable(18) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %6, i64 18)
%8 = icmp eq i8* %7, null
br i1 %8, label %15, label %9
9: ; preds = %1
%10 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmenecheck to i32 (i8*, i8*, ...)*)(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%11 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmenecheck to i32 (i8*, i8*, ...)*)(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%12 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmenecheck to i32 (i8*, i8*, ...)*)(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%13 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmenecheck to i32 (i8*, i8*, ...)*)(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%14 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @cmenecheck to i32 (i8*, i8*, ...)*)(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %15
15: ; preds = %1, %9
%16 = phi i32 [ 1, %9 ], [ 0, %1 ]
ret i32 %16
}