// File: /workspace/github_cpp_makefile_star2_O3/iZhangHui[P]CppPrimer/CH10_GenericAlgorithms/examples/equal.cc
// Function: main
int main()
{
	list<const char *> roster1;
	vector<string> roster2;
	roster2 = {"hello", "so long", "tata"};
	roster1 = {"hello", "so long"};

	auto b = 
	// roster2 should have at least as many elements as roster1
	equal(roster1.cbegin(), roster1.cend(), roster2.cbegin());

	(b) ? cout << "true" : cout << "false";
	cout << endl;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
leaq -0x58(%rbp), %rcx
movq %rcx, 0x8(%rcx)
movq %rcx, (%rcx)
xorl %eax, %eax
movq %rax, 0x10(%rcx)
movq %rax, -0x30(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
leaq -0xa8(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xc96(%rip), %rbx       # 0x3004
leaq 0xc94(%rip), %rdx       # 0x3009
leaq -0xb8(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2636
leaq -0x98(%rbp), %r12
leaq -0x88(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xc6a(%rip), %r15       # 0x300a
leaq 0xc6a(%rip), %rdx       # 0x3011
movq %r12, %rdi
movq %r15, %rsi
callq 0x2636
leaq -0x78(%rbp), %r12
leaq -0x68(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0xc4d(%rip), %rsi       # 0x3012
leaq 0xc4a(%rip), %rdx       # 0x3016
movq %r12, %rdi
callq 0x2636
leaq -0x58(%rbp), %r14
leaq -0x40(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
movq %r14, %rdx
callq 0x26d4
movq $-0x60, %r14
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0x2407
movq (%r13), %rsi
incq %rsi
callq 0x2130
addq $-0x20, %r13
addq $0x20, %r14
jne 0x23f2
leaq -0xa8(%rbp), %rdx
movq %rbx, -0x10(%rdx)
movq %r15, -0x8(%rdx)
leaq -0x58(%rbp), %rbx
leaq -0xb8(%rbp), %rsi
movq %rbx, %rdi
callq 0x2a5a
movq -0x58(%rbp), %r13
movl $0x4, %r14d
leaq 0xbd3(%rip), %r15       # 0x3017
cmpq %rbx, %r13
je 0x2480
movq -0x40(%rbp), %r12
leaq 0xbc8(%rip), %r15       # 0x301c
movq 0x10(%r13), %rsi
movq %r12, %rdi
callq 0x2060
testl %eax, %eax
jne 0x247a
movq (%r13), %r13
addq $0x20, %r12
cmpq %rbx, %r13
jne 0x2454
leaq 0xb9f(%rip), %r15       # 0x3017
jmp 0x2480
movl $0x5, %r14d
movq 0x2b51(%rip), %r12      # 0x4fd8
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2140
movq (%r12), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %esi
movq 0x2b24(%rip), %rdi      # 0x4fd8
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq -0x40(%rbp), %rdi
callq 0x257c
movq -0x58(%rbp), %rdi
cmpq %rbx, %rdi
je 0x24e8
movq (%rdi), %r14
movl $0x18, %esi
callq 0x2130
movq %r14, %rdi
cmpq %rbx, %r14
jne 0x24d3
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2546
movq %rax, %rbx
leaq -0xb8(%rbp), %rsi
movq %r14, %rdi
callq 0x21c0
jmp 0x2549
jmp 0x2514
movq %rax, %rbx
addq $-0x10, %r12
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x2531
movq (%r12), %rsi
incq %rsi
callq 0x2130
leaq -0x20(%r12), %rax
addq $-0x10, %r12
cmpq %r14, %r12
movq %rax, %r12
jne 0x251b
jmp 0x2549
jmp 0x2546
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x257c
movq -0x58(%rbp), %rdi
leaq -0x58(%rbp), %r15
cmpq %r15, %rdi
je 0x2574
movq (%rdi), %r14
movl $0x18, %esi
callq 0x2130
movq %r14, %rdi
cmpq %r15, %r14
jne 0x255f
movq %rbx, %rdi
callq 0x2190