// File: /workspace/github_cpp_makefile_star2_O3/migueeelvargas[P]Auto-Complete/test.cpp
// Function: modeBST(DictionaryBST*, 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>>>>&)
void modeBST (DictionaryBST* dictionaryBST, 
              std::vector<std::string>& words) {
  /* Test - insert() */
  std::cout << "Inserting strings..." << std::endl;
  for( auto i = words.begin(); i != words.end(); ++i) {
    if (dictionaryBST->insert(*i))
      std::cout << "Inserted " << "\"" << *i << "\"" << std::endl;

    else {
      std::cout << "\"" << *i << "\"" << " is already in dictionary." << std::endl;
      pass = false;
    }
  }
  if (pass)
    std::cout << "PASSED." << std::endl;
  else 
    std::cout << "FAILED." << std::endl;

  /* Testing - find() - should all return TRUE */
  words.push_back("alpha");

  std::cout << "Finding strings..." << std::endl;
  for( auto i = words.begin(); i != words.end(); ++i) {
    if (dictionaryBST->find(*i)) {
      std::cout << "Found " << "\"" << *i << "\"" << std::endl;
      std::cout << "Freq: " << "\"" << *i << "\"" << std::endl;
    }

    else 
      std::cout << "\"" << *i << "\"" << " is not in the dictionary." << std::endl;
  }
  std::cout << "Done." << std::endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, 0x10(%rsp)
movq 0x6648(%rip), %rbx      # 0x8fd8
leaq 0x3743(%rip), %rsi      # 0x60da
movl $0x14, %edx
movq %rbx, %rdi
callq 0x2180
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movq (%r14), %r15
movq %r14, 0x8(%rsp)
cmpq 0x8(%r14), %r15
je 0x2b30
leaq 0x68(%rsp), %r14
leaq 0x58(%rsp), %rbx
movq 0x65ea(%rip), %r12      # 0x8fd8
leaq 0x3666(%rip), %rbp      # 0x605b
movq %r14, 0x58(%rsp)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x3e74
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x4806
movl %eax, %r13d
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a33
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x2150
testb %r13b, %r13b
je 0x2aa8
movl $0x9, %edx
movq %r12, %rdi
leaq 0x360a(%rip), %rsi      # 0x6051
callq 0x2180
movl $0x1, %edx
movq %r12, %rdi
movq %rbp, %rsi
callq 0x2180
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r12, %rdi
callq 0x2180
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2180
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
jmp 0x2b1d
movl $0x1, %edx
movq %r12, %rdi
movq %rbp, %rsi
callq 0x2180
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r12, %rdi
callq 0x2180
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2180
movl $0x1a, %edx
movq %r13, %rdi
leaq 0x3574(%rip), %rsi      # 0x605d
callq 0x2180
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %r13, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movb $0x0, 0x6603(%rip)      # 0x9120
addq $0x20, %r15
movq 0x8(%rsp), %rax
cmpq 0x8(%rax), %r15
jne 0x29f5
leaq 0x3541(%rip), %rax      # 0x6078
leaq 0x3542(%rip), %rsi      # 0x6080
cmpb $0x0, 0x65db(%rip)      # 0x9120
cmovneq %rax, %rsi
movl $0x7, %edx
movq 0x6483(%rip), %rbx      # 0x8fd8
movq %rbx, %rdi
callq 0x2180
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
leaq 0x48(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x34f4(%rip), %rsi      # 0x6088
leaq 0x34f2(%rip), %rdx      # 0x608d
leaq 0x38(%rsp), %rdi
callq 0x417a
leaq 0x38(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x3f0a
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x2bcb
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2150
leaq 0x34bc(%rip), %rsi      # 0x608e
movl $0x12, %edx
movq 0x63fa(%rip), %rbx      # 0x8fd8
movq %rbx, %rdi
callq 0x2180
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movq 0x8(%rsp), %rax
movq (%rax), %r14
cmpq 0x8(%rax), %r14
je 0x2daf
leaq 0x28(%rsp), %r15
leaq 0x18(%rsp), %r12
movq 0x63a8(%rip), %r13      # 0x8fd8
leaq 0x3424(%rip), %rbx      # 0x605b
movq %r15, 0x18(%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x3e74
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x48a6
movl %eax, %ebp
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0x2c74
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2150
testb %bpl, %bpl
je 0x2d2e
movl $0x6, %edx
movq %r13, %rdi
leaq 0x3415(%rip), %rsi      # 0x60a1
callq 0x2180
movl $0x1, %edx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2180
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r13, %rdi
callq 0x2180
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2180
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
movl $0x6, %edx
movq %r13, %rdi
leaq 0x33ae(%rip), %rsi      # 0x60a8
callq 0x2180
movl $0x1, %edx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2180
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r13, %rdi
callq 0x2180
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
jmp 0x2d6f
movl $0x1, %edx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2180
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r13, %rdi
callq 0x2180
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2180
movl $0x1a, %edx
movq %rbp, %rdi
leaq 0x3340(%rip), %rsi      # 0x60af
callq 0x2180
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
addq $0x20, %r14
movq 0x8(%rsp), %rax
cmpq 0x8(%rax), %r14
jne 0x2c37
leaq 0x3314(%rip), %rsi      # 0x60ca
movl $0x5, %edx
movq 0x6216(%rip), %rbx      # 0x8fd8
movq %rbx, %rdi
callq 0x2180
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2130
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20d0
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x2e47
movq 0x48(%rsp), %rsi
jmp 0x2e3f
movq %rax, %rbx
jmp 0x2e47
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0x2e47
movq 0x28(%rsp), %rsi
jmp 0x2e3f
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x2e47
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x2150
movq %rbx, %rdi
callq 0x21f0