// File: /workspace/github_cpp_makefile_star2_O1/SethKasmann[P]clever-girl/src/test.cpp
// Function: ccrTest()
void ccrTest()
{
	for (int i = 0; i < ccrTotalTests; ++i)
	{
		State s(ccrFen[i]);
		history.clear();
		history.push(std::make_pair(nullMove, s.getKey()));
		SearchInfo si;
		si.moveTime = allocate_time(10000000, 0, 40);
		si.clock.set();
		// Clear the game list.
		ttable.clear();
		lineManager.clearPv();

		int score;
		for (int d = 1; d < 9; ++d)
		{
			score = scout_search(s, si, d, 0, Neg_inf, Pos_inf, true, false, true);
			if (si.quit)
				break;
		}

		Move pv = lineManager.getPvMove();

		std::cout << s;
		std::cout << "bestmove " << getSrc(pv) << toString(pv) << std::endl;
		std::cout << ccrResults[i] << '\n';
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x598, %rsp            # imm = 0x598
xorl %r14d, %r14d
leaq 0x90(%rsp), %rbx
leaq 0x30(%rsp), %r15
movl $0x1, %r13d
xorl %eax, %eax
movq %rax, 0x20(%rsp)
movq %rax, %rcx
shlq $0x5, %rcx
leaq 0x14a8fc(%rip), %rax    # 0x1637a0
movq %rcx, 0x28(%rsp)
leaq (%rax,%rcx), %rsi
movq %rbx, %rdi
callq 0x16640
leaq 0x1417e4(%rip), %r12    # 0x15a6a0
movq %r12, %rdi
callq 0x14a32
movq 0xa8(%rsp), %rax
movw $0x0, 0x30(%rsp)
movq %rax, 0x38(%rsp)
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x18ef4
movups 0x30(%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%r12)
jmp 0x18eff
movq %r12, %rdi
movq %r15, %rdx
callq 0x14b86
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movabsq $0x3200000000, %rax     # imm = 0x3200000000
movq %rax, 0x40(%rsp)
movq %r14, 0x4c(%rsp)
movb %r14b, 0x6a(%rsp)
leaq 0x58(%rsp), %rax
movq %r14, 0x28(%rax)
movups %xmm0, 0x18(%rax)
movb %r14b, 0x10(%rax)
movups %xmm0, (%rax)
movq $0x7a120, 0x58(%rsp)    # imm = 0x7A120
callq 0x4060
movq %rax, 0x60(%rsp)
leaq 0x14b6a2(%rip), %rcx    # 0x1645f0
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
cmpq %rcx, %rax
je 0x18f78
movq %r14, (%rax)
movw $0x0, 0x8(%rax)
movq %r14, 0xc(%rax)
movl $0x0, 0x14(%rax)
movb $0x1, 0x18(%rax)
addq $0x20, %rax
jmp 0x18f55
leaq 0x13c761(%rip), %rdi    # 0x1556e0
callq 0xf9b6
movl $0x1, %r12d
subq $0x8, %rsp
movq %rbx, %rdi
movq %r15, %rsi
movl %r12d, %edx
xorl %ecx, %ecx
movl $0xffff3cb0, %r8d       # imm = 0xFFFF3CB0
movl $0xc350, %r9d           # imm = 0xC350
pushq %r13
pushq $0x0
pushq %r13
callq 0x15537
addq $0x20, %rsp
cmpl $0x7, %r12d
ja 0x18fc4
incl %r12d
cmpb $0x0, 0x6a(%rsp)
je 0x18f8a
leaq 0x13c715(%rip), %rdi    # 0x1556e0
xorl %esi, %esi
callq 0xf96a
movl %eax, %r12d
movq 0xbfc4(%rip), %rdi      # 0x24fa0
movq %rbx, %rsi
callq 0x18888
movl $0x9, %edx
movq 0xbfb0(%rip), %rdi      # 0x24fa0
leaq 0x539b(%rip), %rsi      # 0x1e392
callq 0x4290
movl %r12d, %esi
andl $0x3f, %esi
movq 0xbf97(%rip), %rdi      # 0x24fa0
callq 0x4160
movq %rax, %rbp
movzwl %r12w, %esi
movq %rsp, %rdi
callq 0xfbab
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbp, %rdi
callq 0x4290
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4230
movsbl %al, %esi
movq %r12, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4170
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x19073
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4250
leaq 0x14aa46(%rip), %rax    # 0x163ac0
movq 0x28(%rsp), %rcx
movq (%rcx,%rax), %rsi
movq 0x8(%rcx,%rax), %rdx
movq 0xbf11(%rip), %rdi      # 0x24fa0
callq 0x4290
movb $0xa, (%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rsp, %rsi
callq 0x4290
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x190c2
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x4250
movq 0x20(%rsp), %rax
incq %rax
cmpq $0x19, %rax
jne 0x18e91
addq $0x598, %rsp            # imm = 0x598
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1910c
jmp 0x1910c
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1910f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4250
jmp 0x1910f
jmp 0x1910c
movq %rax, %rbx
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x19129
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x4250
movq %rbx, %rdi
callq 0x43b0
nopl (%rax)