// File: /workspace/github_cpp_makefile_star2_O1/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), %r14       # 0x3004
leaq 0xc94(%rip), %rdx       # 0x3009
leaq -0xb8(%rbp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x265c
leaq -0x98(%rbp), %rbx
leaq -0x88(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0xc6a(%rip), %r12       # 0x300a
leaq 0xc6a(%rip), %rdx       # 0x3011
movq %rbx, %rdi
movq %r12, %rsi
callq 0x265c
leaq -0x78(%rbp), %rbx
leaq -0x68(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0xc4d(%rip), %rsi       # 0x3012
leaq 0xc4a(%rip), %rdx       # 0x3016
movq %rbx, %rdi
callq 0x265c
leaq -0x58(%rbp), %r13
leaq -0x40(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
movq %r13, %rdx
callq 0x26f6
movq $-0x60, %rbx
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x2406
movq (%r15), %rsi
incq %rsi
callq 0x2130
addq $-0x20, %r15
addq $0x20, %rbx
jne 0x23f2
leaq -0xa8(%rbp), %rdx
movq %r14, -0x10(%rdx)
movq %r12, -0x8(%rdx)
leaq -0x58(%rbp), %rbx
leaq -0xb8(%rbp), %rsi
movq %rbx, %rdi
callq 0x2a6a
movq -0x58(%rbp), %r15
cmpq %rbx, %r15
sete %al
je 0x2477
movq -0x40(%rbp), %r14
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x2060
testl %eax, %eax
jne 0x2489
addq $0x20, %r14
movq (%r15), %r15
cmpq %rbx, %r15
sete %al
je 0x2477
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x2060
addq $0x20, %r14
testl %eax, %eax
je 0x2456
jmp 0x2489
testb %al, %al
je 0x2489
movl $0x4, %edx
leaq 0xb90(%rip), %rsi       # 0x3017
jmp 0x2495
movl $0x5, %edx
leaq 0xb87(%rip), %rsi       # 0x301c
movq 0x2b3c(%rip), %r14      # 0x4fd8
movq %r14, %rdi
callq 0x2140
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %esi
movq 0x2b16(%rip), %rdi      # 0x4fd8
callq 0x2030
movq %rax, %rdi
callq 0x20c0
leaq -0x40(%rbp), %rdi
callq 0x25a4
movq -0x58(%rbp), %rdi
cmpq %rbx, %rdi
je 0x24f6
movq (%rdi), %r14
movl $0x18, %esi
callq 0x2130
movq %r14, %rdi
cmpq %rbx, %r14
jne 0x24e1
xorl %eax, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x256d
movq %rax, %r14
leaq -0xb8(%rbp), %rsi
movq %r13, %rdi
callq 0x21c0
movb $0x1, %al
jmp 0x252b
jmp 0x2526
jmp 0x2526
movq %rax, %r14
xorl %eax, %eax
leaq -0xb8(%rbp), %rcx
cmpq %rbx, %rcx
sete %cl
orb %al, %cl
jne 0x2570
addq $-0x10, %rbx
leaq -0xb8(%rbp), %r15
movq -0x10(%rbx), %rdi
cmpq %rdi, %rbx
je 0x255b
movq (%rbx), %rsi
incq %rsi
callq 0x2130
leaq -0x20(%rbx), %rax
addq $-0x10, %rbx
cmpq %r15, %rbx
movq %rax, %rbx
jne 0x2547
jmp 0x2570
movq %rax, %r14
leaq -0x40(%rbp), %rdi
callq 0x25a4
movq -0x58(%rbp), %rdi
leaq -0x58(%rbp), %r15
cmpq %r15, %rdi
je 0x259b
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x2130
movq %rbx, %rdi
cmpq %r15, %rbx
jne 0x2586
movq %r14, %rdi
callq 0x2190
nop