// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
leaq 0x31b6(%rip), %r14      # 0x4d78
leaq -0x30(%rbp), %rbx
movq %r14, (%rbx)
movl $0x3e8, 0xc(%rbx)       # imm = 0x3E8
movl $0x1f40, %edi           # imm = 0x1F40
callq 0x1030
movq %rax, 0x10(%rbx)
movl $0x0, 0x8(%rbx)
movsd 0x141b(%rip), %xmm0     # 0x3008
movl $0x989680, %r15d        # imm = 0x989680
movsd %xmm0, -0x38(%rbp)
movsd -0x38(%rbp), %xmm0
addsd 0x1423(%rip), %xmm0     # 0x3028
movq %rbx, %rdi
callq 0x141a
movsd -0x38(%rbp), %xmm0
addsd 0x13ee(%rip), %xmm0     # 0x3008
decl %r15d
jne 0x1bf3
movq 0x33b2(%rip), %rdi      # 0x4fd8
leaq 0x1563(%rip), %rsi      # 0x3190
movl $0x5, %edx
callq 0x10f0
leaq -0x30(%rbp), %rdi
movsd 0x13ed(%rip), %xmm0     # 0x3030
callq 0x1474
movq 0x3389(%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 0x3353(%rip), %rdi      # 0x4fd8
leaq 0x1504(%rip), %rsi      # 0x3190
movl $0x5, %edx
callq 0x10f0
leaq -0x30(%rbp), %rdi
movsd 0x1396(%rip), %xmm0     # 0x3038
callq 0x1474
movq 0x332a(%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 0x32f4(%rip), %rdi      # 0x4fd8
leaq 0x14ab(%rip), %rsi      # 0x3196
movl $0x5, %edx
callq 0x10f0
leaq -0x30(%rbp), %rdi
movsd 0x133f(%rip), %xmm0     # 0x3040
callq 0x1474
movq 0x32cb(%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 0x3295(%rip), %rdi      # 0x4fd8
leaq 0x1452(%rip), %rsi      # 0x319c
movl $0x5, %edx
callq 0x10f0
leaq -0x30(%rbp), %rdi
movsd 0x12e8(%rip), %xmm0     # 0x3048
callq 0x1474
movq 0x326c(%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 0x3236(%rip), %rdi      # 0x4fd8
leaq 0x13f9(%rip), %rsi      # 0x31a2
movl $0x7, %edx
callq 0x10f0
leaq -0x30(%rbp), %rdi
movsd 0x1291(%rip), %xmm0     # 0x3050
callq 0x1474
movq 0x320d(%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 0x31d7(%rip), %rdi      # 0x4fd8
leaq 0x13a2(%rip), %rsi      # 0x31aa
movl $0x5, %edx
callq 0x10f0
leaq -0x30(%rbp), %rdi
movsd 0x123a(%rip), %xmm0     # 0x3058
callq 0x1474
movq 0x31ae(%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 0x3178(%rip), %rdi      # 0x4fd8
leaq 0x1349(%rip), %rsi      # 0x31b0
movl $0x5, %edx
callq 0x10f0
leaq -0x30(%rbp), %rdi
movsd 0x11e3(%rip), %xmm0     # 0x3060
callq 0x1474
movq 0x314f(%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 0x3119(%rip), %rdi      # 0x4fd8
leaq 0x12f0(%rip), %rsi      # 0x31b6
movl $0x5, %edx
callq 0x10f0
leaq -0x30(%rbp), %rdi
movsd 0x118c(%rip), %xmm0     # 0x3068
callq 0x1474
movq 0x30f0(%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 0x30ba(%rip), %rdi      # 0x4fd8
leaq 0x1297(%rip), %rsi      # 0x31bc
movl $0x5, %edx
callq 0x10f0
leaq -0x30(%rbp), %rdi
movsd 0x1135(%rip), %xmm0     # 0x3070
callq 0x1474
movq 0x3091(%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 0x305b(%rip), %rdi      # 0x4fd8
leaq 0x120e(%rip), %rsi      # 0x3192
movl $0x3, %edx
callq 0x10f0
leaq -0x30(%rbp), %rdi
movsd 0x106e(%rip), %xmm0     # 0x3008
callq 0x1474
movq 0x3032(%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 %r14, -0x30(%rbp)
movq -0x20(%rbp), %rdi
addq $0x28, %rsp
testq %rdi, %rdi
je 0x1ff1
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1100
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r14, -0x30(%rbp)
movq -0x20(%rbp), %rdi
testq %rdi, %rdi
je 0x200d
callq 0x1100
movq %rbx, %rdi
callq 0x1140