// File: /workspace/github_cpp_makefile_star2_O1/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
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x1a0dc
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x1800(%rbx), %rax
movups 0x1808(%rbx), %xmm0
movq (%r13), %rcx
movq %rcx, 0x1800(%rbx)
movq 0x8(%r13), %rcx
movq %rcx, 0x1808(%rbx)
movq 0x10(%r13), %rcx
movq %rcx, 0x1810(%rbx)
movq (%rdi), %rcx
movq 0x8(%rdi), %rdx
movq 0x10(%rdi), %rsi
movq %rax, (%rdi)
movups %xmm0, 0x8(%rdi)
movq %rcx, (%r13)
movq %rdx, 0x8(%r13)
movq %rsi, 0x10(%r13)
callq 0x8f6e
leaq 0x1818(%rbx), %r13
leaq 0x20(%rsp), %rsi
movq %r13, %rdi
callq 0x33460
leaq 0x1830(%rbx), %rdi
leaq 0x38(%rsp), %rbp
movq %rbp, %rsi
callq 0x334a0
movq (%rbp), %rdi
testq %rdi, %rdi
je 0x31f70
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0x1800(%rbx), %rbp
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x31f8e
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0x8(%rsp), %rdi
callq 0x8f6e
movq %r15, %rdi
movq %rbp, %rsi
callq 0x33212
movq %r14, %rdi
movq %r13, %rsi
callq 0x3338a
movq 0x1830(%rbx), %rax
cmpq %rax, 0x1838(%rbx)
je 0x32026
movl $0x1, %ebp
xorl %ecx, %ecx
leaq 0x8(%rsp), %r13
shlq $0x4, %rcx
movl (%rax,%rcx), %edi
callq 0x284c3
movq %rbx, %rdi
movl %eax, %esi
callq 0x320ae
movl %eax, 0x8(%rsp)
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x31ffd
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r12)
jmp 0x32008
movq %r12, %rdi
movq %r13, %rdx
callq 0x20b8a
movl %ebp, %ecx
movq 0x1830(%rbx), %rax
movq 0x1838(%rbx), %rdx
subq %rax, %rdx
sarq $0x4, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0x31fca
movq (%r15), %r12
movq 0x8(%r15), %r15
cmpq %r15, %r12
je 0x32079
movq (%r12), %r13
movq 0x8(%r12), %rbp
cmpq %rbp, %r13
je 0x32073
movl (%r13), %edi
callq 0x284c3
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 0x320ae
movl %eax, (%r13)
addq $0x4, %r13
jmp 0x3203b
addq $0x18, %r12
jmp 0x3202d
movq (%r14), %rax
movq 0x8(%r14), %rcx
cmpq %rcx, %rax
je 0x3209f
xorl %edx, %edx
cmpq (%rax), %rdx
jno 0x32096
movq 0x1848(%rbx), %rsi
movq %rsi, (%rax)
addq $0x8, %rax
cmpq %rcx, %rax
jne 0x32087
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq