LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/Barath-Kannan[P]SignalsAndSlots/3rdparty/googletest/inc/gtest/internal/gtest-param-util-generated.h
// Function: testing::internal::CartesianProductGenerator6<unsigned int, unsigned int, unsigned int, unsigned int, bool, BSignals::ExecutorScheme>::Iterator::Advance()
virtual void Advance() {
      assert(!AtEnd());
      ++current6_;
      if (current6_ == end6_) {
        current6_ = begin6_;
        ++current5_;
      }
      if (current5_ == end5_) {
        current5_ = begin5_;
        ++current4_;
      }
      if (current4_ == end4_) {
        current4_ = begin4_;
        ++current3_;
      }
      if (current3_ == end3_) {
        current3_ = begin3_;
        ++current2_;
      }
      if (current2_ == end2_) {
        current2_ = begin2_;
        ++current1_;
      }
      ComputeCurrentValue();
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x2669c
testb %al, %al
jne 0x2647d
movq 0x98(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x90(%rbx), %rsi
movq 0x98(%rbx), %rdi
cmpq %rsi, %rdi
je 0x26354
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
je 0x26380
leaq 0x98(%rbx), %r14
movq 0x88(%rbx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x2673c
movq 0x80(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x78(%rbx), %rsi
movq 0x80(%rbx), %rdi
cmpq %rsi, %rdi
je 0x2639a
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
je 0x263c0
leaq 0x80(%rbx), %r14
movq 0x70(%rbx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x26772
movq 0x68(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x60(%rbx), %rsi
movq 0x68(%rbx), %rdi
cmpq %rsi, %rdi
je 0x263d7
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
je 0x263fa
leaq 0x68(%rbx), %r14
movq 0x58(%rbx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x267a8
movq 0x50(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x48(%rbx), %rsi
movq 0x50(%rbx), %rdi
cmpq %rsi, %rdi
je 0x26411
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
je 0x26434
leaq 0x50(%rbx), %r14
movq 0x40(%rbx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x267a8
movq 0x38(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x30(%rbx), %rsi
movq 0x38(%rbx), %rdi
cmpq %rsi, %rdi
je 0x2644b
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
je 0x2646e
leaq 0x38(%rbx), %r14
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x267a8
movq 0x20(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x26130
leaq 0x25376(%rip), %rdi     # 0x4b7fa
leaq 0x25378(%rip), %rsi     # 0x4b803
leaq 0x253b5(%rip), %rcx     # 0x4b847
movl $0xec7, %edx            # imm = 0xEC7
callq 0xb360
// File: /workspace/github_cpp_makefile_star2_O3/Barath-Kannan[P]SignalsAndSlots/3rdparty/googletest/inc/gtest/internal/gtest-param-util-generated.h
// Function: testing::internal::CartesianProductGenerator6<unsigned int, unsigned int, unsigned int, unsigned int, bool, BSignals::ExecutorScheme>::Iterator::AtEnd() const
bool AtEnd() const {
      // We must report iterator past the end of the range when either of the
      // component iterators has reached the end of its range.
      return
          current1_ == end1_ ||
          current2_ == end2_ ||
          current3_ == end3_ ||
          current4_ == end4_ ||
          current5_ == end5_ ||
          current6_ == end6_;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x18(%rdi), %rsi
movq 0x20(%rdi), %rdi
cmpq %rsi, %rdi
je 0x26737
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
jne 0x26737
movq 0x30(%rbx), %rsi
movq 0x38(%rbx), %rdi
cmpq %rsi, %rdi
je 0x26737
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
jne 0x26737
movq 0x48(%rbx), %rsi
movq 0x50(%rbx), %rdi
cmpq %rsi, %rdi
je 0x26737
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
jne 0x26737
movq 0x60(%rbx), %rsi
movq 0x68(%rbx), %rdi
cmpq %rsi, %rdi
je 0x26737
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
jne 0x26737
movq 0x78(%rbx), %rsi
movq 0x80(%rbx), %rdi
cmpq %rsi, %rdi
je 0x26737
movq (%rdi), %rax
callq *0x30(%rax)
testb %al, %al
jne 0x26737
movq 0x90(%rbx), %rsi
movq 0x98(%rbx), %rdi
cmpq %rsi, %rdi
je 0x26737
movq (%rdi), %rax
movq 0x30(%rax), %rax
popq %rbx
jmpq *%rax
movb $0x1, %al
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Barath-Kannan[P]SignalsAndSlots/3rdparty/googletest/src/CustomTestPrinter.cpp
// Function: main
int main(int argc, char **argv) {
    InitGoogleTest(&argc, argv);
    UnitTest& unit_test = *UnitTest::GetInstance();
    TestEventListeners& listeners = unit_test.listeners();

    // Removes the default console output listener from the list so it will
    // not receive events from Google Test and won't print any output. Since
    // this operation transfers ownership of the listener to the caller we
    // have to delete it as well.
    delete listeners.Release(listeners.default_result_printer());

    // Adds the custom output listener to the list. It will now receive
    // events from Google Test and print the alternative output. We don't
    // have to worry about deleting it since Google Test assumes ownership
    // over it after adding it to the list.
    listeners.Append(new CustomTestPrinter);
    int ret_val = RUN_ALL_TESTS();
    return ret_val;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
leaq 0xc(%rsp), %rax
movl %edi, (%rax)
movq %rax, %rdi
callq 0x34f9a
callq 0x271cc
movq %rax, %rdi
callq 0x2e222
movq %rax, %rbx
movq 0x8(%rax), %rsi
movq %rax, %rdi
callq 0x33090
testq %rax, %rax
je 0x4780e
movq (%rax), %rcx
movq %rax, %rdi
callq *0x8(%rcx)
movl $0x8, %edi
callq 0xb4e0
leaq 0x23459(%rip), %rcx     # 0x6ac78
addq $0x10, %rcx
movq %rcx, (%rax)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x33088
callq 0x271cc
movq %rax, %rdi
callq 0x33386
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/Barath-Kannan[P]SignalsAndSlots/3rdparty/googletest/src/CustomTestPrinter.cpp
// Function: CustomTestPrinter::OnTestIterationStart(testing::UnitTest const&, int)
void OnTestIterationStart(const UnitTest& unit_test, int iteration) {
        if (GTEST_FLAG(repeat) != 1) {
            printf("\nRepeating all tests (iteration %d) . . .\n\n", iteration + 1);
        }
        const char* const filter = GTEST_FLAG(filter).c_str();

        // Prints the filter if it's not *.  This reminds the user that some
        // tests may be skipped.
        if (strcmp(filter, kUniversalFilter) != 0) {
            printf("Note: %s filter = %s\n", GTEST_NAME_, filter);
        }

        if (GTEST_FLAG(shuffle)) {
            printf("Note: Randomizing tests' orders with a seed of %d .\n", unit_test.random_seed());
        }

        PRINT_SEPARATOR;
        PRINT_EXTENDER;
        printf("Running %d test%s from %d test case%s.\n",
                unit_test.test_to_run_count(), unit_test.test_to_run_count() == 1 ? "" : "s",
                unit_test.test_case_to_run_count(), unit_test.test_case_to_run_count() == 1 ? "" : "s");
        PRINT_SEPARATOR;
        fflush(stdout);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
leaq 0x76235(%rip), %rax     # 0xbda98
cmpl $0x1, (%rax)
je 0x4787a
incl %edx
leaq 0x60f7(%rip), %rdi      # 0x4d968
movl %edx, %esi
xorl %eax, %eax
callq 0xb080
leaq 0x761c7(%rip), %rax     # 0xbda48
movq (%rax), %rdx
cmpb $0x2a, (%rdx)
jne 0x4788f
cmpb $0x0, 0x1(%rdx)
je 0x478a4
leaq 0x60fe(%rip), %rdi      # 0x4d994
leaq 0x5c15(%rip), %rsi      # 0x4d4b2
xorl %eax, %eax
callq 0xb080
leaq 0x761f2(%rip), %rax     # 0xbda9d
cmpb $0x1, (%rax)
jne 0x478c8
movq %rbx, %rdi
callq 0x2f216
leaq 0x610f(%rip), %rdi      # 0x4d9ce
movl %eax, %esi
xorl %eax, %eax
callq 0xb080
leaq 0x7da9(%rip), %rdi      # 0x4f678
callq 0xb8b0
leaq 0x7c21(%rip), %rdi      # 0x4f4fc
xorl %eax, %eax
callq 0xb080
movq %rbx, %rdi
callq 0x2f222
movl %eax, %ebp
movq %rbx, %rdi
callq 0x2f222
cmpl $0x1, %eax
leaq 0x61a6(%rip), %r14      # 0x4daa4
leaq 0x66d0(%rip), %r15      # 0x4dfd5
movq %r15, %r12
cmoveq %r14, %r12
movq %rbx, %rdi
callq 0x2f22c
movl %eax, %r13d
movq %rbx, %rdi
callq 0x2f22c
cmpl $0x1, %eax
cmoveq %r14, %r15
leaq 0x7bd2(%rip), %rdi      # 0x4f4ff
movl %ebp, %esi
movq %r12, %rdx
movl %r13d, %ecx
movq %r15, %r8
xorl %eax, %eax
callq 0xb080
leaq 0x7d32(%rip), %rdi      # 0x4f678
callq 0xb8b0
movq 0x235de(%rip), %rax     # 0x6af30
movq (%rax), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb630
// File: /workspace/github_cpp_makefile_star2_O3/Barath-Kannan[P]SignalsAndSlots/3rdparty/googletest/src/CustomTestPrinter.cpp
// Function: CustomTestPrinter::OnTestCaseStart(testing::TestCase const&)
void OnTestCaseStart(const TestCase& test_case) {
        PRINT_ALT_EXTENDER;
        printf("Test Case: %s", test_case.name());
        if (test_case.type_param() == NULL) {
            printf("\n");
        } else {
            printf(", where %s = %s\n", kTypeParamLabel, test_case.type_param());
        }
        PRINT_ALT_EXTENDER;
        printf("Tests: \n");
        for (int i=0; i<test_case.test_to_run_count(); i++){
            PRINT_ALT_EXTENDER;
            PRINT_LONG_EXTENDER;
            PRINT_EXTENDER;
            printf("%s\n", test_case.GetTestInfo(i)->name());
            
        }
        /*printf("%d %s from %s", test_case.test_to_run_count(), test_case.test_to_run_count() == 1 ? "test" : "tests", test_case.name());
        if (test_case.type_param() == NULL) {
            printf("\n");
        } else {
            printf(", where %s = %s\n", kTypeParamLabel, test_case.type_param());
        }*/
        PRINT_SEPARATOR;
        fflush(stdout);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
leaq 0x7b9d(%rip), %rdi      # 0x4f527
xorl %eax, %eax
callq 0xb080
movq 0x8(%rbx), %rsi
leaq 0x7b8f(%rip), %rdi      # 0x4f52b
xorl %eax, %eax
callq 0xb080
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x479cb
movq (%rax), %rdx
testq %rdx, %rdx
je 0x479cb
leaq 0x608a(%rip), %rdi      # 0x4da45
leaq 0x7d0a(%rip), %rsi      # 0x4f6cc
xorl %eax, %eax
callq 0xb080
jmp 0x479d5
movl $0xa, %edi
callq 0xb7a0
leaq 0x7b4b(%rip), %rdi      # 0x4f527
xorl %eax, %eax
callq 0xb080
leaq 0x7be8(%rip), %rdi      # 0x4f5d2
callq 0xb8b0
movq %rbx, %rdi
callq 0x28d98
testl %eax, %eax
jle 0x47a51
leaq 0x7b25(%rip), %r14      # 0x4f527
leaq 0x734e(%rip), %r15      # 0x4ed57
leaq 0x7aec(%rip), %r12      # 0x4f4fc
xorl %ebp, %ebp
movq %r14, %rdi
xorl %eax, %eax
callq 0xb080
movq %r15, %rdi
xorl %eax, %eax
callq 0xb080
movq %r12, %rdi
xorl %eax, %eax
callq 0xb080
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2e410
movq 0x20(%rax), %rdi
callq 0xb8b0
incl %ebp
movq %rbx, %rdi
callq 0x28d98
cmpl %eax, %ebp
jl 0x47a12
leaq 0x7c20(%rip), %rdi      # 0x4f678
callq 0xb8b0
movq 0x234cc(%rip), %rax     # 0x6af30
movq (%rax), %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xb630
// File: /workspace/github_cpp_makefile_star2_O3/Barath-Kannan[P]SignalsAndSlots/3rdparty/googletest/src/CustomTestPrinter.cpp
// Function: CustomTestPrinter::OnTestStart(testing::TestInfo const&)
void OnTestStart(const TestInfo& test_info) {
        PRINT_LONG_EXTENDER;
        printf("Test %s.%s RUNNING", test_info.test_case_name(), test_info.name());
        printf("\n");
        PRINT_SEPARATOR;
        fflush(stdout);
    }

// Assembly:
pushq %rbx
movq %rsi, %rbx
leaq 0x72d8(%rip), %rdi      # 0x4ed57
xorl %eax, %eax
callq 0xb080
movq (%rbx), %rsi
movq 0x20(%rbx), %rdx
leaq 0x7aa5(%rip), %rdi      # 0x4f539
xorl %eax, %eax
callq 0xb080
movl $0xa, %edi
callq 0xb7a0
leaq 0x7bcc(%rip), %rdi      # 0x4f678
callq 0xb8b0
movq 0x23478(%rip), %rax     # 0x6af30
movq (%rax), %rdi
popq %rbx
jmp 0xb630
nop
// File: /workspace/github_cpp_makefile_star2_O3/Barath-Kannan[P]SignalsAndSlots/3rdparty/googletest/src/CustomTestPrinter.cpp
// Function: CustomTestPrinter::OnTestPartResult(testing::TestPartResult const&)
void OnTestPartResult(
            const TestPartResult& result) {
        // If the test part succeeded, we don't need to do anything.
        if (result.type() == TestPartResult::kSuccess)
            return;
        PRINT_FAILSTART_MARKER;
        printf("Failure in %s:%d\n%s\n",
                result.file_name(),
                result.line_number(),
                result.summary());
        PRINT_FAILEND_MARKER;
        fflush(stdout);
    }

// Assembly:
cmpl $0x0, (%rsi)
je 0x47b15
pushq %rbx
movq %rsi, %rbx
leaq 0x7b08(%rip), %rdi      # 0x4f5da
callq 0xb8b0
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x47ae4
movq 0x8(%rbx), %rsi
movl 0x28(%rbx), %edx
movq 0x30(%rbx), %rcx
leaq 0x7a5a(%rip), %rdi      # 0x4f54c
xorl %eax, %eax
callq 0xb080
leaq 0x7b21(%rip), %rdi      # 0x4f621
callq 0xb8b0
movq 0x23424(%rip), %rax     # 0x6af30
movq (%rax), %rdi
popq %rbx
jmp 0xb630
retq
// File: /workspace/github_cpp_makefile_star2_O3/Barath-Kannan[P]SignalsAndSlots/3rdparty/googletest/src/CustomTestPrinter.cpp
// Function: CustomTestPrinter::OnTestEnd(testing::TestInfo const&)
void OnTestEnd(const TestInfo& test_info) {
        PRINT_SEPARATOR;
        PRINT_LONG_EXTENDER;
        printf("Test %s.%s %s", test_info.test_case_name(), test_info.name(), test_info.result()->Passed() ? "PASSED" : "FAILED");

        if (test_info.result()->Failed())
            PrintFullTestCommentIfPresent(test_info);

        if (GTEST_FLAG(print_time)) {
            printf(" (%ld ms)\n", (long)test_info.result()->elapsed_time());
        } else {
            printf("\n");
        }
        PRINT_SEPARATOR;
        fflush(stdout);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x7b4c(%rip), %rdi      # 0x4f678
callq 0xb8b0
leaq 0x721f(%rip), %rdi      # 0x4ed57
xorl %eax, %eax
callq 0xb080
movq (%rbx), %r15
movq 0x20(%rbx), %r12
leaq 0x90(%rbx), %r13
movq %r13, %rdi
callq 0x2ce60
leaq 0x74ae(%rip), %rdx      # 0x4f00a
leaq 0x7a0c(%rip), %rcx      # 0x4f56f
testb %al, %al
cmovneq %rdx, %rcx
leaq 0x79f1(%rip), %rdi      # 0x4f561
movq %r15, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0xb080
movq %r13, %rdi
callq 0x2ce60
testb %al, %al
je 0x47b94
movq %r14, %rdi
movq %rbx, %rsi
callq 0x47e62
leaq 0x75ef5(%rip), %rax     # 0xbda90
cmpb $0x1, (%rax)
jne 0x47bb7
movq 0x100(%rbx), %rsi
leaq 0x79c8(%rip), %rdi      # 0x4f576
xorl %eax, %eax
callq 0xb080
jmp 0x47bc1
movl $0xa, %edi
callq 0xb7a0
leaq 0x7ab0(%rip), %rdi      # 0x4f678
callq 0xb8b0
movq 0x2335c(%rip), %rax     # 0x6af30
movq (%rax), %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xb630
nop
// File: /workspace/github_cpp_makefile_star2_O3/Barath-Kannan[P]SignalsAndSlots/3rdparty/googletest/src/CustomTestPrinter.cpp
// Function: CustomTestPrinter::OnTestCaseEnd(testing::TestCase const&)
void OnTestCaseEnd(const TestCase& test_case) {
        if (!GTEST_FLAG(print_time)) return;
        PRINT_ALT_EXTENDER;
        printf("%d %s from %s (%ld ms total)\n", 
                test_case.test_to_run_count(), test_case.test_to_run_count() == 1 ? "test" : "tests", test_case.name(), (long)test_case.elapsed_time());
        PRINT_SEPARATOR;
        fflush(stdout);
    }

// Assembly:
leaq 0x75ea3(%rip), %rax     # 0xbda90
cmpb $0x1, (%rax)
jne 0x47c66
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
leaq 0x7928(%rip), %rdi      # 0x4f527
xorl %eax, %eax
callq 0xb080
movq %rbx, %rdi
callq 0x28d98
movl %eax, %ebp
movq %rbx, %rdi
callq 0x28d98
cmpl $0x1, %eax
leaq 0x7170(%rip), %rax      # 0x4ed92
leaq 0x5e0b(%rip), %rdx      # 0x4da34
cmoveq %rax, %rdx
movq 0x8(%rbx), %rcx
movq 0x78(%rbx), %r8
leaq 0x7945(%rip), %rdi      # 0x4f581
movl %ebp, %esi
xorl %eax, %eax
callq 0xb080
leaq 0x7a2c(%rip), %rdi      # 0x4f678
callq 0xb8b0
movq 0x232d8(%rip), %rax     # 0x6af30
movq (%rax), %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xb630
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Barath-Kannan[P]SignalsAndSlots/3rdparty/googletest/src/CustomTestPrinter.cpp
// Function: CustomTestPrinter::PrintFailedTests(testing::UnitTest const&)
void PrintFailedTests(const UnitTest& unit_test) {
        const int failed_test_count = unit_test.failed_test_count();
        if (failed_test_count == 0) {
            return;
        }
        PRINT_SEPARATOR;
        printf("Failed tests: \n");
        for (int i = 0; i < unit_test.total_test_case_count(); ++i) {
            const TestCase& test_case = *unit_test.GetTestCase(i);
            if (!test_case.should_run() || (test_case.failed_test_count() == 0)) {
                continue;
            }

            for (int j = 0; j < test_case.total_test_count(); ++j) {
                const TestInfo& test_info = *test_case.GetTestInfo(j);
                if (!test_info.should_run() || test_info.result()->Passed()) {
                    continue;
                }
                PRINT_EXTENDER;
                printf("%s.%s", test_case.name(), test_info.name());
                PrintFullTestCommentIfPresent(test_info);
                printf("\n");
            }   
        }
        PRINT_SEPARATOR;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x2f8f2
testl %eax, %eax
je 0x4801a
leaq 0x7754(%rip), %rdi      # 0x4f678
callq 0xb8b0
leaq 0x7739(%rip), %rdi      # 0x4f669
callq 0xb8b0
movq %rbx, %rdi
callq 0x2f8fc
testl %eax, %eax
jle 0x48000
xorl %ebp, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2f914
cmpb $0x1, 0x70(%rax)
jne 0x47fee
movq %rax, %r13
movq %rax, %rdi
callq 0x28ae4
testl %eax, %eax
je 0x47fee
movq %r13, %rdi
callq 0x28d26
testl %eax, %eax
jle 0x47fee
xorl %r15d, %r15d
movq %r13, %rdi
movl %r15d, %esi
callq 0x2e410
cmpb $0x1, 0x80(%rax)
jne 0x47fde
movq %rax, %r12
leaq 0x90(%rax), %rdi
callq 0x2ce60
testb %al, %al
je 0x47fde
leaq 0x7551(%rip), %rdi      # 0x4f4fc
xorl %eax, %eax
callq 0xb080
movq 0x8(%r13), %rsi
movq 0x20(%r12), %rdx
leaq 0x5ae3(%rip), %rdi      # 0x4daa5
xorl %eax, %eax
callq 0xb080
movq %r14, %rdi
movq %r12, %rsi
callq 0x47e62
movl $0xa, %edi
callq 0xb7a0
incl %r15d
movq %r13, %rdi
callq 0x28d26
cmpl %eax, %r15d
jl 0x47f7d
incl %ebp
movq %rbx, %rdi
callq 0x2f8fc
cmpl %eax, %ebp
jl 0x47f47
leaq 0x7671(%rip), %rdi      # 0x4f678
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb8b0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/mehrangoli[P]Static-Data-Extractor/main.cpp
// Function: main
int main()
{
	string DebugSymbolPath;
    cout << "Please enter the Debug Symbol path: ";
    cin >> DebugSymbolPath;
	
	ifstream InputFile(DebugSymbolPath.c_str());
	ScMain scmain;
	
	bool flag = scmain.find_scmain(InputFile);
	if (flag){
		cout << "\033[1;32mStarting XML file generation...\033[0m\n";
		scmain.print_data_XML ();
		cout <<"\033[1;32mXML file is successfully generated!\033[0m\n";
		scmain.print_data ();
	}
	else
		cout <<"\033[1;31mUnable to generate XML file!\033[0m\n";
	
	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
movq 0xfa7e(%rip), %rdi      # 0x12fd0
leaq 0xab07(%rip), %rsi      # 0xe060
movl $0x24, %edx
callq 0x2210
movq 0xfa76(%rip), %rdi      # 0x12fe0
movq %rsp, %rsi
callq 0x2230
movq (%rsp), %rsi
leaq 0x40(%rsp), %rdi
movl $0x8, %edx
callq 0x2320
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x40(%rsp), %rsi
callq 0x7ab2
testb %al, %al
je 0x35ec
movq 0xfa23(%rip), %rdi      # 0x12fd0
leaq 0xaad1(%rip), %rsi      # 0xe085
movl $0x2b, %edx
callq 0x2210
leaq 0x20(%rsp), %rdi
callq 0x3ea4
movq 0xfa01(%rip), %rdi      # 0x12fd0
leaq 0xaadb(%rip), %rsi      # 0xe0b1
movl $0x2f, %edx
callq 0x2210
leaq 0x20(%rsp), %rdi
callq 0x3ae4
jmp 0x3604
movq 0xf9dd(%rip), %rdi      # 0x12fd0
leaq 0xaae7(%rip), %rsi      # 0xe0e1
movl $0x28, %edx
callq 0x2210
leaq 0x20(%rsp), %rdi
callq 0x371e
leaq 0x40(%rsp), %rdi
callq 0x2080
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x362e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21d0
xorl %eax, %eax
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r14
retq
jmp 0x363d
movq %rax, %rbx
jmp 0x3659
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x371e
leaq 0x40(%rsp), %rdi
callq 0x2080
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x366f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O3/mehrangoli[P]Static-Data-Extractor/SCmain.cpp
// Function: ScMain::find_element(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int ScMain::find_element (string str){
	for (int i=0; i< static_data_final.size(); ++i){
		if (static_data_final[i].get_name() == str)
			return i;
	}
	return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq (%rdi), %rsi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rsi, 0x8(%rdi)
je 0x44a0
movq %rdi, %r15
xorl %ebx, %ebx
xorl %ebp, %ebp
addq %rbx, %rsi
leaq 0x8(%rsp), %rdi
callq 0xbf66
movq 0x10(%rsp), %rdx
cmpq 0x8(%r14), %rdx
jne 0x443f
movq 0x8(%rsp), %r13
testq %rdx, %rdx
je 0x4449
movq (%r14), %rsi
movq %r13, %rdi
callq 0x21e0
testl %eax, %eax
sete %r12b
jmp 0x444c
movq 0x8(%rsp), %r13
xorl %r12d, %r12d
jmp 0x444c
movb $0x1, %r12b
leaq 0x18(%rsp), %rax
cmpq %rax, %r13
je 0x4466
movq 0x18(%rsp), %rsi
incq %rsi
movq %r13, %rdi
callq 0x21d0
testb %r12b, %r12b
jne 0x449e
incq %rbp
movq (%r15), %rsi
movq 0x8(%r15), %rax
subq %rsi, %rax
sarq $0x4, %rax
movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rcx, %rax
addq $0x70, %rbx
cmpq %rbp, %rax
ja 0x440a
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x44a0
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/mehrangoli[P]Static-Data-Extractor/Define.cpp
// Function: GotoLine(std::basic_ifstream<char, std::char_traits<char>>&, unsigned int)
void GotoLine(ifstream& file, unsigned int num){
	file.clear();
    file.seekg(0, ios::beg);
	
    for(int i=0; i < num; ++i){
        file.ignore(numeric_limits<streamsize>::max(),'\n');
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
movq (%rdi), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
xorl %esi, %esi
callq 0x22d0
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2250
testl %ebx, %ebx
je 0xa668
movabsq $0x7fffffffffffffff, %r15 # imm = 0x7FFFFFFFFFFFFFFF
movq %r14, %rdi
movq %r15, %rsi
movl $0xa, %edx
callq 0x2130
decl %ebx
jne 0xa654
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/mehrangoli[P]Static-Data-Extractor/Define.cpp
// Function: split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char)
vector<string> split(const string &s, char delim) {
    vector<string> elems;
	string buff;                 //-----buffer string
    stringstream ss(s);       //-----insert the string into a stream
	
	while (getline(ss, buff, delim))
		elems.push_back(buff);
	return elems;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movl %edx, %ebp
movq %rdi, %rbx
xorl %eax, %eax
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb $0x0, (%r12)
leaq 0x28(%rsp), %rdi
movl $0x18, %edx
callq 0x22b0
movsbl %bpl, %ebp
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x2330
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xa6e7
movq %rbx, %rdi
movq %r15, %rsi
callq 0xb7f8
jmp 0xa6bf
movq 0x88c2(%rip), %rsi      # 0x12fb0
leaq 0x28(%rsp), %rdi
callq 0x2160
leaq 0xa8(%rsp), %rdi
callq 0x20c0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xa71c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rax
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0xa755
movq %rax, %r14
movq 0x8872(%rip), %rsi      # 0x12fb0
leaq 0x28(%rsp), %rdi
callq 0x2160
leaq 0xa8(%rsp), %rdi
callq 0x20c0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xa76c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x36c0
movq %r14, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O3/mehrangoli[P]Static-Data-Extractor/Define.cpp
// Function: replace_first_occurrence(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string replace_first_occurrence (string& s, const string& toReplace, const string& replaceWith){
    size_t pos = s.find(toReplace);
	
    if (pos == string::npos)
		return s;
    return s.replace(pos, toReplace.length(), replaceWith);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdx), %rsi
movq 0x8(%rdx), %rcx
movq %r14, %rdi
xorl %edx, %edx
callq 0x22f0
cmpq $-0x1, %rax
je 0xa7c1
movq 0x8(%r12), %rdx
movq (%r15), %rcx
movq 0x8(%r15), %r8
movq %r14, %rdi
movq %rax, %rsi
callq 0x2200
movq %rax, %r14
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x3a4c
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/mehrangoli[P]Static-Data-Extractor/Define.cpp
// Function: find_in_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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int find_in_vector(vector<string> vect, string str){
	for (unsigned i=0; i<vect.size(); ++i){
		if (string_finder(vect[i], str))
			return i;
	}	
	return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r15
movq (%rdi), %rdi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rdi, 0x8(%r15)
je 0xaa6e
movq %rsi, %r14
xorl %ecx, %ecx
leaq 0x38(%rsp), %r13
leaq 0x8(%rsp), %r12
xorl %ebx, %ebx
shlq $0x5, %rcx
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq (%rdi,%rcx), %rsi
movq 0x8(%rdi,%rcx), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x3a4c
movq %r13, 0x28(%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x3a4c
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rcx
movq %r12, %rdi
xorl %edx, %edx
callq 0x22f0
movq %rax, %rbp
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xaa27
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xaa43
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
cmpq $-0x1, %rbp
jne 0xaa6c
incl %ebx
movq (%r15), %rdi
movq 0x8(%r15), %rdx
subq %rdi, %rdx
sarq $0x5, %rdx
movq %rbx, %rcx
cmpq %rbx, %rdx
ja 0xa9be
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xaa6e
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xaa9c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O3/mehrangoli[P]Static-Data-Extractor/Define.cpp
// Function: set_NT_vector(std::vector<std::pair<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::allocator<std::pair<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::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>)
void set_NT_vector (vector<NT>& vect, NT Var){
	for (int i=0; i< vect.size(); ++i){
		if ((vect[i].first == Var.first) && (vect[i].second == Var.second))
			return;
	}
	vect.push_back(Var);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %r12
movq 0x8(%rdi), %r13
subq %r12, %r13
je 0xab7b
sarq $0x6, %r13
movq 0x8(%rbx), %r15
cmpq $0x1, %r13
adcq $0x0, %r13
addq $0x28, %r12
cmpq %r15, -0x20(%r12)
jne 0xab72
testq %r15, %r15
je 0xab51
movq (%rbx), %rsi
movq -0x28(%r12), %rdi
movq %r15, %rdx
callq 0x21e0
testl %eax, %eax
jne 0xab72
movq (%r12), %rdx
cmpq 0x28(%rbx), %rdx
jne 0xab72
testq %rdx, %rdx
je 0xab8f
movq 0x20(%rbx), %rsi
movq -0x8(%r12), %rdi
callq 0x21e0
testl %eax, %eax
je 0xab8f
addq $0x40, %r12
decq %r13
jne 0xab31
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xb836
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/mehrangoli[P]Static-Data-Extractor/Component.cpp
// Function: Component::set_var(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>)
void Component::set_var (NT Var){
	for (int i=0; i< var_st.size(); ++i){
		if ((var_st[i].first == Var.first) && (var_st[i].second == Var.second))
			return;
	}
	var_st.push_back(Var);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x38(%rdi), %r12
movq 0x40(%rdi), %r13
subq %r12, %r13
je 0xbf3a
sarq $0x6, %r13
movq 0x8(%rbx), %r15
cmpq $0x1, %r13
adcq $0x0, %r13
addq $0x28, %r12
cmpq %r15, -0x20(%r12)
jne 0xbf31
testq %r15, %r15
je 0xbf10
movq (%rbx), %rsi
movq -0x28(%r12), %rdi
movq %r15, %rdx
callq 0x21e0
testl %eax, %eax
jne 0xbf31
movq (%r12), %rdx
cmpq 0x28(%rbx), %rdx
jne 0xbf31
testq %rdx, %rdx
je 0xbf52
movq 0x20(%rbx), %rsi
movq -0x8(%r12), %rdi
callq 0x21e0
testl %eax, %eax
je 0xbf52
addq $0x40, %r12
decq %r13
jne 0xbef0
addq $0x38, %r14
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0xb836
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/mehrangoli[P]Static-Data-Extractor/Component.cpp
// Function: Component::get_name_XML[abi:cxx11]()
string Component::get_name_XML (){
	string temp;
	if (name == "sc_main")
		temp = "<Global_function name = \"" + name + "\">";
	else
		temp = "<Module name = \"" + name + "\">";
	return temp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
addq $0x50, %r14
leaq 0x2348(%rip), %rsi      # 0xe2ff
movq %r14, %rdi
callq 0x20a0
testl %eax, %eax
je 0xbfe6
leaq 0x2573(%rip), %rsi      # 0xe53d
movq %rsp, %rdi
movq %r14, %rdx
callq 0xd795
leaq 0x255e(%rip), %rsi      # 0xe53a
movq %rsp, %rdi
callq 0x2340
jmp 0xc007
leaq 0x2533(%rip), %rsi      # 0xe520
movq %rsp, %rdi
movq %r14, %rdx
callq 0xd795
leaq 0x253b(%rip), %rsi      # 0xe53a
movq %rsp, %rdi
callq 0x2340
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc02e
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xc035
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2220
movq (%r14), %rdi
cmpq %r15, %rdi
je 0xc071
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21d0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc08c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0xc09d
jmp 0xc0bd
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc0c0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0xc0c0
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0xc0d3
movq (%r15), %rsi
incq %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x2300
nop
// File: /workspace/github_cpp_makefile_star2_O3/BU-DiSC[P]BF-Shared-Hashing/./LegacyBF.h
// Function: LegacyBF::ReserveSpace(int, unsigned int*, unsigned int*)
char* LegacyBF::ReserveSpace(const int num_entry,
                                           uint32_t* total_bits,
                                           uint32_t* num_lines) {
  uint32_t sz = CalculateSpace(num_entry, total_bits, num_lines);
  char* data = new char[sz];
  memset(data, 0, sz);
  return data;
}

// Assembly:
pushq %rbx
callq 0x7398
movl %eax, %ebx
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
popq %rbx
jmp 0x5240
// File: /workspace/github_cpp_makefile_star2_O3/BU-DiSC[P]BF-Shared-Hashing/./LegacyBF.h
// Function: LegacyBF::CalculateSpace(int, unsigned int*, unsigned int*)
uint32_t LegacyBF::CalculateSpace(const int num_entry,
                                                uint32_t* total_bits,
                                                uint32_t* num_lines) {
  assert(bits_per_key_);
  if (num_entry != 0) {
    uint32_t total_bits_tmp = static_cast<uint32_t>(num_entry * bits_per_key_);

    *total_bits = GetTotalBitsForLocality(total_bits_tmp);
    *num_lines = *total_bits / (CACHE_LINE_SIZE * 8);
    num_lines_ = *num_lines;
    assert(*total_bits > 0 && *total_bits % 8 == 0);
  } else {
    // filter is empty, just leave space for metadata
    *total_bits = 0;
    *num_lines = 0;
  }

  // Reserve space for Filter
  uint32_t sz = *total_bits / 8;
  sz += 5;  // 4 bytes for num_lines, 1 byte for num_probes
  return sz;
}

// Assembly:
pushq %rax
movl (%rdi), %eax
testl %eax, %eax
je 0x73fb
testl %esi, %esi
je 0x73eb
imull %esi, %eax
addl $0x1ff, %eax            # imm = 0x1FF
andl $0xfffffc00, %eax       # imm = 0xFFFFFC00
orl $0x200, %eax            # imm = 0x200
movl %eax, (%rdx)
shrl $0x9, %eax
movl %eax, (%rcx)
movl %eax, 0x8(%rdi)
movl (%rdx), %eax
testl %eax, %eax
je 0x73cc
movl %eax, %ecx
andl $0x7, %ecx
je 0x73f3
leaq 0x21f58(%rip), %rdi     # 0x2932b
leaq 0x21e16(%rip), %rsi     # 0x291f0
leaq 0x21f05(%rip), %rcx     # 0x292e6
movl $0x99, %edx
callq 0x5280
xorl %eax, %eax
movl %eax, (%rdx)
movl %eax, (%rcx)
movl (%rdx), %eax
shrl $0x3, %eax
addl $0x5, %eax
popq %rcx
retq
leaq 0x21ed6(%rip), %rdi     # 0x292d8
leaq 0x21de7(%rip), %rsi     # 0x291f0
leaq 0x21ed6(%rip), %rcx     # 0x292e6
movl $0x92, %edx
callq 0x5280
// File: /workspace/github_cpp_makefile_star2_O3/BU-DiSC[P]BF-Shared-Hashing/./LegacyBF.h
// Function: LegacyBF::CalculateNumEntry(unsigned int)
int LegacyBF::CalculateNumEntry(const uint32_t bytes) {
  assert(bits_per_key_);
  assert(bytes > 0);
  int high = static_cast<int>(bytes * 8 / bits_per_key_ + 1);
  int low = 1;
  int n = high;
  for (; n >= low; n--) {
    if (CalculateSpace(n) <= bytes) {
      break;
    }
  }
  assert(n < high);  // High should be an overestimation
  return n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl (%rdi), %ecx
testl %ecx, %ecx
je 0x74b8
movl %esi, %ebx
testl %esi, %esi
je 0x74d7
leal (,%rbx,8), %eax
xorl %edx, %edx
divl %ecx
cmpl $0x7ffffffe, %eax       # imm = 0x7FFFFFFE
ja 0x7499
movq %rdi, %r14
movl %eax, %ebp
incl %ebp
leaq 0x4(%rsp), %r12
movq %rsp, %r13
movl %ebp, %r15d
movq %r14, %rdi
movl %r15d, %esi
movq %r12, %rdx
movq %r13, %rcx
callq 0x7398
cmpl %ebx, %eax
jbe 0x7482
leal -0x1(%r15), %eax
cmpl $0x1, %r15d
movl %eax, %r15d
jg 0x745d
xorl %r15d, %r15d
cmpl %ebp, %r15d
jge 0x7499
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x21eed(%rip), %rdi     # 0x2938d
leaq 0x21d49(%rip), %rsi     # 0x291f0
leaq 0x21ea5(%rip), %rcx     # 0x29353
movl $0xba, %edx
callq 0x5280
leaq 0x21e19(%rip), %rdi     # 0x292d8
leaq 0x21d2a(%rip), %rsi     # 0x291f0
leaq 0x21e86(%rip), %rcx     # 0x29353
movl $0xb0, %edx
callq 0x5280
leaq 0x21ea5(%rip), %rdi     # 0x29383
leaq 0x21d0b(%rip), %rsi     # 0x291f0
leaq 0x21e67(%rip), %rcx     # 0x29353
movl $0xb1, %edx
callq 0x5280
// File: /workspace/github_cpp_makefile_star2_O3/BU-DiSC[P]BF-Shared-Hashing/db.cpp
// Function: db::flushBFfile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const*, unsigned int)
void db::flushBFfile(string filename, const char* sst_bf_p, uint32_t size){
	ofstream outfile(filename, ios::out);
	char buffer[sizeof(unsigned int)];
	memset(buffer, 0, sizeof(unsigned int));
	
	for(int i = 0; i < size; i++){
		memcpy(buffer, &(sst_bf_p[i]), sizeof(char));
		outfile.write(buffer, sizeof(char));
		memset(buffer, 0, sizeof(char));
	}	
	outfile.close();

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movl %ecx, %ebp
movq %rdx, %rbx
leaq 0x8(%rsp), %rdi
movl $0x10, %edx
callq 0x5730
movl $0x0, 0x4(%rsp)
testl %ebp, %ebp
je 0xa700
movl %ebp, %r12d
xorl %r13d, %r13d
leaq 0x8(%rsp), %r14
leaq 0x4(%rsp), %r15
movb (%rbx,%r13), %al
movb %al, 0x4(%rsp)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x5510
movb $0x0, 0x4(%rsp)
incq %r13
cmpq %r13, %r12
jne 0xa6db
leaq 0x8(%rsp), %rdi
callq 0x5570
movq 0x2e89f(%rip), %rax     # 0x38fb0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x10(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x8(%rsp,%rcx)
callq 0x5350
leaq 0x100(%rsp), %rdi
callq 0x5160
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa750
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x55c0
movq %rbx, %rdi
callq 0x56b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/BU-DiSC[P]BF-Shared-Hashing/db.cpp
// Function: db::binary_search(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>>>>&)
int db::binary_search(string key, vector<string> & fence_pointer)
{
	int len = fence_pointer.size();
	if(len == 0){return -1;}
	if(len == 1){return 0;}
	int start = 0;
	int end = len - 1;
	int mid;

	//for (int i=0 ; i<len ; i++){
	//	cout << fence_pointer[i] << endl;;
	//}

	if(key.compare(fence_pointer[start]) < 0){ return -1;}
	if(key.compare(fence_pointer[end]) > 0){ return -1;}

	while(end - start > 1){
		mid = (start + end)/2;
		if(key.compare(fence_pointer[mid]) < 0){
			end = mid;
		} 
		else if(key.compare(fence_pointer[mid]) == 0){
			return mid;
		}
		else{
			start = mid;
		}
	}
	return start;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq (%rdx), %rsi
movq 0x8(%rdx), %r12
subq %rsi, %r12
shrq $0x5, %r12
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %r12d, %r12d
je 0xad36
cmpl $0x1, %r12d
jne 0xacad
xorl %ebp, %ebp
jmp 0xad36
movq %rdx, %rbx
movq %r14, %rdi
callq 0x5050
testl %eax, %eax
js 0xad36
movslq %r12d, %rax
shlq $0x5, %rax
movq (%rbx), %rcx
leaq (%rax,%rcx), %rsi
addq $-0x20, %rsi
movq %r14, %rdi
callq 0x5050
testl %eax, %eax
jg 0xad36
xorl %ebp, %ebp
cmpl $0x3, %r12d
jl 0xad36
decl %r12d
xorl %r13d, %r13d
leal (%r12,%r13), %eax
movl %eax, %ebp
shrl $0x1f, %ebp
addl %eax, %ebp
sarl %ebp
movslq %ebp, %r15
shlq $0x5, %r15
movq (%rbx), %rsi
addq %r15, %rsi
movq %r14, %rdi
callq 0x5050
testl %eax, %eax
js 0xad25
addq (%rbx), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x5050
movl %ebp, %r13d
testl %eax, %eax
jne 0xad28
jmp 0xad36
movl %ebp, %r12d
movl %r12d, %eax
subl %r13d, %eax
movl %r13d, %ebp
cmpl $0x1, %eax
jg 0xace8
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/BU-DiSC[P]BF-Shared-Hashing/db.cpp
// Function: db::SetTreeParam()
void db::SetTreeParam()
{
	positive_counters.resize(num_levels, 0);
	qnum_histogram = new vector<int> (num_filter_units, 0); 
	lnum_histogram = new vector<int> (num_levels, 0); 

	for( int l = 0; l < num_levels; l++){
		int num_l_sst = num_sstPerLevel[l];
		cout << "set param " << num_levels << " " << num_l_sst << endl;
	}

	bf_tp_eval_histogram = new vector<int> (num_levels, 0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x1f8, %rdi            # imm = 0x1F8
movslq 0xdc(%rbx), %rsi
xorl %ebp, %ebp
leaq 0x4(%rsp), %r15
movl %ebp, (%r15)
movq %r15, %rdx
callq 0xd1f0
movl $0x18, %edi
callq 0x5410
movq %rax, %r14
movslq 0x110(%rbx), %rsi
movl %ebp, (%r15)
leaq 0x4(%rsp), %rdx
leaq 0x3(%rsp), %rcx
movq %rax, %rdi
callq 0xd926
movq %r14, 0x210(%rbx)
movl $0x18, %edi
callq 0x5410
movq %rax, %r14
movslq 0xdc(%rbx), %rsi
leaq 0x4(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0x3(%rsp), %rcx
movq %rax, %rdi
callq 0xd926
movq %r14, 0x218(%rbx)
movslq 0xdc(%rbx), %r13
testq %r13, %r13
jle 0xb4d9
xorl %r15d, %r15d
movq 0x2db85(%rip), %r14     # 0x38fd0
leaq 0x1e9d2(%rip), %r12     # 0x29e24
movq 0xe8(%rbx), %rax
movl (%rax,%r15,4), %ebp
movl $0xa, %edx
movq %r14, %rdi
leaq 0x1dfa8(%rip), %rsi     # 0x29414
callq 0x5470
movl 0xdc(%rbx), %esi
movq %r14, %rdi
callq 0x5680
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x5470
movq %r13, %rdi
movl %ebp, %esi
callq 0x5680
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x53f0
movsbl %al, %esi
movq %r13, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x52a0
incq %r15
movslq 0xdc(%rbx), %r13
cmpq %r13, %r15
jl 0xb452
movl $0x18, %edi
callq 0x5410
movq %rax, %r14
leaq 0x4(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0x3(%rsp), %rcx
movq %rax, %rdi
movq %r13, %rsi
callq 0xd926
movq %r14, 0x228(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb51b
jmp 0xb51b
movq %rax, %rbx
movq %r14, %rdi
callq 0x53d0
movq %rbx, %rdi
callq 0x56b0
// File: /workspace/github_cpp_makefile_star2_O3/BU-DiSC[P]BF-Shared-Hashing/./bloom_impl.h
// Function: LegacyLocalityBloomImpl<false>::EstimatedFpRate(unsigned long, unsigned long, int)
static double EstimatedFpRate(size_t keys, size_t bytes, int num_probes) {
    double bits_per_key = 8.0 * bytes / keys;
    double filter_rate = BloomMath::CacheLocalFpRate(bits_per_key, num_probes,
                                                     /*cache line bits*/ 512);
    if (!ExtraRotates) {
      // Good estimate of impact of flaw in index computation.
      // Adds roughly 0.002 around 50 bits/key and 0.001 around 100 bits/key.
      // The + 22 shifts it nicely to fit for lower bits/key.
      filter_rate += 0.1 / (bits_per_key * 0.75 + 22);
    }     // Always uses 32-bit hash
    double fingerprint_rate = BloomMath::FingerprintFpRate(keys, 32);
    return BloomMath::IndependentProbabilitySum(filter_rate, fingerprint_rate);
  }

// Assembly:
subq $0x38, %rsp
movq %rsi, %xmm3
movq 0x1c209(%rip), %xmm1    # 0x29160
punpckldq %xmm1, %xmm3    # xmm3 = xmm3[0],xmm1[0],xmm3[1],xmm1[1]
movapd 0x1c20d(%rip), %xmm2    # 0x29170
subpd %xmm2, %xmm3
movapd %xmm3, %xmm0
unpckhpd %xmm3, %xmm0            # xmm0 = xmm0[1],xmm3[1]
addsd %xmm3, %xmm0
mulsd 0x1c19d(%rip), %xmm0    # 0x29118
movq %rdi, %xmm3
punpckldq %xmm1, %xmm3    # xmm3 = xmm3[0],xmm1[0],xmm3[1],xmm1[1]
subpd %xmm2, %xmm3
movapd %xmm3, %xmm1
unpckhpd %xmm3, %xmm1            # xmm1 = xmm1[1],xmm3[1]
addsd %xmm3, %xmm1
movapd %xmm1, 0x10(%rsp)
divsd %xmm1, %xmm0
movapd %xmm0, 0x20(%rsp)
movl %edx, %edi
movl $0x200, %esi            # imm = 0x200
callq 0xf9f2
movsd %xmm0, 0x8(%rsp)
movsd 0x1c122(%rip), %xmm0    # 0x290e0
callq 0x53a0
movapd 0x10(%rsp), %xmm1
mulsd 0x1c14f(%rip), %xmm1    # 0x29120
ucomisd 0x1c14f(%rip), %xmm1    # 0x29128
movapd 0x1c19f(%rip), %xmm0    # 0x29180
xorpd %xmm1, %xmm0
jbe 0xcffe
callq 0x56c0
movapd %xmm0, %xmm1
movsd 0x1c140(%rip), %xmm0    # 0x29138
subsd %xmm1, %xmm0
jmp 0xd00e
mulsd %xmm1, %xmm0
mulsd 0x1c126(%rip), %xmm0    # 0x29130
addsd %xmm1, %xmm0
movapd 0x20(%rsp), %xmm1
mulsd 0x1c0cc(%rip), %xmm1    # 0x290e8
addsd 0x1c0cc(%rip), %xmm1    # 0x290f0
movsd 0x1c0cc(%rip), %xmm2    # 0x290f8
divsd %xmm1, %xmm2
addsd 0x8(%rsp), %xmm2
movapd %xmm2, %xmm1
addsd %xmm0, %xmm1
mulsd %xmm0, %xmm2
subsd %xmm2, %xmm1
movapd %xmm1, %xmm0
addq $0x38, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O3/BU-DiSC[P]BF-Shared-Hashing/./FastLocalBF.h
// Function: FastLocalBF::Finish()
void Finish()  {
    uint32_t len_with_metadata =
        CalculateSpace(static_cast<uint32_t>(hash_entries_.size()));
    space_ = len_with_metadata;
    char* data = new char[len_with_metadata];
    data_ = data;
    memset(data, 0, len_with_metadata);

    assert(data);
    assert(len_with_metadata >= 5);

    uint32_t len = len_with_metadata - 5;
    if (len > 0) {
      AddAllEntries(data, len);
    }

    // See BloomFilterPolicy::GetBloomBitsReader re: metadata
    // -1 = Marker for newer Bloom implementations
    data[len] = static_cast<char>(-1);
    // 0 = Marker for this sub-implementation
    data[len + 1] = static_cast<char>(0);
    // num_probes (and 0 in upper bits for 64-byte block size)
    data[len + 2] = static_cast<char>(num_probes_);
    // rest of metadata stays zero

    hash_entries_.clear();
    assert(hash_entries_.empty());

  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x68(%rdi), %rax
movq %rax, %rdx
subq 0x48(%rdi), %rdx
shrq $0x3, %rdx
cmpq $0x1, %rax
adcq $-0x1, %rdx
movslq (%rdi), %rcx
movl $0x5, %r14d
testq %rcx, %rcx
jle 0xd690
shlq $0x6, %rdx
movq 0x50(%rbx), %rsi
subq 0x58(%rbx), %rsi
movq 0x40(%rbx), %rax
shrq $0x3, %rsi
subq 0x30(%rbx), %rax
shrq $0x3, %rax
addq %rsi, %rax
addq %rdx, %rax
testl %eax, %eax
jle 0xd690
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
imulq %rcx, %rax
addq $0x7cfff, %rax          # imm = 0x7CFFF
shrq $0xc, %rax
movabsq $0x20c49ba5e353f7d, %rcx # imm = 0x20C49BA5E353F7D
mulq %rcx
movq %rdx, %r14
shll $0x6, %r14d
orl $0x5, %r14d
leaq 0x20(%rbx), %r15
movl %r14d, 0x18(%rbx)
movl %r14d, %r13d
movq %r13, %rdi
callq 0x5030
movq %rax, %r12
movq %rax, 0x10(%rbx)
movq %rax, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x5240
movl %r14d, %ebp
addl $-0x5, %ebp
je 0xd6cc
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
callq 0xe420
movl %ebp, %eax
movb $-0x1, (%r12,%rax)
leal -0x4(%r14), %eax
movb $0x0, (%r12,%rax)
movb 0x4(%rbx), %al
addl $-0x3, %r14d
movb %al, (%r12,%r14)
movq %r15, %rdi
callq 0xe5f0
movq 0x50(%rbx), %rax
cmpq 0x30(%rbx), %rax
jne 0xd708
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1be50(%rip), %rdi     # 0x2955f
leaq 0x1bdca(%rip), %rsi     # 0x294e0
leaq 0x1be27(%rip), %rcx     # 0x29544
movl $0x3d, %edx
callq 0x5280
nop