// File: /workspace/github_cpp_makefile_star2_O3/ashlall[P]StreamStats/Test/Reservoir_test.cpp
// Function: quicktest()
void quicktest()
{
	ReservoirSampling a(1000);
	for(int i=1; i<=10000000; i++)
	{
		a.insert(i + 0.13416435);
	}

	cout << "0.1: "<<a.getQuantile(0.1) << endl;
	cout << "0.1: "<<a.getQuantile(0.2) << endl;
	cout << "0.3: "<<a.getQuantile(0.3) << endl;
	cout << "0.4: "<<a.getQuantile(0.4) << endl;
	cout << "median:" << a.getQuantile(0.5) << endl;
	cout << "0.6: "<<a.getQuantile(0.6) << endl;
	cout << "0.7: "<<a.getQuantile(0.7) << endl;
	cout << "0.8: "<<a.getQuantile(0.8) << endl;
	cout << "0.9: "<<a.getQuantile(0.9) << endl;
	cout << "1: "<<a.getQuantile(1) << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
leaq 0x323f(%rip), %rax      # 0x4d78
leaq -0x28(%rbp), %rbx
movq %rax, (%rbx)
movl $0x3e8, 0xc(%rbx)       # imm = 0x3E8
movl $0x1f40, %edi           # imm = 0x1F40
callq 0x1030
movq %rax, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
movsd 0x14a4(%rip), %xmm0     # 0x3008
movl $0x989680, %r14d        # imm = 0x989680
movsd %xmm0, -0x30(%rbp)
movsd -0x30(%rbp), %xmm0
addsd 0x14ac(%rip), %xmm0     # 0x3028
movq %rbx, %rdi
callq 0x1414
movsd -0x30(%rbp), %xmm0
addsd 0x1477(%rip), %xmm0     # 0x3008
decl %r14d
jne 0x1b6a
movq 0x343b(%rip), %rdi      # 0x4fd8
leaq 0x15ec(%rip), %rsi      # 0x3190
movl $0x5, %edx
callq 0x10f0
leaq -0x28(%rbp), %rdi
movsd 0x1476(%rip), %xmm0     # 0x3030
callq 0x146e
movq 0x3412(%rip), %rdi      # 0x4fd8
callq 0x1120
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1040
movq %rax, %rdi
callq 0x1080
movq 0x33dc(%rip), %rdi      # 0x4fd8
leaq 0x158d(%rip), %rsi      # 0x3190
movl $0x5, %edx
callq 0x10f0
leaq -0x28(%rbp), %rdi
movsd 0x141f(%rip), %xmm0     # 0x3038
callq 0x146e
movq 0x33b3(%rip), %rdi      # 0x4fd8
callq 0x1120
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1040
movq %rax, %rdi
callq 0x1080
movq 0x337d(%rip), %rdi      # 0x4fd8
leaq 0x1534(%rip), %rsi      # 0x3196
movl $0x5, %edx
callq 0x10f0
leaq -0x28(%rbp), %rdi
movsd 0x13c8(%rip), %xmm0     # 0x3040
callq 0x146e
movq 0x3354(%rip), %rdi      # 0x4fd8
callq 0x1120
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1040
movq %rax, %rdi
callq 0x1080
movq 0x331e(%rip), %rdi      # 0x4fd8
leaq 0x14db(%rip), %rsi      # 0x319c
movl $0x5, %edx
callq 0x10f0
leaq -0x28(%rbp), %rdi
movsd 0x1371(%rip), %xmm0     # 0x3048
callq 0x146e
movq 0x32f5(%rip), %rdi      # 0x4fd8
callq 0x1120
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1040
movq %rax, %rdi
callq 0x1080
movq 0x32bf(%rip), %rdi      # 0x4fd8
leaq 0x1482(%rip), %rsi      # 0x31a2
movl $0x7, %edx
callq 0x10f0
leaq -0x28(%rbp), %rdi
movsd 0x131a(%rip), %xmm0     # 0x3050
callq 0x146e
movq 0x3296(%rip), %rdi      # 0x4fd8
callq 0x1120
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1040
movq %rax, %rdi
callq 0x1080
movq 0x3260(%rip), %rdi      # 0x4fd8
leaq 0x142b(%rip), %rsi      # 0x31aa
movl $0x5, %edx
callq 0x10f0
leaq -0x28(%rbp), %rdi
movsd 0x12c3(%rip), %xmm0     # 0x3058
callq 0x146e
movq 0x3237(%rip), %rdi      # 0x4fd8
callq 0x1120
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1040
movq %rax, %rdi
callq 0x1080
movq 0x3201(%rip), %rdi      # 0x4fd8
leaq 0x13d2(%rip), %rsi      # 0x31b0
movl $0x5, %edx
callq 0x10f0
leaq -0x28(%rbp), %rdi
movsd 0x126c(%rip), %xmm0     # 0x3060
callq 0x146e
movq 0x31d8(%rip), %rdi      # 0x4fd8
callq 0x1120
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1040
movq %rax, %rdi
callq 0x1080
movq 0x31a2(%rip), %rdi      # 0x4fd8
leaq 0x1379(%rip), %rsi      # 0x31b6
movl $0x5, %edx
callq 0x10f0
leaq -0x28(%rbp), %rdi
movsd 0x1215(%rip), %xmm0     # 0x3068
callq 0x146e
movq 0x3179(%rip), %rdi      # 0x4fd8
callq 0x1120
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1040
movq %rax, %rdi
callq 0x1080
movq 0x3143(%rip), %rdi      # 0x4fd8
leaq 0x1320(%rip), %rsi      # 0x31bc
movl $0x5, %edx
callq 0x10f0
leaq -0x28(%rbp), %rdi
movsd 0x11be(%rip), %xmm0     # 0x3070
callq 0x146e
movq 0x311a(%rip), %rdi      # 0x4fd8
callq 0x1120
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1040
movq %rax, %rdi
callq 0x1080
movq 0x30e4(%rip), %rdi      # 0x4fd8
leaq 0x1297(%rip), %rsi      # 0x3192
movl $0x3, %edx
callq 0x10f0
leaq -0x28(%rbp), %rdi
movsd 0x10f7(%rip), %xmm0     # 0x3008
callq 0x146e
movq 0x30bb(%rip), %rdi      # 0x4fd8
callq 0x1120
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1040
movq %rax, %rdi
callq 0x1080
movq -0x18(%rbp), %rdi
addq $0x20, %rsp
testq %rdi, %rdi
je 0x1f62
popq %rbx
popq %r14
popq %rbp
jmp 0x1100
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq -0x18(%rbp), %rdi
testq %rdi, %rdi
je 0x1f78
callq 0x1100
movq %rbx, %rdi
callq 0x1140