// File: /workspace/github_cpp_makefile_star2_O1/leonn[P]neuralNet/data/test_analysis/source/analysis.cpp
// Function: main
int main(int argc, char const *argv[]){
	ifstream testFile;
	int tests_cases=0, success=0;

	testFile.open(argv[1]);

	stringstream ss;
	while (!testFile.eof()) {

	 	string line;
	    string label;
	    int target;
	    long double output;

	    getline(testFile, line);
	    if (line.length()<2)
	   		continue;
		getline(testFile, line);
		ss.str(line);
	    ss >> label;
	    if (label.compare("Target_Output:") != 0) {
	        abort();
	    }

	    ss >> target;

		getline(testFile, line);
		ss.str(line);
	    ss >> label;
	    if (label.compare("Output:") != 0) {
	        abort();
	    }
	    ss >> output;

		output=sqrt(output*output);
		if (target==(int)round(output,1))
	    	success++;

	    tests_cases++;
    }
    cout<<success<<" of "<<tests_cases<<endl;

    cout<<"Accuracy = "<<((double)success/(double)tests_cases)*100<<"%"<<endl;
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rsi, %rbx
leaq -0x420(%rbp), %r15
movq %r15, %rdi
callq 0x2110
movq 0x8(%rbx), %rsi
movq %r15, %rdi
movl $0x8, %edx
callq 0x20a0
leaq -0x218(%rbp), %rdi
callq 0x20c0
movq -0x420(%rbp), %rax
movq -0x18(%rax), %rcx
xorl %r12d, %r12d
testb $0x2, -0x400(%rbp,%rcx)
movl $0x0, %ebx
jne 0x256a
addq $-0x18, %rax
leaq -0x40(%rbp), %r13
leaq -0x60(%rbp), %r14
xorl %ebx, %ebx
xorl %r12d, %r12d
movq %r13, -0x50(%rbp)
xorl %ecx, %ecx
movq %rcx, -0x48(%rbp)
movb %cl, -0x40(%rbp)
movq %r14, -0x70(%rbp)
movq %rcx, -0x68(%rbp)
movb %cl, -0x60(%rbp)
movq (%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2100
movsbl %al, %edx
movq %r15, %rdi
leaq -0x50(%rbp), %rsi
callq 0x21b0
cmpq $0x2, -0x48(%rbp)
jb 0x2531
movq -0x420(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2100
movsbl %al, %edx
movq %r15, %rdi
leaq -0x50(%rbp), %rsi
callq 0x21b0
leaq -0x200(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x2160
leaq -0x218(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x2140
leaq -0x70(%rbp), %rdi
leaq 0xbc9(%rip), %rsi       # 0x3010
callq 0x2050
testl %eax, %eax
jne 0x267e
leaq -0x218(%rbp), %rdi
leaq -0x2c(%rbp), %rsi
callq 0x2090
movq -0x420(%rbp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2100
movsbl %al, %edx
movq %r15, %rdi
leaq -0x50(%rbp), %rsi
callq 0x21b0
leaq -0x200(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x2160
leaq -0x218(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x2140
leaq -0x70(%rbp), %rdi
leaq 0xb61(%rip), %rsi       # 0x3017
callq 0x2050
testl %eax, %eax
jne 0x267e
leaq -0x218(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x2130
fldt -0x90(%rbp)
fmul %st, %st(0)
fstpt (%rsp)
callq 0x2150
fld %st(0)
fstpt -0x90(%rbp)
movq %r15, %r14
movq %r13, %r15
movl %ebx, %r13d
movl %r12d, %ebx
movl -0x2c(%rbp), %r12d
fadds 0xb00(%rip)             # 0x3004
fstpt (%rsp)
callq 0x2070
fstpl -0x78(%rbp)
cvttsd2si -0x78(%rbp), %eax
xorl %ecx, %ecx
cmpl %eax, %r12d
movl %ebx, %r12d
movl %r13d, %ebx
movq %r15, %r13
movq %r14, %r15
leaq -0x60(%rbp), %r14
sete %cl
addl %ecx, %ebx
incl %r12d
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x253f
callq 0x20f0
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x254d
callq 0x20f0
movq -0x420(%rbp), %rax
movq -0x18(%rax), %rcx
addq $-0x18, %rax
testb $0x2, -0x400(%rbp,%rcx)
je 0x23b3
movq 0x2a67(%rip), %rdi      # 0x4fd8
movl %ebx, %r14d
movl %ebx, %esi
callq 0x2190
movq %rax, %rbx
leaq 0xa9a(%rip), %rsi       # 0x301f
movl $0x4, %edx
movq %rax, %rdi
callq 0x2120
movq %rbx, %rdi
movl %r12d, %esi
callq 0x2190
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2100
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
movq 0x2a0a(%rip), %rdi      # 0x4fd8
leaq 0xa4f(%rip), %rsi       # 0x3024
movl $0xb, %edx
callq 0x2120
cvtsi2sd %r14d, %xmm0
cvtsi2sd %r12d, %xmm1
divsd %xmm1, %xmm0
mulsd 0xa13(%rip), %xmm0      # 0x3008
movq 0x29dc(%rip), %rdi      # 0x4fd8
callq 0x2180
movq %rax, %rbx
leaq 0xa25(%rip), %rsi       # 0x3030
movl $0x1, %edx
movq %rax, %rdi
callq 0x2120
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2100
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
movq 0x297a(%rip), %rsi      # 0x4fc0
leaq -0x218(%rbp), %rdi
callq 0x20d0
leaq -0x198(%rbp), %rdi
callq 0x2060
leaq -0x420(%rbp), %rdi
callq 0x2040
xorl %eax, %eax
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2080
jmp 0x2685
movq %rax, %rbx
jmp 0x26cd
movq %rax, %rbx
jmp 0x26ae
movq %rax, %rbx
movq -0x70(%rbp), %rdi
cmpq %r14, %rdi
je 0x26a0
callq 0x20f0
movq -0x50(%rbp), %rdi
cmpq %r13, %rdi
je 0x26ae
callq 0x20f0
movq 0x290b(%rip), %rsi      # 0x4fc0
leaq -0x218(%rbp), %rdi
callq 0x20d0
leaq -0x198(%rbp), %rdi
callq 0x2060
leaq -0x420(%rbp), %rdi
callq 0x2040
movq %rbx, %rdi
callq 0x21a0