// File: /workspace/github_cpp_makefile_star2_O3/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 0x30ee2
movl %ebp, %eax
orl $0x2, %eax
cmpl $0x3, %eax
jne 0x31fc6
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
jne 0x31c4a
movabsq $0x1ffffffff, %rax      # imm = 0x1FFFFFFFF
leaq 0x80(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x68(%rsp), %rdi
leaq 0xf(%rsp), %rcx
movl $0x2, %edx
callq 0x1e9a8
leaq 0x10(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x2259a
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x31c1c
movq 0x78(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0x1848(%r14), %rdx
movq 0x58(%rsp), %rsi
cmpq 0x60(%rsp), %rsi
je 0x31c40
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x58(%rsp)
jmp 0x31c4a
leaq 0x50(%rsp), %rdi
callq 0x23bec
cmpl $0x3, %ebp
je 0x31e59
cmpl $0x1, %ebp
jne 0x31fe5
leaq 0x84c3(%rip), %rsi      # 0x3a126
movl $0xe, %edx
movq %rbx, %rdi
callq 0x3310
movq 0x30(%rsp), %rax
cmpq %rax, 0x38(%rsp)
je 0x31cd8
movl $0x1, %ebp
xorl %r12d, %r12d
leaq 0x75e9(%rip), %r15      # 0x39274
movl (%rax,%r12,4), %esi
movq %rbx, %rdi
callq 0x3490
movl %ebp, %r12d
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r12, %rcx
jbe 0x31cd1
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 0x31c8b
leaq 0x845f(%rip), %rsi      # 0x3a13e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3310
leaq 0x8442(%rip), %rsi      # 0x3a135
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 0x7545(%rip), %rsi      # 0x39274
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 0x750a(%rip), %rsi      # 0x39274
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 0x31f74
xorl %r13d, %r13d
leaq 0x74bf(%rip), %r14      # 0x39274
leaq 0x8381(%rip), %r15      # 0x3a13d
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 0x31e1c
movl (%rbp), %esi
movq %rbx, %rdi
callq 0x3490
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x3310
addq $0x4, %rbp
jmp 0x31df6
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 0x31dbc
jmp 0x31f74
leaq 0x82e0(%rip), %rsi      # 0x3a140
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 0x73d8(%rip), %rsi      # 0x39274
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 0x31f74
xorl %r13d, %r13d
leaq 0x8241(%rip), %r14      # 0x3a13d
leaq 0x7371(%rip), %r15      # 0x39274
leaq (,%r13,2), %rcx
addq %r13, %rcx
movq (%rax,%rcx,8), %rbp
movq 0x8(%rax,%rcx,8), %r12
cmpq %r12, %rbp
je 0x31f3d
movl (%rbp), %esi
movq %rbx, %rdi
callq 0x3490
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x3310
addq $0x4, %rbp
jmp 0x31f17
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 0x31f03
movq %rbx, %rdi
callq 0x31e0
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x31f93
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x31faa
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0x10(%rsp), %rdi
callq 0x8f5e
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x80c8(%rip), %rdi      # 0x3a095
leaq 0x7d8f(%rip), %rsi      # 0x39d63
leaq 0x8100(%rip), %rcx      # 0x3a0db
movl $0x10a, %edx            # imm = 0x10A
callq 0x31b0
callq 0x3180
movq %rax, %rbx
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x32019
movq 0x78(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
jmp 0x32019
jmp 0x32016
jmp 0x32016
jmp 0x32016
jmp 0x32016
jmp 0x32016
jmp 0x32016
jmp 0x32016
jmp 0x32016
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x32030
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x32047
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
leaq 0x10(%rsp), %rdi
callq 0x8f5e
movq %rbx, %rdi
callq 0x34a0
nop