// File: /workspace/github_cpp_makefile_star2_O2/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), %r14
movq %r14, %rdi
callq 0x1100
movq 0x8(%rbx), %rsi
pushq $0x8
popq %rdx
movq %r14, %rdi
callq 0x10b0
leaq -0x218(%rbp), %rdi
callq 0x10c0
leaq -0x68(%rbp), %r12
leaq -0x40(%rbp), %r15
xorl %ebx, %ebx
leaq -0x78(%rbp), %r13
movl $0x0, -0x2c(%rbp)
xorl %r14d, %r14d
movq -0x420(%rbp), %rax
movq -0x18(%rax), %rax
testb $0x2, -0x400(%rbp,%rax)
jne 0x14b0
movq %r12, -0x78(%rbp)
andq $0x0, -0x70(%rbp)
movb %bl, -0x68(%rbp)
movq %r15, -0x50(%rbp)
andq $0x0, -0x48(%rbp)
movb %bl, -0x40(%rbp)
leaq -0x420(%rbp), %rdi
movq %r13, %rsi
callq 0x1030
cmpq $0x2, -0x70(%rbp)
jb 0x149a
leaq -0x420(%rbp), %rdi
movq %r13, %rsi
callq 0x1030
leaq -0x200(%rbp), %rdi
movq %r13, %rsi
callq 0x1130
leaq -0x218(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x1120
leaq -0x50(%rbp), %rdi
leaq 0xc35(%rip), %rsi       # 0x2010
callq 0x1050
testl %eax, %eax
jne 0x1556
leaq -0x218(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x10a0
leaq -0x420(%rbp), %rdi
movq %r13, %rsi
callq 0x1030
leaq -0x200(%rbp), %rdi
movq %r13, %rsi
callq 0x1130
leaq -0x218(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x1120
leaq -0x50(%rbp), %rdi
leaq 0xbe6(%rip), %rsi       # 0x2017
callq 0x1050
testl %eax, %eax
jne 0x1556
leaq -0x218(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x1110
fldt -0x90(%rbp)
fmul %st, %st(0)
fsqrt
movq %r15, %rbx
movq %r12, %r15
movl %r14d, %r12d
movl -0x30(%rbp), %r14d
fadds 0xb96(%rip)             # 0x2004
fstpt (%rsp)
callq 0x1080
fstpl -0x58(%rbp)
cvttsd2si -0x58(%rbp), %eax
xorl %ecx, %ecx
cmpl %eax, %r14d
movl %r12d, %r14d
movq %r15, %r12
movq %rbx, %r15
movl $0x0, %ebx
sete %cl
addl %ecx, %r14d
incl -0x2c(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x1060
movq %r13, %rdi
callq 0x1060
jmp 0x1357
movq 0x2b21(%rip), %rdi      # 0x3fd8
movl %r14d, %esi
callq 0x1160
movl -0x2c(%rbp), %ebx
leaq 0xb56(%rip), %rsi       # 0x201f
movq %rax, %rdi
callq 0x10f0
movq %rax, %rdi
movl %ebx, %esi
callq 0x1160
movq %rax, %rdi
callq 0x1070
movq 0x2aee(%rip), %rdi      # 0x3fd8
leaq 0xb33(%rip), %rsi       # 0x2024
callq 0x10f0
cvtsi2sd %r14d, %xmm0
cvtsi2sd %ebx, %xmm1
divsd %xmm1, %xmm0
mulsd 0xafd(%rip), %xmm0      # 0x2008
movq %rax, %rdi
callq 0x1150
leaq 0xb16(%rip), %rsi       # 0x2030
movq %rax, %rdi
callq 0x10f0
movq %rax, %rdi
callq 0x1070
leaq -0x218(%rbp), %rdi
callq 0x10d0
leaq -0x420(%rbp), %rdi
callq 0x1040
xorl %eax, %eax
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1090
jmp 0x155d
movq %rax, %rbx
jmp 0x1588
movq %rax, %rbx
jmp 0x157c
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x1060
leaq -0x78(%rbp), %rdi
callq 0x1060
leaq -0x218(%rbp), %rdi
callq 0x10d0
leaq -0x420(%rbp), %rdi
callq 0x1040
movq %rbx, %rdi
callq 0x1170