// File: /workspace/github_cpp_makefile_star2_O3/dsharlet[P]array/test/array_lifetime.cpp
// Function: nda::test_array_swap_lifetime_body()
TEST(array_swap_lifetime) {
  movable_custom_alloc::reset_lifetime_counters();
  immovable_custom_alloc::reset_lifetime_counters();
  test_swap_lifetime<std_alloc>();
  test_swap_lifetime<movable_custom_alloc>();
  test_swap_lifetime<immovable_custom_alloc>();
  test_swap_lifetime<auto_alloc_big>(false);
  test_swap_lifetime<auto_alloc_small>();
  ASSERT_EQ(movable_custom_alloc::constructs, 2);
  ASSERT_EQ(immovable_custom_alloc::constructs, 3);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
xorl %eax, %eax
movq %rax, 0xc40b3(%rip)     # 0xe7258
movq %rax, 0xc40bc(%rip)     # 0xe7268
movq %rax, 0xc40ad(%rip)     # 0xe7260
movq %rax, 0xc40b6(%rip)     # 0xe7270
movl $0x1, %edi
callq 0x398c8
movl $0x1, %edi
callq 0x3a2be
movl $0x1, %edi
callq 0x3acda
xorl %edi, %edi
callq 0x3b67d
movl $0x1, %edi
callq 0x3c0a5
movq 0xc4068(%rip), %rbx     # 0xe7258
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x84d1d(%rip), %rsi     # 0xa7f1d
leaq 0x84d3b(%rip), %rdx     # 0xa7f42
leaq 0x8(%rsp), %rdi
callq 0xd14c
xorl %esi, %esi
cmpq $0x2, %rbx
sete %sil
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xbf80
leaq 0x80453(%rip), %rsi     # 0xa3684
leaq 0x28(%rsp), %rdi
callq 0x18fba
leaq 0x84ba3(%rip), %rsi     # 0xa7de5
movq %rax, %rdi
callq 0x249ac
leaq 0x84005(%rip), %rsi     # 0xa7256
movq %rax, %rdi
callq 0x18fba
movq %rax, %rbx
cmpb $0x1, 0x188(%rax)
jne 0x23278
movq %rbx, %rdi
addq $0x10, %rdi
movq 0xc3fe5(%rip), %rsi     # 0xe7258
callq 0x2110
leaq 0x80405(%rip), %rsi     # 0xa3684
movq %rbx, %rdi
callq 0x18fba
leaq 0x88b62(%rip), %rsi     # 0xabdf0
movq %rax, %rdi
callq 0x18fba
leaq 0x83fb9(%rip), %rsi     # 0xa7256
movq %rax, %rdi
callq 0x18fba
movq %rax, %rbx
cmpb $0x1, 0x188(%rax)
jne 0x232c2
movq %rbx, %rdi
addq $0x10, %rdi
movl $0x2, %esi
callq 0x22f0
leaq 0x96fd0(%rip), %rsi     # 0xba299
movq %rbx, %rdi
callq 0x18fba
leaq 0x28(%rsp), %rdi
callq 0xbfd8
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x232f2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0xc3f67(%rip), %rbx     # 0xe7260
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x84b50(%rip), %rsi     # 0xa7e58
leaq 0x84b70(%rip), %rdx     # 0xa7e7f
callq 0xd14c
xorl %esi, %esi
cmpq $0x3, %rbx
sete %sil
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xbf80
leaq 0x80350(%rip), %rsi     # 0xa3684
leaq 0x28(%rsp), %rdi
callq 0x18fba
leaq 0x84a9e(%rip), %rsi     # 0xa7de3
movq %rax, %rdi
callq 0x249e4
leaq 0x83f02(%rip), %rsi     # 0xa7256
movq %rax, %rdi
callq 0x18fba
movq %rax, %rbx
cmpb $0x1, 0x188(%rax)
jne 0x2337b
movq %rbx, %rdi
addq $0x10, %rdi
movq 0xc3eea(%rip), %rsi     # 0xe7260
callq 0x2110
leaq 0x80302(%rip), %rsi     # 0xa3684
movq %rbx, %rdi
callq 0x18fba
leaq 0x8a5c8(%rip), %rsi     # 0xad959
movq %rax, %rdi
callq 0x18fba
leaq 0x83eb6(%rip), %rsi     # 0xa7256
movq %rax, %rdi
callq 0x18fba
movq %rax, %rbx
cmpb $0x1, 0x188(%rax)
jne 0x233c5
movq %rbx, %rdi
addq $0x10, %rdi
movl $0x3, %esi
callq 0x22f0
leaq 0x96ecd(%rip), %rsi     # 0xba299
movq %rbx, %rdi
callq 0x18fba
leaq 0x28(%rsp), %rdi
callq 0xbfd8
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x233f5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r14
retq
jmp 0x23402
movq %rax, %rbx
jmp 0x23445
jmp 0x23412
jmp 0x23421
jmp 0x2340d
movq %rax, %rbx
jmp 0x2342e
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xbfd8
jmp 0x2342e
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xbfd8
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x23445
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x2300
movq %rax, %rdi
callq 0xc0a9