// File: /workspace/github_cpp_makefile_star2_O1/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, 0xc35a3(%rip)     # 0xe5258
movq %rax, 0xc35ac(%rip)     # 0xe5268
movq %rax, 0xc359d(%rip)     # 0xe5260
movq %rax, 0xc35a6(%rip)     # 0xe5270
callq 0x2fb38
callq 0x2ff08
callq 0x302a8
callq 0x30648
callq 0x30a53
movq 0xc356e(%rip), %rbx     # 0xe5258
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x84413(%rip), %rsi     # 0xa610d
leaq 0x84431(%rip), %rdx     # 0xa6132
leaq 0x8(%rsp), %rdi
callq 0xd0b8
xorl %esi, %esi
cmpq $0x2, %rbx
sete %sil
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xbf0a
leaq 0x7f929(%rip), %rsi     # 0xa1654
leaq 0x28(%rsp), %rdi
callq 0x18a16
leaq 0x84299(%rip), %rsi     # 0xa5fd5
movq %rax, %rdi
callq 0x23f9c
leaq 0x835df(%rip), %rsi     # 0xa532a
movq %rax, %rdi
callq 0x18a16
movq %rax, %rbx
cmpb $0x1, 0x188(%rax)
jne 0x21d72
movq %rbx, %rdi
addq $0x10, %rdi
movq 0xc34eb(%rip), %rsi     # 0xe5258
callq 0x2110
leaq 0x7f8db(%rip), %rsi     # 0xa1654
movq %rbx, %rdi
callq 0x18a16
leaq 0x88258(%rip), %rsi     # 0xa9fe0
movq %rax, %rdi
callq 0x18a16
leaq 0x83593(%rip), %rsi     # 0xa532a
movq %rax, %rdi
callq 0x18a16
movq %rax, %rbx
cmpb $0x1, 0x188(%rax)
jne 0x21dbc
movq %rbx, %rdi
addq $0x10, %rdi
movl $0x2, %esi
callq 0x22f0
leaq 0x965a6(%rip), %rsi     # 0xb8369
movq %rbx, %rdi
callq 0x18a16
leaq 0x28(%rsp), %rdi
callq 0xbf62
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x21dec
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0xc346d(%rip), %rbx     # 0xe5260
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x84309(%rip), %rsi     # 0xa610b
leaq 0x84329(%rip), %rdx     # 0xa6132
callq 0xd0b8
xorl %esi, %esi
cmpq $0x2, %rbx
sete %sil
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xbf0a
leaq 0x7f826(%rip), %rsi     # 0xa1654
leaq 0x28(%rsp), %rdi
callq 0x18a16
leaq 0x84194(%rip), %rsi     # 0xa5fd3
movq %rax, %rdi
callq 0x23fd4
leaq 0x834dc(%rip), %rsi     # 0xa532a
movq %rax, %rdi
callq 0x18a16
movq %rax, %rbx
cmpb $0x1, 0x188(%rax)
jne 0x21e75
movq %rbx, %rdi
addq $0x10, %rdi
movq 0xc33f0(%rip), %rsi     # 0xe5260
callq 0x2110
leaq 0x7f7d8(%rip), %rsi     # 0xa1654
movq %rbx, %rdi
callq 0x18a16
leaq 0x88155(%rip), %rsi     # 0xa9fe0
movq %rax, %rdi
callq 0x18a16
leaq 0x83490(%rip), %rsi     # 0xa532a
movq %rax, %rdi
callq 0x18a16
movq %rax, %rbx
cmpb $0x1, 0x188(%rax)
jne 0x21ebf
movq %rbx, %rdi
addq $0x10, %rdi
movl $0x2, %esi
callq 0x22f0
leaq 0x964a3(%rip), %rsi     # 0xb8369
movq %rbx, %rdi
callq 0x18a16
leaq 0x28(%rsp), %rdi
callq 0xbf62
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x21eef
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r14
retq
jmp 0x21efc
movq %rax, %rbx
jmp 0x21f3f
jmp 0x21f0c
jmp 0x21f1b
jmp 0x21f07
movq %rax, %rbx
jmp 0x21f28
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xbf62
jmp 0x21f28
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0xbf62
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x21f3f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x2300
movq %rax, %rdi
callq 0xc036