// File: /workspace/github_cpp_makefile_star2_O1/f18m[P]boost-intrusive-pool/tests/unit_tests.cpp
// Function: test_allocate_methods()
void test_allocate_methods()
{
    {
        boost_intrusive_pool<dummy_two> pool;

        BOOST_REQUIRE(pool.init());

        auto o1 = pool.allocate();
        auto o2 = pool.allocate();

        // the pool constructs BOOST_INTRUSIVE_POOL_DEFAULT_POOL_SIZE items
        // and then we did not call any ctor (using allocate() nothing gets called inside
        // the dummy_two class):
        BOOST_REQUIRE_EQUAL(dummy_two::m_count, BOOST_INTRUSIVE_POOL_DEFAULT_POOL_SIZE);
    }

    // now all BOOST_INTRUSIVE_POOL_DEFAULT_POOL_SIZE items have been destroyed through
    // their dtor so the count returns to zero:
    BOOST_REQUIRE_EQUAL(dummy_two::m_count, 0);

    {
        boost_intrusive_pool<dummy_two> pool;

        BOOST_REQUIRE(pool.init());

        auto o1 = pool.allocate_through_init(3U);
        auto o2 = pool.allocate_through_init(3U);

        // the pool constructs BOOST_INTRUSIVE_POOL_DEFAULT_POOL_SIZE items
        BOOST_REQUIRE_EQUAL(dummy_two::m_count, BOOST_INTRUSIVE_POOL_DEFAULT_POOL_SIZE);
    }

    // now all BOOST_INTRUSIVE_POOL_DEFAULT_POOL_SIZE items have been destroyed through
    // their dtor so it just remains an offset = 2 in the static instance count:
    BOOST_REQUIRE_EQUAL(dummy_two::m_count, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
leaq 0x544b1(%rip), %r14     # 0x81be0
addq $0x10, %r14
movq %r14, -0x38(%rbp)
movq $0x0, -0x30(%rbp)
callq 0x1f367
movq 0x5711d(%rip), %rdx     # 0x84868
leaq 0x5710e(%rip), %rdi     # 0x84860
leaq 0x3625f(%rip), %rcx     # 0x639b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
leaq 0x2e0c9(%rip), %rbx     # 0x5b833
movq %rbx, 0x570d7(%rip)     # 0x84848
leaq 0x2e0cf(%rip), %r13     # 0x5b847
movq %r13, 0x570d1(%rip)     # 0x84850
movq $0x185, 0x570ce(%rip) # imm = 0x185
xorps %xmm0, %xmm0
leaq -0x140(%rbp), %r9
movaps %xmm0, (%r9)
movaps %xmm0, 0x10(%r9)
leaq -0x38(%rbp), %rdi
movl $0x40, %esi
movl $0x40, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3a600
leaq -0x68(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq 0x2e32f(%rip), %rcx     # 0x5baf8
leaq -0xf0(%rbp), %rax
movq %rcx, (%rax)
leaq 0x2e329(%rip), %rcx     # 0x5bb03
movq %rcx, 0x8(%rax)
leaq -0x98(%rbp), %rsi
movb $0x0, 0x8(%rsi)
leaq 0x541b0(%rip), %r15     # 0x819a0
addq $0x10, %r15
movq %r15, (%rsi)
leaq 0x551ba(%rip), %r12     # 0x829b8
movq %r12, 0x10(%rsi)
movq %rax, 0x18(%rsi)
leaq -0x160(%rbp), %rdx
movq %rbx, (%rdx)
movq %r13, 0x8(%rdx)
subq $0x8, %rsp
movl $0x185, %ecx            # imm = 0x185
movl $0x2, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq $0x0
callq 0x1b92f
addq $0x10, %rsp
leaq -0x58(%rbp), %rdi
callq 0x3dd4c
movq -0x130(%rbp), %rax
testq %rax, %rax
je 0x2d859
leaq -0x140(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq -0x78(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x3a78a
leaq -0x70(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x3a78a
movq %r15, -0xc8(%rbp)
movq %r14, -0xd0(%rbp)
callq 0x1f367
movq 0x56fdb(%rip), %rdx     # 0x84868
leaq 0x56fcc(%rip), %rdi     # 0x84860
leaq 0x3611d(%rip), %rcx     # 0x639b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
movq %rbx, 0x56f9c(%rip)     # 0x84848
movq %r13, 0x56f9d(%rip)     # 0x84850
movq $0x18d, 0x56f9a(%rip) # imm = 0x18D
xorl %eax, %eax
leaq -0xf0(%rbp), %rsi
movb %al, 0x8(%rsi)
leaq 0x5410f(%rip), %r15     # 0x819e0
addq $0x10, %r15
movq %r15, (%rsi)
movq %r12, 0x10(%rsi)
leaq 0x2d5ce(%rip), %rcx     # 0x5aeb1
movq %rcx, 0x18(%rsi)
leaq -0x9c(%rbp), %rcx
leaq 0x55467(%rip), %r8      # 0x82d5c
cmpl $0x40, (%r8)
leaq -0xb8(%rbp), %rdi
sete (%rdi)
movl $0x40, (%rcx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0x100(%rbp), %rdx
movq %rbx, (%rdx)
movq %r13, 0x8(%rdx)
leaq -0x48(%rbp), %r9
movq %r8, (%r9)
movb %al, -0x90(%rbp)
leaq 0x5412e(%rip), %r14     # 0x81a60
addq $0x10, %r14
movq %r14, -0x98(%rbp)
movq %r12, -0x88(%rbp)
movq %r9, -0x80(%rbp)
movb %al, -0x60(%rbp)
leaq -0x40(%rbp), %rax
movq %rcx, (%rax)
movq %r14, -0x68(%rbp)
movq %r12, -0x58(%rbp)
movq %rax, -0x50(%rbp)
subq $0x8, %rsp
leaq 0x2e1af(%rip), %r10     # 0x5bb18
leaq 0x2e1de(%rip), %rbx     # 0x5bb4e
movl $0x18d, %ecx            # imm = 0x18D
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x68(%rbp), %r11
pushq %r11
pushq %r10
leaq -0x98(%rbp), %r10
pushq %r10
pushq %rbx
pushq $0x2
callq 0x1b92f
addq $0x30, %rsp
leaq -0xa8(%rbp), %r12
movq %r12, %rdi
callq 0x3dd4c
leaq -0x70(%rbp), %rdi
callq 0x3a828
leaq -0x78(%rbp), %rdi
callq 0x3a828
leaq -0x38(%rbp), %r13
movq %r13, %rdi
callq 0x3a874
callq 0x1f367
movq 0x56e8f(%rip), %rdx     # 0x84868
leaq 0x56e80(%rip), %rdi     # 0x84860
leaq 0x35fd1(%rip), %rcx     # 0x639b8
xorl %ebx, %ebx
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
leaq 0x2de39(%rip), %rax     # 0x5b833
movq %rax, 0x56e47(%rip)     # 0x84848
movq %rax, %rdi
leaq 0x2de3c(%rip), %rax     # 0x5b847
movq %rax, 0x56e3e(%rip)     # 0x84850
movq %rax, %r8
movq $0x192, 0x56e38(%rip) # imm = 0x192
leaq -0xf0(%rbp), %rsi
movb %bl, 0x8(%rsi)
movq %r15, -0xc0(%rbp)
movq %r15, (%rsi)
leaq 0x55321(%rip), %rax     # 0x82d5c
cmpl $0x0, (%rax)
leaq 0x54f73(%rip), %r15     # 0x829b8
movq %r15, 0x10(%rsi)
sete -0x10(%r12)
leaq 0x2d45b(%rip), %rcx     # 0x5aeb1
movq %rcx, 0x18(%rsi)
movl $0x0, -0x40(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x8(%r12)
leaq -0x100(%rbp), %rdx
movq %rdi, (%rdx)
movq %r8, 0x8(%rdx)
movq %r8, %r12
movq %rax, (%r13)
movb %bl, -0x90(%rbp)
movq %r14, -0x98(%rbp)
movq %r15, -0x88(%rbp)
movq %r13, -0x80(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
movb %bl, -0x60(%rbp)
movq %r14, -0x68(%rbp)
movq %r15, -0x58(%rbp)
leaq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
subq $0x8, %rsp
leaq 0x32ab4(%rip), %r10     # 0x60571
leaq -0xb8(%rbp), %rdi
movl $0x192, %ecx            # imm = 0x192
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x68(%rbp), %r11
pushq %r11
pushq %r10
leaq -0x98(%rbp), %r10
pushq %r10
leaq 0x2e05f(%rip), %r10     # 0x5bb4e
pushq %r10
pushq $0x2
callq 0x1b92f
addq $0x30, %rsp
leaq 0x2dd30(%rip), %r13     # 0x5b833
movq %r15, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x3dd4c
movq -0xd0(%rbp), %rax
movq %rax, -0x38(%rbp)
movq $0x0, -0x30(%rbp)
callq 0x1f367
leaq 0x2dfc7(%rip), %r15     # 0x5baf8
movq 0x56d30(%rip), %rdx     # 0x84868
leaq 0x56d21(%rip), %rdi     # 0x84860
leaq 0x35e72(%rip), %rcx     # 0x639b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
movq %r13, 0x56cf1(%rip)     # 0x84848
movq %r12, 0x56cf2(%rip)     # 0x84850
movq $0x197, 0x56cef(%rip) # imm = 0x197
xorps %xmm0, %xmm0
leaq -0x120(%rbp), %r9
movaps %xmm0, (%r9)
movaps %xmm0, 0x10(%r9)
leaq -0x38(%rbp), %rdi
movl $0x40, %esi
movl $0x40, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x3a600
leaq -0x68(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movq %r15, -0xf0(%rbp)
leaq 0x2df54(%rip), %rax     # 0x5bb03
movq %rax, -0xe8(%rbp)
leaq -0x98(%rbp), %rsi
movb $0x0, 0x8(%rsi)
movq -0xc8(%rbp), %rax
movq %rax, (%rsi)
movq %rbx, 0x10(%rsi)
leaq -0xf0(%rbp), %rax
movq %rax, 0x18(%rsi)
leaq -0x150(%rbp), %rdx
movq %r13, (%rdx)
movq %r12, 0x8(%rdx)
subq $0x8, %rsp
movl $0x197, %ecx            # imm = 0x197
movl $0x2, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq $0x0
callq 0x1b92f
addq $0x10, %rsp
leaq -0x58(%rbp), %rdi
callq 0x3dd4c
movq -0x110(%rbp), %rax
testq %rax, %rax
je 0x2dc2d
leaq -0x120(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq -0x98(%rbp), %rdx
movl $0x3, (%rdx)
leaq -0x78(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x3a8c2
leaq -0x98(%rbp), %rdx
movl $0x3, (%rdx)
leaq -0x70(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x3a8c2
callq 0x1f367
movq 0x56bfb(%rip), %rdx     # 0x84868
leaq 0x56bec(%rip), %rdi     # 0x84860
leaq 0x35d3d(%rip), %rcx     # 0x639b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
movq %r13, 0x56bbc(%rip)     # 0x84848
movq %r12, 0x56bbd(%rip)     # 0x84850
movq $0x19d, 0x56bba(%rip) # imm = 0x19D
xorl %eax, %eax
leaq -0xf0(%rbp), %rsi
movb %al, 0x8(%rsi)
movq %r13, %r8
movq -0xc0(%rbp), %r13
movq %r13, (%rsi)
movq %rbx, 0x10(%rsi)
leaq 0x5509a(%rip), %r9      # 0x82d5c
cmpl $0x40, (%r9)
leaq -0x9c(%rbp), %rcx
movq %rcx, -0x40(%rbp)
leaq -0xb8(%rbp), %rdi
sete (%rdi)
leaq 0x2d1cf(%rip), %rcx     # 0x5aeb1
movq %rcx, 0x18(%rsi)
movl $0x40, -0x9c(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movb %al, -0x90(%rbp)
movb %al, -0x60(%rbp)
leaq -0x100(%rbp), %rdx
movq %r8, (%rdx)
movq %r12, 0x8(%rdx)
movq %r9, -0x48(%rbp)
movq %r14, -0x98(%rbp)
movq %rbx, -0x88(%rbp)
leaq -0x48(%rbp), %rax
movq %rax, -0x80(%rbp)
movq %r14, -0x68(%rbp)
movq %rbx, -0x58(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
subq $0x8, %rsp
movl $0x19d, %ecx            # imm = 0x19D
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x68(%rbp), %r10
pushq %r10
leaq 0x2ddbc(%rip), %r10     # 0x5bb18
pushq %r10
leaq -0x98(%rbp), %r10
pushq %r10
leaq 0x2dde0(%rip), %r10     # 0x5bb4e
pushq %r10
pushq $0x2
callq 0x1b92f
addq $0x30, %rsp
leaq -0xa8(%rbp), %r15
movq %r15, %rdi
callq 0x3dd4c
leaq -0x70(%rbp), %rdi
callq 0x3a828
leaq -0x78(%rbp), %rdi
callq 0x3a828
leaq -0x38(%rbp), %r12
movq %r12, %rdi
callq 0x3a874
callq 0x1f367
movq 0x56ab4(%rip), %rdx     # 0x84868
leaq 0x56aa5(%rip), %rdi     # 0x84860
leaq 0x35bf6(%rip), %rcx     # 0x639b8
xorl %ebx, %ebx
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
leaq 0x2da5e(%rip), %r9      # 0x5b833
movq %r9, 0x56a6c(%rip)      # 0x84848
leaq 0x2da64(%rip), %r8      # 0x5b847
movq %r8, 0x56a66(%rip)      # 0x84850
movq $0x1a2, 0x56a63(%rip) # imm = 0x1A2
leaq -0xf0(%rbp), %rsi
movb %bl, 0x8(%rsi)
movq %r13, (%rsi)
leaq 0x54f53(%rip), %rdi     # 0x82d5c
cmpl $0x0, (%rdi)
leaq 0x54ba5(%rip), %rcx     # 0x829b8
movq %rcx, 0x10(%rsi)
sete -0x10(%r15)
leaq 0x2d08e(%rip), %rax     # 0x5aeb1
movq %rax, 0x18(%rsi)
movl $0x0, -0x40(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x8(%r15)
leaq -0x100(%rbp), %rdx
movq %r9, (%rdx)
movq %r8, 0x8(%rdx)
movq %rdi, (%r12)
movb %bl, -0x90(%rbp)
movq %r14, -0x98(%rbp)
movq %rcx, -0x88(%rbp)
movq %r12, -0x80(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x48(%rbp)
movb %bl, -0x60(%rbp)
movq %r14, -0x68(%rbp)
movq %rcx, -0x58(%rbp)
leaq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
subq $0x8, %rsp
leaq -0xb8(%rbp), %rdi
movl $0x1a2, %ecx            # imm = 0x1A2
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x68(%rbp), %r10
pushq %r10
leaq 0x326cb(%rip), %r10     # 0x60571
pushq %r10
leaq -0x98(%rbp), %r10
pushq %r10
leaq 0x2dc96(%rip), %r10     # 0x5bb4e
pushq %r10
pushq $0x2
callq 0x1b92f
addq $0x30, %rsp
leaq -0xa8(%rbp), %rdi
callq 0x3dd4c
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2dfa5
jmp 0x2dfa5
jmp 0x2df49
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x3dd4c
jmp 0x2dfb0
movq %rax, %rbx
jmp 0x2dfb9
jmp 0x2dfc4
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x3dd4c
jmp 0x2df21
movq %rax, %rbx
movq -0x110(%rbp), %rax
testq %rax, %rax
je 0x2dfc7
leaq -0x120(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2dfc7
jmp 0x2dfa5
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x3dd4c
jmp 0x2dfec
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x3dd4c
jmp 0x2dfcc
movq %rax, %rbx
jmp 0x2dfd5
jmp 0x2dfe0
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x3dd4c
jmp 0x2df86
movq %rax, %rbx
movq -0x130(%rbp), %rax
testq %rax, %rax
je 0x2dfde
leaq -0x140(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2dfde
movq %rax, %rdi
callq 0x3347e
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x3a828
leaq -0x78(%rbp), %rdi
callq 0x3a828
jmp 0x2dfc7
movq %rax, %rbx
jmp 0x2dfe3
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x3a828
leaq -0x78(%rbp), %rdi
callq 0x3a828
jmp 0x2dfe3
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x3a874
movq %rbx, %rdi
callq 0xf880