#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 */
size_t len(char *);
int verify_pass(char *pass) {
  size_t n = len(pass);
  if (n >= 8 && n < 16) {
    while (*++pass) {
      if (*pass == ' ' || *pass == '\t')
        return 0;
    }
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<verify_pass>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <len@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x8,-0x18(%rbp)
jb     119a <verify_pass+0x8a>
cmpq   $0x10,-0x18(%rbp)
jae    119a <verify_pass+0x8a>
jmp    1144 <verify_pass+0x34>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
cmpb   $0x0,0x1(%rax)
je     118e <verify_pass+0x7e>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     117d <verify_pass+0x6d>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
jne    1189 <verify_pass+0x79>
movl   $0x0,-0x4(%rbp)
jmp    11a1 <verify_pass+0x91>
jmp    1144 <verify_pass+0x34>
movl   $0x1,-0x4(%rbp)
jmp    11a1 <verify_pass+0x91>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<verify_pass>:
push   %rbx
mov    %rdi,%rbx
call   1030 <len@plt>
mov    %rax,%rcx
and    $0xfffffffffffffff8,%rcx
xor    %eax,%eax
cmp    $0x8,%rcx
jne    1145 <verify_pass+0x35>
add    $0x1,%rbx
nopl   0x0(%rax)
movzbl (%rbx),%ecx
test   %cl,%cl
je     1147 <verify_pass+0x37>
cmp    $0x20,%cl
je     1145 <verify_pass+0x35>
add    $0x1,%rbx
cmp    $0x9,%cl
jne    1130 <verify_pass+0x20>
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @verify_pass(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = call i64 @len(i8* %5)
store i64 %6, i64* %4
%7 = load i64, i64* %4
%8 = icmp uge i64 %7, 8
br i1 %8, label %9, label %31
9: ; preds = %1
%10 = load i64, i64* %4
%11 = icmp ult i64 %10, 16
br i1 %11, label %12, label %31
12: ; preds = %9
br label %13
13: ; preds = %29, %12
%14 = load i8*, i8** %3
%15 = getelementptr inbounds i8, i8* %14, i32 1
store i8* %15, i8** %3
%16 = load i8, i8* %15
%17 = icmp ne i8 %16, 0
br i1 %17, label %18, label %30
18: ; preds = %13
%19 = load i8*, i8** %3
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 32
br i1 %22, label %28, label %23
23: ; preds = %18
%24 = load i8*, i8** %3
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 9
br i1 %27, label %28, label %29
28: ; preds = %23, %18
store i32 0, i32* %2
br label %32
29: ; preds = %23
br label %13
30: ; preds = %13
store i32 1, i32* %2
br label %32
31: ; preds = %9, %1
store i32 0, i32* %2
br label %32
32: ; preds = %31, %30, %28
%33 = load i32, i32* %2
ret i32 %33
}

LLVM IR (-O2):
define i32 @verify_pass(i8* %0) {
%2 = tail call i64 @len(i8* %0)
%3 = and i64 %2, -8
%4 = icmp eq i64 %3, 8
br i1 %4, label %5, label %10
5: ; preds = %1, %5
%6 = phi i8* [ %7, %5 ], [ %0, %1 ]
%7 = getelementptr inbounds i8, i8* %6, i64 1
%8 = load i8, i8* %7
switch i8 %8, label %5 [
i8 0, label %10
i8 32, label %9
i8 9, label %9
]
9: ; preds = %5, %5
br label %10
10: ; preds = %5, %9, %1
%11 = phi i32 [ 0, %1 ], [ 0, %9 ], [ 1, %5 ]
ret i32 %11
}