// File: /workspace/github_c_makefile_star2_O1/deplinenoise[P]tundra/unittest/Test_HashTable.cpp
// Function: HashSetTest_MultiDistinctCaseFolded_Test::TestBody()
TEST_F(HashSetTest, MultiDistinctCaseFolded)
{
  HashSet<kFlagCaseInsensitive> tbl;
  HashSetInit(&tbl, &heap);

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

  for (int i = 0; i < 2048; ++i)
  {
    char str[128];
    sprintf(str, "fOO%d", i);
    ASSERT_TRUE(HashSetLookup(&tbl, Djb2HashNoCase(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), %rcx
movups %xmm0, 0xc(%rcx)
movaps %xmm0, (%rcx)
movq %rax, 0x20(%rcx)
addq $0x18, %rbx
leaq 0x70(%rsp), %r12
xorl %ebp, %ebp
movq %r12, %rdi
leaq 0x16e75(%rip), %rsi     # 0x57385
movl %ebp, %edx
xorl %eax, %eax
callq 0xc0f0
movq %r12, %rdi
callq 0x4190e
movl %eax, %r13d
movq %r12, %rdi
callq 0xc260
movq %rax, %r15
leaq 0x1(%rax), %rsi
movl $0x1, %edx
movq %rbx, %rdi
callq 0x42e6c
movq %rax, %r14
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0xc4b0
movb $0x0, (%r14,%r15)
leaq 0x40(%rsp), %rdi
movl %r13d, %esi
movq %r14, %rdx
callq 0x41503
incl %ebp
cmpl $0x800, %ebp            # imm = 0x800
jne 0x40506
leaq 0x20(%rsp), %rcx
movl $0x800, (%rcx)          # imm = 0x800
leaq 0x58(%rsp), %r8
leaq 0x16e04(%rip), %rsi     # 0x5738b
leaq 0x16dcf(%rip), %rdx     # 0x5735d
leaq 0x70(%rsp), %rbx
movq %rbx, %rdi
callq 0x3c516
cmpb $0x0, (%rbx)
je 0x40643
leaq 0x78(%rsp), %rdi
xorl %esi, %esi
callq 0x2c81c
leaq 0x10(%rsp), %rbx
leaq 0x16dec(%rip), %r14     # 0x573a8
leaq 0x70(%rsp), %r15
leaq 0x40(%rsp), %r12
xorl %ebp, %ebp
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
xorl %eax, %eax
callq 0xc0f0
movq %r15, %rdi
callq 0x4190e
movq %r12, %rdi
movl %eax, %esi
movq %r15, %rdx
callq 0x41285
cmpl $-0x1, %eax
setne 0x8(%rsp)
movq $0x0, 0x10(%rsp)
je 0x40663
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2c81c
incl %ebp
cmpl $0x800, %ebp            # imm = 0x800
jne 0x405c8
movq 0x40(%rsp), %rsi
movq 0x60(%rsp), %rdi
callq 0x42da6
movq 0x48(%rsp), %rsi
movq 0x60(%rsp), %rdi
callq 0x42da6
xorps %xmm0, %xmm0
movups %xmm0, 0x4c(%rsp)
movaps %xmm0, 0x40(%rsp)
jmp 0x4078f
leaq 0x20(%rsp), %rdi
callq 0x12eee
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x40719
movq (%rax), %r8
jmp 0x40720
movq %rsp, %rdi
callq 0x12eee
leaq 0x16d8e(%rip), %rdx     # 0x57400
leaq 0x13bf7(%rip), %rcx     # 0x54270
leaq 0x130aa(%rip), %r8      # 0x5372a
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x144bf
movq 0x20(%rsp), %r8
leaq 0x16ca6(%rip), %rdx     # 0x57341
leaq 0x18(%rsp), %rdi
movl $0x2, %esi
movl $0xad, %ecx
callq 0x10bb8
leaq 0x18(%rsp), %rdi
movq %rsp, %rsi
callq 0x10c56
leaq 0x18(%rsp), %rdi
callq 0x10c24
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x406e1
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xc600
cmpq $0x0, (%rsp)
je 0x4070d
movl $0x1, %edi
callq 0x10bb4
testb %al, %al
je 0x40705
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x40705
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, (%rsp)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2c81c
jmp 0x4078f
leaq 0x18733(%rip), %r8      # 0x58e53
leaq 0x16c1a(%rip), %rdx     # 0x57341
leaq 0x8(%rsp), %rdi
movl $0x2, %esi
movl $0xa7, %ecx
callq 0x10bb8
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x10c56
leaq 0x8(%rsp), %rdi
callq 0x10c24
cmpq $0x0, 0x20(%rsp)
je 0x40783
movl $0x1, %edi
callq 0x10bb4
testb %al, %al
je 0x4077a
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x4077a
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x20(%rsp)
leaq 0x78(%rsp), %rdi
xorl %esi, %esi
callq 0x2c81c
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x40827
jmp 0x40827
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x10c24
jmp 0x407ba
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x407da
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x407da
movq %rax, %rbx
movq %rsp, %rdi
callq 0x31faa
jmp 0x407e7
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
jmp 0x40818
jmp 0x40827
jmp 0x40827
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x10c24
jmp 0x40804
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x31faa
jmp 0x40813
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x31fbc
movq %rbx, %rdi
callq 0xcbb0
jmp 0x40827
movq %rax, %rdi
callq 0x28baf