// File: WeihuaZhu[P]hpc_prog2/./gtest/gtest-all.cc
// Function: testing::internal::UnitTestOptions::FilterMatchesTest(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&)
bool UnitTestOptions::FilterMatchesTest(const std::string &test_case_name,
                                        const std::string &test_name) {
  const std::string& full_name = test_case_name + "." + test_name.c_str();

  // Split --gtest_filter at '-', if there is one, to separate into
  // positive filter and negative filter portions
  const char* const p = GTEST_FLAG(filter).c_str();
  const char* const dash = strchr(p, '-');
  std::string positive;
  std::string negative;
  if (dash == NULL) {
    positive = GTEST_FLAG(filter).c_str();  // Whole string is a positive filter
    negative = "";
  } else {
    positive = std::string(p, dash);   // Everything up to the dash
    negative = std::string(dash + 1);  // Everything after the dash
    if (positive.empty()) {
      // Treat '-test1' as the same as '*-test1'
      positive = kUniversalFilter;
    }
  }

  // A filter is a colon-separated list of patterns.  It matches a
  // test if any pattern in it matches the test.
  return (MatchesFilter(full_name, positive.c_str()) &&
          !MatchesFilter(full_name, negative.c_str()));
}

// Assembly:
subq $0x168, %rsp            # imm = 0x168
movq %rdi, 0x160(%rsp)
movq %rsi, 0x158(%rsp)
movq 0x160(%rsp), %rsi
leaq 0x34c67(%rip), %rdx     # 0x4c95d
leaq 0x110(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x32cc0
movq 0x158(%rsp), %rdi
callq 0xe370
movq 0x58(%rsp), %rsi
movq %rax, %rdx
leaq 0x130(%rsp), %rdi
callq 0x32c70
jmp 0x17d2c
leaq 0x110(%rsp), %rdi
callq 0xf698
leaq 0x130(%rsp), %rax
movq %rax, 0x150(%rsp)
leaq 0x4de70(%rip), %rdi     # 0x65bc0
callq 0xe370
movq %rax, 0xf8(%rsp)
movq 0xf8(%rsp), %rdi
movl $0x2d, %esi
callq 0xe340
movq %rax, 0xf0(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0xefa0
leaq 0xb0(%rsp), %rdi
callq 0xefa0
cmpq $0x0, 0xf0(%rsp)
jne 0x17e14
leaq 0x4de1d(%rip), %rdi     # 0x65bc0
callq 0xe370
movq %rax, %rsi
leaq 0xd0(%rsp), %rdi
callq 0xef40
jmp 0x17dba
leaq 0x353b5(%rip), %rsi     # 0x4d176
leaq 0xb0(%rsp), %rdi
callq 0xef40
jmp 0x17dd0
jmp 0x17f60
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
leaq 0x110(%rsp), %rdi
callq 0xf698
jmp 0x18039
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
jmp 0x18012
movq 0xf8(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x48(%rsp)
leaq 0x8f(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0xf420
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x50(%rsp), %rcx
leaq 0x90(%rsp), %rdi
callq 0x32d50
jmp 0x17e5e
leaq 0xd0(%rsp), %rdi
leaq 0x90(%rsp), %rsi
movq %rsi, 0x28(%rsp)
callq 0xed60
movq 0x28(%rsp), %rdi
callq 0xf698
leaq 0x8f(%rsp), %rdi
callq 0xeb40
movq 0xf0(%rsp), %rax
incq %rax
movq %rax, 0x30(%rsp)
leaq 0x67(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0xf420
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
leaq 0x68(%rsp), %rdi
callq 0x32980
jmp 0x17ec4
leaq 0xb0(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0xed60
leaq 0x68(%rsp), %rdi
callq 0xf698
leaq 0x67(%rsp), %rdi
callq 0xeb40
leaq 0xd0(%rsp), %rdi
callq 0xf2f0
testb $0x1, %al
jne 0x17efd
jmp 0x17f5e
leaq 0x33a8c(%rip), %rsi     # 0x4b990
leaq 0xd0(%rsp), %rdi
callq 0xef40
jmp 0x17f13
jmp 0x17f5e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
leaq 0x8f(%rsp), %rdi
callq 0xeb40
jmp 0x18012
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
leaq 0x67(%rsp), %rdi
callq 0xeb40
jmp 0x18012
jmp 0x17f60
movq 0x150(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0xe370
movq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x17c40
movb %al, 0x27(%rsp)
jmp 0x17f8d
movb 0x27(%rsp), %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, 0x17(%rsp)
jne 0x17f9e
jmp 0x17fd5
movq 0x150(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0xe370
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x17c40
movb %al, 0x16(%rsp)
jmp 0x17fcb
movb 0x16(%rsp), %al
xorb $-0x1, %al
movb %al, 0x17(%rsp)
movb 0x17(%rsp), %al
movb %al, 0x7(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0xf698
leaq 0xd0(%rsp), %rdi
callq 0xf698
leaq 0x130(%rsp), %rdi
callq 0xf698
movb 0x7(%rsp), %al
andb $0x1, %al
addq $0x168, %rsp            # imm = 0x168
retq
leaq 0xb0(%rsp), %rdi
callq 0xf698
leaq 0xd0(%rsp), %rdi
callq 0xf698
leaq 0x130(%rsp), %rdi
callq 0xf698
movq 0x108(%rsp), %rdi
callq 0xf410
nopw %cs:(%rax,%rax)