// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/preprocessorinterface.cpp
// Function: maxPreprocessor::PreprocessorInterface::getInstance(std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>&, std::vector<unsigned long, std::allocator<unsigned long>>&, std::vector<int, std::allocator<int>>&)
void PreprocessorInterface::getInstance(std::vector<std::vector<int> >& retClauses, std::vector<uint64_t>& retWeights, std::vector<int>& retLabels) {
		preprocessedInstance = preprocessor.getPreprocessedInstance();
		
		retClauses = preprocessedInstance.clauses;
		retWeights = preprocessedInstance.weights;
		
		for (unsigned i = 0; i < preprocessedInstance.labels.size(); i++) {
			retLabels.push_back(litToSolver(litToDimacs(preprocessedInstance.labels[i].F)));
		}
		for (auto& clause : retClauses) {
			for (int& lit : clause) {
				lit = litToDimacs(lit);
				variables = max(variables, abs(lit));
				lit = litToSolver(lit);
			}
		}
		
		for (uint64_t& w : retWeights) {
			if (w == HARDWEIGHT) {
				w = topWeight;
			}
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rdi), %rsi
movq %rsp, %r13
movq %r13, %rdi
callq 0x19814
movq 0x1810(%rbx), %rax
movaps (%r13), %xmm0
movq 0x10(%r13), %rcx
movq %rcx, 0x1810(%rbx)
movups 0x1800(%rbx), %xmm1
movups %xmm0, 0x1800(%rbx)
leaq 0x50(%rsp), %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r13)
xorl %ebp, %ebp
movq %rbp, 0x10(%r13)
callq 0x8f5e
movq 0x1818(%rbx), %rdi
movq 0x1828(%rbx), %rsi
movups 0x18(%r13), %xmm0
movups %xmm0, 0x1818(%rbx)
movq 0x28(%r13), %rax
movq %rax, 0x1828(%rbx)
movq %rbp, 0x28(%r13)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r13)
testq %rdi, %rdi
je 0x30f8d
subq %rdi, %rsi
callq 0x32b0
movq 0x1830(%rbx), %rdi
movq 0x1840(%rbx), %rsi
movaps 0x30(%rsp), %xmm0
movups %xmm0, 0x1830(%rbx)
movq 0x40(%rsp), %rax
movq %rax, 0x1840(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
testq %rdi, %rdi
je 0x30fe8
subq %rdi, %rsi
callq 0x32b0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x30fe8
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0x1800(%rbx), %rbp
leaq 0x1818(%rbx), %r13
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3100d
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %rsp, %rdi
callq 0x8f5e
movq %r15, %rdi
movq %rbp, %rsi
callq 0x32286
movq %r14, %rdi
movq %r13, %rsi
callq 0x32424
movq 0x1830(%rbx), %rax
cmpq %rax, 0x1838(%rbx)
je 0x310a0
movl $0x1, %ebp
xorl %ecx, %ecx
movq %rsp, %r13
shlq $0x4, %rcx
movl (%rax,%rcx), %edi
callq 0x277eb
movq %rbx, %rdi
movl %eax, %esi
callq 0x31128
movl %eax, (%rsp)
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x31077
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r12)
jmp 0x31082
movq %r12, %rdi
movq %r13, %rdx
callq 0x1ffb8
movl %ebp, %ecx
movq 0x1830(%rbx), %rax
movq 0x1838(%rbx), %rdx
subq %rax, %rdx
sarq $0x4, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0x31045
movq (%r15), %r12
movq 0x8(%r15), %r15
cmpq %r15, %r12
je 0x310f3
movq (%r12), %r13
movq 0x8(%r12), %rbp
cmpq %rbp, %r13
je 0x310ed
movl (%r13), %edi
callq 0x277eb
movl %eax, (%r13)
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
movl (%rbx), %eax
cmpl %ecx, %eax
cmovgl %eax, %ecx
movl %ecx, (%rbx)
movl (%r13), %esi
movq %rbx, %rdi
callq 0x31128
movl %eax, (%r13)
addq $0x4, %r13
jmp 0x310b5
addq $0x18, %r12
jmp 0x310a7
movq (%r14), %rax
movq 0x8(%r14), %rcx
cmpq %rcx, %rax
je 0x31119
xorl %edx, %edx
cmpq (%rax), %rdx
jno 0x31110
movq 0x1848(%rbx), %rsi
movq %rsi, (%rax)
addq $0x8, %rax
cmpq %rcx, %rax
jne 0x31101
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq