// File: Laakeri[P]maxpre/src/preprocessor.cpp
// Function: maxPreprocessor::Preprocessor::Preprocessor(std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>> const&, std::vector<unsigned long, std::allocator<unsigned long>> const&, unsigned long)
Preprocessor::Preprocessor(const vector<vector<int> >& clauses, const vector<uint64_t>& weights, uint64_t topWeight) : pi(clauses, weights, topWeight), amsLex(pi) {
	originalVars = pi.vars;
	originalClauses = pi.clauses.size();
	BIGIt = 1;
	BVEgate = true;

  BVEsortMaxFirst = false;
  BVElocalGrow = 0;
  BVEglobalGrow = 0;

	doneUnhiding = false;
	randGen.seed(123);
	skipTechnique = 0;
	rLog.weightRange = pi.getWeightSum();
	rLog.initialWeightRange = rLog.weightRange;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x40(%rbp)
movq %rdi, %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x5eef0
movq -0x40(%rbp), %rdi
addq $0x218, %rdi            # imm = 0x218
movq %rdi, -0x38(%rbp)
callq 0x611c0
jmp 0x107c1
movq -0x48(%rbp), %rdi
movl $0x1, 0x2e8(%rdi)
movb $0x1, 0x2ec(%rdi)
addq $0x2f0, %rdi            # imm = 0x2F0
movq %rdi, -0x58(%rbp)
callq 0xa950
movq -0x48(%rbp), %rsi
movq $0x3b9aca07, 0x328(%rsi) # imm = 0x3B9ACA07
movq %rsi, %rdi
addq $0x330, %rdi            # imm = 0x330
movq %rdi, -0x50(%rbp)
callq 0x676e0
jmp 0x1080a
movq -0x48(%rbp), %rdi
addq $0x3b0, %rdi            # imm = 0x3B0
movq %rdi, -0x88(%rbp)
callq 0xa7e0
movq -0x48(%rbp), %rdi
addq $0x3c8, %rdi            # imm = 0x3C8
movq %rdi, -0x80(%rbp)
callq 0xa7e0
movq -0x48(%rbp), %rdi
addq $0x3e0, %rdi            # imm = 0x3E0
movq %rdi, -0x78(%rbp)
callq 0xa7e0
movq -0x48(%rbp), %rdi
addq $0x400, %rdi            # imm = 0x400
movq %rdi, -0x70(%rbp)
callq 0xb620
movq -0x48(%rbp), %rdi
addq $0x418, %rdi            # imm = 0x418
movq %rdi, -0x68(%rbp)
callq 0xb620
movq -0x48(%rbp), %rdi
addq $0x430, %rdi            # imm = 0x430
movq %rdi, -0x60(%rbp)
callq 0x3c470
movq -0x48(%rbp), %rdi
addq $0x470, %rdi            # imm = 0x470
callq 0x3c490
jmp 0x10897
movq -0x48(%rbp), %rdi
movl 0x60(%rdi), %eax
movl %eax, 0x214(%rdi)
callq 0x3c4b0
movq -0x48(%rbp), %rdi
movl %eax, 0x210(%rdi)
movl $0x1, 0x3ac(%rdi)
movb $0x1, 0x3a0(%rdi)
movb $0x0, 0x3a1(%rdi)
movl $0x0, 0x3a4(%rdi)
movl $0x0, 0x3a8(%rdi)
movb $0x0, 0x3f8(%rdi)
addq $0x470, %rdi            # imm = 0x470
movl $0x7b, %esi
callq 0x3c4e0
jmp 0x108f9
movq -0x48(%rbp), %rdi
movl $0x0, 0x468(%rdi)
callq 0x5fdb0
movq %rax, -0x90(%rbp)
jmp 0x10915
movq -0x48(%rbp), %rax
movq -0x90(%rbp), %rcx
movq %rcx, 0x2e0(%rax)
movq 0x2e0(%rax), %rcx
movq %rcx, 0x2d8(%rax)
addq $0x90, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x109ba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x109a8
movq -0x60(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0xbcd0
movq -0x68(%rbp), %rdi
callq 0xb910
movq -0x70(%rbp), %rdi
callq 0xb910
movq -0x78(%rbp), %rdi
callq 0xab00
movq -0x80(%rbp), %rdi
callq 0xab00
movq -0x88(%rbp), %rdi
callq 0xab00
movq -0x50(%rbp), %rdi
callq 0x67740
movq -0x58(%rbp), %rdi
callq 0xaad0
movq -0x38(%rbp), %rdi
callq 0xbcf0
movq -0x40(%rbp), %rdi
callq 0xbd50
movq -0x28(%rbp), %rdi
callq 0x4610
nopl (%rax)