// File: richardposner[P]BioNetFit2/src/code/Data.cpp
// Function: Data::logTransformData()
void Data::logTransformData() {
	for(map<string,map<double,double> >::iterator c = dataCurrent->begin(); c != dataCurrent->end(); ++c) {
		for(map<double,double>::iterator v = c->second.begin(); v != c->second.end(); ++v) {
			if (v->second == 0) {
				swarm_->outputError("You chose to log transform simulation output, but the first value in the column '" + c->first + "' is 0. We cannot take the log of 0.");
			}
			else if (std::isnan(v->second)) {
				dataLogTransformed_[c->first][v->first] = nan("1");
				continue;
			}
			dataLogTransformed_[c->first][v->first] = log10(v->second)/log10(swarm_->options.logTransformSimData);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
movq (%rax), %rdi
callq 0x8e350
movq %rax, -0x10(%rbp)
movq -0x80(%rbp), %rax
movq (%rax), %rdi
callq 0x8e3b0
movq %rax, -0x18(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x8e380
testb $0x1, %al
jne 0x8d529
jmp 0x8d77c
leaq -0x10(%rbp), %rdi
callq 0x8e4c0
movq %rax, %rdi
addq $0x20, %rdi
callq 0x8e4e0
movq %rax, -0x20(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x8e4c0
movq %rax, %rdi
addq $0x20, %rdi
callq 0x8e540
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x8e510
testb $0x1, %al
jne 0x8d571
jmp 0x8d76c
leaq -0x20(%rbp), %rdi
callq 0x8e590
movsd 0x8(%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x8d63a
jp 0x8d63a
movq -0x80(%rbp), %rax
movq 0x150(%rax), %rax
movq %rax, -0x90(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x8e4c0
movq %rax, %rdx
leaq 0x14c0c3(%rip), %rsi    # 0x1d967a
leaq -0x68(%rbp), %rdi
movq %rdi, -0x88(%rbp)
callq 0x44240
movq -0x88(%rbp), %rsi
leaq 0x14c0f7(%rip), %rdx    # 0x1d96cc
leaq -0x48(%rbp), %rdi
callq 0x441f0
jmp 0x8d5e0
movq -0x90(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0xeada0
jmp 0x8d5f2
leaq -0x48(%rbp), %rdi
callq 0x311e8
leaq -0x68(%rbp), %rdi
callq 0x311e8
jmp 0x8d6c2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x8d62c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x311e8
leaq -0x68(%rbp), %rdi
callq 0x311e8
jmp 0x8d785
leaq -0x20(%rbp), %rdi
callq 0x8e590
movsd 0x8(%rax), %xmm0
callq 0x8e570
testb $0x1, %al
jne 0x8d653
jmp 0x8d6c0
leaq 0x157824(%rip), %rdi    # 0x1e4e7e
callq 0x2fd70
movq -0x80(%rbp), %rax
movsd %xmm0, -0x98(%rbp)
addq $0xf0, %rax
movq %rax, -0xa8(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x8e4c0
movq -0xa8(%rbp), %rdi
movq %rax, %rsi
callq 0x8e190
movq %rax, -0xa0(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x8e590
movq -0xa0(%rbp), %rdi
movq %rax, %rsi
callq 0x8e610
movsd -0x98(%rbp), %xmm0
movsd %xmm0, (%rax)
jmp 0x8d75e
jmp 0x8d6c2
leaq -0x20(%rbp), %rdi
callq 0x8e590
movsd 0x8(%rax), %xmm0
callq 0x2fd10
movq -0x80(%rbp), %rax
movsd %xmm0, -0xc8(%rbp)
movq 0x150(%rax), %rax
movl 0x1640(%rax), %edi
callq 0x8e7c0
movq -0x80(%rbp), %rax
movaps %xmm0, %xmm1
movsd -0xc8(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0xb0(%rbp)
addq $0xf0, %rax
movq %rax, -0xc0(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x8e4c0
movq -0xc0(%rbp), %rdi
movq %rax, %rsi
callq 0x8e190
movq %rax, -0xb8(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x8e590
movq -0xb8(%rbp), %rdi
movq %rax, %rsi
callq 0x8e610
movsd -0xb0(%rbp), %xmm0
movsd %xmm0, (%rax)
leaq -0x20(%rbp), %rdi
callq 0x8e5e0
jmp 0x8d542
jmp 0x8d76e
leaq -0x10(%rbp), %rdi
callq 0x8e6f0
jmp 0x8d503
addq $0xd0, %rsp
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x30170
nop