// File: /workspace/github_cpp_makefile_star2_O3/big-data-lab-team[P]OrpailleCC/./src/mondrian_coarse.hpp
// Function: CoarseMondrianForest<double, funct, KappaMetrics<2, false>, 4, 2, 6000>::scory(double const*, int)
void scory(feature_type const* features, int const label){
	double scores[label_count];
	double sum_scores[label_count];

	update_posterior_count();
	for(int i = 0; i < tree_count; ++i){
		for(int j = 0; j < label_count; ++j)
			scores[j] = 0;
		predict_tree(features, i, scores);
		int const prediction = Utils::index_max(scores, label_count);
		cout << "Loutre:" << total_count << "," << i << "," << label << "," << prediction;
		for(int j = 0; j < label_count; ++j)
			cout << "," << scores[j];
		cout << endl;
		for(int j = 0; j < label_count; ++j)
			sum_scores[j] = scores[j];
	}
	int const prediction = Utils::index_max(sum_scores, label_count);
	cout << "Loutre:" << total_count << "," << -1 << "," << label << "," << prediction;
	for(int j = 0; j < label_count; ++j)
		cout << "," << sum_scores[j];
	cout << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %r12d
movq %rsi, %rbx
movq %rdi, %r14
callq 0x1d14
cmpl $0x0, 0x17dc(%r14)
jle 0x199b
xorl %ebp, %ebp
movq 0x678d(%rip), %r13      # 0x7fd8
movl %r12d, 0x8(%rsp)
movq %rbx, 0x20(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
movl %ebp, %edx
leaq 0x10(%rsp), %rcx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x1d68
movsd 0x18(%rsp), %xmm0
xorl %ebx, %ebx
ucomisd 0x10(%rsp), %xmm0
seta %bl
movl $0x7, %edx
movq %r13, %rdi
leaq 0x4863(%rip), %rsi      # 0x60f8
callq 0x1090
movl 0x17b4(%r14), %esi
movq %r13, %rdi
callq 0x1050
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %r12
leaq 0x4842(%rip), %r14      # 0x6100
movq %r14, %rsi
callq 0x1090
movq %r15, %rdi
movl %ebp, %esi
callq 0x10c0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x1090
movq %r15, %rdi
movl 0x8(%rsp), %esi
callq 0x10c0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x1090
movq %r15, %rdi
movl %ebx, %esi
movq 0x20(%rsp), %rbx
callq 0x10c0
movl $0x1, %edx
movq %r13, %rdi
movq %r14, %rsi
callq 0x1090
movsd 0x10(%rsp), %xmm0
movq %r13, %rdi
callq 0x10b0
movl $0x1, %edx
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %r14
callq 0x1090
movsd 0x18(%rsp), %xmm0
movq %r13, %rdi
callq 0x10b0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x1080
movsbl %al, %esi
movq %r13, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1060
incl %ebp
cmpl 0x17dc(%r12), %ebp
jl 0x1855
movsd 0x10(%rsp), %xmm1
movsd 0x18(%rsp), %xmm0
movl 0x8(%rsp), %r12d
jmp 0x199b
movsd %xmm1, 0x20(%rsp)
movsd %xmm0, 0x8(%rsp)
xorl %ebp, %ebp
ucomisd %xmm1, %xmm0
seta %bpl
movq 0x6620(%rip), %r15      # 0x7fd8
leaq 0x4739(%rip), %rsi      # 0x60f8
movl $0x7, %edx
movq %r15, %rdi
callq 0x1090
movl 0x17b4(%r14), %esi
movq %r15, %rdi
callq 0x1050
movq %rax, %rbx
leaq 0x471b(%rip), %r14      # 0x6100
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x1090
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x10c0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x1090
movq %rbx, %rdi
movl %r12d, %esi
callq 0x10c0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x1090
movq %rbx, %rdi
movl %ebp, %esi
callq 0x10c0
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1090
movq %r15, %rdi
movsd 0x20(%rsp), %xmm0
callq 0x10b0
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1090
movq %r15, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x10b0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x1080
movsbl %al, %esi
movq %r15, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1060
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop