// File: /workspace/github_cpp_makefile_star2_O1/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), %r14
movq %r14, %rdi
callq 0x16f6
leaq -0x108(%rbp), %rbx
leaq -0xf8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xcb5(%rip), %rsi       # 0x2007
leaq 0xcb0(%rip), %rdx       # 0x2009
movq %rbx, %rdi
callq 0x16f6
leaq -0xe8(%rbp), %rbx
leaq -0xd8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xc8d(%rip), %rsi       # 0x2007
leaq 0xc88(%rip), %rdx       # 0x2009
movq %rbx, %rdi
callq 0x16f6
leaq -0xc8(%rbp), %rbx
leaq -0xb8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xc68(%rip), %rsi       # 0x200a
leaq 0xc63(%rip), %rdx       # 0x200c
movq %rbx, %rdi
callq 0x16f6
leaq -0xa8(%rbp), %rbx
leaq -0x98(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xc43(%rip), %rsi       # 0x200d
leaq 0xc3e(%rip), %rdx       # 0x200f
movq %rbx, %rdi
callq 0x16f6
leaq -0x88(%rbp), %rbx
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xc21(%rip), %rsi       # 0x2010
leaq 0xc1c(%rip), %rdx       # 0x2012
movq %rbx, %rdi
callq 0x16f6
leaq -0x68(%rbp), %rbx
leaq -0x58(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0xc02(%rip), %rsi       # 0x2013
leaq 0xbfd(%rip), %rdx       # 0x2015
movq %rbx, %rdi
callq 0x16f6
leaq -0x48(%rbp), %rdi
leaq -0x128(%rbp), %rsi
leaq -0x29(%rbp), %rcx
movl $0x7, %edx
callq 0x15fe
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 0x1646
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 0x167e
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
movb $0x1, %al
jmp 0x157f
jmp 0x157a
jmp 0x157a
jmp 0x157a
jmp 0x157a
jmp 0x157a
movq %rax, %r15
xorl %eax, %eax
cmpq %rbx, %r14
sete %cl
orb %al, %cl
jne 0x15f6
addq $-0x10, %rbx
leaq -0x128(%rbp), %r14
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x15a8
movq (%rbx), %rsi
incq %rsi
callq 0x1100
leaq -0x20(%rbx), %rax
addq $-0x10, %rbx
cmpq %r14, %rbx
movq %rax, %rbx
jne 0x1594
jmp 0x15f6
movq %rax, %r15
xorl %eax, %eax
movq %r14, %rbx
jmp 0x157f
jmp 0x15c8
jmp 0x15c8
movq %rax, %r15
movq -0x128(%rbp), %rdi
leaq -0x118(%rbp), %rax
cmpq %rax, %rdi
je 0x15ed
movq -0x118(%rbp), %rsi
incq %rsi
callq 0x1100
leaq -0x48(%rbp), %rdi
callq 0x167e
movq %r15, %rdi
callq 0x1160