// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/log.cpp
// Function: maxPreprocessor::Log::timePlan(double, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Log::timePlan(double timeLimit_, string useTechniques) {
	eTime.resize(30);
	// magic constants
	eTime[Technique::BCE] = 0.05;
	eTime[Technique::UP] = 0.03;
	eTime[Technique::BVE] = 0.3;
	eTime[Technique::SE] = 0.2;
	eTime[Technique::SSR] = 0.15;
	eTime[Technique::SLE] = 0.03;
	eTime[Technique::BCR] = 0.03;
	eTime[Technique::SIE] = 0.05;
	eTime[Technique::EE] = 0.15;
	eTime[Technique::BVA] = 0.15;
	eTime[Technique::GSLE] = 0.08;
	eTime[Technique::FLP] = 0.15;
	eTime[Technique::UH] = 0.15;
	eTime[Technique::LS] = 0.15;
	set<Technique> useT;
	for (char c : useTechniques) {
		if (c == '[' || c == ']' || c == '#') continue;
		useT.insert(charToTechnique(c));
	}
	if (timeLimit_ < 0) timeLimit_ = 0;
	timeLimit += timeLimit_;
	double useTotal = 0;
	for (Technique t : useT) {
		assert(t < eTime.size());
		useTotal += eTime[t];
	}
	tTimeLimit.resize(eTime.size());
	for (Technique t : useT) {
		if (useTotal < 1e-9) tTimeLimit[t] = 0;
		else tTimeLimit[t] += timeLimit_*eTime[t]/useTotal;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movsd %xmm0, (%rsp)
movq %rdi, %rbx
movl $0x1e, %esi
callq 0x29ad4
movq (%rbx), %rax
movaps 0x103c1(%rip), %xmm0    # 0x398d0
movups %xmm0, 0x8(%rax)
movaps 0x103c6(%rip), %xmm0    # 0x398e0
movups %xmm0, 0x18(%rax)
movaps 0x103cb(%rip), %xmm0    # 0x398f0
movups %xmm0, 0x28(%rax)
movaps 0x103d0(%rip), %xmm0    # 0x39900
movups %xmm0, 0x38(%rax)
movaps 0x103d5(%rip), %xmm0    # 0x39910
movups %xmm0, 0x48(%rax)
movapd 0x103d9(%rip), %xmm1    # 0x39920
movupd %xmm1, 0x58(%rax)
movups %xmm0, 0x68(%rax)
leaq 0x20(%rsp), %r12
movl $0x0, (%r12)
xorl %eax, %eax
movq %rax, 0x8(%r12)
movq %r12, 0x10(%r12)
movq %r12, 0x18(%r12)
movq %rax, 0x20(%r12)
movq 0x8(%r14), %r13
testq %r13, %r13
je 0x29634
movq (%r14), %rbp
xorl %r14d, %r14d
movabsq $0x500000000000001, %r15 # imm = 0x500000000000001
movsd (%rsp), %xmm0
movzbl (%rbp,%r14), %eax
leal -0x23(%rax), %ecx
cmpl $0x3a, %ecx
ja 0x295a9
btq %rcx, %r15
jb 0x295c9
movsbl %al, %esi
callq 0x2949e
movl %eax, 0xc(%rsp)
leaq 0x18(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x2a118
movsd (%rsp), %xmm0
incq %r14
cmpq %r14, %r13
jne 0x29595
movq 0x30(%rsp), %rax
xorpd %xmm2, %xmm2
xorpd %xmm1, %xmm1
maxsd %xmm0, %xmm1
movsd 0x58(%rbx), %xmm0
movsd %xmm1, 0x10(%rsp)
addsd %xmm1, %xmm0
movsd %xmm0, 0x58(%rbx)
cmpq %r12, %rax
je 0x29651
movq (%rbx), %r15
movq 0x8(%rbx), %r14
subq %r15, %r14
sarq $0x3, %r14
movl 0x20(%rax), %ecx
cmpq %rcx, %r14
jbe 0x296e2
addsd (%r15,%rcx,8), %xmm2
movsd %xmm2, (%rsp)
movq %rax, %rdi
callq 0x3320
movsd (%rsp), %xmm2
cmpq %r12, %rax
jne 0x29609
jmp 0x29665
xorpd %xmm1, %xmm1
maxsd (%rsp), %xmm1
movsd 0x58(%rbx), %xmm0
movsd %xmm1, 0x10(%rsp)
addsd %xmm1, %xmm0
movsd %xmm0, 0x58(%rbx)
movq 0x8(%rbx), %r14
subq (%rbx), %r14
sarq $0x3, %r14
xorpd %xmm0, %xmm0
movsd %xmm0, (%rsp)
leaq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0x29ad4
movq 0x30(%rsp), %rax
cmpq %r12, %rax
je 0x296c9
movq (%rbx), %r14
movq 0x18(%rbx), %rbx
movsd (%rsp), %xmm1
movsd 0x102a1(%rip), %xmm0    # 0x39930
ucomisd %xmm1, %xmm0
movl 0x20(%rax), %ecx
jbe 0x296a2
movq $0x0, (%rbx,%rcx,8)
jmp 0x296bc
movsd (%r14,%rcx,8), %xmm0
mulsd 0x10(%rsp), %xmm0
divsd %xmm1, %xmm0
addsd (%rbx,%rcx,8), %xmm0
movsd %xmm0, (%rbx,%rcx,8)
movq %rax, %rdi
callq 0x3320
cmpq %r12, %rax
jne 0x29682
leaq 0x18(%rsp), %rdi
callq 0x29bb4
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10579(%rip), %rdi     # 0x39c62
leaq 0x10273(%rip), %rsi     # 0x39963
leaq 0x1057c(%rip), %rcx     # 0x39c73
movl $0xbe, %edx
callq 0x31b0
jmp 0x29703
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x29bb4
movq %rbx, %rdi
callq 0x34a0