// File: /workspace/github_cpp_makefile_star2_O1/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, %rbx
movl $0x0, (%rdi)
leaq 0x40(%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, 0x50(%rsp)
leaq 0x8(%rbx), %rax
movq %rax, 0x68(%rsp)
leaq 0x8(%rsp), %r12
leaq 0x11e80(%rip), %r14     # 0x3906a
leaq 0x132d8(%rip), %rbp     # 0x3a4c9
movq %r14, %r15
movq 0x60(%rsp), %r14
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3280
movsbl %al, %edx
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
callq 0x34d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2746f
movq 0x30(%rsp), %rax
cmpb $0x6f, (%rax)
movq %r15, %r14
leaq 0x70(%rsp), %r13
jne 0x272c9
movq %r13, %rdi
callq 0x3200
movq 0x30(%rsp), %rsi
movq 0x38(%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 %r13, %rdi
movq %r12, %rsi
callq 0x3370
movq %r13, %rdi
movq 0x58(%rsp), %rsi
callq 0x3160
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x272b0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
movq %r13, %rdi
movq 0x21cf6(%rip), %rsi     # 0x48fb0
callq 0x3220
movq 0x50(%rsp), %rdi
callq 0x30d0
movq 0x30(%rsp), %rax
cmpb $0x73, (%rax)
jne 0x27388
movq %r13, %rdi
callq 0x3200
movq 0x30(%rsp), %rsi
movq 0x38(%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 %r13, %rdi
movq %r12, %rsi
callq 0x3370
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x27353
movq %r12, %rdi
movq %r14, %rsi
callq 0x30b0
testl %eax, %eax
jne 0x2733c
movl $0x2, (%rbx)
movq %r12, %rdi
movq %rbp, %rsi
callq 0x30b0
testl %eax, %eax
jne 0x2730e
movl $0x1, (%rbx)
jmp 0x2730e
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2736f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
movq %r13, %rdi
movq 0x21c37(%rip), %rsi     # 0x48fb0
callq 0x3220
movq 0x50(%rsp), %rdi
callq 0x30d0
movq 0x30(%rsp), %rax
cmpb $0x76, (%rax)
jne 0x271f1
movq %r13, %rdi
callq 0x3200
movq 0x30(%rsp), %rsi
movq 0x38(%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 %r13, %rdi
movq %r12, %rsi
callq 0x3370
movq 0x8(%rbx), %rsi
cmpq %rsi, 0x10(%rbx)
jne 0x27466
leaq 0x2c(%rsp), %r15
movq %r13, %rdi
movq %r15, %rsi
callq 0x3190
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x27422
movq 0x10(%rbx), %rsi
cmpq 0x18(%rbx), %rsi
jne 0x2745c
movq 0x68(%rsp), %rdi
leaq 0x2c(%rsp), %r15
movq %r15, %rdx
callq 0x98e8
jmp 0x273eb
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2743e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
movq %r13, %rdi
movq 0x21b68(%rip), %rsi     # 0x48fb0
callq 0x3220
movq 0x50(%rsp), %rdi
callq 0x30d0
jmp 0x271f1
movl 0x2c(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x10(%rbx)
jmp 0x273e6
movl (%rbx), %ebx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x2748d
movq 0x40(%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 0x274b9
jmp 0x274b2
jmp 0x274b2
jmp 0x274b9
jmp 0x274c0
jmp 0x274b9
movq %rax, %rbx
jmp 0x274df
jmp 0x274c0
movq %rax, %rbx
jmp 0x274fd
jmp 0x274c0
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x274df
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x21aca(%rip), %rsi     # 0x48fb0
leaq 0x70(%rsp), %rdi
callq 0x3220
leaq 0xf0(%rsp), %rdi
callq 0x30d0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x27519
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x32b0
movq %rbx, %rdi
callq 0x34a0
nopl (%rax)