#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*/ dnaUtilOpen();
int anyIupac(char *s) {
  dnaUtilOpen();
  int c;
  while ((c = *s++) != 0) {
    switch (c) {
    case 'r':
    case 'y':
    case 's':
    case 'w':
    case 'k':
    case 'm':
    case 'b':
    case 'd':
    case 'h':
    case 'v':
    case 'n':
      return 1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<anyIupac>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <dnaUtilOpen@plt>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movsbl (%rax),%eax
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
je     11e6 <anyIupac+0xd6>
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
sub    $0x62,%eax
je     11d5 <anyIupac+0xc5>
jmp    1155 <anyIupac+0x45>
mov    -0x18(%rbp),%eax
sub    $0x64,%eax
je     11d5 <anyIupac+0xc5>
jmp    1166 <anyIupac+0x56>
mov    -0x18(%rbp),%eax
sub    $0x68,%eax
je     11d5 <anyIupac+0xc5>
jmp    1177 <anyIupac+0x67>
mov    -0x18(%rbp),%eax
sub    $0x6b,%eax
je     11d5 <anyIupac+0xc5>
jmp    1188 <anyIupac+0x78>
mov    -0x18(%rbp),%eax
add    $0xffffff93,%eax
sub    $0x2,%eax
jb     11d5 <anyIupac+0xc5>
jmp    119c <anyIupac+0x8c>
mov    -0x18(%rbp),%eax
add    $0xffffff8e,%eax
sub    $0x2,%eax
jb     11d5 <anyIupac+0xc5>
jmp    11b0 <anyIupac+0xa0>
mov    -0x18(%rbp),%eax
add    $0xffffff8a,%eax
sub    $0x2,%eax
jb     11d5 <anyIupac+0xc5>
jmp    11c4 <anyIupac+0xb4>
mov    -0x18(%rbp),%eax
sub    $0x79,%eax
jne    11e1 <anyIupac+0xd1>
jmp    11d5 <anyIupac+0xc5>
movl   $0x1,-0x4(%rbp)
jmp    11ed <anyIupac+0xdd>
jmp    1123 <anyIupac+0x13>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<anyIupac>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
xor    %ebp,%ebp
xor    %eax,%eax
call   1030 <dnaUtilOpen@plt>
mov    $0xb31a45,%eax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsbl (%rbx),%ecx
test   %ecx,%ecx
je     114d <anyIupac+0x3d>
add    $0x1,%rbx
add    $0xffffff9e,%ecx
cmp    $0x17,%ecx
ja     1130 <anyIupac+0x20>
bt     %ecx,%eax
jae    1130 <anyIupac+0x20>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @anyIupac(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
%5 = call i32 (...) @dnaUtilOpen()
br label %6
6: ; preds = %15, %1
%7 = load i8*, i8** %3
%8 = getelementptr inbounds i8, i8* %7, i32 1
store i8* %8, i8** %3
%9 = load i8, i8* %7
%10 = sext i8 %9 to i32
store i32 %10, i32* %4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %6
%13 = load i32, i32* %4
switch i32 %13, label %15 [
i32 114, label %14
i32 121, label %14
i32 115, label %14
i32 119, label %14
i32 107, label %14
i32 109, label %14
i32 98, label %14
i32 100, label %14
i32 104, label %14
i32 118, label %14
i32 110, label %14
]
14: ; preds = %12, %12, %12, %12, %12, %12, %12, %12, %12, %12, %12
store i32 1, i32* %2
br label %17
15: ; preds = %12
br label %6
16: ; preds = %6
store i32 0, i32* %2
br label %17
17: ; preds = %16, %14
%18 = load i32, i32* %2
ret i32 %18
}

LLVM IR (-O2):
define i32 @anyIupac(i8* nocapture %0) {
%2 = tail call i32 (...) @dnaUtilOpen()
br label %3
3: ; preds = %12, %1
%4 = phi i8* [ %0, %1 ], [ %9, %12 ]
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
br i1 %6, label %17, label %7
7: ; preds = %3
%8 = sext i8 %5 to i32
%9 = getelementptr inbounds i8, i8* %4, i64 1
%10 = add nsw i32 %8, -98
%11 = icmp ult i32 %10, 24
br i1 %11, label %13, label %12
12: ; preds = %7, %13
br label %3
13: ; preds = %7
%14 = lshr i32 11737669, %10
%15 = and i32 %14, 1
%16 = icmp eq i32 %15, 0
br i1 %16, label %12, label %17
17: ; preds = %13, %3
%18 = phi i32 [ 0, %3 ], [ 1, %13 ]
ret i32 %18
}