// File: /workspace/github_cpp_makefile_star2_O1/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
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
xorl %eax, %eax
movq %rax, 0x10(%rsi)
leaq 0x50(%rsp), %rdx
movq %rax, 0x10(%rdx)
movaps %xmm0, (%rdx)
leaq 0x30(%rsp), %rcx
movq %rax, 0x10(%rcx)
movaps %xmm0, (%rcx)
callq 0x31ea2
movl %ebp, %eax
orl $0x2, %eax
cmpl $0x3, %eax
jne 0x32f53
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
jne 0x32bda
movabsq $0x1ffffffff, %rax      # imm = 0x1FFFFFFFF
leaq 0x80(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x68(%rsp), %rdi
leaq 0xf(%rsp), %rcx
movl $0x2, %edx
callq 0x1f586
leaq 0x10(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x23202
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x32bac
movq 0x78(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0x1848(%r14), %rdx
movq 0x58(%rsp), %rsi
cmpq 0x60(%rsp), %rsi
je 0x32bd0
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x58(%rsp)
jmp 0x32bda
leaq 0x50(%rsp), %rdi
callq 0x24924
cmpl $0x3, %ebp
je 0x32de6
cmpl $0x1, %ebp
jne 0x32f72
leaq 0x841f(%rip), %rsi      # 0x3b012
movl $0xe, %edx
movq %rbx, %rdi
callq 0x3310
movq 0x30(%rsp), %rax
cmpq %rax, 0x38(%rsp)
je 0x32c65
movl $0x1, %ebp
xorl %r12d, %r12d
leaq 0x75a9(%rip), %r15      # 0x3a1c4
movl (%rax,%r12,4), %esi
movq %rbx, %rdi
callq 0x3490
movl %ebp, %r12d
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
sarq $0x2, %rax
cmpq %r12, %rax
jbe 0x32c4d
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3310
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
incl %ebp
cmpq %r12, %rcx
ja 0x32c1b
leaq 0x83be(%rip), %rsi      # 0x3b02a
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3310
leaq 0x83a1(%rip), %rsi      # 0x3b021
movl $0x7, %edx
movq %rbx, %rdi
callq 0x3310
movq 0x1870(%r14), %rax
subq 0x1868(%r14), %rax
shrq $0x2, %rax
cmpl $0x2, %eax
movl $0x1, %esi
cmovgel %eax, %esi
movq %rbx, %rdi
callq 0x3490
movq %rax, %r15
leaq 0x7508(%rip), %rsi      # 0x3a1c4
movl $0x1, %edx
movq %rax, %rdi
callq 0x3310
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x3, %rsi
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
movq %r15, %rdi
callq 0x31d0
movq %rax, %r15
leaq 0x74cd(%rip), %rsi      # 0x3a1c4
movl $0x1, %edx
movq %rax, %rdi
callq 0x3310
movq 0x1848(%r14), %rsi
movq %r15, %rdi
callq 0x31d0
leaq 0x68(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x3310
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
je 0x32f01
xorl %r13d, %r13d
leaq 0x7482(%rip), %r14      # 0x3a1c4
leaq 0x82e0(%rip), %r15      # 0x3b029
movq 0x50(%rsp), %rax
movq (%rax,%r13,8), %rsi
movq %rbx, %rdi
callq 0x31d0
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x3310
movq 0x10(%rsp), %rax
leaq (,%r13,2), %rcx
addq %r13, %rcx
movq (%rax,%rcx,8), %rbp
movq 0x8(%rax,%rcx,8), %r12
cmpq %r12, %rbp
je 0x32da9
movl (%rbp), %esi
movq %rbx, %rdi
callq 0x3490
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x3310
addq $0x4, %rbp
jmp 0x32d83
movl $0x2, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3310
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
incl %r13d
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
cmpq %r13, %rax
ja 0x32d49
jmp 0x32f01
leaq 0x823f(%rip), %rsi      # 0x3b02c
movl $0x6, %edx
movq %rbx, %rdi
callq 0x3310
movq 0x1870(%r14), %rax
subq 0x1868(%r14), %rax
shrq $0x2, %rax
cmpl $0x2, %eax
movl $0x1, %esi
cmovgel %eax, %esi
movq %rbx, %rdi
callq 0x3490
movq %rax, %r14
leaq 0x739b(%rip), %rsi      # 0x3a1c4
movl $0x1, %edx
movq %rax, %rdi
callq 0x3310
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x3, %rsi
movabsq $-0x5555555555555555, %rax # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
movq %r14, %rdi
callq 0x31d0
leaq 0x68(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x3310
movq 0x10(%rsp), %rax
cmpq %rax, 0x18(%rsp)
je 0x32f01
xorl %r13d, %r13d
leaq 0x81a0(%rip), %r14      # 0x3b029
leaq 0x7334(%rip), %r15      # 0x3a1c4
leaq (,%r13,2), %rcx
addq %r13, %rcx
movq (%rax,%rcx,8), %rbp
movq 0x8(%rax,%rcx,8), %r12
cmpq %r12, %rbp
je 0x32eca
movl (%rbp), %esi
movq %rbx, %rdi
callq 0x3490
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x3310
addq $0x4, %rbp
jmp 0x32ea4
movl $0x2, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3310
incl %r13d
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
cmpq %r13, %rcx
ja 0x32e90
movq %rbx, %rdi
callq 0x31e0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x32f20
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x32f37
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0x10(%rsp), %rdi
callq 0x8f6e
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8027(%rip), %rdi      # 0x3af81
leaq 0x7cee(%rip), %rsi      # 0x3ac4f
leaq 0x805f(%rip), %rcx      # 0x3afc7
movl $0x10a, %edx            # imm = 0x10A
callq 0x31b0
callq 0x3180
movq %rax, %rbx
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x32fa6
movq 0x78(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
jmp 0x32fa6
jmp 0x32fa3
jmp 0x32fa3
jmp 0x32fa3
jmp 0x32fa3
jmp 0x32fa3
jmp 0x32fa3
jmp 0x32fa3
jmp 0x32fa3
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x32fbd
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x32fd4
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0x10(%rsp), %rdi
callq 0x8f6e
movq %rbx, %rdi
callq 0x34a0