// File: /workspace/github_c_makefile_star2_O2/deplinenoise[P]tundra/unittest/Test_HashTable.cpp
// Function: HashSetTest_MultiDistinct_Test::TestBody()
TEST_F(HashSetTest, MultiDistinct)
{
  HashSet<kFlagCaseSensitive> tbl;
  HashSetInit(&tbl, &heap);

  for (int i = 0; i < 2048; ++i)
  {
    char str[128];
    sprintf(str, "foo%d", i);
    HashSetInsert(&tbl, Djb2Hash(str), StrDup(&alloc, str));
  }
  EXPECT_EQ(2048, tbl.m_RecordCount);

  for (int i = 0; i < 2048; ++i)
  {
    char str[128];
    sprintf(str, "foo%d", i);
    EXPECT_TRUE(HashSetLookup(&tbl, Djb2Hash(str), str));
  }
  HashSetDestroy(&tbl);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %r14
movups %xmm0, 0xc(%r14)
movaps %xmm0, (%r14)
movq %rax, 0x20(%r14)
addq $0x18, %rbx
leaq 0x1596b(%rip), %r15     # 0x48395
leaq 0x70(%rsp), %r12
xorl %ebp, %ebp
cmpl $0x800, %ebp            # imm = 0x800
je 0x32a70
movq %r12, %rdi
movq %r15, %rsi
movl %ebp, %edx
xorl %eax, %eax
callq 0xd0f0
movq %r12, %rdi
callq 0x33f4e
movl %eax, %r13d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x32f68
movq %r14, %rdi
movl %r13d, %esi
movq %rax, %rdx
callq 0x33ab6
incl %ebp
jmp 0x32a31
leaq 0x10(%rsp), %rcx
movl $0x800, (%rcx)          # imm = 0x800
leaq 0x58(%rsp), %r8
leaq 0x15914(%rip), %rsi     # 0x4839b
leaq 0x158df(%rip), %rdx     # 0x4836d
leaq 0x70(%rsp), %rbx
movq %rbx, %rdi
callq 0x2f537
cmpb $0x0, (%rbx)
jne 0x32af6
leaq 0x10(%rsp), %rdi
callq 0x11c8e
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x32ab9
movq (%rax), %r8
jmp 0x32ac0
leaq 0x173e7(%rip), %r8      # 0x49ea7
leaq 0x1588a(%rip), %rdx     # 0x48351
movq %rsp, %rdi
pushq $0x1
popq %rsi
movl $0x91, %ecx
callq 0x104f8
movq %rsp, %rdi
leaq 0x10(%rsp), %rsi
callq 0x10576
movq %rsp, %rdi
callq 0x10558
leaq 0x10(%rsp), %rdi
callq 0x1f8e0
leaq 0x78(%rsp), %rdi
callq 0x2295e
leaq 0x70(%rsp), %r15
leaq 0x40(%rsp), %r12
leaq 0x38(%rsp), %r13
leaq 0x10(%rsp), %rbp
leaq 0x30(%rsp), %rbx
xorl %r14d, %r14d
cmpl $0x800, %r14d           # imm = 0x800
je 0x32bd8
movq %r15, %rdi
leaq 0x15862(%rip), %rsi     # 0x48395
movl %r14d, %edx
xorl %eax, %eax
callq 0xd0f0
movq %r15, %rdi
callq 0x33f4e
movq %r12, %rdi
movl %eax, %esi
movq %r15, %rdx
callq 0x3300b
movb %al, (%rsp)
andq $0x0, 0x8(%rsp)
testb %al, %al
jne 0x32bc6
movq %r13, %rdi
callq 0x11c8e
movq %rbp, %rdi
movq %rsp, %rsi
leaq 0x15874(%rip), %rdx     # 0x483e8
leaq 0x126f5(%rip), %rcx     # 0x45270
leaq 0x11ba8(%rip), %r8      # 0x4472a
callq 0x12d68
movq 0x10(%rsp), %r8
movq %rbx, %rdi
pushq $0x1
popq %rsi
leaq 0x157b8(%rip), %rdx     # 0x48351
movl $0x97, %ecx
callq 0x104f8
movq %rbx, %rdi
movq %r13, %rsi
callq 0x10576
movq %rbx, %rdi
callq 0x10558
movq %rbp, %rdi
callq 0xdd68
movq %r13, %rdi
callq 0x1f8e0
leaq 0x8(%rsp), %rdi
callq 0x2295e
incl %r14d
jmp 0x32b1c
leaq 0x40(%rsp), %rdi
callq 0x32ff6
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x10558
jmp 0x32c04
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x1f8e0
jmp 0x32c13
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
jmp 0x32c4f
movq %rax, %rbx
jmp 0x32c4a
movq %rax, %rbx
jmp 0x32c36
movq %rax, %rbx
jmp 0x32c40
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x10558
leaq 0x10(%rsp), %rdi
callq 0xdd68
leaq 0x38(%rsp), %rdi
callq 0x1f8e0
leaq 0x8(%rsp), %rdi
callq 0x2295e
movq %rbx, %rdi
callq 0xdbf0