// File: /workspace/github_cpp_makefile_star2_O3/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 0x529f6(%rip), %r14     # 0x7fbd8
addq $0x10, %r14
movq %r14, -0x38(%rbp)
movq $0x0, -0x30(%rbp)
callq 0x1f031
movq 0x5566a(%rip), %rdx     # 0x82868
leaq 0x5565b(%rip), %rdi     # 0x82860
leaq 0x357ac(%rip), %rcx     # 0x629b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
leaq 0x2d616(%rip), %rbx     # 0x5a833
movq %rbx, 0x55624(%rip)     # 0x82848
leaq 0x2d61c(%rip), %r13     # 0x5a847
movq %r13, 0x5561e(%rip)     # 0x82850
movq $0x185, 0x5561b(%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 0x39e2e
leaq -0x68(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq 0x2d87c(%rip), %rcx     # 0x5aaf8
leaq -0xf0(%rbp), %rax
movq %rcx, (%rax)
leaq 0x2d876(%rip), %rcx     # 0x5ab03
movq %rcx, 0x8(%rax)
leaq -0x98(%rbp), %rsi
movb $0x0, 0x8(%rsi)
leaq 0x526f5(%rip), %r15     # 0x7f998
addq $0x10, %r15
movq %r15, (%rsi)
leaq 0x53707(%rip), %r12     # 0x809b8
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 0x1b705
addq $0x10, %rsp
leaq -0x58(%rbp), %rdi
callq 0x3d55a
movq -0x130(%rbp), %rax
testq %rax, %rax
je 0x2d30c
leaq -0x140(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq -0x78(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x39fb8
leaq -0x70(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x39fb8
movq %r15, -0xc8(%rbp)
movq %r14, -0xd0(%rbp)
callq 0x1f031
movq 0x55528(%rip), %rdx     # 0x82868
leaq 0x55519(%rip), %rdi     # 0x82860
leaq 0x3566a(%rip), %rcx     # 0x629b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
movq %rbx, 0x554e9(%rip)     # 0x82848
movq %r13, 0x554ea(%rip)     # 0x82850
movq $0x18d, 0x554e7(%rip) # imm = 0x18D
xorl %eax, %eax
leaq -0xf0(%rbp), %rsi
movb %al, 0x8(%rsi)
leaq 0x52654(%rip), %r15     # 0x7f9d8
addq $0x10, %r15
movq %r15, (%rsi)
movq %r12, 0x10(%rsi)
leaq 0x2cb1b(%rip), %rcx     # 0x59eb1
movq %rcx, 0x18(%rsi)
leaq -0x9c(%rbp), %rcx
leaq 0x539b4(%rip), %r8      # 0x80d5c
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 0x52673(%rip), %r14     # 0x7fa58
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 0x2d6fc(%rip), %r10     # 0x5ab18
leaq 0x2d72b(%rip), %rbx     # 0x5ab4e
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 0x1b705
addq $0x30, %rsp
leaq -0xa8(%rbp), %r12
movq %r12, %rdi
callq 0x3d55a
leaq -0x70(%rbp), %rdi
callq 0x3a056
leaq -0x78(%rbp), %rdi
callq 0x3a056
leaq -0x38(%rbp), %r13
movq %r13, %rdi
callq 0x3a0a2
callq 0x1f031
movq 0x553dc(%rip), %rdx     # 0x82868
leaq 0x553cd(%rip), %rdi     # 0x82860
leaq 0x3551e(%rip), %rcx     # 0x629b8
xorl %ebx, %ebx
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
leaq 0x2d386(%rip), %rax     # 0x5a833
movq %rax, 0x55394(%rip)     # 0x82848
movq %rax, %rdi
leaq 0x2d389(%rip), %rax     # 0x5a847
movq %rax, 0x5538b(%rip)     # 0x82850
movq %rax, %r8
movq $0x192, 0x55385(%rip) # imm = 0x192
leaq -0xf0(%rbp), %rsi
movb %bl, 0x8(%rsi)
movq %r15, -0xc0(%rbp)
movq %r15, (%rsi)
leaq 0x5386e(%rip), %rax     # 0x80d5c
cmpl $0x0, (%rax)
leaq 0x534c0(%rip), %r15     # 0x809b8
movq %r15, 0x10(%rsi)
sete -0x10(%r12)
leaq 0x2c9a8(%rip), %rcx     # 0x59eb1
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 0x32001(%rip), %r10     # 0x5f571
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 0x2d5ac(%rip), %r10     # 0x5ab4e
pushq %r10
pushq $0x2
callq 0x1b705
addq $0x30, %rsp
leaq 0x2d27d(%rip), %r13     # 0x5a833
movq %r15, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x3d55a
movq -0xd0(%rbp), %rax
movq %rax, -0x38(%rbp)
movq $0x0, -0x30(%rbp)
callq 0x1f031
leaq 0x2d514(%rip), %r15     # 0x5aaf8
movq 0x5527d(%rip), %rdx     # 0x82868
leaq 0x5526e(%rip), %rdi     # 0x82860
leaq 0x353bf(%rip), %rcx     # 0x629b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
movq %r13, 0x5523e(%rip)     # 0x82848
movq %r12, 0x5523f(%rip)     # 0x82850
movq $0x197, 0x5523c(%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 0x39e2e
leaq -0x68(%rbp), %rdi
movb %al, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movq %r15, -0xf0(%rbp)
leaq 0x2d4a1(%rip), %rax     # 0x5ab03
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 0x1b705
addq $0x10, %rsp
leaq -0x58(%rbp), %rdi
callq 0x3d55a
movq -0x110(%rbp), %rax
testq %rax, %rax
je 0x2d6e0
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 0x3a0f0
leaq -0x98(%rbp), %rdx
movl $0x3, (%rdx)
leaq -0x70(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x3a0f0
callq 0x1f031
movq 0x55148(%rip), %rdx     # 0x82868
leaq 0x55139(%rip), %rdi     # 0x82860
leaq 0x3528a(%rip), %rcx     # 0x629b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
movq %r13, 0x55109(%rip)     # 0x82848
movq %r12, 0x5510a(%rip)     # 0x82850
movq $0x19d, 0x55107(%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 0x535e7(%rip), %r9      # 0x80d5c
cmpl $0x40, (%r9)
leaq -0x9c(%rbp), %rcx
movq %rcx, -0x40(%rbp)
leaq -0xb8(%rbp), %rdi
sete (%rdi)
leaq 0x2c71c(%rip), %rcx     # 0x59eb1
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 0x2d309(%rip), %r10     # 0x5ab18
pushq %r10
leaq -0x98(%rbp), %r10
pushq %r10
leaq 0x2d32d(%rip), %r10     # 0x5ab4e
pushq %r10
pushq $0x2
callq 0x1b705
addq $0x30, %rsp
leaq -0xa8(%rbp), %r15
movq %r15, %rdi
callq 0x3d55a
leaq -0x70(%rbp), %rdi
callq 0x3a056
leaq -0x78(%rbp), %rdi
callq 0x3a056
leaq -0x38(%rbp), %r12
movq %r12, %rdi
callq 0x3a0a2
callq 0x1f031
movq 0x55001(%rip), %rdx     # 0x82868
leaq 0x54ff2(%rip), %rdi     # 0x82860
leaq 0x35143(%rip), %rcx     # 0x629b8
xorl %ebx, %ebx
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
leaq 0x2cfab(%rip), %r9      # 0x5a833
movq %r9, 0x54fb9(%rip)      # 0x82848
leaq 0x2cfb1(%rip), %r8      # 0x5a847
movq %r8, 0x54fb3(%rip)      # 0x82850
movq $0x1a2, 0x54fb0(%rip) # imm = 0x1A2
leaq -0xf0(%rbp), %rsi
movb %bl, 0x8(%rsi)
movq %r13, (%rsi)
leaq 0x534a0(%rip), %rdi     # 0x80d5c
cmpl $0x0, (%rdi)
leaq 0x530f2(%rip), %rcx     # 0x809b8
movq %rcx, 0x10(%rsi)
sete -0x10(%r15)
leaq 0x2c5db(%rip), %rax     # 0x59eb1
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 0x31c18(%rip), %r10     # 0x5f571
pushq %r10
leaq -0x98(%rbp), %r10
pushq %r10
leaq 0x2d1e3(%rip), %r10     # 0x5ab4e
pushq %r10
pushq $0x2
callq 0x1b705
addq $0x30, %rsp
leaq -0xa8(%rbp), %rdi
callq 0x3d55a
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2da58
jmp 0x2da58
jmp 0x2d9fc
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x3d55a
jmp 0x2da63
movq %rax, %rbx
jmp 0x2da6c
jmp 0x2da77
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x3d55a
jmp 0x2d9d4
movq %rax, %rbx
movq -0x110(%rbp), %rax
testq %rax, %rax
je 0x2da7a
leaq -0x120(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2da7a
jmp 0x2da58
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x3d55a
jmp 0x2da9f
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
callq 0x3d55a
jmp 0x2da7f
movq %rax, %rbx
jmp 0x2da88
jmp 0x2da93
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x3d55a
jmp 0x2da39
movq %rax, %rbx
movq -0x130(%rbp), %rax
testq %rax, %rax
je 0x2da91
leaq -0x140(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2da91
movq %rax, %rdi
callq 0x32d2e
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x3a056
leaq -0x78(%rbp), %rdi
callq 0x3a056
jmp 0x2da7a
movq %rax, %rbx
jmp 0x2da96
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x3a056
leaq -0x78(%rbp), %rdi
callq 0x3a056
jmp 0x2da96
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x3a0a2
movq %rbx, %rdi
callq 0xf880