// File: 8igMac[P]random-forest/src/decision_tree.cpp
// Function: analyser::print_result(int)
void analyser::print_result(int num_inst)
{
	int trainSize = TRAINPERCENT * (num_inst/100);
	cout << "tran size: " << trainSize << endl;
	cout << "validation size: " << num_inst-trainSize << endl;
	cout << "number of trees: " << NUMTREE << endl;
	cout << "attribute bagging: " << ATTRBAGGING << endl;
	cout << "decision tree max depth:  : " << MAXDEPTH << endl;
	cout << "mininum samples of a node: " << MINSAMPLE << endl;
	cout << endl; 

	for (int i=0; i<(int)formatTb.size(); i++)
	{
		cout << formatTb.at(i) << "\t"
				 << "precision: " << get_precision(i) << " "
				 << "recall: " << get_recall(i) << "\n" << endl;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movl -0xc(%rbp), %eax
movl $0x64, %ecx
cltd
idivl %ecx
imull $0x46, %eax, %eax
movl %eax, -0x10(%rbp)
movq 0xf9a1(%rip), %rdi      # 0x16fd0
leaq 0x7a83(%rip), %rsi      # 0xf0b9
callq 0x2160
movq %rax, %rdi
movl -0x10(%rbp), %esi
callq 0x2250
movq %rax, %rdi
movq 0xf970(%rip), %rsi      # 0x16fc0
callq 0x2190
movq 0xf974(%rip), %rdi      # 0x16fd0
leaq 0x7a62(%rip), %rsi      # 0xf0c5
callq 0x2160
movq %rax, %rdi
movl -0xc(%rbp), %esi
subl -0x10(%rbp), %esi
callq 0x2250
movq %rax, %rdi
movq 0xf940(%rip), %rsi      # 0x16fc0
callq 0x2190
movq 0xf944(%rip), %rdi      # 0x16fd0
leaq 0x7a44(%rip), %rsi      # 0xf0d7
callq 0x2160
movq %rax, %rdi
movl $0x1e, %esi
callq 0x2250
movq %rax, %rdi
movq 0xf911(%rip), %rsi      # 0x16fc0
callq 0x2190
movq 0xf915(%rip), %rdi      # 0x16fd0
leaq 0x7a27(%rip), %rsi      # 0xf0e9
callq 0x2160
movq %rax, %rdi
movl $0x2, %esi
callq 0x2250
movq %rax, %rdi
movq 0xf8e2(%rip), %rsi      # 0x16fc0
callq 0x2190
movq 0xf8e6(%rip), %rdi      # 0x16fd0
leaq 0x7a0c(%rip), %rsi      # 0xf0fd
callq 0x2160
movq %rax, %rdi
movl $0xc, %esi
callq 0x2250
movq %rax, %rdi
movq 0xf8b3(%rip), %rsi      # 0x16fc0
callq 0x2190
movq 0xf8b7(%rip), %rdi      # 0x16fd0
leaq 0x79fa(%rip), %rsi      # 0xf11a
callq 0x2160
movq %rax, %rdi
movl $0x5, %esi
callq 0x2250
movq %rax, %rdi
movq 0xf884(%rip), %rsi      # 0x16fc0
callq 0x2190
movq 0xf888(%rip), %rdi      # 0x16fd0
movq 0xf871(%rip), %rsi      # 0x16fc0
callq 0x2190
movl $0x0, -0x14(%rbp)
movq -0x20(%rbp), %rdi
movl -0x14(%rbp), %eax
movl %eax, -0x24(%rbp)
addq $0x18, %rdi
callq 0x3ac0
movq %rax, %rcx
movl -0x24(%rbp), %eax
cmpl %ecx, %eax
jge 0x7836
movq -0x20(%rbp), %rdi
addq $0x18, %rdi
movslq -0x14(%rbp), %rsi
callq 0x7d50
movq %rax, %rsi
movq 0xf839(%rip), %rdi      # 0x16fd0
callq 0x2150
movq %rax, %rdi
leaq 0x7990(%rip), %rsi      # 0xf136
callq 0x2160
movq %rax, %rdi
leaq 0x7983(%rip), %rsi      # 0xf138
callq 0x2160
movq -0x20(%rbp), %rdi
movq %rax, -0x38(%rbp)
movl -0x14(%rbp), %esi
callq 0x74a0
movq -0x38(%rbp), %rdi
callq 0x2110
movq %rax, %rdi
leaq 0x7875(%rip), %rsi      # 0xf052
callq 0x2160
movq %rax, %rdi
leaq 0x7958(%rip), %rsi      # 0xf144
callq 0x2160
movq -0x20(%rbp), %rdi
movq %rax, -0x30(%rbp)
movl -0x14(%rbp), %esi
callq 0x7550
movq -0x30(%rbp), %rdi
callq 0x2110
movq %rax, %rdi
leaq 0x7939(%rip), %rsi      # 0xf14d
callq 0x2160
movq %rax, %rdi
movq 0xf79d(%rip), %rsi      # 0x16fc0
callq 0x2190
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x775b
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)