LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/camargodev[P]n-tile-puzzle/src/InputReader.cpp
// Function: InputReader::parseInput(int, char**)
Input InputReader :: parseInput(int argc, char** argv) {
    Input input;

    string teste = "";
    teste = teste + argv[argc-1];
    std::size_t found = teste.find(".txt");
    bool isTxt = false;
    if(found!=std::string::npos){
        isTxt = true;
    }

    input.algorithm = getAlgorithmId(argv[ALGORITHM_INDEX]);
    input.states = parseStates(argc, argv, isTxt);
    return input;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x3596(%rip), %rdx      # 0x9081
movq %rsp, %rdi
movq %rdx, %rsi
callq 0x2d36
movslq %ebp, %rax
movq -0x8(%r14,%rax,8), %r12
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x2ca0
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x2360
movq %rsp, %rdi
leaq 0x20(%rsp), %r12
movq %r12, %rsi
callq 0x2240
movq (%r12), %rdi
cmpq %r13, %rdi
je 0x5b48
callq 0x21f0
leaq 0x3672(%rip), %rsi      # 0x91c1
movq %rsp, %rdi
movl $0x4, %ecx
xorl %edx, %edx
callq 0x2310
movq %rax, %r12
movslq (%r15), %rax
movq (%r14,%rax,8), %rsi
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x20a0
leaq 0x20(%rsp), %r13
movq %r13, %rsi
callq 0x53a8
movl %eax, 0x18(%rbx)
movq (%r13), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5b9a
callq 0x21f0
xorl %r8d, %r8d
cmpq $-0x1, %r12
setne %r8b
leaq 0x40(%rsp), %rdi
movq %r15, %rsi
movl %ebp, %edx
movq %r14, %rcx
callq 0x58b0
leaq 0x40(%rsp), %r14
movaps (%r14), %xmm0
movups %xmm0, (%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
xorl %eax, %eax
leaq 0x20(%rsp), %rdi
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movaps %xmm0, (%r14)
movq %rax, 0x10(%r14)
callq 0x2c54
movq %r14, %rdi
callq 0x2c54
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x5c04
callq 0x21f0
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5c2e
jmp 0x5c2e
movq %rax, %r14
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x5c31
callq 0x21f0
jmp 0x5c31
movq %rax, %r14
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x5c49
callq 0x21f0
jmp 0x5c49
movq %rax, %r14
movq %rbx, %rdi
callq 0x2c54
movq %r14, %rdi
callq 0x2320
nop
// File: /workspace/github_cpp_makefile_star2_O3/camargodev[P]n-tile-puzzle/src/algorithms/IDFS.cpp
// Function: IDFS::depthLimitedSearch(unsigned long, unsigned long, int)
IDFS::Solution IDFS :: depthLimitedSearch(PackedState state, PackedState parent, int depthLimit){
    IDFS::Solution solution;
    StateManager stateManager;

    if (stateManager.isGoalState(state)){
        solution.isSolution = true;
        solution.cost = 0;
        return solution;
    }
    
    if(depthLimit > 0){
        this->result->increaseExpandedNodes();
        for (auto successorState : stateManager.produceNextPackedStates(state)) {
            if(successorState != parent){
                solution = depthLimitedSearch(successorState, state, depthLimit-1);
                if(solution.isSolution == true){
                    solution.cost++;
                    return solution;
                }
            }            
        }
    }  

    solution.isSolution = false;
    return solution;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %r13d
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, 0x10(%rsp)
leaq 0x30(%rsp), %rdi
movw $0x0, (%rdi)
movq $0xf, 0x8(%rdi)
callq 0x3146
testb %al, %al
je 0x825e
movb $0x1, %r12b
xorl %r13d, %r13d
jmp 0x82ef
testl %r13d, %r13d
jle 0x82da
movq 0x10(%rsp), %rax
movq (%rax), %rdi
callq 0x4670
leaq 0x18(%rsp), %r12
leaq 0x30(%rsp), %rsi
movq %r12, %rdi
movq %r15, %rdx
callq 0x3660
movq (%r12), %rbp
movq 0x8(%r12), %rbx
cmpq %rbx, %rbp
je 0x82df
decl %r13d
movl %r13d, 0xc(%rsp)
movq (%rbp), %rsi
cmpq %r14, %rsi
je 0x82c7
movq 0x10(%rsp), %rdi
movq %r15, %rdx
movl 0xc(%rsp), %ecx
callq 0x821c
movl %eax, %r12d
movq %rdx, %r13
andb $0x1, %al
movzbl %al, %eax
addq %rax, %r13
testb %al, %al
jne 0x82d3
addq $0x8, %rbp
cmpq %rbx, %rbp
jne 0x829b
xorl %r12d, %r12d
movq 0x18(%rsp), %rbp
jmp 0x82e2
xorl %r12d, %r12d
jmp 0x82ef
xorl %r12d, %r12d
testq %rbp, %rbp
je 0x82ef
movq %rbp, %rdi
callq 0x21f0
movl %r12d, %eax
movq %r13, %rdx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x8316
callq 0x21f0
movq %rbx, %rdi
callq 0x2320
// File: /workspace/github_cpp_makefile_star2_O3/camargodev[P]n-tile-puzzle/src/algorithms/IDFS.cpp
// Function: IDFS::execute(unsigned long)
Result IDFS :: execute(PackedState initialState){

    StateManager stateManager;

    this->result->startCountingTime();
    this->result->setInitialHeuristicValue(stateManager.calculateHeuristic(initialState));
    
    int depthLimit = 0;
    IDFS::Solution solution;

    while(true){
        solution = depthLimitedSearch(initialState, 0, depthLimit);
        if (solution.isSolution == true) {
            this->result->setOptimalSolutionLenght(solution.cost);
            this->result->stopCountingTime();
            return *(this->result);
        }
        depthLimit++;
    }

}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r12
movw $0x0, (%r12)
movq $0xf, 0x8(%r12)
movq (%rsi), %rdi
callq 0x469a
movq (%r14), %r13
movq %r12, %rdi
movq %r15, %rsi
callq 0x38b6
movq %r13, %rdi
movl %eax, %esi
callq 0x46b0
xorl %r12d, %r12d
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
movl %r12d, %ecx
callq 0x821c
incl %r12d
testb $0x1, %al
je 0x836c
movq (%r14), %rdi
movl %edx, %esi
callq 0x46aa
movq (%r14), %rdi
callq 0x4678
movq (%r14), %rax
movq 0x30(%rax), %rcx
movq %rcx, 0x30(%rbx)
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0x20(%rbx)
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/camargodev[P]n-tile-puzzle/src/algorithms/IDAStar.cpp
// Function: IDAStar::execute(unsigned long)
Result IDAStar :: execute(PackedState initialState){
    StateManager stateManager;
    unsigned long long int fLimit = stateManager.calculateHeuristic(initialState);
    
    this->result->startCountingTime();
    this->result->setInitialHeuristicValue(fLimit);
    this->result->increaseTotalHeuristicValue(fLimit);

    State initial;
    initial.value = initialState;
    initial.heuristic = fLimit;
    initial.parentBlankPos = -1;
    Node initialNode = IDAStar::buildInitialNode(initial);
    
    IDAStar::Solution solution;

    while(fLimit != ULLONG_MAX){
        solution = recursiveSearch(initialNode, 0, fLimit);
        if(solution.isSolution == true){
            this->result->setOptimalSolutionLenght(solution.cost);
            this->result->stopCountingTime();
            return *(this->result);
        }
        fLimit = solution.limit;
    }

    this->result->setOptimalSolutionLenght(INT_MAX);
    return *(this->result);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x50(%rsp), %rdi
movw $0x0, (%rdi)
movq $0xf, 0x8(%rdi)
movq %rdx, %rsi
callq 0x38b6
movslq %eax, %r12
movq (%r14), %rdi
callq 0x469a
movq (%r14), %rdi
movl %r12d, %esi
callq 0x46b0
movq (%r14), %rdi
movl %r12d, %esi
callq 0x46b6
movzbl %r12b, %ebp
orl $0xff00, %ebp           # imm = 0xFF00
leaq 0x38(%rsp), %r13
cmpq $-0x1, %r12
je 0x8716
movq %r15, 0x20(%rsp)
movq %rbp, 0x28(%rsp)
movb $0x0, 0x30(%rsp)
movl $0xffffffff, 0x34(%rsp) # imm = 0xFFFFFFFF
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r13, %rdi
movq %r14, %rsi
xorl %edx, %edx
movl %r12d, %ecx
callq 0x842e
movq 0x48(%rsp), %r12
testb $0x1, 0x38(%rsp)
je 0x86b3
movq 0x40(%rsp), %rsi
movq (%r14), %rdi
callq 0x46aa
movq (%r14), %rdi
callq 0x4678
jmp 0x8723
movq (%r14), %rdi
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
callq 0x46aa
movq (%r14), %rax
movq 0x30(%rax), %rcx
movq %rcx, 0x30(%rbx)
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0x20(%rbx)
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/brc7[P]DiversitySampling/src/io.cpp
// Function: SequenceFeaturesPE(std::istream&, std::istream&, 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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool SequenceFeaturesPE(std::istream& in1, std::istream& in2, std::string& sequence, std::string& chunk1, std::string& chunk2, std::string fastWhat){
    bool success1 = SequenceFeatures(in2, sequence, chunk2, fastWhat); 
    bool success2 = SequenceFeatures(in1, sequence, chunk1, fastWhat); 

    if (!success1){
        std::cerr<<"Error reading first "<<fastWhat<<" file"<<std::endl; 
        return false; 
    }
    if (!success2){
        std::cerr<<"Error reading second "<<fastWhat<<" file"<<std::endl; 
        return false; 
    }
    return (success1 && success2); 

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, %rbx
movq %r8, %r13
movq %rcx, 0x10(%rsp)
movq %rdx, %r15
movq %rsi, %rbp
movq %rdi, 0x8(%rsp)
leaq 0x48(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r9), %rsi
movq 0x8(%r9), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %r14
movq %r14, %rdi
callq 0x2e32
movq %rbp, %rdi
movq %r15, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x2598
movl %eax, %ebp
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x2ba4
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x2e32
movq 0x8(%rsp), %rdi
movq %r15, %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rcx
callq 0x2598
movl %eax, %r14d
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x2bf4
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2190
testb %bpl, %bpl
je 0x2c19
movb $0x1, %al
testb %r14b, %r14b
jne 0x2c84
movq 0x53e5(%rip), %rdi      # 0x7ff0
leaq 0x256a(%rip), %rsi      # 0x517c
movl $0x15, %edx
jmp 0x2c2c
movq 0x53d0(%rip), %rdi      # 0x7ff0
leaq 0x253a(%rip), %rsi      # 0x5161
movl $0x14, %edx
callq 0x21c0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x53b1(%rip), %rdi      # 0x7ff0
callq 0x21c0
movq %rax, %rbx
leaq 0x2528(%rip), %rsi      # 0x5176
movl $0x5, %edx
movq %rax, %rdi
callq 0x21c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x18(%rsp), %rdi
jmp 0x2ca5
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x2cb6
movq (%r12), %rsi
incq %rsi
callq 0x2190
movq %rbx, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O3/brc7[P]DiversitySampling/src/io.cpp
// Function: SequenceFeaturesI(std::istream&, 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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool SequenceFeaturesI(std::istream& in, std::string& sequence, std::string& chunk, std::string fastWhat){
    bool success = SequenceFeatures(in, sequence, chunk, fastWhat); 

    // now tack on another few lines for the second chunk of the interleaved file! 
    int chunksize = 0; 
    int linesread = 0; 
    if (fastWhat == "fasta") {
        chunksize = 2;
    } else if (fastWhat == "fastq") {
        chunksize = 4;
    }
    std::string buffer;
    while((linesread < chunksize) && (in)){
        std::getline(in, buffer); 
        linesread++; 
        chunk += buffer; 
        chunk += "\n"; 
    }
    return success; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r14
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %r13
movq %r13, %rdi
callq 0x2e32
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x2598
movl %eax, %r12d
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2d23
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2190
leaq 0x22da(%rip), %rsi      # 0x5004
movq %r15, %rdi
callq 0x2080
testl %eax, %eax
movb %r12b, 0x7(%rsp)
je 0x2d59
leaq 0x29dd(%rip), %rsi      # 0x571f
movq %r15, %rdi
callq 0x2080
xorl %r13d, %r13d
testl %eax, %eax
sete %r13b
shll $0x2, %r13d
jmp 0x2d5f
movl $0x2, %r13d
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq $0x0, -0x8(%rbp)
movb $0x0, (%rbp)
incl %r13d
leaq 0x8(%rsp), %r15
leaq 0x2333(%rip), %r12      # 0x50b6
decl %r13d
je 0x2dd1
movq (%r14), %rax
movq -0x18(%rax), %rdi
testb $0x5, 0x20(%r14,%rdi)
jne 0x2dd1
addq %r14, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x22c0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x2090
movq %rbx, %rdi
movq %r12, %rsi
callq 0x22d0
jmp 0x2d83
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2de8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
movb 0x7(%rsp), %al
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2e29
movq 0x38(%rsp), %rsi
jmp 0x2e21
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2e29
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2190
movq %rbx, %rdi
callq 0x22a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/brc7[P]DiversitySampling/src/RACE.cpp
// Function: RACE::add(int*)
void RACE::add(int *hashes){
	/* 
	Input: A set of R integer hash values, one hash value for each ACE repetition
	*/
	#pragma omp parallel for
	for (size_t r = 0; r < _R; r++){
		size_t index = hashes[r] % _range; 
		_sketch[r*_range + index] = _sketch[r*_range + index] + 1; 
	}
}

// Assembly:
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x302c
movq 0x8(%rdi), %r8
movq 0x10(%rdi), %rdi
xorl %r9d, %r9d
movslq (%rsi,%r9,4), %rax
xorl %edx, %edx
divq %r8
movq %r8, %rax
imulq %r9, %rax
leaq (%rdi,%rax,4), %rax
incl (%rax,%rdx,4)
incq %r9
cmpq %r9, %rcx
jne 0x300d
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/brc7[P]DiversitySampling/src/RACE.cpp
// Function: RACE::query_and_add(int*)
double RACE::query_and_add(int *hashes){
	/* 
	Input: A set of R integer hash values, one hash value for each ACE repetition
	Performs: Update to RACE array
	Returns: query value of RACE array 
	*/
	double mean = 0; 
	for (size_t r = 0; r < _R; r++){
		size_t index = hashes[r] % _range; 
		mean = mean + _sketch[r*_range + index]; 
		_sketch[r*_range + index] = _sketch[r*_range + index] + 1; 
	}
	mean = mean / _R; 
	return mean; 
}

// Assembly:
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x307a
movq 0x8(%rdi), %r8
movq 0x10(%rdi), %rdi
xorpd %xmm0, %xmm0
xorl %r9d, %r9d
movslq (%rsi,%r9,4), %rax
xorl %edx, %edx
divq %r8
movq %r8, %rax
imulq %r9, %rax
leaq (%rdi,%rax,4), %rax
movl (%rax,%rdx,4), %r10d
xorps %xmm1, %xmm1
cvtsi2sd %r10, %xmm1
addsd %xmm1, %xmm0
incl %r10d
movl %r10d, (%rax,%rdx,4)
incq %r9
cmpq %r9, %rcx
jne 0x3045
jmp 0x307e
xorpd %xmm0, %xmm0
movq %rcx, %xmm1
punpckldq 0x2135(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x213d(%rip), %xmm1     # 0x51d0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O3/brc7[P]DiversitySampling/src/RACE.cpp
// Function: RACE::query(int*)
double RACE::query(int *hashes){

	double mean = 0; 
	for (size_t r = 0; r < _R; r++){
		size_t index = hashes[r] % _range;
		mean = mean + _sketch[r*_range + index]; 
	}
	mean = mean / _R; 
	return mean; 
}

// Assembly:
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x311c
movq 0x8(%rdi), %r8
movq 0x10(%rdi), %rdi
xorpd %xmm0, %xmm0
xorl %r9d, %r9d
movslq (%rsi,%r9,4), %rax
xorl %edx, %edx
divq %r8
movq %r8, %rax
imulq %r9, %rax
leaq (%rdi,%rax,4), %rax
movl (%rax,%rdx,4), %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
addsd %xmm1, %xmm0
incq %r9
cmpq %r9, %rcx
jne 0x30ef
jmp 0x3120
xorpd %xmm0, %xmm0
movq %rcx, %xmm1
punpckldq 0x2093(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x209b(%rip), %xmm1     # 0x51d0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O3/brc7[P]DiversitySampling/src/RACE.cpp
// Function: RACE::serialize(std::ostream&)
void RACE::serialize(std::ostream &out){
	/*
	Input: A BINARY ostream out. You can open a binary output stream
	with the flag: std::ios::binary | std::ios::out
	Format: (Big Endian) 
	magic_number (uint8_t); file_version_number (uint8_t); R (uint64_t); range (uint64_t);
	Then every element in the sketch, as a uint32_t
	*/

	// 0. Determine if system is big-endian or little-endian 
	// 1. Write magic numbers and parameters to file 
	// 2. For each element in sketch, cast element to standard-sized element 
	// 3. Depending on (1), bitflip so that it is big-endian (network order)
	// 4. Write to stream 

	// 1. Determine if system is big-endian or little-endian
	uint32_t n = 1; 
	bool is_little_endian = *(uint8_t*)(&n);

	// 0. Write magic number and file version. Dont worry about endianness, as these are bytes 
	out.write(reinterpret_cast <const char *>(&magic_number), sizeof(uint8_t));
	out.write(reinterpret_cast <const char *>(&file_version_number), sizeof(uint8_t));

	// 0. Write the parameters to the file 
	uint64_t sketch_param = _R; 
	if (is_little_endian)
		sketch_param = __builtin_bswap64(sketch_param);
    out.write(reinterpret_cast <char *>(&sketch_param), sizeof(uint64_t));
	
	sketch_param = _range; 
	if (is_little_endian)
		sketch_param = __builtin_bswap64(sketch_param);
    out.write(reinterpret_cast <char *>(&sketch_param), sizeof(uint64_t));

	// 2. For each element in sketch
	for (size_t r = 0; r < _R; r++){
		for (size_t i = 0; i < _range; i++){
			// 2. Cast element to standard-sized element
			uint32_t value = _sketch[r*_range + i];
			// 3. Depending on (1), bitflip so that it is big-endian (network order)
			if (is_little_endian)
				value = __builtin_bswap32(value);
			// 4. Write to stream 
			out.write(reinterpret_cast <char *>(&value), sizeof(uint32_t));
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x18(%rdi), %rsi
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2210
leaq 0x19(%r14), %rsi
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2210
movq (%r14), %rax
bswapq %rax
leaq 0x10(%rsp), %r15
movq %rax, (%r15)
movl $0x8, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2210
movq 0x8(%r14), %rax
bswapq %rax
movq %rax, (%r15)
movl $0x8, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2210
movq (%r14), %rcx
testq %rcx, %rcx
je 0x322c
movq 0x8(%r14), %rax
xorl %r12d, %r12d
leaq 0xc(%rsp), %r15
xorl %r13d, %r13d
testq %rax, %rax
je 0x321e
xorl %ebp, %ebp
imulq %r12, %rax
addq 0x10(%r14), %rax
movl (%rax,%rbp,4), %eax
bswapl %eax
movl %eax, 0xc(%rsp)
movl $0x4, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2210
incq %rbp
movq 0x8(%r14), %rax
cmpq %rax, %rbp
jb 0x31ec
movq (%r14), %rcx
jmp 0x3220
xorl %eax, %eax
incq %r13
addq $0x4, %r12
cmpq %rcx, %r13
jb 0x31e5
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/brc7[P]DiversitySampling/src/RACE.cpp
// Function: RACE::deserialize(std::istream&)
void RACE::deserialize(std::istream& in){
  	/*   
	Input: A BINARY istream in. You can open a binary input stream
	with the flag: std::ios::binary | std::ios::in

	beware: frees sketch
	*/

	// 0. Determine if system is little-endian
	uint32_t n = 1;
	bool is_little_endian = *(uint8_t*)(&n);

	uint8_t magic, version;
	uint64_t R, range;

	in.read(reinterpret_cast<char *>(&magic), sizeof(uint8_t)); 
	in.read(reinterpret_cast<char *>(&version), sizeof(uint8_t)); 
	
	if (magic != magic_number)
		return;

	in.read(reinterpret_cast<char *>(&R), sizeof(uint64_t));
	in.read(reinterpret_cast<char *>(&range), sizeof(uint64_t));

	// fix endian-ness of parameters
	if (is_little_endian){
		R = __builtin_bswap64(R); 
		range = __builtin_bswap64(range);
	}

	_R = R; _range = range; 
	uint32_t* recovered_sketch = new uint32_t[_R*_range]; 

	// now read the sketch into recovered_sketch
	in.read(reinterpret_cast <char *>(recovered_sketch), _R*_range*sizeof(uint32_t));

	delete[] _sketch;
	_sketch = new unsigned int[_R *_range];

	for (size_t r = 0; r < _R; r++){
		for (size_t i = 0; i < _range; i++){
			uint32_t value = recovered_sketch[r*_range + i];
			// 3. Depending on (1), bitflip so that it is big-endian (network order)
			if (is_little_endian)
				value = __builtin_bswap32(value);
			// 4. Save to our sketch 
			_sketch[r*_range + i] = value;
		}
	}
	delete[] recovered_sketch; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x7(%rsp), %r14
movl $0x1, %edx
movq %rsi, %rdi
movq %r14, %rsi
callq 0x21f0
leaq 0x6(%rsp), %rsi
movl $0x1, %edx
movq %r15, %rdi
callq 0x21f0
movb (%r14), %al
cmpb 0x18(%rbx), %al
jne 0x337f
movabsq $0x3fffffffffffffff, %rbp # imm = 0x3FFFFFFFFFFFFFFF
leaq 0x10(%rsp), %r14
movl $0x8, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x21f0
leaq 0x8(%rsp), %r12
movl $0x8, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x21f0
movq (%r14), %rax
bswapq %rax
movq %rax, (%r14)
movq (%r12), %r13
bswapq %r13
movq %r13, (%r12)
movq %rax, (%rbx)
movq %r13, 0x8(%rbx)
imulq %rax, %r13
movq %r13, %rax
shrq $0x3e, %rax
shlq $0x2, %r13
xorl %edi, %edi
negq %rax
sbbq %rdi, %rdi
orq %r13, %rdi
callq 0x2030
movq %rax, %r14
movq %r15, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x21f0
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x3310
callq 0x2200
movq (%rbx), %r15
movq 0x8(%rbx), %r12
movq %r12, %rax
imulq %r15, %rax
leaq (,%rax,4), %rcx
cmpq %rbp, %rax
movq $-0x1, %rdi
cmovbeq %rcx, %rdi
callq 0x2030
movq %rax, 0x10(%rbx)
testq %r15, %r15
je 0x3377
leaq (,%r12,4), %rcx
xorl %edx, %edx
movq %r14, %rsi
testq %r12, %r12
je 0x3369
xorl %edi, %edi
movl (%rsi,%rdi,4), %r8d
bswapl %r8d
movl %r8d, (%rax,%rdi,4)
incq %rdi
cmpq %rdi, %r12
jne 0x3356
incq %rdx
addq %rcx, %rsi
addq %rcx, %rax
cmpq %r15, %rdx
jne 0x334f
movq %r14, %rdi
callq 0x2200
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/brc7[P]DiversitySampling/src/RACE.cpp
// Function: RACE::pprint(std::ostream&, int, bool)
void RACE::pprint(std::ostream& out, int width, bool format){
	for (size_t r = 0; r < _R; r++){
		if (format)
			out << std::string((width+1)*_range + 1, '-') << std::endl; 
		for (size_t i = 0; i < _range; i++)
			out << '|' << std::setw(width) << _sketch[r*_range + i];
		out << '|' << std::endl; 
	}
	if (format)
		out << std::string((width+1)*_range + 1, '-') << std::endl; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, 0xc(%rsp)
movq %rdx, 0x30(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0x0, (%rdi)
je 0x34f8
movq 0x30(%rsp), %rcx
leal 0x1(%rcx), %eax
cltq
movq %rax, 0x38(%rsp)
movslq %ecx, %r15
xorl %ebp, %ebp
leaq 0x10(%rsp), %r12
xorl %eax, %eax
movq %rax, 0x40(%rsp)
cmpb $0x0, 0xc(%rsp)
je 0x3458
movq 0x8(%r14), %rsi
imulq 0x38(%rsp), %rsi
incq %rsi
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %r12, %rdi
movl $0x2d, %edx
callq 0x21d0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x21c0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x3458
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2190
cmpq $0x0, 0x8(%r14)
je 0x34a4
xorl %r13d, %r13d
movb $0x7c, 0x10(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x21c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %r15, 0x10(%rax,%rcx)
movq 0x8(%r14), %rcx
imulq %rbp, %rcx
addq 0x10(%r14), %rcx
movl (%rcx,%r13,4), %esi
movq %rax, %rdi
callq 0x2110
incq %r13
cmpq 0x8(%r14), %r13
jb 0x3462
movb $0x7c, 0x10(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x21c0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
movq 0x40(%rsp), %rax
incq %rax
addq $0x4, %rbp
cmpq (%r14), %rax
jb 0x33d0
cmpb $0x0, 0xc(%rsp)
je 0x357c
movq 0x30(%rsp), %rax
incl %eax
movslq %eax, %rsi
imulq 0x8(%r14), %rsi
incq %rsi
leaq 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x10(%rsp), %rdi
movl $0x2d, %edx
callq 0x21d0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x21c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x357c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2190
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x359c
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
jne 0x35b3
jmp 0x35c0
movq %rax, %rbx
jmp 0x35c0
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x35c0
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2190
movq %rbx, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O3/aalto-speech[P]ftk/test/emtest.cc
// Function: includes_path(std::vector<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, std::allocator<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>>&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
bool includes_path(vector<vector<string> > &all_paths, vector<string> &path) {
    for (unsigned int i=0; i<all_paths.size(); i++) {
        if (path.size() != all_paths[i].size()) continue;
        unsigned int j=0;
        for (; j<path.size(); j++)
            if (all_paths[i][j] != path[j]) break;
        if (j==path.size()) return true;
    }
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq (%rdi), %rcx
movq 0x8(%rdi), %rax
xorl %ebx, %ebx
subq %rcx, %rax
je 0x4202d
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rdx
movq (%rsi), %r12
movq 0x8(%rsi), %rax
movq %rax, -0x40(%rbp)
movq %rax, %rsi
subq %r12, %rsi
movq %rsi, %rax
sarq $0x5, %rax
movq %rax, -0x30(%rbp)
movq %rcx, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movq %rsi, -0x38(%rbp)
leaq (%rbx,%rbx,2), %rax
movq (%rcx,%rax,8), %r15
movq 0x8(%rcx,%rax,8), %rax
subq %r15, %rax
cmpq %rax, %rsi
jne 0x42020
cmpq %r12, -0x40(%rbp)
je 0x4200b
movl $0x1, %r13d
xorl %r14d, %r14d
movq %r14, %rax
shlq $0x5, %rax
movq 0x8(%r15,%rax), %rdx
cmpq 0x8(%r12,%rax), %rdx
jne 0x4200e
testq %rdx, %rdx
je 0x41ffd
leaq (%r15,%rax), %rcx
addq %r12, %rax
movq (%rax), %rsi
movq (%rcx), %rdi
callq 0x53e0
testl %eax, %eax
jne 0x4200e
movl %r13d, %r14d
incl %r13d
cmpq %r14, -0x30(%rbp)
ja 0x41fcf
jmp 0x4200e
xorl %r14d, %r14d
cmpq %r14, -0x30(%rbp)
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %rdx
movq -0x38(%rbp), %rsi
je 0x4202b
incl %ebx
cmpq %rbx, %rdx
ja 0x41fab
xorl %ebx, %ebx
jmp 0x4202d
movb $0x1, %bl
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/common/io_utils.cc
// Function: parse_clustering_args(int, char**, char**, char**, char**, bool*, char**)
void parse_clustering_args(int argc, char* argv[], char** input,
	char** output, char** config, bool* complete, char** method) {
		// default arguments
		*complete = false;
		// parse through comand line arguments
		for (int i = 1; i < argc; i++) {
			if (!strcmp(argv[i], "-i")) {
				*input = strdup(argv[++i]);
			}
			if (!strcmp(argv[i], "-c")) {
				*config = strdup(argv[++i]);
			}	
			if (!strcmp(argv[i], "-o")) {
				*output = strdup(argv[++i]);
			}
			if (!strcmp(argv[i], "-m")) {
				*method = strdup(argv[++i]);
			}
			if (!strcmp(argv[i], "-complete")) {
				*complete = true;
			}
		}
		assert(*input && *config && *output && *method);
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, 0x8(%rsp)
movq %rcx, (%rsp)
movq %rdx, 0x10(%rsp)
movb $0x0, (%r9)
cmpl $0x2, %edi
jl 0x2db5
movq %r9, %r15
movq %rsi, %r13
movl %edi, %ebp
movl $0x1, %r14d
leaq 0x5445(%rip), %rbx      # 0x8118
movslq %r14d, %r12
movq (%r13,%r12,8), %rdi
cmpb $0x2d, (%rdi)
jne 0x2d99
cmpb $0x69, 0x1(%rdi)
jne 0x2d15
cmpb $0x0, 0x2(%rdi)
jne 0x2d15
leal 0x1(%r12), %r14d
movq 0x8(%r13,%r12,8), %rdi
callq 0x2420
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r13,%r12,8), %rdi
cmpb $0x2d, (%rdi)
jne 0x2d99
cmpb $0x63, 0x1(%rdi)
jne 0x2d43
cmpb $0x0, 0x2(%rdi)
jne 0x2d43
movslq %r14d, %r12
incl %r14d
movq 0x8(%r13,%r12,8), %rdi
callq 0x2420
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r13,%r12,8), %rdi
cmpb $0x2d, (%rdi)
jne 0x2d99
cmpb $0x6f, 0x1(%rdi)
jne 0x2d70
cmpb $0x0, 0x2(%rdi)
jne 0x2d70
movslq %r14d, %r12
incl %r14d
movq 0x8(%r13,%r12,8), %rdi
callq 0x2420
movq (%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r13,%r12,8), %rdi
cmpb $0x2d, (%rdi)
jne 0x2d99
cmpb $0x6d, 0x1(%rdi)
jne 0x2d99
cmpb $0x0, 0x2(%rdi)
jne 0x2d99
movslq %r14d, %r12
incl %r14d
movq 0x8(%r13,%r12,8), %rdi
callq 0x2420
movq 0x50(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r13,%r12,8), %rdi
movq %rbx, %rsi
callq 0x22d0
testl %eax, %eax
jne 0x2da9
movb $0x1, (%r15)
incl %r14d
cmpl %ebp, %r14d
jl 0x2cd3
movq 0x10(%rsp), %rax
cmpq $0x0, (%rax)
je 0x2def
movq 0x8(%rsp), %rax
cmpq $0x0, (%rax)
je 0x2def
movq (%rsp), %rax
cmpq $0x0, (%rax)
je 0x2def
movq 0x50(%rsp), %rax
cmpq $0x0, (%rax)
je 0x2def
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x532c(%rip), %rdi      # 0x8122
leaq 0x523f(%rip), %rsi      # 0x803c
leaq 0x5346(%rip), %rcx      # 0x814a
movl $0xa0, %edx
callq 0x2160
// File: /workspace/github_cpp_makefile_star2_O3/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/Hypercube/../../algorithms/Search/Hypercube/headers/hypercube.h
// Function: Hypercube<double>::hash_to_hypercube(std::vector<double, std::allocator<double>>)
int hash_to_hypercube(std::vector<T> vec) {
			// store the string produced
			std::string bucket_str;
			// hash k times
			int k = 0;
			for (std::list<lsh::HashFunction>::iterator it = hash_fns.begin(); 
				it != hash_fns.end(); it++) {
					// hash with the i-th hash fn
					int res = it->hash(vec);
					// find its pre-maped result of a coin flip
					bool bit = flipped_coins.at(k)[res];
					// append the 0/1 value to the string
					bucket_str += to_string(bit);
			}
			// convert the string into an integer
			return (int)std::bitset<32>(bucket_str).to_ulong();
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, 0x28(%rsp)
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x58(%rdi), %r13
movq 0x58(%rdi), %rbx
cmpq %r13, %rbx
je 0x635f
movq %rdi, %r14
leaq 0x18(%rsp), %rbp
leaq 0x50(%rsp), %r15
movq %r15, %rdi
movq 0x28(%rsp), %rsi
callq 0x38aa
leaq 0x10(%rbx), %rdi
movq %r15, %rsi
callq 0x7388
movl %eax, %r12d
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x62e4
callq 0x2220
movl %r12d, 0x4(%rsp)
movq 0x70(%r14), %rdi
cmpq %rdi, 0x78(%r14)
je 0x639a
leaq 0x4(%rsp), %rsi
callq 0x76ec
movzbl (%rax), %r12d
movq %rbp, 0x8(%rsp)
movl $0x1, %esi
leaq 0x8(%rsp), %rdi
movl $0x2d, %edx
callq 0x2270
movq 0x8(%rsp), %rdi
movl $0x1, %esi
movl %r12d, %edx
callq 0x779f
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x30(%rsp), %rdi
callq 0x20a0
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6353
callq 0x2220
movq (%rbx), %rbx
cmpq %r13, %rbx
jne 0x62b9
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
xorl %edx, %edx
callq 0x752c
movq 0x8(%rsp), %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x6389
callq 0x2220
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1fc4(%rip), %rdi      # 0x8365
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x2320
jmp 0x63d7
jmp 0x63d7
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
jne 0x63d0
jmp 0x63da
jmp 0x63d7
jmp 0x63d7
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x63da
callq 0x2220
jmp 0x63da
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x63ee
callq 0x2220
movq %rbx, %rdi
callq 0x2400
// File: /workspace/github_cpp_makefile_star2_O3/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/Hypercube/../../algorithms/Search/Hypercube/headers/../../LSH/headers/hashing.h
// Function: unsigned int lsh::HashFunction::hash<double>(std::vector<double, std::allocator<double>>)
uint32_t hash(std::vector<T> x) {
				uint32_t h = 0;
				// vector a computed by the lsh method
				std::vector<int> a(dim, 0);
				// compute the values of the vector a
				for (int i = 0; i < dim; i++) {
					a[i] = floor((x.at(i) - s.at(i)) / (w * 1.0));
				}
				// compute the hash result of the vector x
				for (int i = 0; i < dim; i++) {
					// each time apply a modulo operation
					h += our_math::modulo(our_math::modulo(a.at(dim - i - 1), M) * const_m_values.at(i), M);
				}
				// return the position in the hash
				return h % M;
			}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movslq (%rdi), %rsi
leaq 0x34(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0x18(%rsp), %rdi
leaq 0x7(%rsp), %rcx
callq 0x7570
movq %rbx, %rax
cmpl $0x0, (%rbx)
jle 0x74b2
movq (%r14), %r15
movq 0x8(%r14), %rcx
subq %r15, %rcx
sarq $0x3, %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %r13
movq 0x18(%rax), %r12
subq %r13, %r12
sarq $0x3, %r12
movq 0x18(%rsp), %rbp
movsd 0xdec(%rip), %xmm0      # 0x81e0
divsd 0x8(%rax), %xmm0
movsd %xmm0, 0x10(%rsp)
xorl %ebx, %ebx
cmpq %rbx, 0x8(%rsp)
je 0x74e2
cmpq %rbx, %r12
je 0x74dd
movq %rax, %r14
movsd (%r15,%rbx,8), %xmm0
subsd (%r13,%rbx,8), %xmm0
mulsd 0x10(%rsp), %xmm0
callq 0x23a0
cvttsd2si %xmm0, %eax
movl %eax, (%rbp,%rbx,4)
incq %rbx
movq %r14, %rax
movslq (%r14), %rsi
cmpq %rsi, %rbx
jl 0x7401
testl %esi, %esi
jle 0x74b2
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rcx
subq %rdi, %rcx
sarq $0x2, %rcx
movq 0x38(%rax), %r8
movq 0x30(%rax), %r9
subq %r9, %r8
sarq $0x2, %r8
movl 0x2c(%rax), %ebp
decq %rsi
xorl %r10d, %r10d
xorl %ebx, %ebx
cmpq %rsi, %rcx
jbe 0x74fe
cmpq %r10, %r8
je 0x74f8
movl (%rdi,%rsi,4), %eax
cltd
idivl %ebp
movl %edx, %eax
sarl $0x1f, %eax
andl %ebp, %eax
addl %edx, %eax
imull (%r9,%r10,4), %eax
cltd
idivl %ebp
movl %ebx, %eax
movl %edx, %ebx
addl %edx, %eax
sarl $0x1f, %ebx
andl %ebp, %ebx
addl %eax, %ebx
incq %r10
addq $-0x1, %rsi
jb 0x7475
jmp 0x74c1
movl 0x2c(%rax), %ebp
movq 0x18(%rsp), %rdi
xorl %ebx, %ebx
testq %rdi, %rdi
je 0x74c6
callq 0x2220
movl %ebx, %eax
xorl %edx, %edx
divl %ebp
movl %edx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, 0x8(%rsp)
leaq 0xe7c(%rip), %rdi       # 0x8365
movq 0x8(%rsp), %rdx
movq %rdx, %rsi
xorl %eax, %eax
callq 0x2320
movq %r8, %rsi
movq %r8, %rcx
leaq 0xe60(%rip), %rdi       # 0x8365
movq %rcx, %rdx
xorl %eax, %eax
callq 0x2320
jmp 0x7511
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x7523
callq 0x2220
movq %rbx, %rdi
callq 0x2400
nop
// File: /workspace/github_cpp_makefile_star2_O3/iZhangHui[P]CppPrimer/CH12_DynamicMemory/examples/weak.cc
// Function: main
int main()
{
	auto p = make_shared<int>(42);

	weak_ptr<int> wp(p);  // wp weakly shares with p; use count in p is unchanged

	p.reset(); // assuming p.unique() was true, the int is deleted

	if (shared_ptr<int> np = wp.lock()) { // true if np is not null
		// inside the if, np shares its object with p
		cout << "np is not null." << endl;
	}

	cout << "np is null." << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl $0x18, %edi
callq 0x1070
movq %rax, %rbx
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x8(%rbx)
leaq 0x2b10(%rip), %rax      # 0x3d48
movq %rax, (%rbx)
movl $0x2a, 0x10(%rbx)
movq 0x2d87(%rip), %r15      # 0x3fd0
cmpb $0x0, (%r15)
je 0x1258
movl $0x2, 0xc(%rbx)
jmp 0x125c
lock
incl 0xc(%rbx)
movq %rbx, %rdi
callq 0x1388
movl 0x8(%rbx), %eax
testl %eax, %eax
je 0x12ca
leal 0x1(%rax), %ecx
lock
cmpxchgl %ecx, 0x8(%rbx)
jne 0x1267
movl 0x8(%rbx), %eax
testl %eax, %eax
je 0x12c2
movq 0x2d55(%rip), %r14      # 0x3fd8
leaq 0xd7a(%rip), %rsi       # 0x2004
movl $0xf, %edx
movq %r14, %rdi
callq 0x1090
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq 0x2d23(%rip), %rdi      # 0x3fd8
callq 0x1030
movq %rax, %rdi
callq 0x1040
movq %rbx, %rdi
callq 0x1388
movq 0x2d07(%rip), %r14      # 0x3fd8
leaq 0xd3c(%rip), %rsi       # 0x2014
movl $0xb, %edx
movq %r14, %rdi
callq 0x1090
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq 0x2cd5(%rip), %rdi      # 0x3fd8
callq 0x1030
movq %rax, %rdi
callq 0x1040
cmpb $0x0, (%r15)
je 0x1321
movl 0xc(%rbx), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rbx)
jmp 0x132b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rbx)
cmpl $0x1, %eax
jne 0x1339
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x1388
jmp 0x1356
movq %rax, %r14
cmpb $0x0, (%r15)
jne 0x1368
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rbx)
jmp 0x1371
movl 0xc(%rbx), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rbx)
cmpl $0x1, %eax
jne 0x137f
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
movq %r14, %rdi
callq 0x10c0
nop
// File: /workspace/github_cpp_makefile_star2_O3/dsharlet[P]array/test/algorithm.cpp
// Function: nda::test_algorithm_copy_scalar_body()
TEST(algorithm_copy_scalar) {
  array_of_rank<int, 0> a;
  generate(a, rand);

  array_of_rank<int, 0> b;
  copy(a, b);
  ASSERT(a == b);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
leaq 0x50(%rsp), %rbx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xf3ec
movq 0x18(%rbx), %rbx
testq %rbx, %rbx
je 0xbc25
callq 0x2330
movl %eax, (%rbx)
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xf3ec
movq 0x68(%rsp), %rax
testq %rax, %rax
je 0xbc44
movq 0x20(%rsp), %rcx
testq %rcx, %rcx
je 0xbc44
movl (%rax), %eax
movl %eax, (%rcx)
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x97547(%rip), %rsi     # 0xa30d3
leaq 0x97546(%rip), %rdx     # 0xa30d9
leaq 0x30(%rsp), %rdi
callq 0xd14c
leaq 0x78(%rsp), %rdi
leaq 0x30(%rsp), %rdx
movl $0x1, %esi
callq 0xbf80
leaq 0x78(%rsp), %rdi
callq 0xbfd8
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0xbbd2
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21f0
cmpq $0x0, 0x20(%rsp)
je 0xbbf6
movq $0x0, 0x20(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
cmpq $0x0, 0x68(%rsp)
je 0xbc1a
movq $0x0, 0x68(%rsp)
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
retq
leaq 0x976af(%rip), %rdi     # 0xa32db
leaq 0x974ea(%rip), %rsi     # 0xa311d
leaq 0x98da2(%rip), %rcx     # 0xa49dc
movl $0x6a1, %edx            # imm = 0x6A1
callq 0x2100
leaq 0x97690(%rip), %rdi     # 0xa32db
leaq 0x974cb(%rip), %rsi     # 0xa311d
leaq 0x98e16(%rip), %rcx     # 0xa4a6f
movl $0x6b8, %edx            # imm = 0x6B8
callq 0x2100
movq %rax, %rbx
jmp 0xbc87
movq %rax, %rbx
jmp 0xbcab
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0xbc87
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21f0
cmpq $0x0, 0x20(%rsp)
je 0xbcab
movq $0x0, 0x20(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
cmpq $0x0, 0x68(%rsp)
je 0xbccf
movq $0x0, 0x68(%rsp)
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O3/dsharlet[P]array/test/algorithm.cpp
// Function: nda::test_algorithm_move_scalar_body()
TEST(algorithm_move_scalar) {
  array_of_rank<int, 0> a;
  move_only token;
  generate(a, [token = std::move(token)]() {
    unused(token);
    return rand();
  });

  array_of_rank<int, 0> b;
  copy(a, b);
  ASSERT(a == b);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
leaq 0x50(%rsp), %rbx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xf3ec
movq 0x18(%rbx), %rbx
testq %rbx, %rbx
je 0xbddf
callq 0x2330
movl %eax, (%rbx)
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xf3ec
movq 0x68(%rsp), %rax
testq %rax, %rax
je 0xbdfe
movq 0x20(%rsp), %rcx
testq %rcx, %rcx
je 0xbdfe
movl (%rax), %eax
movl %eax, (%rcx)
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x9738d(%rip), %rsi     # 0xa30d3
leaq 0x9738c(%rip), %rdx     # 0xa30d9
leaq 0x30(%rsp), %rdi
callq 0xd14c
leaq 0x78(%rsp), %rdi
leaq 0x30(%rsp), %rdx
movl $0x1, %esi
callq 0xbf80
leaq 0x78(%rsp), %rdi
callq 0xbfd8
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0xbd8c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21f0
cmpq $0x0, 0x20(%rsp)
je 0xbdb0
movq $0x0, 0x20(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
cmpq $0x0, 0x68(%rsp)
je 0xbdd4
movq $0x0, 0x68(%rsp)
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
retq
leaq 0x974f5(%rip), %rdi     # 0xa32db
leaq 0x97330(%rip), %rsi     # 0xa311d
leaq 0x98be8(%rip), %rcx     # 0xa49dc
movl $0x6a1, %edx            # imm = 0x6A1
callq 0x2100
leaq 0x974d6(%rip), %rdi     # 0xa32db
leaq 0x97311(%rip), %rsi     # 0xa311d
leaq 0x98c5c(%rip), %rcx     # 0xa4a6f
movl $0x6b8, %edx            # imm = 0x6B8
callq 0x2100
movq %rax, %rbx
jmp 0xbe41
movq %rax, %rbx
jmp 0xbe65
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0xbe41
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21f0
cmpq $0x0, 0x20(%rsp)
je 0xbe65
movq $0x0, 0x20(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
cmpq $0x0, 0x68(%rsp)
je 0xbe89
movq $0x0, 0x68(%rsp)
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O3/dsharlet[P]array/include/array/array.h
// Function: auto nda::make_compact<nda::shape<nda::dim<-9l, -9l, 1l>, nda::dim<-9l, -9l, -9l>, nda::dim<-9l, -9l, -9l>>>(nda::shape<nda::dim<-9l, -9l, 1l>, nda::dim<-9l, -9l, -9l>, nda::dim<-9l, -9l, -9l>> const&)
NDARRAY_HOST_DEVICE auto make_compact(const Shape& s) {
  auto static_compact =
      make_shape_from_tuple(internal::make_compact_dims(s.dims(), typename Shape::dim_indices()));
  static_compact.resolve();
  return static_compact;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
movq 0x30(%rsi), %r15
movq 0x38(%rsi), %r12
leaq 0x28(%rsp), %rax
movq %r15, (%rax)
movq %r12, 0x8(%rax)
movq $0x1, 0x10(%rax)
leaq 0x58(%rsp), %r14
movups (%rsi), %xmm0
movaps %xmm0, (%rsp)
movups 0x18(%rsi), %xmm0
movaps %xmm0, 0x10(%rsp)
xorl %edi, %edi
movq %rax, %rsi
callq 0xd133
movaps (%rsp), %xmm0
movaps %xmm0, -0x18(%r14)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, -0x8(%r14)
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%r14)
movq %rax, 0x10(%r14)
movq %r15, 0x18(%r14)
movq %r12, 0x20(%r14)
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xc573
movq 0x10(%r15), %rax
movq %rax, 0x10(%rbx)
movaps (%r15), %xmm0
movups %xmm0, (%rbx)
movups 0x18(%r15), %xmm0
movups %xmm0, 0x18(%rbx)
movq 0x28(%r15), %rax
movq %rax, 0x28(%rbx)
movaps 0x30(%r15), %xmm0
movups %xmm0, 0x30(%rbx)
movq 0x40(%r15), %rax
movq %rax, 0x40(%rbx)
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/dsharlet[P]array/include/array/array.h
// Function: nda::array<int, nda::shape<nda::dim<-9l, -9l, 1l>, nda::dim<-9l, -9l, -9l>, nda::dim<-9l, -9l, -9l>>, nda::auto_allocator<int, 32ul, 4ul, std::allocator<int>>>::allocate()
void allocate() {
    assert(!buffer_);
    shape_.resolve();
    size_type flat_extent = shape_.flat_extent();
    if (flat_extent > 0) {
      buffer_size_ = flat_extent;
      buffer_ = alloc_traits::allocate(alloc_, buffer_size_);
    }
    base_ = buffer_ - shape_.flat_min();
  }

// Assembly:
pushq %rbx
cmpq $0x0, 0x88(%rdi)
jne 0x4f34f
movq %rdi, %rbx
addq $0xa0, %rdi
leaq 0xb8(%rbx), %rsi
movq %rdi, %rdx
callq 0xc573
movq 0xc0(%rbx), %rcx
leaq -0x1(%rcx), %rax
movq 0xc8(%rbx), %rsi
movq 0xa8(%rbx), %rdx
movq 0xb0(%rbx), %r9
leaq -0x1(%rdx), %r10
movq %rsi, %rdi
sarq $0x3f, %rdi
andq %rsi, %rdi
movq %r9, %r8
sarq $0x3f, %r8
andq %r9, %r8
movq %r9, %r11
negq %r11
cmovsq %r9, %r11
imulq %r10, %r11
movq %rsi, %r9
negq %r9
cmovsq %rsi, %r9
imulq %rax, %r9
addq 0xd8(%rbx), %r9
leaq (%r11,%r9), %rax
decq %rax
testq %rax, %rax
movq $-0x1, %rsi
cmovnsq %rax, %rsi
incq %rsi
jne 0x4f2be
movq 0x88(%rbx), %rax
jmp 0x4f325
movq %rsi, 0x90(%rbx)
cmpq $0x20, %rsi
ja 0x4f2e0
cmpb $0x0, 0x80(%rbx)
jne 0x4f2e0
movb $0x1, 0x80(%rbx)
movq %rbx, %rax
jmp 0x4f31e
leaq 0x81(%rbx), %rdi
xorl %edx, %edx
callq 0xc6d4
movq 0xc0(%rbx), %rcx
movq 0xc8(%rbx), %rsi
movq 0xa8(%rbx), %rdx
movq 0xb0(%rbx), %r9
movq %rsi, %rdi
sarq $0x3f, %rdi
andq %rsi, %rdi
movq %r9, %r8
sarq $0x3f, %r8
andq %r9, %r8
movq %rax, 0x88(%rbx)
movl $0x1, %esi
movl $0x1, %r9d
subq %rcx, %r9
imulq %rdi, %r9
subq %rdx, %rsi
imulq %r8, %rsi
leaq (%rax,%rsi,4), %rax
leaq (%rax,%r9,4), %rax
movq %rax, 0x98(%rbx)
popq %rbx
retq
leaq 0x53dbe(%rip), %rdi     # 0xa3114
leaq 0x53dc0(%rip), %rsi     # 0xa311d
leaq 0x5fdd9(%rip), %rcx     # 0xaf13d
movl $0x8eb, %edx            # imm = 0x8EB
callq 0x2100
// File: /workspace/github_cpp_makefile_star2_O3/dsharlet[P]array/include/array/array.h
// Function: void nda::internal::resolve_unknown_strides<std::tuple<nda::dim<-9l, -9l, 1l>, nda::dim<-9l, -9l, -9l>, nda::dim<-9l, -9l, -9l>>, nda::dim<-9l, -9l, -9l>, nda::dim<-9l, -9l, -9l>>(std::tuple<nda::dim<-9l, -9l, 1l>, nda::dim<-9l, -9l, -9l>, nda::dim<-9l, -9l, -9l>>&, nda::dim<-9l, -9l, -9l>&, nda::dim<-9l, -9l, -9l>&)
NDARRAY_HOST_DEVICE void resolve_unknown_strides(AllDims& all_dims, Dim0& dim0, Dims&... dims) {
  if (is_unresolved(dim0.stride())) {
    constexpr size_t rank = std::tuple_size<AllDims>::value;
    dim0.set_stride(find_stride(dim0.extent(), all_dims, make_index_sequence<rank>()));
  }
  resolve_unknown_strides(all_dims, dims...);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movabsq $-0x8000000000000000, %r12 # imm = 0x8000000000000000
xorl %eax, %eax
cmpq 0x10(%rsi), %rax
jno 0xc5a6
movq %rsi, %r15
movq 0x8(%rsi), %rdi
movq %r14, %rsi
callq 0xc45f
movq %rax, 0x10(%r15)
cmpq %r12, 0x10(%rbx)
jne 0xc5bc
movq 0x8(%rbx), %rdi
movq %r14, %rsi
callq 0xc45f
movq %rax, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq