// File: /workspace/github_cpp_makefile_star2_O2/Laakeri[P]maxpre/src/preprocessorinterface.cpp
// Function: maxPreprocessor::PreprocessorInterface::printInstance(std::ostream&, int)
void PreprocessorInterface::printInstance(ostream& output, int outputFormat) {
		std::vector<std::vector<int> > clauses;
		std::vector<uint64_t> weights;
		std::vector<int> labels;
		getInstance(clauses, weights, labels);
		
		assert(outputFormat == INPUT_FORMAT_WPMS || outputFormat == INPUT_FORMAT_SAT);
		
		if (clauses.size() == 0) {
			clauses.push_back({-1, 1});
			weights.push_back(topWeight);
		}
		
		if (outputFormat == INPUT_FORMAT_WPMS) {
			output<<"c assumptions ";
			for (unsigned i = 0; i < labels.size(); i++) {
				output<<labels[i];
				if (i + 1 < labels.size()) {
					output<<" ";
				}
			}
			output<<"\n";
		}
		
		if (outputFormat == INPUT_FORMAT_WPMS) {
			output<<"p wcnf "<<max((int)solverVarToPPVar.size(), 1)<<" "<<clauses.size()<<" "<<topWeight<< '\n';
			for (unsigned i = 0; i < clauses.size(); i++) {
				output<<weights[i]<<" ";
				for (int lit : clauses[i]) {
					output<<lit<<" ";
				}
				output<<"0\n";
			}
		}
		else if (outputFormat == INPUT_FORMAT_SAT) {
			output<<"p cnf "<<max((int)solverVarToPPVar.size(), 1)<<" "<<clauses.size()<<'\n';
			for (unsigned i = 0; i < clauses.size(); i++) {
				for (int lit : clauses[i]) {
					output<<lit<<" ";
				}
				output<<"0\n";
			}
		}
		else {
			abort();
		}
		output.flush();
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x10(%rsp), %rsi
andq $0x0, 0x10(%rsi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsi)
leaq 0x50(%rsp), %rdx
movaps %xmm0, (%rdx)
andq $0x0, 0x10(%rdx)
leaq 0x30(%rsp), %rcx
movaps %xmm0, (%rcx)
andq $0x0, 0x10(%rcx)
callq 0x28d5a
movl %ebp, %eax
orl $0x2, %eax
cmpl $0x3, %eax
jne 0x29a84
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
jne 0x297db
movabsq $0x1ffffffff, %rax      # imm = 0x1FFFFFFFF
leaq 0x80(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x68(%rsp), %rdi
pushq $0x2
popq %rdx
leaq 0xf(%rsp), %rcx
callq 0x18af6
leaq 0x10(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x1cb40
leaq 0x68(%rsp), %rdi
callq 0x7512
leaq 0x1848(%r14), %rsi
leaq 0x50(%rsp), %rdi
callq 0x193d8
cmpl $0x3, %ebp
je 0x29853
cmpl $0x1, %ebp
jne 0x29aa3
leaq 0x789a(%rip), %rsi      # 0x3108a
movq %rbx, %rdi
callq 0x32a0
pushq $0x1
popq %r12
leaq 0x69f1(%rip), %r15      # 0x301f4
leal -0x1(%r12), %eax
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq %rax, %rdx
jbe 0x2992c
movl (%rcx,%rax,4), %esi
movq %rbx, %rdi
callq 0x3480
movl %r12d, %eax
movq 0x38(%rsp), %rcx
subq 0x30(%rsp), %rcx
sarq $0x2, %rcx
cmpq %rax, %rcx
jbe 0x2984e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x32a0
incl %r12d
jmp 0x29803
leaq 0x784a(%rip), %rsi      # 0x310a4
movq %rbx, %rdi
callq 0x32a0
movq 0x1870(%r14), %rcx
subq 0x1868(%r14), %rcx
shrq $0x2, %rcx
cmpl $0x2, %ecx
pushq $0x1
popq %rsi
cmovgel %ecx, %esi
movq %rax, %rdi
callq 0x3480
leaq 0x6968(%rip), %rsi      # 0x301f4
movq %rax, %rdi
callq 0x32a0
movq %rax, %rdi
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
pushq $0x18
popq %rcx
cqto
idivq %rcx
movq %rax, %rsi
callq 0x31e0
pushq $0xa
popq %rsi
movq %rax, %rdi
callq 0x3320
xorl %r13d, %r13d
leaq 0x77db(%rip), %r14      # 0x310a1
leaq 0x6927(%rip), %r15      # 0x301f4
movl %r13d, %r13d
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
subq %rcx, %rax
cqto
pushq $0x18
popq %rsi
idivq %rsi
cmpq %r13, %rax
jbe 0x29a4c
imulq $0x18, %r13, %rax
movq (%rcx,%rax), %rbp
movq 0x8(%rcx,%rax), %r12
cmpq %r12, %rbp
je 0x2991c
movl (%rbp), %esi
movq %rbx, %rdi
callq 0x3480
movq %rax, %rdi
movq %r15, %rsi
callq 0x32a0
addq $0x4, %rbp
jmp 0x298fb
movq %rbx, %rdi
movq %r14, %rsi
callq 0x32a0
incl %r13d
jmp 0x298cd
leaq 0x776f(%rip), %rsi      # 0x310a2
movq %rbx, %rdi
callq 0x32a0
leaq 0x7757(%rip), %rsi      # 0x31099
movq %rbx, %rdi
callq 0x32a0
movq 0x1870(%r14), %rcx
subq 0x1868(%r14), %rcx
shrq $0x2, %rcx
cmpl $0x2, %ecx
pushq $0x1
popq %rsi
cmovgel %ecx, %esi
movq %rax, %rdi
callq 0x3480
leaq 0x6880(%rip), %rsi      # 0x301f4
movq %rax, %rdi
callq 0x32a0
movq %rax, %rdi
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
pushq $0x18
popq %rcx
cqto
idivq %rcx
movq %rax, %rsi
callq 0x31e0
leaq 0x6854(%rip), %rsi      # 0x301f4
movq %rax, %rdi
callq 0x32a0
movq 0x1848(%r14), %rsi
movq %rax, %rdi
callq 0x31e0
pushq $0xa
popq %rsi
movq %rax, %rdi
callq 0x3320
xorl %r13d, %r13d
leaq 0x6828(%rip), %r14      # 0x301f4
leaq 0x76ce(%rip), %r15      # 0x310a1
movl %r13d, %r13d
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
cqto
pushq $0x18
popq %rcx
idivq %rcx
cmpq %r13, %rax
jbe 0x29a4c
movq 0x50(%rsp), %rax
movq (%rax,%r13,8), %rsi
movq %rbx, %rdi
callq 0x31e0
movq %rax, %rdi
movq %r14, %rsi
callq 0x32a0
movq 0x10(%rsp), %rax
imulq $0x18, %r13, %rcx
movq (%rax,%rcx), %rbp
movq 0x8(%rax,%rcx), %r12
cmpq %r12, %rbp
je 0x29a3c
movl (%rbp), %esi
movq %rbx, %rdi
callq 0x3480
movq %rax, %rdi
movq %r14, %rsi
callq 0x32a0
addq $0x4, %rbp
jmp 0x29a1b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x32a0
incl %r13d
jmp 0x299d3
movq %rbx, %rdi
callq 0x31f0
leaq 0x30(%rsp), %rdi
callq 0x7512
leaq 0x50(%rsp), %rdi
callq 0x6bf4
leaq 0x10(%rsp), %rdi
callq 0x6aa2
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x756e(%rip), %rdi      # 0x30ff9
leaq 0x7235(%rip), %rsi      # 0x30cc7
leaq 0x75a6(%rip), %rcx      # 0x3103f
movl $0x10a, %edx            # imm = 0x10A
callq 0x31c0
callq 0x3190
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x7512
jmp 0x29aca
jmp 0x29ac7
jmp 0x29ac7
jmp 0x29ac7
jmp 0x29ac7
jmp 0x29ac7
jmp 0x29ac7
jmp 0x29ac7
jmp 0x29ac7
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x7512
leaq 0x50(%rsp), %rdi
callq 0x6bf4
leaq 0x10(%rsp), %rdi
callq 0x6aa2
movq %rbx, %rdi
callq 0x3490