// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/inputreader.cpp
// Function: maxPreprocessor::InputReader::readLine(std::istream&)
int InputReader::readLine(istream& input) {
	input>>ws;
	while (input.peek() == 'c') {
		currentLine++;
		input.ignore(numeric_limits<streamsize>::max(), '\n');
		input>>ws;
	}
	if (input.eof()) return 1;
	int status;
	if (input.peek() == 'C') {
		status = readCardinalityConstraint(input);
		if (status == 1) readError = "Failed to read a cardinality constraint (line "+to_string(currentLine)+")";
	}
	else if (inputFormat == INPUT_FORMAT_WPMS) {
		status = readWeightedClause(input);
		if (status == 1) readError = "Failed to read a clause (line "+to_string(currentLine)+")";
	}
	else if (inputFormat == INPUT_FORMAT_MS) {
		status = readClause(input, 1);
		if (status == 1) readError = "Failed to read a clause (line "+to_string(currentLine)+")";
	}
	else if (inputFormat == INPUT_FORMAT_SAT) {
		status = readClause(input, top);
		if (status == 1) readError = "Failed to read a clause (line "+to_string(currentLine)+")";
	}
	else {
		status = 1;
		readError = "Wrong input format (line "+to_string(currentLine)+")";
	}
	assert(status == 0 || status == 1);
	if (status == 0) return 0;
	else return 2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x3250
movq %r14, %rdi
callq 0x30f0
cmpl $0x63, %eax
jne 0x24a87
movabsq $0x7fffffffffffffff, %r15 # imm = 0x7FFFFFFFFFFFFFFF
incl 0x8(%rbx)
movq %r14, %rdi
movq %r15, %rsi
movl $0xa, %edx
callq 0x31a0
movq %r14, %rdi
callq 0x3250
movq %r14, %rdi
callq 0x30f0
cmpl $0x63, %eax
je 0x24a5f
movq (%r14), %rax
movq -0x18(%rax), %rcx
movl $0x1, %eax
testb $0x2, 0x20(%r14,%rcx)
jne 0x2515c
movq %r14, %rdi
callq 0x30f0
cmpl $0x43, %eax
jne 0x24b2b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x24032
cmpl $0x1, %eax
jne 0x24cc8
movl 0x8(%rbx), %r13d
movl %r13d, %ebp
negl %ebp
cmovsl %r13d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x24d43
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x24d3a
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x24d40
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x24d43
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x24ae9
addl $-0x3, %r14d
jmp 0x24d43
movl 0x38(%rbx), %eax
cmpl $0x3, %eax
je 0x24c4a
cmpl $0x2, %eax
je 0x24bc7
cmpl $0x1, %eax
jne 0x24ccf
movq %rbx, %rdi
movq %r14, %rsi
callq 0x23dd4
testl %eax, %eax
je 0x24cc8
movl 0x8(%rbx), %r13d
movl %r13d, %ebp
negl %ebp
cmovsl %r13d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x25015
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x24eaf
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x25012
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x25015
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x24b85
addl $-0x3, %r14d
jmp 0x25015
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x23f1a
testl %eax, %eax
je 0x24cc8
movl 0x8(%rbx), %r13d
movl %r13d, %ebp
negl %ebp
cmovsl %r13d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x24ebb
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x24ea0
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x24eb8
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x24ebb
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x24c08
addl $-0x3, %r14d
jmp 0x24ebb
movq 0x30(%rbx), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x23f1a
testl %eax, %eax
je 0x24cc8
movl 0x8(%rbx), %r13d
movl %r13d, %ebp
negl %ebp
cmovsl %r13d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x24f68
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x24ea6
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x24f65
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x24f68
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x24c86
addl $-0x3, %r14d
jmp 0x24f68
xorl %eax, %eax
jmp 0x2515c
movl 0x8(%rbx), %r13d
movl %r13d, %ebp
negl %ebp
cmovsl %r13d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x24df6
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x24ded
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x24df3
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x24df6
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x24cf8
addl $-0x3, %r14d
jmp 0x24df6
addl $-0x2, %r14d
jmp 0x24d43
decl %r14d
shrl $0x1f, %r13d
movl %r13d, %esi
addl %r14d, %esi
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movl $0x2d, %edx
callq 0x3330
movq (%r15), %rdi
addq %r13, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x26031
leaq 0x145ca(%rip), %rcx     # 0x3934a
movl $0x2e, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3300
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x24db9
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x24dc0
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x14823(%rip), %rsi     # 0x39606
callq 0x34e0
jmp 0x250ba
addl $-0x2, %r14d
jmp 0x24df6
decl %r14d
shrl $0x1f, %r13d
movl %r13d, %esi
addl %r14d, %esi
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movl $0x2d, %edx
callq 0x3330
movq (%r15), %rdi
addq %r13, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x26031
leaq 0x14565(%rip), %rcx     # 0x39398
movl $0x19, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3300
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x24e6c
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x24e73
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x14770(%rip), %rsi     # 0x39606
callq 0x34e0
jmp 0x250ba
addl $-0x2, %r14d
jmp 0x24ebb
addl $-0x2, %r14d
jmp 0x24f68
addl $-0x2, %r14d
jmp 0x25015
decl %r14d
shrl $0x1f, %r13d
movl %r13d, %esi
addl %r14d, %esi
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movl $0x2d, %edx
callq 0x3330
movq (%r15), %rdi
addq %r13, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x26031
leaq 0x14481(%rip), %rcx     # 0x39379
movl $0x1e, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3300
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x24f31
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x24f38
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x146ab(%rip), %rsi     # 0x39606
callq 0x34e0
jmp 0x250ba
decl %r14d
shrl $0x1f, %r13d
movl %r13d, %esi
addl %r14d, %esi
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movl $0x2d, %edx
callq 0x3330
movq (%r15), %rdi
addq %r13, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x26031
leaq 0x143d4(%rip), %rcx     # 0x39379
movl $0x1e, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3300
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x24fde
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x24fe5
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x145fe(%rip), %rsi     # 0x39606
callq 0x34e0
jmp 0x250ba
decl %r14d
shrl $0x1f, %r13d
movl %r13d, %esi
addl %r14d, %esi
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movl $0x2d, %edx
callq 0x3330
movq (%r15), %rdi
addq %r13, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x26031
leaq 0x14327(%rip), %rcx     # 0x39379
movl $0x1e, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3300
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2508b
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x25092
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x14551(%rip), %rsi     # 0x39606
callq 0x34e0
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x250e1
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x250e9
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
addq $0x10, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3360
movq (%r14), %rdi
cmpq %r13, %rdi
je 0x25129
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x25140
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x25157
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32b0
movl $0x2, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2517b
jmp 0x2517b
jmp 0x2517b
jmp 0x25197
jmp 0x25197
jmp 0x25197
jmp 0x2517b
jmp 0x25197
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2519a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
jmp 0x2519a
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x251b1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32b0
movq %rbx, %rdi
callq 0x34a0
nop