// File: /workspace/github_c_makefile_star2_O3/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 0x16a85(%rip), %rsi     # 0x563b5
movl %ebp, %edx
xorl %eax, %eax
callq 0xc0f0
movq %r12, %rdi
callq 0x40c8a
movl %eax, %r13d
movq %r12, %rdi
callq 0xc260
movq %rax, %r15
leaq 0x1(%rax), %rsi
movl $0x1, %edx
movq %rbx, %rdi
callq 0x41fb0
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 0x40881
incl %ebp
cmpl $0x800, %ebp            # imm = 0x800
jne 0x3f926
leaq 0x20(%rsp), %rcx
movl $0x800, (%rcx)          # imm = 0x800
leaq 0x58(%rsp), %r8
leaq 0x16a14(%rip), %rsi     # 0x563bb
leaq 0x169df(%rip), %rdx     # 0x5638d
leaq 0x70(%rsp), %rbx
movq %rbx, %rdi
callq 0x3ba7c
cmpb $0x0, (%rbx)
je 0x3fa56
leaq 0x78(%rsp), %rdi
xorl %esi, %esi
callq 0x2c37a
leaq 0x10(%rsp), %rbx
leaq 0x169fc(%rip), %r14     # 0x563d8
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 0x40c8a
movq %r12, %rdi
movl %eax, %esi
movq %r15, %rdx
callq 0x40666
cmpl $-0x1, %eax
setne 0x8(%rsp)
movq $0x0, 0x10(%rsp)
je 0x3fa76
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2c37a
incl %ebp
cmpl $0x800, %ebp            # imm = 0x800
jne 0x3f9e8
movq 0x40(%rsp), %rsi
movq 0x60(%rsp), %rdi
callq 0x41eea
movq 0x48(%rsp), %rsi
movq 0x60(%rsp), %rdi
callq 0x41eea
jmp 0x3fb91
leaq 0x20(%rsp), %rdi
callq 0x12e46
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x3fb24
movq (%rax), %r8
jmp 0x3fb2b
movq %rsp, %rdi
callq 0x12e46
leaq 0x169ab(%rip), %rdx     # 0x56430
leaq 0x13814(%rip), %rcx     # 0x532a0
leaq 0x12cc7(%rip), %r8      # 0x5275a
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x143f5
movq 0x20(%rsp), %r8
leaq 0x168c3(%rip), %rdx     # 0x56371
leaq 0x18(%rsp), %rdi
movl $0x2, %esi
movl $0xad, %ecx
callq 0x10b64
leaq 0x18(%rsp), %rdi
movq %rsp, %rsi
callq 0x10c00
leaq 0x18(%rsp), %rdi
callq 0x10bd0
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3faf4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xc600
cmpq $0x0, (%rsp)
je 0x3fb18
movl $0x1, %edi
callq 0x10b61
testb %al, %al
je 0x3fb18
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x3fb18
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2c37a
jmp 0x3fb91
leaq 0x1839c(%rip), %r8      # 0x57ec7
leaq 0x1683f(%rip), %rdx     # 0x56371
leaq 0x8(%rsp), %rdi
movl $0x2, %esi
movl $0xa7, %ecx
callq 0x10b64
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x10c00
leaq 0x8(%rsp), %rdi
callq 0x10bd0
cmpq $0x0, 0x20(%rsp)
je 0x3fb85
movl $0x1, %edi
callq 0x10b61
testb %al, %al
je 0x3fb85
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x3fb85
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x78(%rsp), %rdi
xorl %esi, %esi
callq 0x2c37a
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3fc29
jmp 0x3fc29
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x10bd0
jmp 0x3fbbc
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3fbdc
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xc600
jmp 0x3fbdc
movq %rax, %rbx
movq %rsp, %rdi
callq 0x31a70
jmp 0x3fbe9
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
jmp 0x3fc1a
jmp 0x3fc29
jmp 0x3fc29
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x10bd0
jmp 0x3fc06
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x31a70
jmp 0x3fc15
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x31a82
movq %rbx, %rdi
callq 0xcbb0
jmp 0x3fc29
movq %rax, %rdi
callq 0x287ef