LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::PrintColorEncoded(char const*)
static void PrintColorEncoded(const char* str) {
  GTestColor color = COLOR_DEFAULT;  // The current color.

  // Conceptually, we split the string into segments divided by escape
  // sequences.  Then we print one segment at a time.  At the end of
  // each iteration, the str pointer advances to the beginning of the
  // next segment.
  for (;;) {
    const char* p = strchr(str, '@');
    if (p == NULL) {
      ColoredPrintf(color, "%s", str);
      return;
    }

    ColoredPrintf(color, "%s", std::string(str, p).c_str());

    const char ch = p[1];
    str = p + 2;
    if (ch == '@') {
      ColoredPrintf(color, "@");
    } else if (ch == 'D') {
      color = COLOR_DEFAULT;
    } else if (ch == 'R') {
      color = COLOR_RED;
    } else if (ch == 'G') {
      color = COLOR_GREEN;
    } else if (ch == 'Y') {
      color = COLOR_YELLOW;
    } else {
      --str;
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x9f2b(%rip), %r12      # 0x27870
leaq 0x9fb4(%rip), %r13      # 0x27900
leaq 0x18(%rsp), %rbx
leaq 0xb6ad(%rip), %r14      # 0x29005
xorl %ebp, %ebp
movl %ebp, %r15d
movq %rbx, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x24240
movq 0x8(%rsp), %rdx
movl %ebp, %edi
movq %r14, %rsi
xorl %eax, %eax
callq 0xe7c5
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1d99a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
movzbl 0x1(%r13), %eax
leaq 0x2(%r13), %r12
cmpl $0x46, %eax
jle 0x1d9be
cmpl $0x47, %eax
je 0x1d9d5
cmpl $0x52, %eax
je 0x1d9dc
cmpl $0x59, %eax
jne 0x1d9ca
movl $0x3, %ebp
jmp 0x1d9f7
cmpl $0x40, %eax
je 0x1d9e3
xorl %ebp, %ebp
cmpl $0x44, %eax
je 0x1d9f7
incq %r13
movl %r15d, %ebp
movq %r13, %r12
jmp 0x1d9f7
movl $0x2, %ebp
jmp 0x1d9f7
movl $0x1, %ebp
jmp 0x1d9f7
movl %r15d, %edi
leaq 0xc4c9(%rip), %rsi      # 0x29eb6
xorl %eax, %eax
callq 0xe7c5
movl %r15d, %ebp
movq %r12, %rdi
movl $0x40, %esi
callq 0x61a0
movq %rax, %r13
testq %rax, %rax
jne 0x1d95a
leaq 0xb5ee(%rip), %rsi      # 0x29005
movl %ebp, %edi
movq %r12, %rdx
xorl %eax, %eax
callq 0xe7c5
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::CharFormat testing::internal::PrintAsCharLiteralTo<wchar_t, wchar_t>(wchar_t, std::ostream*)
static CharFormat PrintAsCharLiteralTo(Char c, ostream* os) {
  switch (static_cast<wchar_t>(c)) {
    case L'\0':
      *os << "\\0";
      break;
    case L'\'':
      *os << "\\'";
      break;
    case L'\\':
      *os << "\\\\";
      break;
    case L'\a':
      *os << "\\a";
      break;
    case L'\b':
      *os << "\\b";
      break;
    case L'\f':
      *os << "\\f";
      break;
    case L'\n':
      *os << "\\n";
      break;
    case L'\r':
      *os << "\\r";
      break;
    case L'\t':
      *os << "\\t";
      break;
    case L'\v':
      *os << "\\v";
      break;
    default:
      if (IsPrintableAscii(c)) {
        *os << static_cast<char>(c);
        return kAsIs;
      } else {
        *os << "\\x" + String::FormatHexInt(static_cast<UnsignedChar>(c));
        return kHexEscape;
      }
  }
  return kSpecialEscape;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movl %edi, %eax
cmpl $0xd, %edi
ja 0x1da5e
movl %eax, %ecx
leaq 0x9904(%rip), %rdx      # 0x27350
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
leaq 0xaa71(%rip), %rsi      # 0x284cd
jmp 0x1dad7
cmpl $0x27, %eax
je 0x1dad0
cmpl $0x5c, %eax
jne 0x1da71
leaq 0xc451(%rip), %rsi      # 0x29ec0
jmp 0x1dad7
leal -0x20(%rax), %ecx
cmpl $0x5e, %ecx
ja 0x1daf1
leaq 0x8(%rsp), %rsi
movb %al, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x6510
xorl %eax, %eax
jmp 0x1dae9
leaq 0xc43a(%rip), %rsi      # 0x29ed2
jmp 0x1dad7
leaq 0xc428(%rip), %rsi      # 0x29ec9
jmp 0x1dad7
leaq 0xc422(%rip), %rsi      # 0x29ecc
jmp 0x1dad7
leaq 0xc410(%rip), %rsi      # 0x29ec3
jmp 0x1dad7
leaq 0xbf6c(%rip), %rsi      # 0x29a28
jmp 0x1dad7
leaq 0xc401(%rip), %rsi      # 0x29ec6
jmp 0x1dad7
leaq 0xc401(%rip), %rsi      # 0x29ecf
jmp 0x1dad7
leaq 0xc3e6(%rip), %rsi      # 0x29ebd
movl $0x2, %edx
movq %rbx, %rdi
callq 0x6510
movl $0x2, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movl %eax, %esi
callq 0xbd96
leaq 0xc3ce(%rip), %rcx      # 0x29ed5
movl $0x2, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x64f0
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x1db40
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1db4a
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq %r14, %rsi
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0x6510
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1db81
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1db9c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6430
movl $0x1, %eax
jmp 0x1dae9
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1dbc5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x1dbc5
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1dbe0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6430
movq %rbx, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::PrintAsStringLiteralTo(wchar_t, std::ostream*)
static CharFormat PrintAsStringLiteralTo(wchar_t c, ostream* os) {
  switch (c) {
    case L'\'':
      *os << "'";
      return kAsIs;
    case L'"':
      *os << "\\\"";
      return kSpecialEscape;
    default:
      return PrintAsCharLiteralTo<wchar_t>(c, os);
  }
}

// Assembly:
pushq %rax
cmpl $0x22, %edi
je 0x1dc0e
cmpl $0x27, %edi
jne 0x1dc2c
leaq 0xc2df(%rip), %rax      # 0x29ed9
movl $0x1, %edx
movq %rsi, %rdi
movq %rax, %rsi
callq 0x6510
xorl %eax, %eax
jmp 0x1dc2a
leaq 0xc2df(%rip), %rax      # 0x29ef4
movl $0x2, %edx
movq %rsi, %rdi
movq %rax, %rsi
callq 0x6510
movl $0x2, %eax
popq %rcx
retq
popq %rax
jmp 0x1da32
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::GTestFlagSaver::~GTestFlagSaver()
~GTestFlagSaver() {
    GTEST_FLAG(also_run_disabled_tests) = also_run_disabled_tests_;
    GTEST_FLAG(break_on_failure) = break_on_failure_;
    GTEST_FLAG(catch_exceptions) = catch_exceptions_;
    GTEST_FLAG(color) = color_;
    GTEST_FLAG(death_test_style) = death_test_style_;
    GTEST_FLAG(death_test_use_fork) = death_test_use_fork_;
    GTEST_FLAG(filter) = filter_;
    GTEST_FLAG(internal_run_death_test) = internal_run_death_test_;
    GTEST_FLAG(list_tests) = list_tests_;
    GTEST_FLAG(output) = output_;
    GTEST_FLAG(print_time) = print_time_;
    GTEST_FLAG(random_seed) = random_seed_;
    GTEST_FLAG(repeat) = repeat_;
    GTEST_FLAG(shuffle) = shuffle_;
    GTEST_FLAG(stack_trace_depth) = stack_trace_depth_;
    GTEST_FLAG(stream_result_to) = stream_result_to_;
    GTEST_FLAG(throw_on_failure) = throw_on_failure_;
  }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movb (%rdi), %al
movb %al, 0x18276(%rip)      # 0x37542
movb 0x1(%rdi), %al
movb %al, 0x1826e(%rip)      # 0x37543
movb 0x2(%rdi), %al
movb %al, 0x18266(%rip)      # 0x37544
leaq 0x8(%rdi), %rsi
leaq 0x1825f(%rip), %rdi     # 0x37548
callq 0x6220
leaq 0x28(%rbx), %rsi
leaq 0x183d7(%rip), %rdi     # 0x376d0
callq 0x6220
movb 0x48(%rbx), %al
movb %al, 0x183e9(%rip)      # 0x376f0
leaq 0x50(%rbx), %rsi
leaq 0x18256(%rip), %rdi     # 0x37568
callq 0x6220
leaq 0x70(%rbx), %rsi
leaq 0x1838e(%rip), %rdi     # 0x376b0
callq 0x6220
movb 0x90(%rbx), %al
movb %al, 0x18255(%rip)      # 0x37588
leaq 0x98(%rbx), %rsi
leaq 0x1824f(%rip), %rdi     # 0x37590
callq 0x6220
movb 0xb8(%rbx), %al
movb %al, 0x1825e(%rip)      # 0x375b0
movl 0xbc(%rbx), %eax
movl %eax, 0x18256(%rip)     # 0x375b4
movl 0xc0(%rbx), %eax
movl %eax, 0x1824e(%rip)     # 0x375b8
movb 0xc4(%rbx), %al
movb %al, 0x18247(%rip)      # 0x375bd
movl 0xc8(%rbx), %eax
movl %eax, 0x1823e(%rip)     # 0x375c0
leaq 0xd0(%rbx), %rsi
leaq 0x18238(%rip), %rdi     # 0x375c8
callq 0x6220
movb 0xf0(%rbx), %al
movb %al, 0x18247(%rip)      # 0x375e8
movq 0xd0(%rbx), %rdi
leaq 0xe0(%rbx), %rax
cmpq %rax, %rdi
je 0x1f3bf
movq (%rax), %rsi
incq %rsi
callq 0x6430
movq 0x98(%rbx), %rdi
leaq 0xa8(%rbx), %rax
cmpq %rax, %rdi
je 0x1f3dd
movq (%rax), %rsi
incq %rsi
callq 0x6430
movq 0x70(%rbx), %rdi
leaq 0x80(%rbx), %rax
cmpq %rax, %rdi
je 0x1f3f8
movq (%rax), %rsi
incq %rsi
callq 0x6430
movq 0x50(%rbx), %rdi
leaq 0x60(%rbx), %rax
cmpq %rax, %rdi
je 0x1f410
movq (%rax), %rsi
incq %rsi
callq 0x6430
movq 0x28(%rbx), %rdi
leaq 0x38(%rbx), %rax
cmpq %rax, %rdi
je 0x1f428
movq (%rax), %rsi
incq %rsi
callq 0x6430
movq 0x8(%rbx), %rdi
addq $0x18, %rbx
cmpq %rbx, %rdi
je 0x1f441
movq (%rbx), %rsi
incq %rsi
popq %rbx
jmp 0x6430
popq %rbx
retq
movq %rax, %rdi
callq 0x7596
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::UnitTestImpl::AddTestInfo(void (*)(), void (*)(), testing::TestInfo*)
void AddTestInfo(Test::SetUpTestCaseFunc set_up_tc,
                   Test::TearDownTestCaseFunc tear_down_tc,
                   TestInfo* test_info) {
    // In order to support thread-safe death tests, we need to
    // remember the original working directory when the test program
    // was first invoked.  We cannot do this in RUN_ALL_TESTS(), as
    // the user may have changed the current directory before calling
    // RUN_ALL_TESTS().  Therefore we capture the current directory in
    // AddTestInfo(), which is called to register a TEST or TEST_F
    // before main() is reached.
    if (original_working_dir_.IsEmpty()) {
      original_working_dir_.Set(FilePath::GetCurrentDir());
      GTEST_CHECK_(!original_working_dir_.IsEmpty())
          << "Failed to get the current working directory.";
    }

    GetTestCase(test_info->test_case_name(),
                test_info->type_param(),
                set_up_tc,
                tear_down_tc)->AddTestInfo(test_info);
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
cmpq $0x0, 0x18(%rdi)
jne 0x1f670
leaq 0x10(%r12), %r13
leaq 0x8(%rsp), %rbp
movq %rbp, %rdi
callq 0x1b2dc
movq %r13, %rdi
movq %rbp, %rsi
callq 0x6220
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f613
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
cmpq $0x0, 0x18(%r12)
jne 0x1f670
leaq 0x8c6f(%rip), %rdx      # 0x28291
leaq 0x8(%rsp), %rdi
movl $0x3, %esi
movl $0x42b, %ecx            # imm = 0x42B
callq 0x1be2c
movq 0x179b3(%rip), %rdi     # 0x36ff0
leaq 0xa09b(%rip), %rsi      # 0x296df
movl $0x33, %edx
callq 0x6510
movq 0x1799b(%rip), %rdi     # 0x36ff0
leaq 0xa0b7(%rip), %rsi      # 0x29713
movl $0x2c, %edx
callq 0x6510
leaq 0x8(%rsp), %rdi
callq 0x1bf6e
movq (%rbx), %rsi
movq 0x40(%rbx), %rax
testq %rax, %rax
je 0x1f681
movq (%rax), %rdx
jmp 0x1f683
xorl %edx, %edx
movq %r12, %rdi
movq %r15, %rcx
movq %r14, %r8
callq 0x141d6
movq %rax, %rdi
movq %rbx, %rsi
callq 0xe32c
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1bf6e
jmp 0x1f6d8
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f6d8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
movq %rbx, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::ScopedPrematureExitFile::ScopedPrematureExitFile(char const*)
explicit ScopedPrematureExitFile(const char* premature_exit_filepath)
      : premature_exit_filepath_(premature_exit_filepath) {
    // If a path to the premature-exit file is specified...
    if (premature_exit_filepath != NULL && *premature_exit_filepath != '\0') {
      // create the file with a single "0" character in it.  I/O
      // errors are ignored as there's nothing better we can do and we
      // don't want to fail the test because of this.
      FILE* pfile = posix::FOpen(premature_exit_filepath, "w");
      fwrite("0", 1, 1, pfile);
      fclose(pfile);
    }
  }

// Assembly:
movq %rsi, (%rdi)
testq %rsi, %rsi
je 0x1fc91
cmpb $0x0, (%rsi)
je 0x1fc91
pushq %rbx
leaq 0x8f07(%rip), %rax      # 0x28b74
movq %rsi, %rdi
movq %rax, %rsi
callq 0x6570
movq %rax, %rbx
movl $0x30, %edi
movq %rax, %rsi
callq 0x65f0
movq %rbx, %rdi
popq %rbx
jmp 0x63f0
retq
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest.h
// Function: testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::~ThreadLocal()
~ThreadLocal() {
    // Destroys the managed object for the current thread, if any.
    DeleteThreadLocalValue(pthread_getspecific(key_));

    // Releases resources associated with the key.  This will *not*
    // delete managed objects for other threads.
    GTEST_CHECK_POSIX_SUCCESS_(pthread_key_delete(key_));
  }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rdi), %edi
callq 0x6780
testq %rax, %rax
je 0x1fe63
movq (%rax), %rcx
movq %rax, %rdi
callq *0x8(%rcx)
movl (%rbx), %edi
callq 0x6580
testl %eax, %eax
je 0x1fed3
movl %eax, %ebp
leaq 0x975c(%rip), %rdx      # 0x295d3
leaq 0x4(%rsp), %rdi
movl $0x3, %esi
movl $0xa21, %ecx            # imm = 0xA21
callq 0x1be2c
movq 0x1715e(%rip), %rdi     # 0x36ff0
leaq 0x9f17(%rip), %rsi      # 0x29db0
movl $0x18, %edx
callq 0x6510
movq 0x17146(%rip), %rdi     # 0x36ff0
leaq 0x974e(%rip), %rsi      # 0x295ff
movl $0x12, %edx
callq 0x6510
movq 0x1712e(%rip), %rdi     # 0x36ff0
movl %ebp, %esi
callq 0x68a0
leaq 0x4(%rsp), %rdi
callq 0x1bf6e
addq $0x8, %rbx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x22260
movq %rax, %rdi
callq 0x7596
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::GetNextRandomSeed(int)
inline int GetNextRandomSeed(int seed) {
  GTEST_CHECK_(1 <= seed && seed <= kMaxRandomSeed)
      << "Invalid random seed " << seed << " - must be in [1, "
      << kMaxRandomSeed << "].";
  const int next_seed = seed + 1;
  return (next_seed > kMaxRandomSeed) ? 1 : next_seed;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
leal -0x1(%rbx), %eax
cmpl $0x1869f, %eax          # imm = 0x1869F
jb 0x202f9
leaq 0x802c(%rip), %rdx      # 0x28291
leaq 0x4(%rsp), %rdi
movl $0x3, %esi
movl $0x229, %ecx            # imm = 0x229
callq 0x1be2c
movq 0x16d70(%rip), %rdi     # 0x36ff0
leaq 0x973f(%rip), %rsi      # 0x299c6
movl $0x36, %edx
callq 0x6510
movq 0x16d58(%rip), %rdi     # 0x36ff0
leaq 0x975e(%rip), %rsi      # 0x299fd
movl $0x14, %edx
callq 0x6510
movq 0x16d40(%rip), %rdi     # 0x36ff0
movl %ebx, %esi
callq 0x68a0
movq %rax, %r14
leaq 0x9751(%rip), %rsi      # 0x29a12
movl $0x12, %edx
movq %rax, %rdi
callq 0x6510
movq %r14, %rdi
movl $0x1869f, %esi          # imm = 0x1869F
callq 0x68a0
leaq 0x9743(%rip), %rsi      # 0x29a25
movl $0x2, %edx
movq %rax, %rdi
callq 0x6510
leaq 0x4(%rsp), %rdi
callq 0x1bf6e
leal 0x1(%rbx), %ecx
cmpl $0x1869f, %ebx          # imm = 0x1869F
movl $0x1, %eax
cmovll %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x4(%rsp), %rdi
callq 0x1bf6e
movq %rbx, %rdi
callq 0x68e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: void testing::internal::InitGoogleTestImpl<char>(int*, char**)
void InitGoogleTestImpl(int* argc, CharType** argv) {
  g_init_gtest_count++;

  // We don't want to run the initialization code twice.
  if (g_init_gtest_count != 1) return;

  if (*argc <= 0) return;

  internal::g_executable_path = internal::StreamableToString(argv[0]);

#if GTEST_HAS_DEATH_TEST

  g_argvs.clear();
  for (int i = 0; i != *argc; i++) {
    g_argvs.push_back(StreamableToString(argv[i]));
  }

#endif  // GTEST_HAS_DEATH_TEST

  ParseGoogleTestFlagsOnly(argc, argv);
  GetUnitTestImpl()->PostFlagParsingInit();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl 0x16998(%rip), %eax     # 0x375ec
leal 0x1(%rax), %ecx
movl %ecx, 0x1698f(%rip)     # 0x375ec
testl %eax, %eax
jne 0x20d2f
movq %rdi, %r14
cmpl $0x0, (%rdi)
jle 0x20d2f
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rsi, (%rsp)
callq 0x25feb
leaq 0x1699f(%rip), %rdi     # 0x37628
movq %r15, %rsi
callq 0x65d0
movq (%r15), %rdi
leaq 0x18(%rsp), %rbp
cmpq %rbp, %rdi
je 0x20cab
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
movq 0x16a76(%rip), %rsi     # 0x37728
leaq 0x16a6f(%rip), %rdi     # 0x37728
callq 0x260e6
cmpl $0x0, (%r14)
je 0x20d12
xorl %ebx, %ebx
leaq 0x8(%rsp), %r15
leaq 0x16a56(%rip), %r12     # 0x37728
movq (%rsp), %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x25feb
movq %r12, %rdi
movq %r15, %rsi
callq 0x23f74
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x20d03
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
incq %rbx
movl (%r14), %eax
addq $0x8, %r13
cmpq %rax, %rbx
jne 0x20cd6
movq %r14, %rdi
movq (%rsp), %rsi
callq 0x205e6
callq 0x7dc8
movq 0x16976(%rip), %rdi     # 0x376a0
callq 0x1414c
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x20d58
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
movq %rbx, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::CapturedStream::GetCapturedString[abi:cxx11]()
std::string GetCapturedString() {
    if (uncaptured_fd_ != -1) {
      // Restores the original stream.
      fflush(NULL);
      dup2(uncaptured_fd_, fd_);
      close(uncaptured_fd_);
      uncaptured_fd_ = -1;
    }

    FILE* const file = posix::FOpen(filename_.c_str(), "r");
    const std::string content = ReadEntireFile(file);
    posix::FClose(file);
    return content;
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpl $-0x1, 0x4(%rsi)
je 0x21166
xorl %edi, %edi
callq 0x6560
movl (%r14), %esi
movl 0x4(%r14), %edi
callq 0x63d0
movl 0x4(%r14), %edi
callq 0x69d0
movl $0xffffffff, 0x4(%r14)  # imm = 0xFFFFFFFF
movq 0x8(%r14), %rdi
leaq 0x8d5c(%rip), %rsi      # 0x29ecd
callq 0x6570
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1bfde
movq %r14, %rdi
callq 0x63f0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest.h
// Function: testing::internal::MutexBase::Unlock()
void Unlock() {
    // Since the lock is being released the owner_ field should no longer be
    // considered valid. We don't protect writing to has_owner_ here, as it's
    // the caller's responsibility to ensure that the current thread holds the
    // mutex when this is called.
    has_owner_ = false;
    GTEST_CHECK_POSIX_SUCCESS_(pthread_mutex_unlock(&mutex_));
  }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movb $0x0, 0x28(%rdi)
callq 0x6300
testl %eax, %eax
je 0x21d29
movl %eax, %ebx
leaq 0x7906(%rip), %rdx      # 0x295d3
leaq 0xc(%rsp), %rdi
movl $0x3, %esi
movl $0x99b, %ecx            # imm = 0x99B
callq 0x1be2c
movq 0x15308(%rip), %rdi     # 0x36ff0
leaq 0x7923(%rip), %rsi      # 0x29612
movl $0x1d, %edx
callq 0x6510
movq 0x152f0(%rip), %rdi     # 0x36ff0
leaq 0x78f8(%rip), %rsi      # 0x295ff
movl $0x12, %edx
callq 0x6510
movq 0x152d8(%rip), %rdi     # 0x36ff0
movl %ebx, %esi
callq 0x68a0
leaq 0xc(%rsp), %rdi
callq 0x1bf6e
addq $0x10, %rsp
popq %rbx
retq
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
callq 0x1bf6e
movq %rbx, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest.h
// Function: testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::GetOrCreateValue() const
T* GetOrCreateValue() const {
    ThreadLocalValueHolderBase* const holder =
        static_cast<ThreadLocalValueHolderBase*>(pthread_getspecific(key_));
    if (holder != NULL) {
      return CheckedDowncastToActualType<ValueHolder>(holder)->pointer();
    }

    ValueHolder* const new_holder = new ValueHolder(default_);
    ThreadLocalValueHolderBase* const holder_base = new_holder;
    GTEST_CHECK_POSIX_SUCCESS_(pthread_setspecific(key_, holder_base));
    return new_holder->pointer();
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl (%rdi), %edi
callq 0x6780
testq %rax, %rax
je 0x21f02
movq %rax, %rdi
callq 0x21fd5
movq %rax, %rbx
addq $0x8, %rbx
jmp 0x21fa0
movl $0x20, %edi
callq 0x6400
movq %rax, %r15
leaq 0x8(%r14), %rsi
leaq 0x14cfe(%rip), %rax     # 0x36c18
movq %rax, (%r15)
movq %r15, %rbx
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x22086
movl (%r14), %edi
movq %r15, %rsi
callq 0x60c0
testl %eax, %eax
je 0x21fa0
movl %eax, %ebp
leaq 0x768f(%rip), %rdx      # 0x295d3
leaq 0x4(%rsp), %rdi
movl $0x3, %esi
movl $0xa48, %ecx            # imm = 0xA48
callq 0x1be2c
movq 0x15091(%rip), %rdi     # 0x36ff0
leaq 0x780c(%rip), %rsi      # 0x29772
movl $0x26, %edx
callq 0x6510
movq 0x15079(%rip), %rdi     # 0x36ff0
leaq 0x7681(%rip), %rsi      # 0x295ff
movl $0x12, %edx
callq 0x6510
movq 0x15061(%rip), %rdi     # 0x36ff0
movl %ebp, %esi
callq 0x68a0
leaq 0x4(%rsp), %rdi
callq 0x1bf6e
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x20, %esi
movq %r15, %rdi
callq 0x6430
jmp 0x21fcd
movq %rax, %rbx
leaq 0x4(%rsp), %rdi
callq 0x1bf6e
movq %rbx, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest.h
// Function: testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::ValueHolder* testing::internal::CheckedDowncastToActualType<testing::internal::ThreadLocal<std::vector<testing::internal::TraceInfo, std::allocator<testing::internal::TraceInfo>>>::ValueHolder, testing::internal::ThreadLocalValueHolderBase>(testing::internal::ThreadLocalValueHolderBase*)
Derived* CheckedDowncastToActualType(Base* base) {
#if GTEST_HAS_RTTI
  GTEST_CHECK_(typeid(*base) == typeid(Derived));
  return dynamic_cast<Derived*>(base);  // NOLINT
#else
  return static_cast<Derived*>(base);  // Poor man's downcast.
#endif
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x2206c
movq %rdi, %rbx
movq (%rdi), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x809f(%rip), %rax      # 0x2a097
cmpq %rax, %rdi
je 0x2204f
cmpb $0x2a, (%rdi)
je 0x22012
leaq 0x808e(%rip), %rsi      # 0x2a097
callq 0x66d0
testl %eax, %eax
je 0x2204f
leaq 0x75ba(%rip), %rdx      # 0x295d3
leaq 0xc(%rsp), %rdi
movl $0x3, %esi
movl $0x8ce, %ecx            # imm = 0x8CE
callq 0x1be2c
movq 0x14fbc(%rip), %rdi     # 0x36ff0
leaq 0x775e(%rip), %rsi      # 0x29799
movl $0x33, %edx
callq 0x6510
leaq 0xc(%rsp), %rdi
callq 0x1bf6e
leaq 0x14b8a(%rip), %rsi     # 0x36be0
leaq 0x14b93(%rip), %rdx     # 0x36bf0
movq %rbx, %rdi
xorl %ecx, %ecx
addq $0x10, %rsp
popq %rbx
jmp 0x6500
callq 0x64b0
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
callq 0x1bf6e
movq %rbx, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::StreamingListener::OnTestProgramEnd(testing::UnitTest const&)
void OnTestProgramEnd(const UnitTest& unit_test) {
    // Note that Google Test current only report elapsed time for each
    // test iteration, not for the entire test program.
    SendLn("event=TestProgramEnd&passed=" + FormatBool(unit_test.Passed()));

    // Notify the streaming server to stop.
    socket_writer_->CloseConnection();
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq 0x40(%rsi), %rdi
callq 0x1fa98
leaq 0x5ad9(%rip), %rcx      # 0x2930b
leaq 0x63be(%rip), %rsi      # 0x29bf7
testb %al, %al
cmovneq %rcx, %rsi
leaq 0x30(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5abd(%rip), %rax      # 0x2930c
leaq 0x63a2(%rip), %rdx      # 0x29bf8
cmovneq %rax, %rdx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x24240
leaq 0x613b(%rip), %rcx      # 0x299a9
movl $0x1c, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x64f0
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x238a6
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x238ad
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rsp, %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rbx), %rdi
callq 0x23b72
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x238e6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6430
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x238fd
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x6430
movq 0x8(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x2392f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6430
jmp 0x2392f
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r15, %rdi
je 0x23946
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x6430
movq %rbx, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::StreamingListener::SocketWriter::Send(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
virtual void Send(const string& message) {
      GTEST_CHECK_(sockfd_ != -1)
          << "Send() can be called only when there is a connection.";

      const int len = static_cast<int>(message.length());
      if (write(sockfd_, message.c_str(), len) != len) {
        GTEST_LOG_(WARNING)
            << "stream_result_to: failed to stream to "
            << host_name_ << ":" << port_num_;
      }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl 0x8(%rdi), %edi
cmpl $-0x1, %edi
jne 0x23a2d
leaq 0x48b5(%rip), %rdx      # 0x28291
leaq 0xc(%rsp), %rdi
movl $0x3, %esi
movl $0x5e1, %ecx            # imm = 0x5E1
callq 0x1be2c
movq 0x135f9(%rip), %rdi     # 0x36ff0
leaq 0x5dcf(%rip), %rsi      # 0x297cd
movl $0x20, %edx
callq 0x6510
movq 0x135e1(%rip), %rdi     # 0x36ff0
leaq 0x5dd8(%rip), %rsi      # 0x297ee
movl $0x35, %edx
callq 0x6510
leaq 0xc(%rsp), %rdi
callq 0x1bf6e
movl 0x8(%rbx), %edi
movslq 0x8(%r14), %r15
movq (%r14), %rsi
movq %r15, %rdx
callq 0x6170
cmpq %r15, %rax
je 0x23ab9
leaq 0x4849(%rip), %rdx      # 0x28291
leaq 0x8(%rsp), %rdi
movl $0x1, %esi
movl $0x5e6, %ecx            # imm = 0x5E6
callq 0x1be2c
movq 0x1358d(%rip), %rdi     # 0x36ff0
leaq 0x5dba(%rip), %rsi      # 0x29824
movl $0x26, %edx
callq 0x6510
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
movq 0x1356d(%rip), %rdi     # 0x36ff0
callq 0x6510
movq %rax, %r14
leaq 0x539d(%rip), %rsi      # 0x28e2f
movl $0x1, %edx
movq %rax, %rdi
callq 0x6510
movq 0x30(%rbx), %rsi
movq 0x38(%rbx), %rdx
movq %r14, %rdi
callq 0x6510
leaq 0x8(%rsp), %rdi
callq 0x1bf6e
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
jmp 0x23ad5
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1bf6e
movq %rbx, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::StreamingListener::SocketWriter::CloseConnection()
void CloseConnection() {
      GTEST_CHECK_(sockfd_ != -1)
          << "CloseConnection() can be called only when there is a connection.";

      close(sockfd_);
      sockfd_ = -1;
    }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl 0x8(%rdi), %edi
cmpl $-0x1, %edi
jne 0x23b4a
leaq 0x4798(%rip), %rdx      # 0x28291
leaq 0xc(%rsp), %rdi
movl $0x3, %esi
movl $0x5f2, %ecx            # imm = 0x5F2
callq 0x1be2c
movq 0x134dc(%rip), %rdi     # 0x36ff0
leaq 0x5cb2(%rip), %rsi      # 0x297cd
movl $0x20, %edx
callq 0x6510
movq 0x134c4(%rip), %rdi     # 0x36ff0
leaq 0x5d18(%rip), %rsi      # 0x2984b
movl $0x40, %edx
callq 0x6510
leaq 0xc(%rsp), %rdi
callq 0x1bf6e
movl 0x8(%rbx), %edi
callq 0x69d0
movl $0xffffffff, 0x8(%rbx)  # imm = 0xFFFFFFFF
addq $0x10, %rsp
popq %rbx
retq
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
callq 0x1bf6e
movq %rbx, %rdi
callq 0x68e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest.h
// Function: testing::internal::UniversalTersePrinter<char const*>::Print(char const*, std::ostream*)
static void Print(const char* str, ::std::ostream* os) {
    if (str == NULL) {
      *os << "NULL";
    } else {
      UniversalPrint(string(str), os);
    }
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
testq %rdi, %rdi
je 0x24447
movq %rdi, %r14
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
callq 0x61c0
leaq (%rax,%r14), %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x24240
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq %rbx, %rdx
callq 0x1c500
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2443b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x50af(%rip), %rsi      # 0x294fd
movl $0x4, %edx
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x6510
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x24480
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6430
movq %rbx, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest.h
// Function: testing::internal::UniversalTersePrinter<wchar_t const*>::Print(wchar_t const*, std::ostream*)
static void Print(const wchar_t* str, ::std::ostream* os) {
    if (str == NULL) {
      *os << "NULL";
    } else {
      UniversalPrint(::std::wstring(str), os);
    }
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
testq %rdi, %rdi
je 0x244f8
movq %rdi, %r14
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
callq 0x6380
leaq (%r14,%rax,4), %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x2453e
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq %rbx, %rdx
callq 0x1c60e
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x244ec
movq 0x18(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x6430
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x4ffe(%rip), %rsi      # 0x294fd
movl $0x4, %edx
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x6510
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x24536
movq 0x18(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x6430
movq %rbx, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/./gtest/gtest.h
// Function: testing::internal::ThreadLocal<testing::TestPartResultReporterInterface*>::CreateKey()
static pthread_key_t CreateKey() {
    pthread_key_t key;
    // When a thread exits, DeleteThreadLocalValue() will be called on
    // the object managed for that thread.
    GTEST_CHECK_POSIX_SUCCESS_(
        pthread_key_create(&key, &DeleteThreadLocalValue));
    return key;
  }

// Assembly:
pushq %rbx
subq $0x10, %rsp
leaq 0x92(%rip), %rsi        # 0x25cae
leaq 0xc(%rsp), %rdi
callq 0x67f0
testl %eax, %eax
je 0x25c8f
movl %eax, %ebx
leaq 0x39a0(%rip), %rdx      # 0x295d3
leaq 0x8(%rsp), %rdi
movl $0x3, %esi
movl $0xa3b, %ecx            # imm = 0xA3B
callq 0x1be2c
movq 0x113a2(%rip), %rdi     # 0x36ff0
leaq 0x4129(%rip), %rsi      # 0x29d7e
movl $0x31, %edx
callq 0x6510
movq 0x1138a(%rip), %rdi     # 0x36ff0
leaq 0x3992(%rip), %rsi      # 0x295ff
movl $0x12, %edx
callq 0x6510
movq 0x11372(%rip), %rdi     # 0x36ff0
movl %ebx, %esi
callq 0x68a0
leaq 0x8(%rsp), %rdi
callq 0x1bf6e
movl 0xc(%rsp), %eax
addq $0x10, %rsp
popq %rbx
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1bf6e
movq %rbx, %rdi
callq 0x68e0
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/jacobi.cpp
// Function: matrix_vector_mult(int, double const*, double const*, double*)
void matrix_vector_mult(const int n, const double* A, const double* x, double* y)
{
    for (int i = 0; i < n; i++) {
        y[i] = 0;
        for (int j = 0; j < n; j++) {
            y[i] += A[i * n + j] * x[j];
        }
    }
}

// Assembly:
testl %edi, %edi
jle 0x263b5
movl %edi, %eax
leaq (,%rax,8), %rdi
xorl %r8d, %r8d
movq $0x0, (%rcx,%r8,8)
xorpd %xmm0, %xmm0
xorl %r9d, %r9d
movsd (%rsi,%r9,8), %xmm1
mulsd (%rdx,%r9,8), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, (%rcx,%r8,8)
incq %r9
cmpq %r9, %rax
jne 0x2638c
incq %r8
addq %rdi, %rsi
cmpq %rax, %r8
jne 0x2637d
retq
// File: /workspace/github_cpp_makefile_star2_O3/WeihuaZhu[P]hpc_prog2/jacobi.cpp
// Function: matrix_vector_mult(int, int, double const*, double const*, double*)
void matrix_vector_mult(const int n, const int m, const double* A, const double* x, double* y)
{
    for (int i = 0; i < n; i++) {
        y[i] = 0;
        for (int j = 0; j < m; j++) {
            y[i] += A[i * m + j] * x[j];
        }
    }
}

// Assembly:
testl %edi, %edi
jle 0x26405
movl %esi, %eax
movl %edi, %edi
leaq (,%rax,8), %r9
xorl %r10d, %r10d
movq $0x0, (%r8,%r10,8)
testl %esi, %esi
jle 0x263fa
xorpd %xmm0, %xmm0
xorl %r11d, %r11d
movsd (%rdx,%r11,8), %xmm1
mulsd (%rcx,%r11,8), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, (%r8,%r10,8)
incq %r11
cmpq %r11, %rax
jne 0x263dc
incq %r10
addq %r9, %rdx
cmpq %rdi, %r10
jne 0x263c9
retq
// File: /workspace/github_cpp_makefile_star2_O3/hzeller[P]jcxxgen/schema-compiler.cc
// Function: main
int main(int argc, char *argv[]) {
  if (argc < 2) {
    fprintf(stderr, "usage: %s [options] <protocol-spec-yaml>\n", argv[0]);
    fprintf(stderr, "Options:\n"
            "  -o <filename>     : Output to filename\n"
            "  -j <json-include> : Include path to json.hpp, "
            "including brackets <> or quotes \"\" around.\n"
            "                      Default: '<nlohmann/json.hpp>'\n");
    return 1;
  }

  const char *out_filename = nullptr;
  const char *nlohmann_json_include = "<nlohmann/json.hpp>";
  int opt;
  while ((opt = getopt(argc, argv, "o:")) != -1) {
    switch (opt) {
    case 'o': out_filename = strdup(optarg); break;
    case 'j': nlohmann_json_include = strdup(optarg); break;
    }
  }

  const char *schema_filename = argv[optind];
  auto objects = LoadObjectTypes(schema_filename);
  if (!objects) {
    fprintf(stderr, "Couldn't parse spec\n");
    return 2;
  }

  FILE *out = stdout;
  if (out_filename) {
    out = fopen(out_filename, "w");
    if (!out) {
      perror("opening output file");
      return 3;
    }
  }

  GenerateCode(schema_filename, nlohmann_json_include, *objects, out);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
cmpl $0x2, %edi
jl 0x69c8
movl %edi, %r12d
leaq 0xfc25(%rip), %rbx      # 0x1650a
xorl %r14d, %r14d
leaq 0xfc2f(%rip), %r13      # 0x1651e
movl %r12d, %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0x4080
cmpl $-0x1, %eax
je 0x6934
cmpl $0x6a, %eax
je 0x6920
cmpl $0x6f, %eax
jne 0x68ef
movq 0x18665(%rip), %rax     # 0x1ef78
movq (%rax), %rdi
callq 0x44b0
movq %rax, %r14
jmp 0x68ef
movq 0x18651(%rip), %rax     # 0x1ef78
movq (%rax), %rdi
callq 0x44b0
movq %rax, %rbx
jmp 0x68ef
movq 0x18675(%rip), %rax     # 0x1efb0
movslq (%rax), %rax
movq (%r15,%rax,8), %r12
leaq -0x30(%rbp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x488c
movq (%r15), %r15
testq %r15, %r15
je 0x69d7
testq %r14, %r14
je 0x6988
leaq 0xfbd1(%rip), %rsi      # 0x16536
movq %r14, %rdi
callq 0x4330
movq %rax, %rcx
testq %rax, %rax
jne 0x6992
leaq 0xfbbc(%rip), %rdi      # 0x16538
callq 0x4230
movl $0x3, %ebx
jmp 0x69ab
movq 0x185d1(%rip), %rax     # 0x1ef60
movq (%rax), %rcx
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x6138
movq -0x30(%rbp), %r15
xorl %ebx, %ebx
testq %r15, %r15
je 0x69b7
leaq -0x30(%rbp), %rdi
movq %r15, %rsi
callq 0x15cec
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x457f
movl $0x1, %ebx
jmp 0x69b7
callq 0x4550
movl $0x2, %ebx
jmp 0x69b7
movq %rax, %rbx
movq -0x30(%rbp), %rsi
testq %rsi, %rsi
je 0x69f8
leaq -0x30(%rbp), %rdi
callq 0x15cec
movq %rbx, %rdi
callq 0x4480
// File: /workspace/github_cpp_makefile_star2_O3/Merulo[P]CompilerJFTT/src/Register/RegisterBlock.cpp
// Function: RegisterBlock::createRegisters()
void RegisterBlock::createRegisters()
{
    _addressRegister.name = "A";
    for(size_t i = 1; i < 8; i++){
        Register r;
        char c =  'A' + i;
        r.name = c;
        _registers.push_back(r);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
addq $0x20, %rdi
movq 0x28(%rbx), %rdx
leaq 0x318ba(%rip), %rcx     # 0x37094
xorl %r12d, %r12d
movl $0x1, %r8d
xorl %esi, %esi
callq 0x4440
leaq 0x20(%rsp), %r13
leaq 0x40(%rsp), %rbp
addq $0x68, %rbx
movq $-0x7, %r14
movq %rsp, %r15
movq %r13, 0x10(%rsp)
movq %r12, 0x18(%rsp)
movb %r12b, 0x20(%rsp)
movq %rbp, 0x30(%rsp)
movq %r12, 0x38(%rsp)
movb %r12b, 0x40(%rsp)
movb %r12b, 0x50(%rsp)
callq 0x40b0
cltq
movq %rax, 0x8(%rsp)
movl $0x0, (%rsp)
leal 0x49(%r14), %eax
movq 0x18(%rsp), %rdx
movsbl %al, %r8d
movl $0x1, %ecx
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x44f0
movq %rbx, %rdi
movq %r15, %rsi
callq 0xbb58
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5878
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x588f
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42a0
incq %r14
jne 0x5802
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0xbb82
movq %rbx, %rdi
callq 0x44c0
// File: /workspace/github_cpp_makefile_star2_O3/Merulo[P]CompilerJFTT/src/Register/Register.hpp
// Function: operator<<(std::ostream&, Register const&)
std::ostream& operator<<(std::ostream& os, const Register& r)
    {
        os <<"\t"<< r.name << " ";
        switch(r.state)
        {
            case RegisterState::UNKNOWN:
            {
                os << "unknown state";
                break;
            }
            case RegisterState::VARIABLE:
            {
                os << "variable="<<r.variableName;
                break;
            }
            case RegisterState::CONST:
            {
                os << "const="<<r.constValue<<" "<<r.variableName;
                break;
            }
            case RegisterState::TABLE:
            {
                os << "table="<<r.variableName;
                break;
            }
            case RegisterState::CONSTVARIABLE:
            {
                os <<"constvalue"<<r.variableName<<" with value "<<r.constValue;
            }
        }
        return os;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x2b3b1(%rip), %rsi     # 0x370e2
movl $0x1, %edx
callq 0x4310
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rdx
movq %rbx, %rdi
callq 0x4310
leaq 0x2c719(%rip), %rsi     # 0x3846b
movl $0x1, %edx
movq %rax, %rdi
callq 0x4310
movl (%r14), %eax
cmpq $0x4, %rax
ja 0xbe4c
leaq 0x2b30d(%rip), %rcx     # 0x37080
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x2b361(%rip), %rsi     # 0x370e4
movl $0xd, %edx
jmp 0xbe44
leaq 0x2b376(%rip), %rsi     # 0x3710a
movl $0xa, %edx
movq %rbx, %rdi
callq 0x4310
movq 0x30(%r14), %rsi
movq 0x38(%r14), %rdx
movq %rbx, %rdi
callq 0x4310
movq %rax, %r15
leaq 0x2b35a(%rip), %rsi     # 0x37115
movl $0xc, %edx
movq %rax, %rdi
callq 0x4310
movq 0x8(%r14), %rsi
movq %r15, %rdi
callq 0x41b0
jmp 0xbe4c
leaq 0x2b31f(%rip), %rsi     # 0x370fc
movl $0x6, %edx
movq %rbx, %rdi
callq 0x4310
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x41b0
movq %rax, %r15
leaq 0x2c66b(%rip), %rsi     # 0x3846b
movl $0x1, %edx
movq %rax, %rdi
callq 0x4310
movq 0x30(%r14), %rsi
movq 0x38(%r14), %rdx
movq %r15, %rdi
jmp 0xbe47
leaq 0x2b2e2(%rip), %rsi     # 0x37103
movl $0x6, %edx
jmp 0xbe34
leaq 0x2b2c3(%rip), %rsi     # 0x370f2
movl $0x9, %edx
movq %rbx, %rdi
callq 0x4310
movq 0x30(%r14), %rsi
movq 0x38(%r14), %rdx
movq %rbx, %rdi
callq 0x4310
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Merulo[P]CompilerJFTT/src/Calculators/NumberGenerator.cpp
// Function: NumberGenerator::getCostWithIncAndAdd(unsigned long long)
int NumberGenerator::getCostWithIncAndAdd(unsigned long long target)
{
    int cost = 0;
    while (target > 10)
    {
        if (target % 2 == 0)
        {
            target = target / 2;
            cost += 5;
        }
        else
        {
            target--;
            cost++;
        }
    }
    return cost + target;
}

// Assembly:
xorl %ecx, %ecx
cmpq $0xb, %rdi
jb 0x19486
xorl %ecx, %ecx
movq %rdi, %rax
movq %rdi, %rdx
shrq %rdx
decq %rax
xorl %esi, %esi
testb $0x1, %dil
cmoveq %rdx, %rax
sete %sil
leal (%rcx,%rsi,4), %ecx
incl %ecx
movq %rax, %rdi
cmpq $0xa, %rax
ja 0x1945f
jmp 0x19489
movq %rdi, %rax
addl %ecx, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::addVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string SymbolTable::addVariable(std::string name)
{
    if (isNameTaken(name))
    {
        return "second " + name + " declaration!";
    }
    Variable v;
    _variables[name] = v;
    return "";
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0xc7aa
movq %r15, %rdi
movq %r12, %rsi
callq 0x1a4ca
movl %eax, %ebp
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1a3c3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
testb %bpl, %bpl
je 0x1a410
leaq 0x1cfc6(%rip), %rsi     # 0x37395
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x5344
leaq 0x1cfb7(%rip), %rsi     # 0x3739d
movq %r15, %rdi
callq 0x4510
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x1a445
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x1a44b
addq $0x40, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x1b22c
movb $0x0, (%rax)
movq $0x0, 0x8(%rax)
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x1ccab(%rip), %rdx     # 0x370e3
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x53cc
jmp 0x1a47d
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a47d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a4c1
movq 0x38(%rsp), %rsi
jmp 0x1a4b9
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x1a4c1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rdi
callq 0x44c0
nop
// File: /workspace/github_cpp_makefile_star2_O3/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::isNameTaken(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool SymbolTable::isNameTaken(std::string name)
{
    if(_variables.find(name) != _variables.end())
    {
        return true;
    }
    if(_tables.find(name) != _tables.end())
    {
        return true;
    }
    if(_currentIterators.find(name) != _currentIterators.end())
    {
        return true;
    }

    return false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
addq $0x40, %rdi
callq 0x1b7f6
leaq 0x48(%rbx), %rcx
movb $0x1, %bpl
cmpq %rcx, %rax
jne 0x1a51b
leaq 0x70(%rbx), %rdi
movq %r14, %rsi
callq 0x1bc02
leaq 0x78(%rbx), %rcx
cmpq %rcx, %rax
jne 0x1a51b
leaq 0xd0(%rbx), %rdi
movq %r14, %rsi
callq 0x1b83c
addq $0xd8, %rbx
cmpq %rbx, %rax
setne %bpl
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::getMemoryCell(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
unsigned long long SymbolTable::getMemoryCell(std::string name)
{
    if (_variables.find(name) != _variables.end())
    {
        return _variables[name].memoryCell;
    }

    if(_allIterators.find(name) != _allIterators.end())
    {
        return _allIterators[name].memoryCell;
    }

    if (_tables.find(name) != _tables.end())
    {
        return _tables[name].memoryCellStart;
    }
    std::cerr<<"ADDRESS OF "<<name<<" WAS NOT FOUND"<<std::endl;
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x40(%rdi), %r15
movq %r15, %rdi
callq 0x1b7f6
leaq 0x48(%r14), %rcx
cmpq %rcx, %rax
je 0x1a553
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1b22c
movq 0x8(%rax), %rax
jmp 0x1a5a4
leaq 0x100(%r14), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1b83c
leaq 0x108(%r14), %rcx
cmpq %rcx, %rax
je 0x1a57e
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1b2a8
jmp 0x1a5a1
leaq 0x70(%r14), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1bc02
addq $0x78, %r14
cmpq %r14, %rax
je 0x1a5aa
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1b324
movq (%rax), %rax
popq %rbx
popq %r14
popq %r15
retq
movq 0x2aa3f(%rip), %r14     # 0x44ff0
leaq 0x1cdf3(%rip), %rsi     # 0x373ab
movl $0xb, %edx
movq %r14, %rdi
callq 0x4310
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x4310
movq %rax, %rbx
leaq 0x1cdd9(%rip), %rsi     # 0x373b7
movl $0xe, %edx
movq %rax, %rdi
callq 0x4310
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x41c0
xorl %eax, %eax
jmp 0x1a5a4
// File: /workspace/github_cpp_makefile_star2_O3/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::assignMemory()
void SymbolTable::assignMemory()
{
    for(auto& v : _variables)
    {
        if (!v.second.isInitialized)
        {
            _variables.erase(v.first);
        }
    }
    ull index = 0;
    //variables
    for (auto& v : _variables)
    {
        v.second.memoryCell = index;
        index++;
    } 

    //iterators
    for(auto& i : _allIterators)
    {
        i.second.memoryCell = index;
        index++;
    }

    //tables
    for(auto& t : _tables)
    {
        t.second.memoryCellStart = index;
        index += t.second.endIndex - t.second.beginIndex + 1;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x58(%rdi), %r14
leaq 0x48(%rdi), %r12
cmpq %r12, %r14
je 0x1a664
leaq 0x40(%rbx), %r15
cmpb $0x0, 0x40(%r14)
jne 0x1a650
leaq 0x20(%r14), %rsi
movq %r15, %rdi
callq 0x1bfcc
movq %r15, %rdi
movq %rax, %rsi
callq 0x1c080
movq %r14, %rdi
callq 0x41d0
movq %rax, %r14
cmpq %r12, %rax
jne 0x1a632
movq 0x58(%rbx), %r14
xorl %r15d, %r15d
cmpq %r12, %r14
je 0x1a683
movq %r15, 0x48(%r14)
incq %r15
movq %r14, %rdi
callq 0x41d0
movq %rax, %r14
cmpq %r12, %rax
jne 0x1a66c
movq 0x118(%rbx), %rax
leaq 0x108(%rbx), %r14
cmpq %r14, %rax
je 0x1a6a7
movq %r15, 0x40(%rax)
incq %r15
movq %rax, %rdi
callq 0x41d0
jmp 0x1a691
movq 0x88(%rbx), %rax
addq $0x78, %rbx
cmpq %rbx, %rax
je 0x1a6d0
movq %r15, 0x40(%rax)
addq 0x50(%rax), %r15
subq 0x48(%rax), %r15
incq %r15
movq %rax, %rdi
callq 0x41d0
jmp 0x1a6b2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq