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

    else 
      std::cout << "\"" << *i << "\"" << " is already in dictionary." << std::endl;
  }
  std::cout << "OK." << std::endl;

  /* Testing - find() */
  words.push_back("alpha");

  std::cout << "Finding strings..." << std::endl;
  for( auto i = words.begin(); i != words.end(); ++i) {
    if (dictionaryHT->find(*i))
      std::cout << "Found " << "\"" << *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 $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x553e(%rip), %rdi      # 0x7fd8
leaq 0x2639(%rip), %rsi      # 0x50da
callq 0x2160
movq %rax, %rdi
callq 0x20c0
movq (%rbx), %r12
leaq 0x48(%rsp), %r13
leaq 0x259e(%rip), %rbp      # 0x505b
cmpq 0x8(%rbx), %r12
je 0x2b5c
movq %r13, %rdi
movq %r12, %rsi
callq 0x21d0
movq %r14, %rdi
movq %r13, %rsi
callq 0x35fe
movl %eax, %r15d
movq %r13, %rdi
callq 0x20b0
movq 0x54e9(%rip), %rdi      # 0x7fd8
testb %r15b, %r15b
je 0x2b1e
leaq 0x2556(%rip), %rsi      # 0x5051
callq 0x2160
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2160
movq %rax, %rdi
movq %r12, %rsi
callq 0x2150
movq %rax, %rdi
movq %rbp, %rsi
jmp 0x2b46
movq %rbp, %rsi
callq 0x2160
movq %rax, %rdi
movq %r12, %rsi
callq 0x2150
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2160
movq %rax, %rdi
leaq 0x2517(%rip), %rsi      # 0x505d
callq 0x2160
movq %rax, %rdi
callq 0x20c0
addq $0x20, %r12
jmp 0x2abd
movq 0x5475(%rip), %rdi      # 0x7fd8
leaq 0x2566(%rip), %rsi      # 0x50d0
callq 0x2160
movq %rax, %rdi
callq 0x20c0
leaq 0x250a(%rip), %rsi      # 0x5088
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x32bc
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x337e
leaq 0x8(%rsp), %rdi
callq 0x20b0
movq 0x542d(%rip), %rdi      # 0x7fd8
leaq 0x24dc(%rip), %rsi      # 0x508e
callq 0x2160
movq %rax, %rdi
callq 0x20c0
movq (%rbx), %r12
leaq 0x28(%rsp), %r13
leaq 0x248d(%rip), %rbp      # 0x505b
cmpq 0x8(%rbx), %r12
je 0x2c6d
movq %r13, %rdi
movq %r12, %rsi
callq 0x21d0
movq %r14, %rdi
movq %r13, %rsi
callq 0x3668
movl %eax, %r15d
movq %r13, %rdi
callq 0x20b0
movq 0x53d8(%rip), %rdi      # 0x7fd8
testb %r15b, %r15b
je 0x2c2f
leaq 0x2495(%rip), %rsi      # 0x50a1
callq 0x2160
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2160
movq %rax, %rdi
movq %r12, %rsi
callq 0x2150
movq %rax, %rdi
movq %rbp, %rsi
jmp 0x2c57
movq %rbp, %rsi
callq 0x2160
movq %rax, %rdi
movq %r12, %rsi
callq 0x2150
movq %rax, %rdi
movq %rbp, %rsi
callq 0x2160
movq %rax, %rdi
leaq 0x2458(%rip), %rsi      # 0x50af
callq 0x2160
movq %rax, %rdi
callq 0x20c0
addq $0x20, %r12
jmp 0x2bce
movq 0x5364(%rip), %rdi      # 0x7fd8
leaq 0x244f(%rip), %rsi      # 0x50ca
callq 0x2160
movq %rax, %rdi
callq 0x20c0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
jmp 0x2cb8
movq %rax, %rbx
jmp 0x2cbd
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
jmp 0x2cb8
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2230