// File: /workspace/github_cpp_makefile_star2_O1/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
movabsq $0x200000005, %rdx      # imm = 0x200000005
movq %rcx, %rax
mulq %rdx
movq %rdx, %rax
shlq $0x1f, %rax
subq %rax, %rdx
leaq (%rcx,%rdx), %rax
cmpq $0x1, %rax
adcq %rcx, %rdx
movq %rdx, 0x28(%rsp)
movabsq $0x1400000000, %rax     # imm = 0x1400000000
movq %rax, 0x30(%rsp)
leaq 0xa8(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x99c0(%rip), %rsi      # 0x1075c
leaq 0x99c2(%rip), %rdx      # 0x10765
leaq 0x98(%rsp), %rbx
movq %rbx, %rdi
callq 0xa568
movq %rbx, %rdi
callq 0x246c
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
je 0x6dcd
callq 0x21c0
leaq 0x88(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x998d(%rip), %rsi      # 0x1076d
leaq 0x998b(%rip), %rdx      # 0x10772
leaq 0x78(%rsp), %rbx
movq %rbx, %rdi
callq 0xa568
movq %rbx, %rdi
callq 0x270c
movq 0x78(%rsp), %rdi
cmpq %r14, %rdi
je 0x6e0b
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 0xb5c6
movl %eax, 0x20(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x9eb8
decl %ebp
jne 0x6e30
movq %rsp, %rdi
callq 0x9f6a
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
cmpq %rsi, %rdi
jae 0x6e8c
movq %rsi, %rax
subq %rdi, %rax
shrq $0x2, %rax
xorl %edx, %edx
cmpl $0x2, %eax
jb 0x6e87
xorl %edx, %edx
movl %eax, %ecx
shrl %ecx
incl %edx
cmpl $0x3, %eax
movl %ecx, %eax
ja 0x6e7c
callq 0xc467
movq %rsp, %rdi
callq 0x9f6a
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x6ea2
callq 0x21c0
leaq 0x68(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x98b4(%rip), %rsi      # 0x10766
leaq 0x98b9(%rip), %rdx      # 0x10772
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
callq 0xa568
movq %rbx, %rdi
callq 0x270c
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x6edd
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 0xb5c6
movl %eax, %ebp
movq %r15, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xb5c6
movl %ebp, 0x20(%rsp)
movl %eax, 0x24(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa104
decl %r13d
jne 0x6f03
movq (%rsp), %r13
cmpq 0x8(%rsp), %r13
je 0x6f9f
movq 0xf08d(%rip), %rbx      # 0x15fd8
leaq 0x9157(%rip), %r14      # 0x100a9
leaq 0x9567(%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 0x6f59
movq 0xf032(%rip), %rdi      # 0x15fd8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0xf017(%rip), %rbx      # 0x15fd8
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
cmpq %rsi, %rdi
jae 0x6fe4
callq 0xc2c7
movq (%rsp), %rbp
cmpq 0x8(%rsp), %rbp
je 0x7048
movq 0xefe2(%rip), %r14      # 0x15fd8
leaq 0x90ac(%rip), %r15      # 0x100a9
leaq 0x94bc(%rip), %r12      # 0x104c0
movl (%rbp), %esi
movq %r14, %rdi
callq 0x2110
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2220
movl 0x4(%rbp), %esi
movq %r13, %rdi
callq 0x2110
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2220
addq $0x8, %rbp
cmpq 0x8(%rsp), %rbp
jne 0x7004
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21e0
movsbl %al, %esi
movq 0xef72(%rip), %rdi      # 0x15fd8
callq 0x2030
movq %rax, %rdi
callq 0x2120
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7081
callq 0x21c0
leaq 0x48(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x96cb(%rip), %rsi      # 0x1075c
leaq 0x96cd(%rip), %rdx      # 0x10765
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
callq 0xa568
movq %rbx, %rdi
callq 0x2656
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x70bc
callq 0x21c0
callq 0x2782
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x38(%rsp), %rdi
jmp 0x70fc
movq %rax, %rbx
movq 0x58(%rsp), %rdi
jmp 0x70fc
movq %rax, %rbx
movq 0x78(%rsp), %rdi
jmp 0x70fc
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
jne 0x711b
jmp 0x7120
jmp 0x710f
jmp 0x710f
jmp 0x710f
jmp 0x710f
jmp 0x710f
jmp 0x710f
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7120
callq 0x21c0
movq %rbx, %rdi
callq 0x22e0