// File: Laakeri[P]maxpre/src/main.cpp
// Function: parseProblemType(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&)
bool parseProblemType(map<string, string>& flags) {
	bool maxSat = true;
	if (flags.count("problemtype")) {
		for (char& c : flags["problemtype"]) {
			c = tolower(c);
		}
		if (flags["problemtype"] == "sat") {
			maxSat = false;
			cout<<"c Problem type is SAT"<<endl;
			cerr<<"Problem type is SAT"<<endl;
		}
		else if (flags["problemtype"] == "maxsat" || flags["problemtype"] == "max-sat") {
			maxSat = true;
			cout<<"c Problem type is Max-SAT"<<endl;
			cerr<<"Problem type is Max-SAT"<<endl;
		}
		else {
			cout<<"Invalid problemtype flag"<<endl;
			cerr<<"Invalid problemtype flag"<<endl;
			exit(0);
		}
	}
	else {
		cout<<"c No -problemtype given, defaulting to Max-SAT"<<endl;
		cerr<<"No -problemtype given, defaulting to Max-SAT"<<endl;
	}
	return maxSat;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdi, -0x8(%rbp)
movb $0x1, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x118(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0x110(%rbp)
callq 0x4620
movq -0x110(%rbp), %rdx
leaq 0x7f558(%rip), %rsi     # 0x851b4
leaq -0x30(%rbp), %rdi
callq 0xa430
jmp 0x5c67
movq -0x118(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xa5e0
movq %rax, -0x120(%rbp)
jmp 0x5c80
leaq -0x30(%rbp), %rdi
callq 0x4240
leaq -0x31(%rbp), %rdi
callq 0x43f0
movq -0x120(%rbp), %rax
cmpq $0x0, %rax
je 0x619d
movq -0x8(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq -0x71(%rbp), %rdi
movq %rdi, -0x128(%rbp)
callq 0x4620
movq -0x128(%rbp), %rdx
leaq 0x7f4e8(%rip), %rsi     # 0x851b4
leaq -0x70(%rbp), %rdi
callq 0xa430
jmp 0x5cd7
movq -0x130(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xa4e0
movq %rax, -0x138(%rbp)
jmp 0x5cf0
leaq -0x70(%rbp), %rdi
callq 0x4240
leaq -0x71(%rbp), %rdi
callq 0x43f0
movq -0x138(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0x4350
movq %rax, -0x80(%rbp)
movq -0x50(%rbp), %rdi
callq 0x4210
movq %rax, -0x88(%rbp)
leaq -0x80(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0xa670
testb $0x1, %al
jne 0x5d43
jmp 0x5dda
leaq -0x80(%rbp), %rdi
callq 0xa6b0
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movsbl (%rax), %edi
callq 0x4530
movb %al, %cl
movq -0x90(%rbp), %rax
movb %cl, (%rax)
leaq -0x80(%rbp), %rdi
callq 0xa6d0
jmp 0x5d2a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x5d9b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x4240
leaq -0x31(%rbp), %rdi
callq 0x43f0
jmp 0x61ef
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x5dcc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x4240
leaq -0x71(%rbp), %rdi
callq 0x43f0
jmp 0x61ef
movq -0x8(%rbp), %rax
movq %rax, -0x148(%rbp)
leaq -0xb1(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0x4620
movq -0x140(%rbp), %rdx
leaq 0x7f3ae(%rip), %rsi     # 0x851b4
leaq -0xb0(%rbp), %rdi
callq 0xa430
jmp 0x5e14
movq -0x148(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0xa4e0
movq %rax, -0x150(%rbp)
jmp 0x5e30
movq -0x150(%rbp), %rdi
leaq 0x7f3a3(%rip), %rsi     # 0x851e1
callq 0xa640
movb %al, -0x151(%rbp)
jmp 0x5e4b
leaq -0xb0(%rbp), %rdi
callq 0x4240
leaq -0xb1(%rbp), %rdi
callq 0x43f0
movb -0x151(%rbp), %al
testb $0x1, %al
jne 0x5e72
jmp 0x5ef6
movb $0x0, -0x9(%rbp)
movq 0xa914b(%rip), %rdi     # 0xaefc8
leaq 0x7f33c(%rip), %rsi     # 0x851c0
callq 0x4380
movq %rax, %rdi
movq 0xa911d(%rip), %rsi     # 0xaefb0
callq 0x43d0
movq 0xa9151(%rip), %rdi     # 0xaeff0
leaq 0x7f31c(%rip), %rsi     # 0x851c2
callq 0x4380
movq %rax, %rdi
movq 0xa90fb(%rip), %rsi     # 0xaefb0
callq 0x43d0
jmp 0x619b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x5ee5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x4240
leaq -0xb1(%rbp), %rdi
callq 0x43f0
jmp 0x61ef
movq -0x8(%rbp), %rax
movq %rax, -0x168(%rbp)
leaq -0xd9(%rbp), %rdi
movq %rdi, -0x160(%rbp)
callq 0x4620
movq -0x160(%rbp), %rdx
movb $0x0, -0x102(%rbp)
movb $0x0, -0x103(%rbp)
leaq 0x7f284(%rip), %rsi     # 0x851b4
leaq -0xd8(%rbp), %rdi
callq 0xa430
jmp 0x5f3e
movq -0x168(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0xa4e0
movq %rax, -0x170(%rbp)
jmp 0x5f5a
movq -0x170(%rbp), %rdi
leaq 0x7f26e(%rip), %rsi     # 0x851d6
callq 0xa640
movb %al, -0x171(%rbp)
jmp 0x5f75
movb -0x171(%rbp), %cl
movb $0x1, %al
testb $0x1, %cl
movb %al, -0x172(%rbp)
jne 0x601b
jmp 0x5f8e
movq -0x8(%rbp), %rax
movq %rax, -0x188(%rbp)
leaq -0x101(%rbp), %rdi
movq %rdi, -0x180(%rbp)
callq 0x4620
movq -0x180(%rbp), %rdx
movb $0x1, -0x102(%rbp)
leaq 0x7f1f3(%rip), %rsi     # 0x851b4
leaq -0x100(%rbp), %rdi
callq 0xa430
jmp 0x5fcf
movq -0x188(%rbp), %rdi
movb $0x1, -0x103(%rbp)
leaq -0x100(%rbp), %rsi
callq 0xa4e0
movq %rax, -0x190(%rbp)
jmp 0x5ff2
movq -0x190(%rbp), %rdi
leaq 0x7f1dd(%rip), %rsi     # 0x851dd
callq 0xa640
movb %al, -0x191(%rbp)
jmp 0x600d
movb -0x191(%rbp), %al
movb %al, -0x172(%rbp)
jmp 0x601b
movb -0x172(%rbp), %al
movb %al, -0x192(%rbp)
testb $0x1, -0x103(%rbp)
jne 0x6032
jmp 0x603e
leaq -0x100(%rbp), %rdi
callq 0x4240
testb $0x1, -0x102(%rbp)
jne 0x6049
jmp 0x6055
leaq -0x101(%rbp), %rdi
callq 0x43f0
leaq -0xd8(%rbp), %rdi
callq 0x4240
leaq -0xd9(%rbp), %rdi
callq 0x43f0
movb -0x192(%rbp), %al
testb $0x1, %al
jne 0x607c
jmp 0x614e
movb $0x1, -0x9(%rbp)
movq 0xa8f41(%rip), %rdi     # 0xaefc8
leaq 0x7f157(%rip), %rsi     # 0x851e5
callq 0x4380
movq %rax, %rdi
movq 0xa8f13(%rip), %rsi     # 0xaefb0
callq 0x43d0
movq 0xa8f47(%rip), %rdi     # 0xaeff0
leaq 0x7f137(%rip), %rsi     # 0x851e7
callq 0x4380
movq %rax, %rdi
movq 0xa8ef1(%rip), %rsi     # 0xaefb0
callq 0x43d0
jmp 0x6199
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x613d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x6131
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x6118
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
testb $0x1, -0x103(%rbp)
jne 0x610a
jmp 0x6116
leaq -0x100(%rbp), %rdi
callq 0x4240
jmp 0x6118
testb $0x1, -0x102(%rbp)
jne 0x6123
jmp 0x612f
leaq -0x101(%rbp), %rdi
callq 0x43f0
jmp 0x6131
leaq -0xd8(%rbp), %rdi
callq 0x4240
leaq -0xd9(%rbp), %rdi
callq 0x43f0
jmp 0x61ef
movq 0xa8e73(%rip), %rdi     # 0xaefc8
leaq 0x7f0a3(%rip), %rsi     # 0x851ff
callq 0x4380
movq %rax, %rdi
movq 0xa8e45(%rip), %rsi     # 0xaefb0
callq 0x43d0
movq 0xa8e79(%rip), %rdi     # 0xaeff0
leaq 0x7f081(%rip), %rsi     # 0x851ff
callq 0x4380
movq %rax, %rdi
movq 0xa8e23(%rip), %rsi     # 0xaefb0
callq 0x43d0
xorl %edi, %edi
callq 0x4480
jmp 0x619b
jmp 0x61e1
movq 0xa8e24(%rip), %rdi     # 0xaefc8
leaq 0x7f06d(%rip), %rsi     # 0x85218
callq 0x4380
movq %rax, %rdi
movq 0xa8df6(%rip), %rsi     # 0xaefb0
callq 0x43d0
movq 0xa8e2a(%rip), %rdi     # 0xaeff0
leaq 0x7f04d(%rip), %rsi     # 0x8521a
callq 0x4380
movq %rax, %rdi
movq 0xa8dd4(%rip), %rsi     # 0xaefb0
callq 0x43d0
movb -0x9(%rbp), %al
andb $0x1, %al
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x4610
nopl (%rax,%rax)