// File: /workspace/github_cpp_makefile_star2_O2/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 $0x1e8, %rsp            # imm = 0x1E8
movq %rdi, %rbx
andl $0x0, (%rdi)
movq %rsi, 0x50(%rsp)
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x20(%rdi), %rax
movq %rax, 0x48(%rsp)
leaq 0x8(%rdi), %r15
leaq 0x60(%rsp), %rbp
leaq 0x8(%rsp), %r12
leaq 0x1042e(%rip), %r13     # 0x304e9
leaq 0x5c(%rsp), %r14
movq 0x50(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x3060
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x20263
movq 0x28(%rsp), %rax
movb (%rax), %al
cmpb $0x6f, %al
jne 0x20147
movq %rbp, %rdi
callq 0x3210
leaq 0x70(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x3290
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
andq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq %rbp, %rdi
movq %r12, %rsi
callq 0x3360
movq %rbp, %rdi
movq 0x48(%rsp), %rsi
callq 0x3170
movq %r12, %rdi
callq 0x3130
movq %rbp, %rdi
callq 0x3230
movq 0x28(%rsp), %rax
movb (%rax), %al
cmpb $0x73, %al
jne 0x201db
movq %rbp, %rdi
callq 0x3210
leaq 0x70(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x3290
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
andq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq %rbp, %rdi
movq %r12, %rsi
callq 0x3360
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x201c4
movq %r12, %rdi
leaq 0xeed8(%rip), %rsi      # 0x2f076
callq 0x6844
testb %al, %al
je 0x201ad
movl $0x2, (%rbx)
movq %r12, %rdi
movq %r13, %rsi
callq 0x6844
testb %al, %al
je 0x2017b
movl $0x1, (%rbx)
jmp 0x2017b
movq %r12, %rdi
callq 0x3130
movq %rbp, %rdi
callq 0x3230
movq 0x28(%rsp), %rax
movb (%rax), %al
cmpb $0x76, %al
jne 0x200c0
movq %rbp, %rdi
callq 0x3210
leaq 0x70(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x3290
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
andq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq %rbp, %rdi
movq %r12, %rsi
callq 0x3360
movq 0x8(%rbx), %rax
cmpq %rax, 0x10(%rbx)
je 0x20228
movq %rax, 0x10(%rbx)
movq %rbp, %rdi
movq %r14, %rsi
callq 0x31a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2024e
movq %r15, %rdi
movq %r14, %rsi
callq 0x68a4
jmp 0x20228
movq %r12, %rdi
callq 0x3130
movq %rbp, %rdi
callq 0x3230
jmp 0x200c0
xorl %ebp, %ebp
cmpl $0x0, (%rbx)
sete %bpl
leaq 0x28(%rsp), %rdi
callq 0x3130
movl %ebp, %eax
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2029d
jmp 0x2029d
jmp 0x20294
jmp 0x20294
jmp 0x202a4
movq %rax, %rbx
jmp 0x202b1
jmp 0x2029d
jmp 0x202a4
movq %rax, %rbx
jmp 0x202bb
jmp 0x202a4
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3130
leaq 0x60(%rsp), %rdi
callq 0x3230
leaq 0x28(%rsp), %rdi
callq 0x3130
movq %rbx, %rdi
callq 0x3490
nopl (%rax)