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

// Assembly:
pushq %r14
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
xorl %eax, %eax
movq %rax, 0xc4b93(%rip)     # 0xe7258
movq %rax, 0xc4b9c(%rip)     # 0xe7268
movq %rax, 0xc4b8d(%rip)     # 0xe7260
movq %rax, 0xc4b96(%rip)     # 0xe7270
callq 0x304e3
callq 0x308b3
callq 0x30c53
callq 0x30ff3
callq 0x313fe
movq 0xc4b5e(%rip), %rbx     # 0xe7258
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x85813(%rip), %rsi     # 0xa7f1d
leaq 0x85831(%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 0x80f49(%rip), %rsi     # 0xa3684
leaq 0x28(%rsp), %rdi
callq 0x18fba
leaq 0x85699(%rip), %rsi     # 0xa7de5
movq %rax, %rdi
callq 0x249ac
leaq 0x84afb(%rip), %rsi     # 0xa7256
movq %rax, %rdi
callq 0x18fba
movq %rax, %rbx
cmpb $0x1, 0x188(%rax)
jne 0x22782
movq %rbx, %rdi
addq $0x10, %rdi
movq 0xc4adb(%rip), %rsi     # 0xe7258
callq 0x2110
leaq 0x80efb(%rip), %rsi     # 0xa3684
movq %rbx, %rdi
callq 0x18fba
leaq 0x89658(%rip), %rsi     # 0xabdf0
movq %rax, %rdi
callq 0x18fba
leaq 0x84aaf(%rip), %rsi     # 0xa7256
movq %rax, %rdi
callq 0x18fba
movq %rax, %rbx
cmpb $0x1, 0x188(%rax)
jne 0x227cc
movq %rbx, %rdi
addq $0x10, %rdi
movl $0x2, %esi
callq 0x22f0
leaq 0x97ac6(%rip), %rsi     # 0xba299
movq %rbx, %rdi
callq 0x18fba
leaq 0x28(%rsp), %rdi
callq 0xbfd8
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x227fc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0xc4a5d(%rip), %rbx     # 0xe7260
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x85709(%rip), %rsi     # 0xa7f1b
leaq 0x85729(%rip), %rdx     # 0xa7f42
callq 0xd14c
xorl %esi, %esi
cmpq $0x2, %rbx
sete %sil
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xbf80
leaq 0x80e46(%rip), %rsi     # 0xa3684
leaq 0x28(%rsp), %rdi
callq 0x18fba
leaq 0x85594(%rip), %rsi     # 0xa7de3
movq %rax, %rdi
callq 0x249e4
leaq 0x849f8(%rip), %rsi     # 0xa7256
movq %rax, %rdi
callq 0x18fba
movq %rax, %rbx
cmpb $0x1, 0x188(%rax)
jne 0x22885
movq %rbx, %rdi
addq $0x10, %rdi
movq 0xc49e0(%rip), %rsi     # 0xe7260
callq 0x2110
leaq 0x80df8(%rip), %rsi     # 0xa3684
movq %rbx, %rdi
callq 0x18fba
leaq 0x89555(%rip), %rsi     # 0xabdf0
movq %rax, %rdi
callq 0x18fba
leaq 0x849ac(%rip), %rsi     # 0xa7256
movq %rax, %rdi
callq 0x18fba
movq %rax, %rbx
cmpb $0x1, 0x188(%rax)
jne 0x228cf
movq %rbx, %rdi
addq $0x10, %rdi
movl $0x2, %esi
callq 0x22f0
leaq 0x979c3(%rip), %rsi     # 0xba299
movq %rbx, %rdi
callq 0x18fba
leaq 0x28(%rsp), %rdi
callq 0xbfd8
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x228ff
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r14
retq
jmp 0x2290c
movq %rax, %rbx
jmp 0x2294f
jmp 0x2291c
jmp 0x2292b
jmp 0x22917
movq %rax, %rbx
jmp 0x22938
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xbfd8
jmp 0x22938
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xbfd8
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2294f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x2300
movq %rax, %rdi
callq 0xc0a9