// File: /workspace/github_cpp_makefile_star2_O2/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 $0x58, %rsp
movq %rsi, %r14
movsd %xmm0, 0x8(%rsp)
movq %rdi, %rbx
pushq $0x1e
popq %rsi
callq 0x22b4a
movq %rbx, 0x18(%rsp)
movq (%rbx), %rax
movaps 0xe24f(%rip), %xmm0     # 0x30850
movups %xmm0, 0x8(%rax)
movaps 0xe254(%rip), %xmm0     # 0x30860
movups %xmm0, 0x18(%rax)
movaps 0xe259(%rip), %xmm0     # 0x30870
movups %xmm0, 0x28(%rax)
movaps 0xe25e(%rip), %xmm0     # 0x30880
movups %xmm0, 0x38(%rax)
movapd 0xe262(%rip), %xmm0     # 0x30890
movupd %xmm0, 0x48(%rax)
movapd 0xe265(%rip), %xmm1     # 0x308a0
movupd %xmm1, 0x58(%rax)
movupd %xmm0, 0x68(%rax)
leaq 0x30(%rsp), %r12
andl $0x0, (%r12)
andq $0x0, 0x8(%r12)
movq %r12, 0x10(%r12)
movq %r12, 0x18(%r12)
andq $0x0, 0x20(%r12)
movq (%r14), %r13
movq 0x8(%r14), %rbp
xorl %ebx, %ebx
leaq 0x14(%rsp), %r15
movabsq $0x500000000000001, %r14 # imm = 0x500000000000001
cmpq %rbx, %rbp
je 0x226b4
movzbl (%r13,%rbx), %eax
leal -0x23(%rax), %ecx
cmpl $0x3a, %ecx
ja 0x22696
btq %rcx, %r14
jb 0x226af
movsbl %al, %esi
callq 0x2258c
movl %eax, 0x14(%rsp)
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x231fe
incq %rbx
jmp 0x2267d
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm2
maxsd 0x8(%rsp), %xmm2
movq 0x18(%rsp), %r15
movsd 0x58(%r15), %xmm0
movsd %xmm2, 0x20(%rsp)
addsd %xmm2, %xmm0
movsd %xmm0, 0x58(%r15)
movq 0x40(%rsp), %rax
movq (%r15), %rbx
movq 0x8(%r15), %r14
subq %rbx, %r14
sarq $0x3, %r14
cmpq %r12, %rax
je 0x2271c
movl 0x20(%rax), %ecx
cmpq %rcx, %r14
jbe 0x2279b
addsd (%rbx,%rcx,8), %xmm1
movsd %xmm1, 0x8(%rsp)
movq %rax, %rdi
callq 0x3300
movsd 0x8(%rsp), %xmm1
jmp 0x226f0
movsd %xmm1, 0x8(%rsp)
leaq 0x18(%r15), %rdi
movq %r14, %rsi
callq 0x22b4a
movq 0x40(%rsp), %rax
movq (%r15), %rbx
movq 0x18(%r15), %r14
movsd 0x8(%rsp), %xmm1
cmpq %r12, %rax
je 0x22782
movsd 0xe163(%rip), %xmm0     # 0x308b0
ucomisd %xmm1, %xmm0
movl 0x20(%rax), %ecx
jbe 0x2275d
andq $0x0, (%r14,%rcx,8)
jmp 0x22778
movsd (%rbx,%rcx,8), %xmm0
mulsd 0x20(%rsp), %xmm0
divsd %xmm1, %xmm0
addsd (%r14,%rcx,8), %xmm0
movsd %xmm0, (%r14,%rcx,8)
movq %rax, %rdi
callq 0x3300
jmp 0x2273a
leaq 0x28(%rsp), %rdi
callq 0x22c02
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xe440(%rip), %rdi      # 0x30be2
leaq 0xe13a(%rip), %rsi      # 0x308e3
leaq 0xe443(%rip), %rcx      # 0x30bf3
movl $0xbe, %edx
callq 0x31c0
jmp 0x227bc
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x22c02
movq %rbx, %rdi
callq 0x3490
nop