// File: /workspace/github_cpp_makefile_star2_O1/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 0x6651(%rip), %rbx      # 0x8fd8
leaq 0x374f(%rip), %rsi      # 0x60dd
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 0x2b27
leaq 0x68(%rsp), %r14
leaq 0x58(%rsp), %rbx
movq 0x65f3(%rip), %r12      # 0x8fd8
leaq 0x3672(%rip), %rbp      # 0x605e
movq %r14, 0x58(%rsp)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x3e6a
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x47ea
movl %eax, %r13d
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x2a2a
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x2150
testb %r13b, %r13b
je 0x2a9f
movl $0x9, %edx
movq %r12, %rdi
leaq 0x3616(%rip), %rsi      # 0x6054
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 0x2b14
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 0x3580(%rip), %rsi      # 0x6060
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, 0x660c(%rip)      # 0x9120
addq $0x20, %r15
movq 0x8(%rsp), %rax
cmpq 0x8(%rax), %r15
jne 0x29ec
leaq 0x354d(%rip), %rax      # 0x607b
leaq 0x354e(%rip), %rsi      # 0x6083
cmpb $0x0, 0x65e4(%rip)      # 0x9120
cmovneq %rax, %rsi
movl $0x7, %edx
movq 0x648c(%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 0x3500(%rip), %rsi      # 0x608b
leaq 0x34fe(%rip), %rdx      # 0x6090
leaq 0x38(%rsp), %rdi
callq 0x4162
leaq 0x38(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x3efa
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x2bc2
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2150
leaq 0x34c8(%rip), %rsi      # 0x6091
movl $0x12, %edx
movq 0x6403(%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 0x2da6
leaq 0x28(%rsp), %r15
leaq 0x18(%rsp), %r12
movq 0x63b1(%rip), %r13      # 0x8fd8
leaq 0x3430(%rip), %rbx      # 0x605e
movq %r15, 0x18(%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x3e6a
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x488a
movl %eax, %ebp
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0x2c6b
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x2150
testb %bpl, %bpl
je 0x2d25
movl $0x6, %edx
movq %r13, %rdi
leaq 0x3421(%rip), %rsi      # 0x60a4
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 0x33ba(%rip), %rsi      # 0x60ab
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 0x2d66
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 0x334c(%rip), %rsi      # 0x60b2
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 0x2c2e
leaq 0x3320(%rip), %rsi      # 0x60cd
movl $0x5, %edx
movq 0x621f(%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 0x2e3e
movq 0x48(%rsp), %rsi
jmp 0x2e36
movq %rax, %rbx
jmp 0x2e3e
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r15, %rdi
je 0x2e3e
movq 0x28(%rsp), %rsi
jmp 0x2e36
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x2e3e
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x2150
movq %rbx, %rdi
callq 0x21f0