// File: UCBASiCS[P]SPRIGHT/src/experimentoutput.cpp
// Function: ExperimentOutput::setGlobalResultsFigures()
void ExperimentOutput::setGlobalResultsFigures()
{
    averageMSEerrorAmplitude    = 0;
    maxMSEerrorAmplitude        = 0;
    averageMissedLocationsNb    = 0;
    maxMissedLocationsNb        = 0;
    averageFalseDetectionsNb    = 0;
    maxFalseDetectionsNb        = 0;
    averageMSEerror             = 0;
    maxMSEerror                 = 0;
    int falseDetectionsNb       = 0;
    int missedLocationsNb       = 0;

    setAverageAndMax(MSEerrorsAmplitude, averageMSEerrorAmplitude, maxMSEerrorAmplitude);
    setAverageAndMax(missedLocationsNbs, averageMissedLocationsNb, maxMissedLocationsNb, &missedLocationsNb);
    setAverageAndMax(falseDetectionsNbs, averageFalseDetectionsNb, maxFalseDetectionsNb, &falseDetectionsNb);
    setAverageAndMax(MSEerrors, averageMSEerror, maxMSEerror);

    probabilityOfFalseDetection = ((ffast_real) falseDetectionsNb)/ config->getIterations();
    probabilityOfMissedLocation = ((ffast_real) missedLocationsNb)/ config->getIterations();
    probabilityOfBinningFailure = ((ffast_real) binningFailuresNb)/ config->getIterations();
    probabilityOfFullRecovery = ((ffast_real) fullRecoveriesNb)/ config->getIterations();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x120(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0x128(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0x110(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0x118(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0x100(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0x108(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0x130(%rdi)
xorps %xmm0, %xmm0
movsd %xmm0, 0x138(%rdi)
movl $0x0, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movq %rdi, %rsi
addq $0xe0, %rsi
movq %rdi, %rdx
addq $0x120, %rdx            # imm = 0x120
movq %rdi, %rcx
addq $0x128, %rcx            # imm = 0x128
xorl %eax, %eax
movl %eax, %r8d
callq 0x17640
movq -0x18(%rbp), %rdi
movq %rdi, %rsi
addq $0x70, %rsi
movq %rdi, %rdx
addq $0x110, %rdx            # imm = 0x110
movq %rdi, %rcx
addq $0x118, %rcx            # imm = 0x118
leaq -0x10(%rbp), %r8
callq 0x17780
movq -0x18(%rbp), %rdi
movq %rdi, %rsi
addq $0x58, %rsi
movq %rdi, %rdx
addq $0x100, %rdx            # imm = 0x100
movq %rdi, %rcx
addq $0x108, %rcx            # imm = 0x108
leaq -0xc(%rbp), %r8
callq 0x17780
movq -0x18(%rbp), %rdi
movq %rdi, %rsi
addq $0x88, %rsi
movq %rdi, %rdx
addq $0x130, %rdx            # imm = 0x130
movq %rdi, %rcx
addq $0x138, %rcx            # imm = 0x138
xorl %eax, %eax
movl %eax, %r8d
callq 0x17640
movq -0x18(%rbp), %rax
cvtsi2sdl -0xc(%rbp), %xmm0
movsd %xmm0, -0x38(%rbp)
movq 0x10(%rax), %rdi
callq 0xe980
movsd -0x38(%rbp), %xmm0
movl %eax, %ecx
movq -0x18(%rbp), %rax
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x140(%rax)
cvtsi2sdl -0x10(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movq 0x10(%rax), %rdi
callq 0xe980
movsd -0x30(%rbp), %xmm0
movl %eax, %ecx
movq -0x18(%rbp), %rax
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x148(%rax)
cvtsi2sdl 0xd8(%rax), %xmm0
movsd %xmm0, -0x28(%rbp)
movq 0x10(%rax), %rdi
callq 0xe980
movsd -0x28(%rbp), %xmm0
movl %eax, %ecx
movq -0x18(%rbp), %rax
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x150(%rax)
cvtsi2sdl 0xf8(%rax), %xmm0
movsd %xmm0, -0x20(%rbp)
movq 0x10(%rax), %rdi
callq 0xe980
movsd -0x20(%rbp), %xmm0
movl %eax, %ecx
movq -0x18(%rbp), %rax
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x158(%rax)
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)