// File: /workspace/github_cpp_makefile_star2_O3/iZhangHui[P]CppPrimer/CH11_AssociativeContainers/exercises/ex11_08.cc
// Function: main
int main(int argc, char const *argv[])
{
	std::vector<std::string> exclude = { "aa", "bb", "bb", "cc", "dd", "ee", "ff" };
	for (std::string word; std::cout << "Enter plz:\n", std::cin >> word; ) {
		auto is_excluded = std::binary_search(exclude.cbegin(), exclude.cend(), word);
		auto reply = is_excluded ? "excluded" : "not excluded";
		std::cout << reply << std::endl;
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
leaq -0x118(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0xce1(%rip), %rsi       # 0x2004
leaq 0xcdc(%rip), %rdx       # 0x2006
leaq -0x128(%rbp), %rbx
movq %rbx, %rdi
callq 0x16e0
leaq -0x108(%rbp), %r14
leaq -0xf8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xcb5(%rip), %rsi       # 0x2007
leaq 0xcb0(%rip), %rdx       # 0x2009
movq %r14, %rdi
callq 0x16e0
leaq -0xe8(%rbp), %r14
leaq -0xd8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xc8d(%rip), %rsi       # 0x2007
leaq 0xc88(%rip), %rdx       # 0x2009
movq %r14, %rdi
callq 0x16e0
leaq -0xc8(%rbp), %r14
leaq -0xb8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xc68(%rip), %rsi       # 0x200a
leaq 0xc63(%rip), %rdx       # 0x200c
movq %r14, %rdi
callq 0x16e0
leaq -0xa8(%rbp), %r14
leaq -0x98(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xc43(%rip), %rsi       # 0x200d
leaq 0xc3e(%rip), %rdx       # 0x200f
movq %r14, %rdi
callq 0x16e0
leaq -0x88(%rbp), %r14
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xc21(%rip), %rsi       # 0x2010
leaq 0xc1c(%rip), %rdx       # 0x2012
movq %r14, %rdi
callq 0x16e0
leaq -0x68(%rbp), %r14
leaq -0x58(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0xc02(%rip), %rsi       # 0x2013
leaq 0xbfd(%rip), %rdx       # 0x2015
movq %r14, %rdi
callq 0x16e0
leaq -0x48(%rbp), %rdi
leaq -0x128(%rbp), %rsi
leaq -0x29(%rbp), %rcx
movl $0x7, %edx
callq 0x15e4
movq $-0xe0, %rbx
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x1454
movq (%r15), %rsi
incq %rsi
callq 0x1100
addq $-0x20, %r15
addq $0x20, %rbx
jne 0x1440
leaq -0x128(%rbp), %rbx
movq %r12, (%rbx)
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
movq 0x2b55(%rip), %r14      # 0x3fd0
leaq 0xb94(%rip), %r15       # 0x2016
movq 0x2b57(%rip), %r12      # 0x3fe0
leaq 0xb92(%rip), %r13       # 0x2022
movl $0xb, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x1110
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1120
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x151a
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq %rbx, %rdx
callq 0x162c
testb %al, %al
movq %r13, %rsi
leaq 0xb51(%rip), %rcx       # 0x2026
cmovneq %rcx, %rsi
xorb $0x1, %al
movzbl %al, %eax
leaq 0x8(,%rax,4), %rdx
movq %r14, %rdi
callq 0x1110
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1090
jmp 0x1490
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x153c
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x1100
leaq -0x48(%rbp), %rdi
callq 0x1664
xorl %eax, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
leaq -0x48(%rbp), %rdi
leaq -0x128(%rbp), %rsi
callq 0x1190
jmp 0x15dc
jmp 0x1578
jmp 0x1578
jmp 0x1578
jmp 0x1578
jmp 0x1578
movq %rax, %r15
addq $-0x10, %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x1593
movq (%r14), %rsi
incq %rsi
callq 0x1100
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %rbx, %r14
movq %rax, %r14
jne 0x157f
jmp 0x15dc
movq %rax, %r15
jmp 0x15dc
jmp 0x15ae
jmp 0x15ae
movq %rax, %r15
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x15d3
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x1100
leaq -0x48(%rbp), %rdi
callq 0x1664
movq %r15, %rdi
callq 0x1160