// File: /workspace/github_cpp_makefile_star2_O1/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, 0x8(%rsp)
movq %rdi, %rbx
movl $0x1e, %esi
callq 0x2a820
movq (%rbx), %rax
movabsq $0x3fa999999999999a, %rcx # imm = 0x3FA999999999999A
movq %rcx, 0x8(%rax)
movabsq $0x3f9eb851eb851eb8, %rdx # imm = 0x3F9EB851EB851EB8
movq %rdx, 0x10(%rax)
movabsq $0x3fd3333333333333, %rsi # imm = 0x3FD3333333333333
movq %rsi, 0x18(%rax)
movabsq $0x3fc999999999999a, %rsi # imm = 0x3FC999999999999A
movq %rsi, 0x20(%rax)
movabsq $0x3fc3333333333333, %rsi # imm = 0x3FC3333333333333
movq %rsi, 0x28(%rax)
movq %rdx, 0x30(%rax)
movq %rdx, 0x38(%rax)
movq %rcx, 0x40(%rax)
movq %rsi, 0x48(%rax)
movq %rsi, 0x50(%rax)
movabsq $0x3fb47ae147ae147b, %rcx # imm = 0x3FB47AE147AE147B
movq %rcx, 0x58(%rax)
movq %rsi, 0x60(%rax)
movq %rsi, 0x68(%rax)
movq %rsi, 0x70(%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 0x2a338
movq (%r14), %rbp
xorl %r14d, %r14d
movabsq $0x500000000000001, %r15 # imm = 0x500000000000001
movzbl (%rbp,%r14), %eax
leal -0x23(%rax), %ecx
cmpl $0x3a, %ecx
ja 0x2a315
btq %rcx, %r15
jb 0x2a330
movsbl %al, %esi
callq 0x2a1e6
movl %eax, 0x14(%rsp)
leaq 0x18(%rsp), %rdi
leaq 0x14(%rsp), %rsi
callq 0x2ae5e
incq %r14
cmpq %r14, %r13
jne 0x2a301
xorpd %xmm0, %xmm0
movsd %xmm0, (%rsp)
xorpd %xmm1, %xmm1
maxsd 0x8(%rsp), %xmm1
movsd 0x58(%rbx), %xmm0
movsd %xmm1, 0x8(%rsp)
addsd %xmm1, %xmm0
movsd %xmm0, 0x58(%rbx)
movq 0x30(%rsp), %rax
cmpq %r12, %rax
je 0x2a3a9
movq (%rbx), %r14
movq 0x8(%rbx), %r15
subq %r14, %r15
sarq $0x3, %r15
xorpd %xmm0, %xmm0
movsd %xmm0, (%rsp)
movl 0x20(%rax), %ecx
cmpq %rcx, %r15
jbe 0x2a42e
movsd (%rsp), %xmm0
addsd (%r14,%rcx,8), %xmm0
movsd %xmm0, (%rsp)
movq %rax, %rdi
callq 0x3320
cmpq %r12, %rax
jne 0x2a380
leaq 0x18(%rbx), %rdi
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x3, %rsi
callq 0x2a820
movq 0x30(%rsp), %rax
cmpq %r12, %rax
je 0x2a415
movq (%rbx), %r14
movq 0x18(%rbx), %rbx
movsd (%rsp), %xmm1
movsd 0x1045d(%rip), %xmm0    # 0x3a838
ucomisd %xmm1, %xmm0
movl 0x20(%rax), %ecx
jbe 0x2a3ee
movq $0x0, (%rbx,%rcx,8)
jmp 0x2a408
movsd (%r14,%rcx,8), %xmm0
mulsd 0x8(%rsp), %xmm0
divsd %xmm1, %xmm0
addsd (%rbx,%rcx,8), %xmm0
movsd %xmm0, (%rbx,%rcx,8)
movq %rax, %rdi
callq 0x3320
cmpq %r12, %rax
jne 0x2a3ce
leaq 0x18(%rsp), %rdi
callq 0x2a900
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10735(%rip), %rdi     # 0x3ab6a
leaq 0x1042f(%rip), %rsi     # 0x3a86b
leaq 0x10738(%rip), %rcx     # 0x3ab7b
movl $0xbe, %edx
callq 0x31b0
jmp 0x2a44f
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2a900
movq %rbx, %rdi
callq 0x34a0