LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/xzebra[P]function-plotter/plot.cpp
// Function: Graph::fillValues(Operation*, double)
void Graph::fillValues(Operation *op, double t) {
    for(int i = 0; i < size+size+1; ++i) {
        // Give each variable a value
        for(int j = 0; j < op->v_values.size(); j++) {
            if(op->postfix[op->v_pos[j]] == 't') op->v_values[j] = t;
            else op->v_values[j] = (i - (size)) * step;
        }
        // EQUATION
        std::string postfix_replaced = replaceVars(op);
        double value = mathParser.Solve(postfix_replaced);
        /// EQUATION
        value = value/step;
        values[i] = int(round(value));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl (%rdi), %eax
testl %eax, %eax
js 0x33ba
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xf8(%rdi), %r15
xorl %r12d, %r12d
leaq -0x58(%rbp), %r13
movsd %xmm0, -0x30(%rbp)
movq 0x38(%rbx), %rcx
movq 0x40(%rbx), %rdx
subq %rcx, %rdx
je 0x32f7
sarq $0x3, %rdx
movq (%rbx), %rsi
movq 0x20(%rbx), %rdi
movl %r12d, %r8d
subl %eax, %r8d
cvtsi2sd %r8d, %xmm2
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %eax, %eax
movslq (%rdi,%rax,4), %r8
cmpb $0x74, (%rsi,%r8)
movapd %xmm0, %xmm1
je 0x32ea
movsd 0x8(%r14), %xmm1
mulsd %xmm2, %xmm1
movsd %xmm1, (%rcx,%rax,8)
incq %rax
cmpq %rax, %rdx
jne 0x32d1
leaq -0x78(%rbp), %rdi
movq %rbx, %rdx
callq 0x3770
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2a4e
movq %r15, %rdi
movq %r13, %rsi
callq 0x427a
movapd %xmm0, %xmm1
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x3349
movsd %xmm1, -0x38(%rbp)
callq 0x21a0
movsd -0x38(%rbp), %xmm1
divsd 0x8(%r14), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x336c
addsd 0x1d17(%rip), %xmm1     # 0x5078
movapd %xmm1, %xmm0
callq 0x2060
jmp 0x337d
addsd 0x1cfc(%rip), %xmm1     # 0x5070
movapd %xmm1, %xmm0
callq 0x2290
cvttsd2si %xmm0, %eax
movq 0x10(%r14), %rcx
movl %eax, (%rcx,%r12,4)
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x339b
callq 0x21a0
leaq 0x1(%r12), %rcx
movslq (%r14), %rax
movq %rax, %rdx
addq %rax, %rdx
cmpq %rdx, %r12
movq %rcx, %r12
movsd -0x30(%rbp), %xmm0
jl 0x32a4
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x33e3
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x33e3
callq 0x21a0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x33f5
callq 0x21a0
movq %rbx, %rdi
callq 0x22b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/xzebra[P]function-plotter/plot.cpp
// Function: Graph::replaceVars[abi:cxx11](Operation const*)
std::string Graph::replaceVars(const Operation *op) {
    std::ostringstream output;
    int offset = 0;
    for(int p = 0; p < op->v_pos.size(); p++) {
        // Add rest of postfix expression from last replaced var
        for(int i = offset; i < op->v_pos[p]; i++) {
            output << op->postfix[i];
        }
        output << op->v_values[p];
        offset = op->v_pos[p]+1;
    }
    // Add the rest of the string if not added
    for(int p = offset; p < op->postfix.length(); p++) {
        output << op->postfix[p];
    }
    return output.str();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rdx, %r14
movq %rdi, %rbx
leaq -0x1b0(%rbp), %rdi
callq 0x2210
movq 0x20(%r14), %rax
xorl %r13d, %r13d
cmpq %rax, 0x28(%r14)
je 0x381a
movq %rbx, -0x38(%rbp)
leaq -0x1b0(%rbp), %r15
leaq -0x29(%rbp), %r12
xorl %ebx, %ebx
cmpl (%rax,%rbx,4), %r13d
jge 0x37e7
movslq %r13d, %r13
movq (%r14), %rax
movb (%rax,%r13), %al
movb %al, -0x29(%rbp)
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x21d0
incq %r13
movq 0x20(%r14), %rax
movslq (%rax,%rbx,4), %rax
cmpq %rax, %r13
jl 0x37bd
movq 0x38(%r14), %rax
movsd (%rax,%rbx,8), %xmm0
movq %r15, %rdi
callq 0x2270
movq 0x20(%r14), %rax
movq 0x28(%r14), %rcx
movslq (%rax,%rbx,4), %r13
incq %r13
incq %rbx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rbx, %rcx
ja 0x37b4
movq -0x38(%rbp), %rbx
cmpq %r13, 0x8(%r14)
jbe 0x384e
leaq -0x1b0(%rbp), %r15
leaq -0x29(%rbp), %r12
movq (%r14), %rax
movb (%rax,%r13), %al
movb %al, -0x29(%rbp)
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x21d0
incq %r13
cmpq %r13, 0x8(%r14)
ja 0x382b
leaq -0x1a8(%rbp), %rsi
movq %rbx, %rdi
callq 0x2250
movq 0x3764(%rip), %rsi      # 0x6fc8
leaq -0x1b0(%rbp), %rdi
callq 0x20e0
leaq -0x140(%rbp), %rdi
callq 0x20a0
movq %rbx, %rax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3897
jmp 0x3897
jmp 0x3897
movq %rax, %rbx
movq 0x3727(%rip), %rsi      # 0x6fc8
leaq -0x1b0(%rbp), %rdi
callq 0x20e0
leaq -0x140(%rbp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x22b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/xzebra[P]function-plotter/mathParser/mathParser.cpp
// Function: isFunc(int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool isFunc(int &i, std::string &infix, std::string &output) {
    output = "";
    for(; i < infix.length(); i++) {
        if(!isLetter(infix[i])) {
            i--;
            break;
        }
        output += infix[i];
    }

    return output.length() > 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x8(%rdx), %rdx
leaq 0x1708(%rip), %rcx      # 0x50c6
movq %rbx, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x2240
movslq (%r14), %rax
cmpq %rax, 0x8(%r15)
jbe 0x3a12
movq (%r15), %rcx
movb (%rcx,%rax), %cl
leal -0x61(%rcx), %edx
cmpb $0x19, %dl
ja 0x3a0d
movsbl %cl, %esi
movq %rbx, %rdi
callq 0x2180
movslq (%r14), %rax
leaq 0x1(%rax), %rcx
movl %ecx, (%r14)
cmpq %rcx, 0x8(%r15)
jbe 0x3a12
movq (%r15), %rdx
movb (%rdx,%rcx), %cl
leal -0x61(%rcx), %edx
cmpb $0x1a, %dl
jb 0x39e2
jmp 0x3a0f
decl %eax
movl %eax, (%r14)
cmpq $0x2, 0x8(%rbx)
setae %al
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/xzebra[P]function-plotter/mathParser/mathParser.cpp
// Function: precedence(char)
int precedence(const char c) {
    switch (c) {
        case '+':
        case '-':
            return 2;
        case '*':
        case '/':
            return 3;
        case '^':
            return 4;
        default: // functions
            return 5;           
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leal -0x2a(%rdi), %ecx
cmpl $0x5, %ecx
ja 0x3a4d
movl $0x2, %eax
leaq 0x168f(%rip), %rdx      # 0x50cc
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl $0x3, %eax
jmp 0x3a5e
cmpl $0x5e, %edi
jne 0x3a59
movl $0x4, %eax
jmp 0x3a5e
movl $0x5, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/xzebra[P]function-plotter/mathParser/stack.h
// Function: Stack<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::push(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void push(a_type input) {
            if(head == nullptr) {
                head = new Node<a_type>(input, nullptr);
                bottom = head;
            } else {
                head = new Node<a_type>(input, head);
            }  
            size++;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r15
movq %rdi, %r14
movq (%rdi), %r12
movl $0x28, %edi
callq 0x21c0
movq %rax, %rbx
testq %r12, %r12
je 0x4655
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0x40(%rbp), %rdi
callq 0x2a4e
movq (%r14), %r15
movq %rbx, %rax
addq $0x10, %rax
movq %rax, (%rbx)
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x2a4e
movq %r15, 0x20(%rbx)
movq %rbx, (%r14)
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x46ae
callq 0x21a0
jmp 0x46ae
leaq -0x50(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0x2a4e
movq %rbx, %rax
addq $0x10, %rax
movq %rax, (%rbx)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x2a4e
movq $0x0, 0x20(%rbx)
movq %rbx, (%r14)
movq -0x60(%rbp), %rdi
cmpq %r12, %rdi
je 0x46aa
callq 0x21a0
movq (%r14), %rbx
movq %rbx, 0x8(%r14)
incl 0x10(%r14)
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x60(%rbp), %rdi
jmp 0x46d1
jmp 0x46dd
movq %rax, %r14
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x46e0
callq 0x21a0
jmp 0x46e0
movq %rax, %r14
movq %rbx, %rdi
callq 0x21a0
movq %r14, %rdi
callq 0x22b0
// File: /workspace/github_cpp_makefile_star2_O3/xzebra[P]function-plotter/mathParser/stack.h
// Function: Stack<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::clear()
void clear() {
            Node<a_type> *ptr = head;
            while(ptr != nullptr) {
                Node<a_type> *temp = ptr->next;
                delete[] ptr;
                ptr = temp;
            }
            size = 0;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x474f
movq -0x8(%r14), %rax
movq 0x20(%r14), %r15
testq %rax, %rax
je 0x473b
leaq -0x18(%r14), %r12
shlq $0x3, %rax
leaq (%rax,%rax,4), %r13
movq -0x28(%r14,%r13), %rdi
leaq (%r12,%r13), %rax
cmpq %rdi, %rax
je 0x4735
callq 0x21a0
addq $-0x28, %r13
jne 0x4722
addq $-0x8, %r14
movq %r14, %rdi
callq 0x2200
movq %r15, %r14
testq %r15, %r15
jne 0x4709
movl $0x0, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/kdungs[P]codecon/src/maze.cc
// Function: main
int main() {
  auto rows = 0ul, cols = 0ul;
  std::cin >> rows >> cols;

  if (rows < 2 || cols < 2) {
    return EXIT_FAILURE;
  }

  auto map = std::vector<bool>{};
  map.reserve(rows * cols);
  char in;
  while (std::cin >> in) {
    map.push_back((in == '_'));
  }

  auto maze = Maze{rows, cols, map};
  auto path = solveBfs(maze, {1, 0}, {rows - 2, cols - 1});

  std::copy(std::begin(path), std::end(path),
            std::ostream_iterator<Point>(std::cout, "\n"));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xb0, %rsp
xorl %eax, %eax
leaq 0x10(%rsp), %rbx
movq %rax, (%rbx)
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
movq 0x3680(%rip), %rdi      # 0x4fe0
movq %rbx, %rsi
callq 0x1080
movq %rax, %rdi
movq %r14, %rsi
callq 0x1080
movq (%rbx), %rcx
cmpq $0x2, %rcx
setb %al
movq (%r14), %rsi
cmpq $0x2, %rsi
setb %dl
orb %al, %dl
movl $0x1, %eax
jne 0x1af2
imulq %rcx, %rsi
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rdi
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
movq $0x0, 0x20(%rdi)
callq 0x1ce4
movq 0x3625(%rip), %rbx      # 0x4fe0
leaq 0x7(%rsp), %r14
leaq 0x40(%rsp), %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1100
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x19f3
xorl %esi, %esi
cmpb $0x5f, 0x7(%rsp)
sete %sil
movq %r15, %rdi
callq 0x1d16
jmp 0x19c5
movq 0x10(%rsp), %rax
leaq 0x78(%rsp), %rdi
movq %rax, -0x10(%rdi)
movq 0x8(%rsp), %rax
movq %rax, -0x8(%rdi)
leaq 0x40(%rsp), %rsi
callq 0x1d64
leaq 0x30(%rsp), %rdx
movq $0x1, (%rdx)
movq $0x0, 0x8(%rdx)
movq 0x10(%rsp), %rax
addq $-0x2, %rax
leaq 0xa0(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%rsp), %rax
decq %rax
movq %rax, 0x8(%rcx)
leaq 0x18(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x12ca
movq 0x18(%rsp), %rbx
movq 0x20(%rsp), %r15
movq 0x3568(%rip), %rax      # 0x4fd0
movq %rax, 0x30(%rsp)
leaq 0x1590(%rip), %rax      # 0x3004
movq %rax, 0x38(%rsp)
subq %rbx, %r15
sarq $0x4, %r15
testq %r15, %r15
jle 0x1aaa
incq %r15
leaq 0x30(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x25b8
addq $0x10, %rbx
decq %r15
cmpq $0x1, %r15
ja 0x1a8d
movq 0x18(%rsp), %rbx
testq %rbx, %rbx
je 0x1abf
movq 0x28(%rsp), %rsi
subq %rbx, %rsi
movq %rbx, %rdi
callq 0x10e0
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x1ad9
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x10e0
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1af0
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x10e0
xorl %eax, %eax
addq $0xb0, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
jmp 0x1b22
jmp 0x1b3e
jmp 0x1b3e
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x1b22
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x10e0
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x1b41
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x10e0
jmp 0x1b41
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1b58
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x10e0
movq %rbx, %rdi
callq 0x1130
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/preprocessor.cpp
// Function: maxPreprocessor::Preprocessor::isTautology(maxPreprocessor::Clause const&) const
bool Preprocessor::isTautology(const Clause& clause) const {
	for (unsigned i = 1; i < clause.lit.size(); i++) {
		if (litNegation(clause.lit[i]) == clause.lit[i - 1]) {
			return true;
		}
	}
	return false;
}

// Assembly:
movq (%rsi), %rcx
movq 0x8(%rsi), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq $0x2, %rdx
jb 0xa022
movl $0x1, %edi
movl $0x2, %esi
leal -0x2(%rsi), %eax
movl (%rcx,%rax,4), %r8d
xorl (%rcx,%rdi,4), %r8d
cmpl $0x1, %r8d
sete %al
movl %esi, %edi
cmpq %rdi, %rdx
jbe 0xa021
incl %esi
cmpl $0x1, %r8d
jne 0xa000
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/preprocessor.cpp
// Function: maxPreprocessor::Preprocessor::setVariable(int, bool)
int Preprocessor::setVariable(int var, bool value) {
	int removed = 0;
	trace.setVar(var, value);
	vector<int>& satClauses = (value == true) ? pi.litClauses[posLit(var)] : pi.litClauses[negLit(var)];
	vector<int>& notSatClauses = (value == true) ? pi.litClauses[negLit(var)] : pi.litClauses[posLit(var)];
	for (int c : satClauses) {
		pi.removeClause(c);
		removed++;
	}
	for (int c : notSatClauses) {
		if (value == true) pi.removeLiteralFromClause(negLit(var), c);
		else pi.removeLiteralFromClause(posLit(var), c);
	}
	return removed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
addq $0x2f0, %rdi            # imm = 0x2F0
callq 0x2684c
leal (%r14,%r14), %eax
testl %ebp, %ebp
movq %r14, (%rsp)
je 0xa065
movslq %eax, %rdx
movq 0x18(%rbx), %rcx
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,8), %rdx
orl $0x1, %eax
jmp 0xa079
movl %eax, %ecx
orl $0x1, %ecx
movslq %ecx, %rdx
movq 0x18(%rbx), %rcx
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,8), %rdx
cltq
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax,8), %r12
movq (%rdx), %r13
movq 0x8(%rdx), %r14
xorl %r15d, %r15d
cmpq %r14, %r13
je 0xa0a7
movl (%r13), %esi
movq %rbx, %rdi
callq 0x27f28
incl %r15d
addq $0x4, %r13
jmp 0xa08d
movq (%r12), %r13
movq 0x8(%r12), %r12
cmpq %r12, %r13
je 0xa0dc
movzbl %bpl, %eax
movq (%rsp), %rcx
leal (%rax,%rcx,2), %ebp
movl (%r13), %edx
movq %rbx, %rdi
movl %ebp, %esi
movl $0x1, %ecx
callq 0x28218
addq $0x4, %r13
cmpq %r12, %r13
jne 0xa0c0
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/preprocessor.cpp
// Function: maxPreprocessor::Preprocessor::removeTautologies()
void Preprocessor::removeTautologies() {
	int found = 0;
	
	for (unsigned i = 0; i < pi.clauses.size(); i++) {
		if (isTautology(pi.clauses[i])) {
			found++;
			pi.removeClause(i);
		}
	}
	
	log(found, " tautologies removed");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
cmpq %rax, %rcx
je 0xa182
xorl %r14d, %r14d
movabsq $-0x3333333333333333, %r15 # imm = 0xCCCCCCCCCCCCCCCD
xorl %ebp, %ebp
leaq (%r14,%r14,4), %rsi
movq (%rax,%rsi,8), %rdx
movq 0x8(%rax,%rsi,8), %rsi
subq %rdx, %rsi
sarq $0x2, %rsi
cmpq $0x2, %rsi
jb 0xa16a
movl $0x1, %r8d
movl $0x2, %edi
leal -0x2(%rdi), %r9d
movl (%rdx,%r9,4), %r9d
xorl (%rdx,%r8,4), %r9d
cmpl $0x1, %r9d
je 0xa156
movl %edi, %r8d
incl %edi
cmpq %r8, %rsi
ja 0xa138
jmp 0xa16a
incl %ebp
movq %rbx, %rdi
movl %r14d, %esi
callq 0x27f28
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
incl %r14d
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r15, %rdx
cmpq %r14, %rdx
ja 0xa113
jmp 0xa184
xorl %ebp, %ebp
leaq 0x2e225(%rip), %rdx     # 0x383b0
movq %rbx, %rdi
movl %ebp, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1e844
nop
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/preprocessor.cpp
// Function: maxPreprocessor::Preprocessor::identifyLabels()
void Preprocessor::identifyLabels() {
	int found = 0;
	
	// Find literals that occur in only 1 clause and their negation occurs only in hard clauses
	for (int lit = 0; lit < pi.vars*2; lit++) {
		if (pi.litClauses[lit].size() == 1 && !pi.clauses[pi.litClauses[lit][0]].isHard() && pi.clauses[pi.litClauses[lit][0]].lit.size() == 1) {
			bool f = false;
			for (int c : pi.litClauses[litNegation(lit)]) {
				if (!pi.clauses[c].isHard()) {
					f = true;
					break;
				}
			}
			if (!f) {
				if (litValue(lit) == true) {
					pi.isLabel[litVariable(lit)] = VAR_TRUE;
				}
				else {
					pi.isLabel[litVariable(lit)] = VAR_FALSE;
				}
				found++;
			}
		}
	}
	
	log(found, " labels identified");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, 0x60(%rdi)
jle 0xad2b
xorl %r14d, %r14d
xorl %ebp, %ebp
movq 0x18(%rbx), %rcx
leaq (%r14,%r14,2), %r15
movq (%rcx,%r15,8), %rax
movq 0x8(%rcx,%r15,8), %rcx
subq %rax, %rcx
cmpq $0x4, %rcx
jne 0xad16
movslq (%rax), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x3, %rdi
addq (%rbx), %rdi
callq 0x2883e
testb %al, %al
jne 0xad16
movq (%rbx), %rcx
movq 0x18(%rbx), %rax
movq (%rax,%r15,8), %rdx
movslq (%rdx), %rdx
leaq (%rdx,%rdx,4), %rdx
movq 0x8(%rcx,%rdx,8), %rsi
subq (%rcx,%rdx,8), %rsi
cmpq $0x4, %rsi
jne 0xad16
movl %r14d, %ecx
xorq $0x1, %rcx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,8), %r15
movq 0x8(%rax,%rcx,8), %r12
cmpq %r12, %r15
je 0xad00
movslq (%r15), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x3, %rdi
addq (%rbx), %rdi
callq 0x2883e
testb %al, %al
je 0xad16
addq $0x4, %r15
jmp 0xacde
movl %r14d, %eax
andl $0x1, %eax
movl %r14d, %ecx
shrl %ecx
movq 0x48(%rbx), %rdx
incl %eax
movl %eax, (%rdx,%rcx,4)
incl %ebp
incq %r14
movslq 0x60(%rbx), %rax
addq %rax, %rax
cmpq %rax, %r14
jl 0xac74
jmp 0xad2d
xorl %ebp, %ebp
leaq 0x2d730(%rip), %rdx     # 0x38464
movq %rbx, %rdi
movl %ebp, %esi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1e844
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/preprocessor.cpp
// Function: maxPreprocessor::Preprocessor::createLabels()
void Preprocessor::createLabels() {
	int added = 0;
	
	// Create labels for every soft clause that does not have a label yet
	for (unsigned i = 0; i < pi.clauses.size(); i++) {
		if (!pi.clauses[i].isHard() && !pi.isClauseRemoved(i)) {
			bool f = false;
			for (int lit : pi.clauses[i].lit) {
				if (pi.isLabel[litVariable(lit)]) {
					f = true;
					break;
				}
			}
			if (!f) {
				int nv = pi.addVar();
				pi.addLiteralToClause(posLit(nv), i);
				pi.addClause({negLit(nv)}, pi.clauses[i].weight);
				pi.isLabel[nv] = VAR_FALSE;
				pi.clauses[i].weight = HARDWEIGHT;
				added++;
			}
		}
	}
	
	log(added, " labels added");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq (%rdi), %rcx
cmpq %rcx, 0x8(%rdi)
je 0xae8a
xorl %r14d, %r14d
movabsq $-0x3333333333333333, %r12 # imm = 0xCCCCCCCCCCCCCCCD
xorl %r13d, %r13d
leaq (%r14,%r14,4), %r15
leaq (%rcx,%r15,8), %rdi
callq 0x2883e
testb %al, %al
je 0xad8d
movq (%rbx), %rcx
jmp 0xae6d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x27804
movq (%rbx), %rcx
testb %al, %al
jne 0xae6d
movq (%rcx,%r15,8), %rax
movq 0x8(%rcx,%r15,8), %rdx
cmpq %rdx, %rax
je 0xadcf
movq 0x48(%rbx), %rsi
movl (%rax), %edi
sarl %edi
movslq %edi, %rdi
cmpl $0x0, (%rsi,%rdi,4)
jne 0xae6d
addq $0x4, %rax
cmpq %rdx, %rax
jne 0xadb5
movq %rbx, %rdi
callq 0x2808e
movl %eax, %r12d
leal (%r12,%r12), %esi
movq %rbx, %rdi
movl %r14d, %edx
movl $0x1, %ecx
callq 0x28164
leal 0x1(,%r12,2), %eax
movl %eax, 0xc(%rsp)
movl $0x1, %edx
leaq 0x10(%rsp), %rbp
movq %rbp, %rdi
leaq 0xc(%rsp), %rsi
leaq 0xb(%rsp), %rcx
callq 0x1e9a8
movq (%rbx), %rax
movq 0x18(%rax,%r15,8), %rdx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x27f82
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xae40
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movslq %r12d, %rax
movq 0x48(%rbx), %rcx
movl $0x2, (%rcx,%rax,4)
movq (%rbx), %rcx
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x18(%rcx,%r15,8)
incl %r13d
movabsq $-0x3333333333333333, %r12 # imm = 0xCCCCCCCCCCCCCCCD
incl %r14d
movq 0x8(%rbx), %rax
subq %rcx, %rax
sarq $0x3, %rax
imulq %r12, %rax
cmpq %r14, %rax
ja 0xad74
jmp 0xae8d
xorl %r13d, %r13d
leaq 0x2d5e3(%rip), %rdx     # 0x38477
movq %rbx, %rdi
movl %r13d, %esi
callq 0x1e844
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xaec8
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %rbx, %rdi
callq 0x34a0
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/preprocessor.cpp
// Function: maxPreprocessor::Preprocessor::removeEmptyClauses()
int Preprocessor::removeEmptyClauses() {
	int removed = 0;
	vector<int> src;
	for (unsigned i = 0; i < pi.clauses.size(); i++) {
		if (!pi.isClauseRemoved(i)) {
			if (pi.clauses[i].lit.size() == 0) {
				if (pi.clauses[i].isHard()) {
					
				}
				else {
					src.push_back(i);
				}
			}
		}
	}
	for (int c : src) {
		trace.removeWeight(pi.clauses[c].weight);
		pi.removeClause(c);
		removed++;
	}
	log(removed, " empty clauses removed");
	return removed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x8(%rdi), %rax
cmpq (%rdi), %rax
je 0xafd1
movl $0x1, %r12d
xorl %r14d, %r14d
movabsq $-0x3333333333333333, %r13 # imm = 0xCCCCCCCCCCCCCCCD
leaq 0x24(%rsp), %r15
leal -0x1(%r12), %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x27804
testb %al, %al
jne 0xaf70
movq (%rbx), %rax
leaq (%r14,%r14,4), %rcx
movq 0x8(%rax,%rcx,8), %rdx
cmpq (%rax,%rcx,8), %rdx
jne 0xaf70
leaq (%rax,%rcx,8), %rdi
callq 0x2883e
testb %al, %al
jne 0xaf70
movl %ebp, 0x24(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0xaf65
movl %ebp, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rsp)
jmp 0xaf70
movq %rsp, %rdi
movq %r15, %rdx
callq 0x1ffb8
movl %r12d, %r14d
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x3, %rax
imulq %r13, %rax
incl %r12d
cmpq %r14, %rax
ja 0xaf16
movq (%rsp), %r12
movq 0x8(%rsp), %r13
cmpq %r13, %r12
je 0xafd1
leaq 0x2f0(%rbx), %r14
xorl %ebp, %ebp
movslq (%r12), %r15
movq (%rbx), %rax
leaq (%r15,%r15,4), %rcx
movq 0x18(%rax,%rcx,8), %rsi
movq %r14, %rdi
callq 0x27030
movq %rbx, %rdi
movl %r15d, %esi
callq 0x27f28
incl %ebp
addq $0x4, %r12
cmpq %r13, %r12
jne 0xafa1
jmp 0xafd3
xorl %ebp, %ebp
leaq 0x2d4ab(%rip), %rdx     # 0x38485
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1e844
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xaffa
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb011
jmp 0xb011
jmp 0xb011
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xb02a
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %rbx, %rdi
callq 0x34a0
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/preprocessor.cpp
// Function: maxPreprocessor::Preprocessor::tryUP(int)
int Preprocessor::tryUP(int lit) {
	for (int c : pi.litClauses[lit]) {
		if (pi.clauses[c].lit.size() == 1 && pi.clauses[c].isHard()) {
			if (pi.isLabel[litVariable(lit)] != VAR_UNDEFINED) {
				rLog.removeLabel(1);
			}
			else {
				rLog.removeVariable(1);
			}
			int rmClauses = setVariable(litVariable(lit), litValue(lit));
			rLog.removeClause(rmClauses);
			return rmClauses;
		}
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movslq %esi, %rax
movq 0x18(%rdi), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %r15
movq 0x8(%rcx,%rax,8), %r12
xorl %r14d, %r14d
cmpq %r12, %r15
je 0xb0e7
movl %esi, %ebp
movq %rdi, %rbx
movslq (%r15), %rcx
movq (%rbx), %rax
leaq (%rcx,%rcx,4), %rcx
movq 0x8(%rax,%rcx,8), %rdx
subq (%rax,%rcx,8), %rdx
cmpq $0x4, %rdx
jne 0xb085
leaq (%rax,%rcx,8), %rdi
callq 0x2883e
testb %al, %al
jne 0xb090
addq $0x4, %r15
cmpq %r12, %r15
jne 0xb05f
jmp 0xb0e7
movl %ebp, %r14d
sarl %r14d
movslq %r14d, %rax
movq 0x48(%rbx), %rcx
leaq 0x218(%rbx), %r15
cmpl $0x0, (%rcx,%rax,4)
je 0xb0b9
movq %r15, %rdi
movl $0x1, %esi
callq 0x28cdc
jmp 0xb0c6
movq %r15, %rdi
movl $0x1, %esi
callq 0x28c64
xorl %edx, %edx
testb $0x1, %bpl
sete %dl
movq %rbx, %rdi
movl %r14d, %esi
callq 0xa026
movl %eax, %r14d
movq %r15, %rdi
movl %eax, %esi
callq 0x28c28
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/preprocessor.cpp
// Function: maxPreprocessor::Preprocessor::doUP()
int Preprocessor::doUP() {
	rLog.startTechnique(Log::Technique::UP);
	int removed = 0;
	if (!rLog.requestTime(Log::Technique::UP)) {
		rLog.stopTechnique(Log::Technique::UP);
		return 0;
	}
	vector<int> checkLit = pi.tl.getTouchedLiterals("UP");
	if ((int)checkLit.size() > pi.vars) {
		removed = tryUPAll();
	}
	else {
		for (int lit : checkLit) {
			if (!rLog.requestTime(Log::Technique::UP)) break;
			removed += tryUP(lit);
		}
	}
	
	log(removed, " clauses removed by UP");
	rLog.stopTechnique(Log::Technique::UP);
	return removed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r14
leaq 0x218(%rdi), %rbx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x28b9e
movq %rbx, %rdi
movl $0x2, %esi
callq 0x29718
testb %al, %al
je 0xb2e6
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2d25d(%rip), %rsi     # 0x384b0
leaq 0x2d258(%rip), %rdx     # 0x384b2
leaq 0x18(%rsp), %r15
movq %r15, %rdi
callq 0x9466
leaq 0x68(%r14), %rsi
movq %rsp, %rdi
movq %r15, %rdx
callq 0x2f7b6
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0xb28d
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x32b0
movq (%rsp), %r12
movq 0x8(%rsp), %r13
movq %r13, %rax
subq %r12, %rax
shrq $0x2, %rax
cmpl %eax, 0x60(%r14)
jge 0xb306
movq %r14, %rdi
callq 0xb0f4
movl %eax, %ebp
leaq 0x2d1e5(%rip), %rdx     # 0x3849c
movq %r14, %rdi
movl %ebp, %esi
callq 0x1e844
movq %rbx, %rdi
movl $0x2, %esi
callq 0x28be0
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xb2f5
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
jmp 0xb2f5
movq %rbx, %rdi
movl $0x2, %esi
callq 0x28be0
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
cmpq %r13, %r12
je 0xb2b0
movl (%r12), %r15d
movq %rbx, %rdi
movl $0x2, %esi
callq 0x29718
testb %al, %al
je 0xb2b0
movq %r14, %rdi
movl %r15d, %esi
callq 0xb032
addl %eax, %ebp
addq $0x4, %r12
jmp 0xb308
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0xb367
movq 0x28(%rsp), %rsi
incq %rsi
jmp 0xb362
jmp 0xb34e
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xb367
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %rbx, %rdi
callq 0x34a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/preprocessor.cpp
// Function: maxPreprocessor::Preprocessor::doUP2()
void Preprocessor::doUP2() {
	rLog.startTechnique(Log::Technique::UP);
	for (int lit = 0; lit < 2*pi.vars; lit++) {
		assert(tryUP(lit) == 0);
	}
	rLog.stopTechnique(Log::Technique::UP);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x218(%rdi), %rbx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x28b9e
cmpl $0x0, 0x60(%r14)
jle 0xb3ae
xorl %ebp, %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0xb032
testl %eax, %eax
jne 0xb3bf
incl %ebp
movl 0x60(%r14), %eax
addl %eax, %eax
cmpl %eax, %ebp
jl 0xb394
movq %rbx, %rdi
movl $0x2, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x28be0
leaq 0x2d0ed(%rip), %rdi     # 0x384b3
leaq 0x2d01a(%rip), %rsi     # 0x383e7
leaq 0x2d0ef(%rip), %rcx     # 0x384c3
movl $0x154, %edx            # imm = 0x154
callq 0x31b0
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./SE.cpp
// Function: maxPreprocessor::Preprocessor::isSubsumed(std::vector<int, std::allocator<int>> const&, std::vector<int, std::allocator<int>> const&) const
bool Preprocessor::isSubsumed(const vector<int>& a, const vector<int>& b) const {
	unsigned i2 = 0;
	for (unsigned i = 0; i < b.size(); i++) {
		while (i2 < a.size() && a[i2] < b[i]) {
			i2++;
		}
		if (i2 >= a.size() || a[i2] != b[i]) return false;
	}
	return true;
}

// Assembly:
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
movb $0x1, %al
subq %rcx, %rdx
je 0xb968
sarq $0x2, %rdx
movq (%rsi), %rdi
movq 0x8(%rsi), %rsi
subq %rdi, %rsi
sarq $0x2, %rsi
xorl %r8d, %r8d
xorl %r9d, %r9d
movl %r9d, %r11d
cmpq %r11, %rsi
jbe 0xb966
movl (%rcx,%r8,4), %r10d
movl (%rdi,%r11,4), %r11d
cmpl %r10d, %r11d
jge 0xb95a
incl %r9d
movq %r9, %r11
cmpq %r9, %rsi
ja 0xb944
jmp 0xb966
jne 0xb966
incl %r8d
cmpq %r8, %rdx
ja 0xb938
jmp 0xb968
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./SE.cpp
// Function: maxPreprocessor::Preprocessor::trySEgen(int, std::vector<int, std::allocator<int>>&)
void Preprocessor::trySEgen(int lit, vector<int>& toRemove) {
	if ((int)pi.litClauses[lit].size() <= 64) { // magic constant
		trySE(pi.litClauses[lit], toRemove);
	}
	else {
		int avg = 0;
		for (int c : pi.litClauses[lit]) {
			avg += pi.clauses[c].lit.size();
		}
		avg /= (int)pi.litClauses[lit].size();
		
		if (avg <= 10) { // magic constant
			trySEHash(pi.litClauses[lit], lit, toRemove);
		}
		else if (avg >= 30) { // magic constant
			trySEAmsLex(pi.litClauses[lit], toRemove);
		}
		else {
			if (avg * (int)pi.litClauses[lit].size() > 10000) { // magic constant
				trySEAmsLex(pi.litClauses[lit], toRemove);
			}
			else {
				trySEHash(pi.litClauses[lit], lit, toRemove);
			}
		}
	}
}

// Assembly:
movq %rdx, %rcx
movl %esi, %r8d
movslq %esi, %rax
movq 0x18(%rdi), %rdx
leaq (%rax,%rax,2), %rax
leaq (%rdx,%rax,8), %rsi
movq (%rsi), %rdx
movq 0x8(%rsi), %r10
movq %r10, %r9
subq %rdx, %r9
shrq $0x2, %r9
cmpl $0x41, %r9d
jge 0xc7b0
movq %rcx, %rdx
jmp 0xc452
pushq %r14
pushq %rbx
cmpq %r10, %rdx
je 0xc7df
movq (%rdi), %r11
xorl %eax, %eax
movslq (%rdx), %rbx
leaq (%rbx,%rbx,4), %rbx
movq 0x8(%r11,%rbx,8), %r14
subq (%r11,%rbx,8), %r14
shrq $0x2, %r14
addl %r14d, %eax
addq $0x4, %rdx
cmpq %r10, %rdx
jne 0xc7bd
jmp 0xc7e1
xorl %eax, %eax
cltd
idivl %r9d
cmpl $0xb, %eax
popq %rbx
popq %r14
jge 0xc7f5
movl %r8d, %edx
jmp 0xbb9c
cmpl $0x1e, %eax
jae 0xc805
imull %r9d, %eax
cmpl $0x2711, %eax           # imm = 0x2711
jl 0xc7ed
movq %rcx, %rdx
jmp 0xc0b2
nop
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./SE.cpp
// Function: maxPreprocessor::Preprocessor::doSE2()
void Preprocessor::doSE2() {
	for (int lit = 0; lit < 2*pi.vars; lit++) {
		if (trySESlow(lit) != 0) {
			print("fail SE ", litToDimacs(lit));
			abort();
		}
	}
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
cmpl $0x0, 0x60(%rdi)
jle 0xcb53
movq %rdi, %rbx
xorl %ebp, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0xb96a
testl %eax, %eax
jne 0xcb5a
incl %ebp
movl 0x60(%rbx), %eax
addl %eax, %eax
cmpl %eax, %ebp
jl 0xcb3a
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movl %ebp, %edi
callq 0x277eb
leaq 0x2b9b0(%rip), %rsi     # 0x38518
movq %rbx, %rdi
movl %eax, %edx
callq 0x1eb3c
callq 0x3180
nop
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./BVE.cpp
// Function: maxPreprocessor::Preprocessor::getBVEHash(std::vector<int, std::allocator<int>> const&, int, int) const
vector<uint64_t> Preprocessor::getBVEHash(const vector<int>& cs, int var, int sw) const {
	vector<uint64_t> h(cs.size());
	for (unsigned i = 0; i < cs.size(); i++) {
		for (int l : pi.clauses[cs[i]].lit) {
			if (litVariable(l) != var) h[i] |= ((uint64_t)1<<(uint64_t)((l^sw)&63));
		}
	}
	return h;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %r8d, %ebx
movl %ecx, %ebp
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
movq 0x8(%rdx), %rsi
subq (%rdx), %rsi
sarq $0x2, %rsi
leaq 0xf(%rsp), %rdx
callq 0x1eba2
movq (%r12), %rax
movq 0x8(%r12), %rdx
subq %rax, %rdx
je 0xcc07
sarq $0x2, %rdx
movq (%r15), %rsi
xorl %edi, %edi
movslq (%rax,%rdi,4), %rcx
leaq (%rcx,%rcx,4), %rcx
movq (%rsi,%rcx,8), %r8
movq 0x8(%rsi,%rcx,8), %r9
cmpq %r9, %r8
je 0xcbfd
movq (%r14), %r10
movl (%r8), %ecx
movl %ecx, %r11d
sarl %r11d
cmpl %ebp, %r11d
je 0xcbf4
xorl %ebx, %ecx
movl $0x1, %r11d
shlq %cl, %r11
orq %r11, (%r10,%rdi,8)
addq $0x4, %r8
cmpq %r9, %r8
jne 0xcbd7
incq %rdi
movl %edi, %ecx
cmpq %rcx, %rdx
ja 0xcbbe
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./BVE.cpp
// Function: maxPreprocessor::Preprocessor::doBVE2()
void Preprocessor::doBVE2() {
	for (int var = 0; var < pi.vars; var++) {
		if (pi.isLabel[var] == 0 && (pi.litClauses[posLit(var)].size() > 0 || pi.litClauses[negLit(var)].size() > 0)) {
			if (tryBVE(var) != 0) {
				print("fail BVE ", var + 1);
				abort();
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl 0x60(%rdi), %eax
testl %eax, %eax
jle 0xff15
movq %rdi, %rbx
movl $0x1, %ebp
xorl %r15d, %r15d
movabsq $0x200000000, %r12      # imm = 0x200000000
xorl %r14d, %r14d
movq 0x48(%rbx), %rcx
cmpl $0x0, (%rcx,%r14,4)
jne 0xff04
movq %r15, %rdx
sarq $0x20, %rdx
movq 0x18(%rbx), %rcx
leaq (%rdx,%rdx,2), %rdx
movq 0x8(%rcx,%rdx,8), %rsi
cmpq (%rcx,%rdx,8), %rsi
jne 0xfef2
movslq %ebp, %rdx
leaq (%rdx,%rdx,2), %rdx
movq 0x8(%rcx,%rdx,8), %rsi
cmpq (%rcx,%rdx,8), %rsi
je 0xff04
movq %rbx, %rdi
movl %r14d, %esi
callq 0xf3aa
testl %eax, %eax
jne 0xff1e
movl 0x60(%rbx), %eax
incq %r14
movslq %eax, %rcx
addl $0x2, %ebp
addq %r12, %r15
cmpq %rcx, %r14
jl 0xfebb
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
incl %r14d
leaq 0x28934(%rip), %rsi     # 0x3885c
movq %rbx, %rdi
movl %r14d, %edx
callq 0x1eb3c
callq 0x3180
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./SSR.cpp
// Function: maxPreprocessor::Preprocessor::SSRC(int, int, int)
bool Preprocessor::SSRC(int c1, int c2, int var) {
	uint64_t bmP = ((uint64_t)1 << (uint64_t)(posLit(var)&63));
	uint64_t bmN = ((uint64_t)1 << (uint64_t)(negLit(var)&63));
	
	bool canP = false;
	bool canN = false;
	
	if (((pi.clauses[c2].hash ^ bmN) | pi.clauses[c1].hash) == pi.clauses[c1].hash) canP = canSSR(var, pi.clauses[c2], pi.clauses[c1]);
	if (((pi.clauses[c1].hash ^ bmP) | pi.clauses[c2].hash) == pi.clauses[c2].hash) canN = canSSR(var, pi.clauses[c1], pi.clauses[c2]);
	if (pi.isClauseRemoved(c1)) return false;
	if (pi.isClauseRemoved(c2)) return false;
	if (canP && canN) {
		pi.removeLiteralFromClause(posLit(var), c1);
		pi.removeClause(c2);
		rLog.removeLiteral(1);
		rLog.removeClause(1);
		return true;
	}
	else if (canP) {
		pi.removeLiteralFromClause(posLit(var), c1);
		rLog.removeLiteral(1);
		return true;
	}
	else if (canN) {
		pi.removeLiteralFromClause(negLit(var), c2);
		rLog.removeLiteral(1);
		return true;
	}
	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %r13d
leal (%r13,%r13), %ecx
movl $0x1, %ebp
movl %ecx, 0x10(%rsp)
shlq %cl, %rbp
leal 0x1(,%r13,2), %r8d
movl %edx, 0xc(%rsp)
movslq %edx, %rax
movq %rdi, 0x18(%rsp)
movq (%rdi), %rcx
leaq (%rax,%rax,4), %rax
leaq (%rcx,%rax,8), %r15
movq 0x20(%r15), %r14
movq %r14, %rax
movq %r8, 0x20(%rsp)
btcq %r8, %rax
movl %esi, 0x14(%rsp)
movslq %esi, %rdx
leaq (%rdx,%rdx,4), %rdx
leaq (%rcx,%rdx,8), %r12
movq 0x20(%r12), %rbx
movq %rbx, %rcx
notq %rcx
testq %rax, %rcx
jne 0x10072
movl %r13d, %esi
movq %r15, %rdx
movq %r12, %rcx
callq 0xff38
jmp 0x10074
xorl %eax, %eax
xorq %rbp, %rbx
notq %r14
testq %rbx, %r14
jne 0x10095
movl %eax, %r14d
movl %r13d, %esi
movq %r12, %rdx
movq %r15, %rcx
callq 0xff38
movl %eax, %r15d
jmp 0x1009b
movl %eax, %r14d
xorl %r15d, %r15d
movq 0x18(%rsp), %rbx
movl 0x14(%rsp), %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x27804
testb %al, %al
jne 0x100c2
movq %rbx, %rdi
movl 0xc(%rsp), %esi
callq 0x27804
testb %al, %al
je 0x100c9
xorl %eax, %eax
jmp 0x10156
movl %r14d, %eax
andb %r15b, %al
cmpb $0x1, %al
jne 0x10115
movq %rbx, %rdi
movl 0x10(%rsp), %esi
movl %ebp, %edx
movl $0x1, %ecx
callq 0x28218
movq %rbx, %rdi
movl 0xc(%rsp), %esi
callq 0x27f28
addq $0x218, %rbx            # imm = 0x218
movq %rbx, %rdi
movl $0x1, %esi
callq 0x28ca0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x28c28
jmp 0x10154
testb %r14b, %r14b
je 0x10125
movq %rbx, %rdi
movl 0x10(%rsp), %esi
movl %ebp, %edx
jmp 0x10136
testb %r15b, %r15b
je 0x100c2
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
movl 0xc(%rsp), %edx
movl $0x1, %ecx
callq 0x28218
addq $0x218, %rbx            # imm = 0x218
movq %rbx, %rdi
movl $0x1, %esi
callq 0x28ca0
movb $0x1, %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./SSR.cpp
// Function: maxPreprocessor::Preprocessor::trySSR2(int)
int Preprocessor::trySSR2(int var) {
	int removed = 0;
	
	uint64_t bmP = ((uint64_t)1 << (uint64_t)(posLit(var)&63));
	uint64_t bmN = ((uint64_t)1 << (uint64_t)(negLit(var)&63));
	
	bool f = true;
	while (f) {
		f = false;
		for (int c1 : pi.litClauses[posLit(var)]) {
			for (int c2 : pi.litClauses[negLit(var)]) {
				if ((((pi.clauses[c1].hash ^ bmP) | pi.clauses[c2].hash) != pi.clauses[c2].hash) && (((pi.clauses[c2].hash ^ bmN) | pi.clauses[c1].hash) != pi.clauses[c1].hash)) continue;
				
				if (SSRC(c1, c2, var)) {
					f = true;
					removed++;
					break;
				}
			}
			if (f) break;
		}
	}
	return removed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
leal (%rsi,%rsi), %eax
movl $0x1, %edx
movl $0x1, %r13d
movl %eax, %ecx
shlq %cl, %r13
movq %rsi, 0x30(%rsp)
leal 0x1(,%rsi,2), %ecx
shlq %cl, %rdx
movq %rdx, 0x28(%rsp)
cltq
movq 0x18(%rdi), %rdx
leaq (%rax,%rax,2), %rax
movq (%rdx,%rax,8), %rsi
movq %rax, 0x18(%rsp)
movq 0x8(%rdx,%rax,8), %rax
movq %rsi, 0x8(%rsp)
movq %rax, 0x10(%rsp)
cmpq %rax, %rsi
je 0x10c72
movq %rdi, %r14
movslq %ecx, %rcx
xorl %eax, %eax
leaq (%rcx,%rcx,2), %rcx
movq %rcx, 0x20(%rsp)
movl %eax, 0x4(%rsp)
movq 0x18(%r14), %rax
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %r12
movq 0x8(%rax,%rcx,8), %rbp
cmpq %rbp, %r12
je 0x10c24
movq 0x8(%rsp), %rax
movslq (%rax), %r15
leaq (%r15,%r15,4), %rbx
movslq (%r12), %rdx
movq (%r14), %rcx
movq 0x20(%rcx,%rbx,8), %rax
movq %rax, %rsi
xorq %r13, %rsi
leaq (%rdx,%rdx,4), %rdi
movq 0x20(%rcx,%rdi,8), %rcx
movq %rcx, %rdi
notq %rdi
testq %rsi, %rdi
je 0x10c07
xorq 0x28(%rsp), %rcx
notq %rax
testq %rcx, %rax
jne 0x10c1b
movq %r14, %rdi
movl %r15d, %esi
movq 0x30(%rsp), %rcx
callq 0xfff2
testb %al, %al
jne 0x10c3f
addq $0x4, %r12
cmpq %rbp, %r12
jne 0x10bd4
movq 0x8(%rsp), %rax
addq $0x4, %rax
movq %rax, 0x8(%rsp)
cmpq 0x10(%rsp), %rax
jne 0x10bb1
jmp 0x10c6c
movl 0x4(%rsp), %eax
incl %eax
movq 0x18(%r14), %rcx
movq 0x18(%rsp), %rdx
movq (%rcx,%rdx,8), %rsi
movq 0x8(%rcx,%rdx,8), %rcx
movq %rsi, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
cmpq %rcx, %rsi
jne 0x10bad
jmp 0x10c74
movl 0x4(%rsp), %eax
jmp 0x10c74
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./SSR.cpp
// Function: maxPreprocessor::Preprocessor::trySSRgen(int)
int Preprocessor::trySSRgen(int var) {
	int eliminated = 0;
	if (pi.isLabel[var] == 0 && pi.litClauses[posLit(var)].size() > 0 && pi.litClauses[negLit(var)].size() > 0) {
		uint64_t n = (uint64_t)pi.litClauses[posLit(var)].size()*(uint64_t)pi.litClauses[negLit(var)].size();
		if (n <= 50000) { // magic constant
			eliminated += trySSR2(var);
		}
		else {
			int avg = 0;
			for (int c : pi.litClauses[posLit(var)]) {
				avg += pi.clauses[c].lit.size();
			}
			for (int c : pi.litClauses[negLit(var)]) {
				avg += pi.clauses[c].lit.size();
			}
			avg /= (int)(pi.litClauses[posLit(var)].size() + pi.litClauses[negLit(var)].size());
			
			if (avg <= 4) { // magic constant
				eliminated += trySSRHash(var);
			}
			else if (avg >= 8) { // magic constant
				eliminated += trySSRAmsLex(var);
			}
			else {
				if (avg * (int)(pi.litClauses[posLit(var)].size() + pi.litClauses[negLit(var)].size()) > 10000) { // magic constant
					eliminated += trySSRAmsLex(var);
				}
				else {
					eliminated += trySSRHash(var);
				}
			}
		}
	}
	return eliminated;
}

// Assembly:
movslq %esi, %rax
movq 0x48(%rdi), %rcx
cmpl $0x0, (%rcx,%rax,4)
je 0x10eec
xorl %eax, %eax
retq
leal (%rsi,%rsi), %ecx
movslq %ecx, %rdx
movq 0x18(%rdi), %rax
leaq (%rdx,%rdx,2), %rdx
movq (%rax,%rdx,8), %r10
movq 0x8(%rax,%rdx,8), %r11
movq %r11, %rdx
subq %r10, %rdx
je 0x10ee9
orl $0x1, %ecx
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
movq (%rax,%rcx,8), %r8
movq 0x8(%rax,%rcx,8), %r9
movq %r9, %rcx
subq %r8, %rcx
je 0x10ee9
sarq $0x2, %rdx
sarq $0x2, %rcx
movq %rcx, %rax
imulq %rdx, %rax
cmpq $0xc351, %rax           # imm = 0xC351
jae 0x10f42
jmp 0x10b3c
pushq %r15
pushq %r14
pushq %rbx
movq (%rdi), %rbx
xorl %eax, %eax
movslq (%r10), %r14
leaq (%r14,%r14,4), %r14
movq 0x8(%rbx,%r14,8), %r15
subq (%rbx,%r14,8), %r15
shrq $0x2, %r15
addl %r15d, %eax
addq $0x4, %r10
cmpq %r11, %r10
jne 0x10f4c
movq (%rdi), %r10
movslq (%r8), %r11
leaq (%r11,%r11,4), %r11
movq 0x8(%r10,%r11,8), %rbx
subq (%r10,%r11,8), %rbx
shrq $0x2, %rbx
addl %ebx, %eax
addq $0x4, %r8
cmpq %r9, %r8
jne 0x10f6f
addl %edx, %ecx
cltd
idivl %ecx
cmpl $0x5, %eax
popq %rbx
popq %r14
popq %r15
jge 0x10fa2
jmp 0x104d6
cmpl $0x8, %eax
jae 0x10fb1
imull %ecx, %eax
cmpl $0x2711, %eax           # imm = 0x2711
jl 0x10f9d
jmp 0x10166
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./SSR.cpp
// Function: maxPreprocessor::Preprocessor::doSSR2()
void Preprocessor::doSSR2() {
	for (int var = 0; var < pi.vars; var++) {
		if (pi.isLabel[var] == 0 && pi.litClauses[posLit(var)].size() > 0 && pi.litClauses[negLit(var)].size() > 0) {
			if (trySSR(var) != 0){
				print("fail SSR ", var + 1);
				abort();
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl 0x60(%rdi), %eax
testl %eax, %eax
jle 0x112c3
movq %rdi, %rbx
movl $0x1, %ebp
xorl %r15d, %r15d
movabsq $0x200000000, %r12      # imm = 0x200000000
xorl %r14d, %r14d
movq 0x48(%rbx), %rcx
cmpl $0x0, (%rcx,%r14,4)
je 0x11283
incq %r14
movslq %eax, %rcx
addl $0x2, %ebp
addq %r12, %r15
cmpq %rcx, %r14
jl 0x11265
jmp 0x112c3
movq %r15, %rdx
sarq $0x20, %rdx
movq 0x18(%rbx), %rcx
leaq (%rdx,%rdx,2), %rdx
movq 0x8(%rcx,%rdx,8), %rsi
cmpq (%rcx,%rdx,8), %rsi
je 0x11270
movslq %ebp, %rdx
leaq (%rdx,%rdx,2), %rdx
movq 0x8(%rcx,%rdx,8), %rsi
cmpq (%rcx,%rdx,8), %rsi
je 0x11270
movq %rbx, %rdi
movl %r14d, %esi
callq 0x10c84
testl %eax, %eax
jne 0x112cc
movl 0x60(%rbx), %eax
jmp 0x11270
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
incl %r14d
leaq 0x275af(%rip), %rsi     # 0x38885
movq %rbx, %rdi
movl %r14d, %edx
callq 0x1eb3c
callq 0x3180
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./SIE.cpp
// Function: maxPreprocessor::Preprocessor::doSIE()
int Preprocessor::doSIE() {
	rLog.startTechnique(Log::Technique::SIE);
	int removed = 0;
	vector<int> checkLit = pi.tl.getTouchedLiterals("SIE");
	for (int lit : checkLit) {
		removed += trySIE(lit);
	}
	log(removed, " clauses removed by SIE");
	rLog.stopTechnique(Log::Technique::SIE);
	return removed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
leaq 0x218(%rdi), %rbx
movq %rbx, %rdi
movl $0x8, %esi
callq 0x28b9e
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2564b(%rip), %rsi     # 0x38c3b
leaq 0x25647(%rip), %rdx     # 0x38c3e
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x9466
leaq 0x68(%r14), %rsi
leaq 0x8(%rsp), %rdi
movq %r15, %rdx
callq 0x2f7b6
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x1362c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x8(%rsp), %r15
movq 0x10(%rsp), %r12
xorl %ebp, %ebp
cmpq %r12, %r15
je 0x13650
movl (%r15), %esi
movq %r14, %rdi
callq 0x1310e
addl %eax, %ebp
addq $0x4, %r15
jmp 0x13638
leaq 0x255d0(%rip), %rdx     # 0x38c27
movq %r14, %rdi
movl %ebp, %esi
callq 0x1e844
movq %rbx, %rdi
movl $0x8, %esi
callq 0x28be0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x13685
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movl %ebp, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x136c7
movq 0x30(%rsp), %rsi
incq %rsi
jmp 0x136c2
jmp 0x136ad
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x136c7
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %rbx, %rdi
callq 0x34a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/Laakeri[P]maxpre/src/./SIE.cpp
// Function: maxPreprocessor::Preprocessor::doSIE2()
void Preprocessor::doSIE2() {
	for (int litX = 0; litX < pi.vars*2; litX++) {
		for (int litY = 0; litY < pi.vars*2; litY++) {
			if (litVariable(litX) != litVariable(litY) && pi.isLabel[litVariable(litX)] == VAR_UNDEFINED && pi.isLabel[litVariable(litY)] == VAR_UNDEFINED) {
				if (!pi.isVarRemoved(litVariable(litX)) && !pi.isVarRemoved(litVariable(litY))) {
					if (try2SIE(litX, litY)) {
						print("fail SIE ", litToDimacs(litX), " ", litToDimacs(litY));
						print("fail SIE ");
						abort();
					}
				}
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl 0x60(%rdi), %eax
testl %eax, %eax
jle 0x13758
movq %rdi, %rbx
xorl %ebp, %ebp
testl %eax, %eax
jle 0x1374f
movl %ebp, %r15d
shrl %r15d
xorl %r14d, %r14d
movl %r14d, %r12d
shrl %r12d
cmpl %r12d, %r15d
je 0x1373f
movq 0x48(%rbx), %rax
cmpl $0x0, (%rax,%r15,4)
jne 0x1373f
movl %r12d, %ecx
cmpl $0x0, (%rax,%rcx,4)
jne 0x1373f
movq %rbx, %rdi
movl %r15d, %esi
callq 0x278a0
testb %al, %al
jne 0x1373f
movq %rbx, %rdi
movl %r12d, %esi
callq 0x278a0
testb %al, %al
jne 0x1373f
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0x12f02
testl %eax, %eax
jne 0x13761
incl %r14d
movl 0x60(%rbx), %eax
leal (%rax,%rax), %ecx
cmpl %ecx, %r14d
jl 0x136f1
jmp 0x13752
leal (%rax,%rax), %ecx
incl %ebp
cmpl %ecx, %ebp
jl 0x136e4
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl %ebp, %edi
callq 0x277eb
movl %eax, %ebp
movl %r14d, %edi
callq 0x277eb
leaq 0x254c6(%rip), %r14     # 0x38c3f
leaq 0x25af4(%rip), %rcx     # 0x39274
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
movl %eax, %r8d
callq 0x1f228
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f0da
callq 0x3180