// File: /workspace/github_cpp_makefile_star2_O3/cjc12[P]ezSTL/src/../include/test.h
// Function: ezSTL::test::test_algorithm()
void test::test_algorithm() {
		const int max_iteration = 30;
		std::default_random_engine e((unsigned)time(0));
		std::uniform_int_distribution<unsigned> u(0, 20);
		start_info("algorithm");
		test_info("sort:");
		{
			vector<unsigned> v;
			for (int i = 0; i < max_iteration; ++i)
				v.push_back(u(e));
			print_vector(v);
			sort(v.begin(), v.end());
			print_vector(v);
		}
		test_info("stable_sort:");
		{
			vector<pair<unsigned, unsigned>> v;
			for (int i = 0; i < max_iteration; ++i)
				v.push_back(make_pair(u(e), u(e)));
			for (auto ite = v.begin(); ite != v.end(); ++ite)
				std::cout << (*ite).first << ":" << (*ite).second << " ";
			std::cout << std::endl;
			stable_sort(v.begin(), v.end(), less<pair<unsigned, unsigned>>());
			for (auto ite = v.begin(); ite != v.end(); ++ite)
				std::cout << (*ite).first << ":" << (*ite).second << " ";
			std::cout << std::endl;
		}
		finish_info("algorithm");
		continue_next_test();
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
xorl %edi, %edi
callq 0x21b0
movl %eax, %ecx
leaq (%rcx,%rcx,2), %rcx
shrq $0x20, %rcx
movl %eax, %edx
subl %ecx, %edx
shrl %edx
addl %ecx, %edx
shrl $0x1e, %edx
movl %edx, %ecx
shll $0x1f, %ecx
orl %edx, %ecx
leal (%rax,%rcx), %edx
cmpl $0x1, %edx
adcl %eax, %ecx
movq %rcx, 0x28(%rsp)
movabsq $0x1400000000, %rax     # imm = 0x1400000000
movq %rax, 0x30(%rsp)
leaq 0xa8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x9a97(%rip), %rsi      # 0x1075c
leaq 0x9a99(%rip), %rdx      # 0x10765
leaq 0x98(%rsp), %rbx
movq %rbx, %rdi
callq 0xa4e2
movq %rbx, %rdi
callq 0x246c
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
je 0x6cf6
callq 0x21c0
leaq 0x88(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x9a64(%rip), %rsi      # 0x1076d
leaq 0x9a62(%rip), %rdx      # 0x10772
leaq 0x78(%rsp), %rbx
movq %rbx, %rdi
callq 0xa4e2
movq %rbx, %rdi
callq 0x2706
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x6d34
callq 0x21c0
xorps %xmm0, %xmm0
movq %rsp, %rbx
movaps %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movl $0x1e, %ebp
leaq 0x28(%rsp), %r14
leaq 0x30(%rsp), %r15
leaq 0x20(%rsp), %r12
movq %r15, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xb51c
movl %eax, 0x20(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x9e22
decl %ebp
jne 0x6d59
movq %rsp, %rdi
callq 0x9ed8
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
cmpq %rsi, %rdi
jae 0x6db5
movq %rsi, %rax
subq %rdi, %rax
shrq $0x2, %rax
xorl %edx, %edx
cmpl $0x2, %eax
jb 0x6db0
xorl %edx, %edx
movl %eax, %ecx
shrl %ecx
incl %edx
cmpl $0x3, %eax
movl %ecx, %eax
ja 0x6da5
callq 0xc3dd
movq %rsp, %rdi
callq 0x9ed8
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x6dcb
callq 0x21c0
leaq 0x68(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x998b(%rip), %rsi      # 0x10766
leaq 0x9990(%rip), %rdx      # 0x10772
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
callq 0xa4e2
movq %rbx, %rdi
callq 0x2706
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x6e06
callq 0x21c0
xorps %xmm0, %xmm0
movq %rsp, %rbx
movaps %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movl $0x1e, %r13d
leaq 0x28(%rsp), %r14
leaq 0x30(%rsp), %r15
leaq 0x20(%rsp), %r12
movq %r15, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xb51c
movl %eax, %ebp
movq %r15, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xb51c
movl %ebp, 0x20(%rsp)
movl %eax, 0x24(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa072
decl %r13d
jne 0x6e2c
movq (%rsp), %r13
cmpq 0x8(%rsp), %r13
je 0x6ec8
movq 0xf164(%rip), %rbx      # 0x15fd8
leaq 0x922e(%rip), %r14      # 0x100a9
leaq 0x963e(%rip), %r15      # 0x104c0
movl (%r13), %esi
movq %rbx, %rdi
callq 0x2110
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2220
movl 0x4(%r13), %esi
movq %r12, %rdi
callq 0x2110
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2220
addq $0x8, %r13
cmpq 0x8(%rsp), %r13
jne 0x6e82
movq 0xf109(%rip), %rdi      # 0x15fd8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0xf0ee(%rip), %rbx      # 0x15fd8
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
movq (%rsp), %r14
movq 0x8(%rsp), %rsi
cmpq %rsi, %r14
jae 0x6f19
movq %r14, %rdi
callq 0xc243
movq (%rsp), %r14
movq 0x8(%rsp), %rsi
cmpq %rsi, %r14
je 0x6f78
movq 0xf0b3(%rip), %r15      # 0x15fd8
leaq 0x917d(%rip), %r12      # 0x100a9
leaq 0x958d(%rip), %r13      # 0x104c0
movl (%r14), %esi
movq %r15, %rdi
callq 0x2110
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2220
movl 0x4(%r14), %esi
movq %rbp, %rdi
callq 0x2110
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x2220
addq $0x8, %r14
cmpq 0x8(%rsp), %r14
jne 0x6f33
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0xf042(%rip), %rdi      # 0x15fd8
callq 0x2030
movq %rax, %rdi
callq 0x2120
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x6fb1
callq 0x21c0
leaq 0x48(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x979b(%rip), %rsi      # 0x1075c
leaq 0x979d(%rip), %rdx      # 0x10765
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
callq 0xa4e2
movq %rbx, %rdi
callq 0x2650
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x6fec
callq 0x21c0
callq 0x277c
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x38(%rsp), %rdi
jmp 0x702c
movq %rax, %rbx
movq 0x58(%rsp), %rdi
jmp 0x702c
movq %rax, %rbx
movq 0x78(%rsp), %rdi
jmp 0x702c
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
jne 0x704b
jmp 0x7050
jmp 0x703f
jmp 0x703f
jmp 0x703f
jmp 0x703f
jmp 0x703f
jmp 0x703f
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7050
callq 0x21c0
movq %rbx, %rdi
callq 0x22e0