// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/outputreader.cpp
// Function: maxPreprocessor::OutputReader::readSolution(std::istream&)
int OutputReader::readSolution(istream& input) {
	status = 0;
	string line;
	while (getline(input, line)) {
		if (line[0] == 'o') {
			stringstream ss;
			ss<<line;
			string temp;
			ss>>temp;
			ss>>ansW;
		}
		if (line[0] == 's') {
			stringstream ss;
			ss<<line;
			string s;
			while (ss>>s) {
				if (s == "UNSATISFIABLE") {
					status = 2;
				}
				if (s == "OPTIMUM") {
					status = 1;
				}
			}
		}
		if (line[0] == 'v') {
			stringstream ss;
			ss<<line;
			string temp;
			ss>>temp;
			int lit;
			trueLits.clear();
			while (ss>>lit) {
				trueLits.push_back(lit);
			}
		}
	}
	if (status == 0) return 1;
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movq %rsi, 0x60(%rsp)
movq %rdi, %r14
movl $0x0, (%rdi)
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x20(%rdi), %rax
movq %rax, 0x58(%rsp)
leaq 0x70(%rsp), %rdi
leaq 0x80(%rdi), %rax
movq %rax, 0x28(%rsp)
leaq 0x8(%r14), %rax
movq %rax, 0x68(%rsp)
leaq 0x8(%rsp), %r13
leaq 0x11b64(%rip), %r15     # 0x38076
leaq 0x13050(%rip), %rbx     # 0x39569
movq %r15, %r12
movq 0x60(%rsp), %r15
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %edx
movq %r15, %rdi
leaq 0x38(%rsp), %rsi
callq 0x34d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2679c
movq 0x38(%rsp), %rax
movb (%rax), %al
cmpb $0x6f, %al
movq %r12, %r15
leaq 0x70(%rsp), %rbp
jne 0x265f9
movq %rbp, %rdi
callq 0x3200
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
leaq 0x80(%rsp), %rdi
callq 0x3310
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq %rbp, %rdi
movq %r13, %rsi
callq 0x3370
movq %rbp, %rdi
movq 0x58(%rsp), %rsi
callq 0x3160
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x265d9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
movq %rbp, %rdi
movq 0x219cd(%rip), %rsi     # 0x47fb0
callq 0x3220
movq 0x28(%rsp), %rdi
callq 0x30d0
movq 0x38(%rsp), %rax
movb (%rax), %al
cmpb $0x73, %al
jne 0x266bb
movq %rbp, %rdi
callq 0x3200
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
leaq 0x80(%rsp), %rdi
callq 0x3310
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq %rbp, %rdi
movq %r13, %rsi
callq 0x3370
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2667f
movq %r13, %rdi
movq %r15, %rsi
callq 0x30b0
testl %eax, %eax
jne 0x26667
movl $0x2, (%r14)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x30b0
testl %eax, %eax
jne 0x26638
movl $0x1, (%r14)
jmp 0x26638
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2669b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
movq %rbp, %rdi
movq 0x2190b(%rip), %rsi     # 0x47fb0
callq 0x3220
movq 0x28(%rsp), %rdi
callq 0x30d0
movq 0x38(%rsp), %rax
movb (%rax), %al
cmpb $0x76, %al
jne 0x26519
movq %rbp, %rdi
callq 0x3200
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
leaq 0x80(%rsp), %rdi
callq 0x3310
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq %rbp, %rdi
movq %r13, %rsi
callq 0x3370
movq 0x8(%r14), %rsi
cmpq %rsi, 0x10(%r14)
jne 0x26793
leaq 0x34(%rsp), %r12
movq %rbp, %rdi
movq %r12, %rsi
callq 0x3190
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2674f
movq 0x10(%r14), %rsi
cmpq 0x18(%r14), %rsi
jne 0x26789
movq 0x68(%rsp), %rdi
leaq 0x34(%rsp), %r12
movq %r12, %rdx
callq 0x98f8
jmp 0x26718
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2676b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
movq %rbp, %rdi
movq 0x2183b(%rip), %rsi     # 0x47fb0
callq 0x3220
movq 0x28(%rsp), %rdi
callq 0x30d0
jmp 0x26519
movl 0x34(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x10(%r14)
jmp 0x26713
movl (%r14), %ebx
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x267bb
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x32b0
xorl %eax, %eax
testl %ebx, %ebx
sete %al
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x267e7
jmp 0x267e0
jmp 0x267e0
jmp 0x267e7
jmp 0x267ee
jmp 0x267e7
movq %rax, %rbx
jmp 0x2680d
jmp 0x267ee
movq %rax, %rbx
jmp 0x26828
jmp 0x267ee
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2680d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x2179c(%rip), %rsi     # 0x47fb0
leaq 0x70(%rsp), %rdi
callq 0x3220
movq 0x28(%rsp), %rdi
callq 0x30d0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x26844
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x32b0
movq %rbx, %rdi
callq 0x34a0