// File: /workspace/github_cpp_makefile_star2_O3/dsharlet[P]array/test/array.cpp
// Function: nda::test_array_assign_body()
TEST(array_assign) {
  array_of_rank<int, 3> a({4, 5, 6});
  fill_pattern(a);

  array_of_rank<int, 3> b = array_of_rank<int, 3>({4, 5, 6});
  fill_pattern(b);
  ASSERT(a == b);

  array_of_rank<int, 3> c;
  c = array_of_rank<int, 3>({4, 5, 6});
  fill_pattern(c);
  ASSERT(a == c);

  c = array_of_rank<int, 3>({4, 5, 6});
  ASSERT(a != c);
  fill_pattern(c);
  ASSERT(a == c);

  c = array_of_rank<int, 3>({7, 5, 6});
  ASSERT(a != c);

  {
    array_of_rank<int, 3> d({4, 5, 6});
    fill_pattern(d);
    c = d;
  }
  ASSERT(a == c);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb68, %rsp            # imm = 0xB68
movabsq $-0x8000000000000000, %r12 # imm = 0x8000000000000000
leaq 0x158(%rsp), %rbx
xorps %xmm0, %xmm0
movups %xmm0, -0x8(%rbx)
movups %xmm0, -0x18(%rbx)
movq $0x6, 0x8(%rbx)
movq %r12, 0x10(%rbx)
xorl %eax, %eax
movq %rax, 0x18(%rbx)
movq $0x5, 0x20(%rbx)
movq %r12, 0x28(%rbx)
movq %rax, 0x30(%rbx)
movq $0x4, 0x38(%rbx)
movq %r12, 0x40(%rbx)
leaq 0x138(%rsp), %r14
movq %r14, %rdi
callq 0x1a8cc
movq %r14, %rdi
callq 0x1a9a6
movq 0x18(%r14), %rcx
leaq 0x1a8(%rsp), %rax
movq %rcx, -0x8(%rax)
movl $0x9, %ecx
movq %rax, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rsp, %rcx
movl $0x0, (%rcx)
leaq 0x68(%rsp), %r14
movq %rcx, (%r14)
leaq 0x1a0(%rsp), %rcx
movq %rcx, 0x8(%r14)
movq %rax, %rdi
movq %r14, %rsi
callq 0x1d948
leaq 0x1a0(%rsp), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x8(%rdi)
movq $0x6, 0x28(%rdi)
movq %r12, 0x30(%rdi)
xorl %eax, %eax
movq %rax, 0x38(%rdi)
movq $0x5, 0x40(%rdi)
movq %r12, 0x48(%rdi)
movq %rax, 0x50(%rdi)
movq $0x4, 0x58(%rdi)
movq %r12, 0x60(%rdi)
callq 0x1a8cc
leaq 0x1a0(%rsp), %rdi
callq 0x1a9a6
leaq 0x1c0(%rsp), %r15
movq -0x8(%r15), %rcx
leaq 0x70(%rsp), %rax
movq %rcx, -0x8(%rax)
movl $0x9, %ecx
movq %rax, %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0xe8(%rsp), %rcx
movl $0x0, (%rcx)
movq %rsp, %rsi
movq %rcx, (%rsi)
movq %r14, 0x8(%rsi)
movq %rax, %rdi
callq 0x1d948
movq 0x150(%rsp), %rax
leaq 0x70(%rsp), %rdi
movq %rax, -0x8(%rdi)
movl $0x9, %ecx
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0x1b8(%rsp), %rax
leaq 0x8(%rsp), %rdi
movq %rax, -0x8(%rdi)
movl $0x9, %ecx
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x68(%rsp), %rdi
movq %rsp, %rsi
callq 0x1da30
movl %eax, %ebp
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x914e5(%rip), %rsi     # 0xa30d3
leaq 0x914e4(%rip), %rdx     # 0xa30d9
leaq 0x68(%rsp), %rdi
callq 0xd14c
xorb $0x1, %bpl
movzbl %bpl, %esi
leaq 0x9d8(%rsp), %rdi
leaq 0x68(%rsp), %rdx
callq 0xbf80
leaq 0x9d8(%rsp), %rdi
callq 0xbfd8
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x11c3d
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21f0
xorps %xmm0, %xmm0
leaq 0x68(%rsp), %rdi
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x8(%rdi)
movq $0x0, 0x28(%rdi)
movq %r12, 0x30(%rdi)
movups %xmm0, 0x38(%rdi)
movq %r12, 0x48(%rdi)
movups %xmm0, 0x50(%rdi)
movq %r12, 0x60(%rdi)
callq 0x1a8cc
leaq 0x68(%rsp), %rdi
callq 0x1a9a6
xorps %xmm0, %xmm0
movq %rsp, %rdi
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x8(%rdi)
movq $0x6, 0x28(%rdi)
movq %r12, 0x30(%rdi)
xorl %eax, %eax
movq %rax, 0x38(%rdi)
movq $0x5, 0x40(%rdi)
movq %r12, 0x48(%rdi)
movq %rax, 0x50(%rdi)
movq $0x4, 0x58(%rdi)
movq %r12, 0x60(%rdi)
callq 0x1a8cc
movq %rsp, %rdi
callq 0x1a9a6
leaq 0x68(%rsp), %rdi
movq %rsp, %rsi
callq 0x19484
movq %rsp, %r15
movq %r15, %rdi
callq 0x1d848
leaq 0x88(%rsp), %r14
movq -0x8(%r14), %rcx
leaq 0x8(%rsp), %rax
movq %rcx, -0x8(%rax)
movl $0x9, %ecx
movq %rax, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0xd0(%rsp), %rcx
movl $0x0, (%rcx)
leaq 0xe8(%rsp), %rsi
movq %rcx, (%rsi)
movq %r15, 0x8(%rsi)
movq %rax, %rdi
callq 0x1d948
movq 0x150(%rsp), %rax
leaq 0x8(%rsp), %rdi
movq %rax, -0x8(%rdi)
movl $0x9, %ecx
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0x80(%rsp), %rax
leaq 0xf0(%rsp), %rdi
movq %rax, -0x8(%rdi)
movl $0x9, %ecx
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rsp, %rdi
leaq 0xe8(%rsp), %rsi
callq 0x1da30
movl %eax, %ebp
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x93114(%rip), %rsi     # 0xa4e92
leaq 0x93113(%rip), %rdx     # 0xa4e98
movq %rsp, %rdi
callq 0xd14c
xorb $0x1, %bpl
movzbl %bpl, %esi
leaq 0x848(%rsp), %rdi
movq %rsp, %rdx
callq 0xbf80
leaq 0x848(%rsp), %rdi
callq 0xbfd8
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x11dc8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
xorps %xmm0, %xmm0
movq %rsp, %rdi
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x8(%rdi)
movq $0x6, 0x28(%rdi)
movq %r12, 0x30(%rdi)
xorl %eax, %eax
movq %rax, 0x38(%rdi)
movq $0x5, 0x40(%rdi)
movq %r12, 0x48(%rdi)
movq %rax, 0x50(%rdi)
movq $0x4, 0x58(%rdi)
movq %r12, 0x60(%rdi)
callq 0x1a8cc
movq %rsp, %rdi
callq 0x1a9a6
leaq 0x68(%rsp), %rdi
movq %rsp, %rsi
callq 0x19484
movq %rsp, %rdi
callq 0x1d848
movq 0x150(%rsp), %rax
leaq 0x8(%rsp), %rdi
movq %rax, -0x8(%rdi)
movl $0x9, %ecx
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0x80(%rsp), %rax
leaq 0xf0(%rsp), %rdi
movq %rax, -0x8(%rdi)
movl $0x9, %ecx
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rsp, %rdi
leaq 0xe8(%rsp), %rsi
callq 0x1da30
movl %eax, %ebp
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x93019(%rip), %rsi     # 0xa4e99
leaq 0x93018(%rip), %rdx     # 0xa4e9f
callq 0xd14c
movzbl %bpl, %esi
leaq 0x6b8(%rsp), %rdi
movq %rsp, %r15
movq %r15, %rdx
callq 0xbf80
leaq 0x6b8(%rsp), %rdi
callq 0xbfd8
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x11ec6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x80(%rsp), %rcx
leaq 0x8(%rsp), %rax
movq %rcx, -0x8(%rax)
movl $0x9, %ecx
movq %rax, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x0, 0xd0(%rsp)
leaq 0xe8(%rsp), %rsi
leaq 0xd0(%rsp), %rcx
movq %rcx, (%rsi)
movq %r15, 0x8(%rsi)
movq %rax, %rdi
callq 0x1d948
movq 0x150(%rsp), %rax
leaq 0x8(%rsp), %rdi
movq %rax, -0x8(%rdi)
movl $0x9, %ecx
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0x80(%rsp), %rax
leaq 0xf0(%rsp), %rdi
movq %rax, -0x8(%rdi)
movl $0x9, %ecx
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rsp, %rdi
leaq 0xe8(%rsp), %rsi
callq 0x1da30
movl %eax, %ebp
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x92f29(%rip), %rsi     # 0xa4e92
leaq 0x92f28(%rip), %rdx     # 0xa4e98
callq 0xd14c
xorb $0x1, %bpl
movzbl %bpl, %esi
leaq 0x528(%rsp), %rdi
movq %rsp, %rdx
callq 0xbf80
leaq 0x528(%rsp), %rdi
callq 0xbfd8
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x11fb0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
xorps %xmm0, %xmm0
movq %rsp, %rdi
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x8(%rdi)
movq $0x6, 0x28(%rdi)
movq %r12, 0x30(%rdi)
xorl %eax, %eax
movq %rax, 0x38(%rdi)
movq $0x5, 0x40(%rdi)
movq %r12, 0x48(%rdi)
movq %rax, 0x50(%rdi)
movq $0x7, 0x58(%rdi)
movq %r12, 0x60(%rdi)
callq 0x1a8cc
movq %rsp, %rdi
callq 0x1a9a6
leaq 0x68(%rsp), %rdi
movq %rsp, %rsi
callq 0x19484
movq %rsp, %rdi
callq 0x1d848
movq 0x150(%rsp), %rax
leaq 0x8(%rsp), %rdi
movq %rax, -0x8(%rdi)
movl $0x9, %ecx
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0x80(%rsp), %rax
leaq 0xf0(%rsp), %rdi
movq %rax, -0x8(%rdi)
movl $0x9, %ecx
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rsp, %rdi
leaq 0xe8(%rsp), %r15
movq %r15, %rsi
callq 0x1da30
movl %eax, %ebp
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x92e2e(%rip), %rsi     # 0xa4e99
leaq 0x92e2d(%rip), %rdx     # 0xa4e9f
callq 0xd14c
movzbl %bpl, %esi
leaq 0x398(%rsp), %rdi
movq %rsp, %rdx
callq 0xbf80
leaq 0x398(%rsp), %rdi
callq 0xbfd8
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x120ae
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
xorps %xmm0, %xmm0
movq %rsp, %rdi
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x8(%rdi)
movq $0x6, 0x28(%rdi)
movq %r12, 0x30(%rdi)
xorl %eax, %eax
movq %rax, 0x38(%rdi)
movq $0x5, 0x40(%rdi)
movq %r12, 0x48(%rdi)
movq %rax, 0x50(%rdi)
movq $0x4, 0x58(%rdi)
movq %r12, 0x60(%rdi)
callq 0x1a8cc
movq %rsp, %rdi
callq 0x1a9a6
leaq 0x20(%rsp), %rsi
movq -0x8(%rsi), %rcx
leaq 0xf0(%rsp), %rax
movq %rcx, -0x8(%rax)
movl $0x9, %ecx
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
leaq 0xe4(%rsp), %rcx
movl $0x0, (%rcx)
leaq 0xd0(%rsp), %rsi
movq %rcx, (%rsi)
movq %r15, 0x8(%rsi)
movq %rax, %rdi
callq 0x1d948
leaq 0x68(%rsp), %rdi
movq %rsp, %rsi
callq 0x19676
movq %rsp, %rdi
callq 0x1d848
movq 0x150(%rsp), %rax
leaq 0x8(%rsp), %rdi
movq %rax, -0x8(%rdi)
movl $0x9, %ecx
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0x80(%rsp), %rax
leaq 0xf0(%rsp), %rdi
movq %rax, -0x8(%rdi)
movl $0x9, %ecx
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rsp, %rdi
leaq 0xe8(%rsp), %rsi
callq 0x1da30
movl %eax, %ebx
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x92ce7(%rip), %rsi     # 0xa4e92
leaq 0x92ce6(%rip), %rdx     # 0xa4e98
callq 0xd14c
xorb $0x1, %bl
movzbl %bl, %esi
leaq 0x208(%rsp), %rdi
movq %rsp, %rdx
callq 0xbf80
leaq 0x208(%rsp), %rdi
callq 0xbfd8
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x121f0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
leaq 0x68(%rsp), %rdi
callq 0x1d848
leaq 0x1a0(%rsp), %rdi
callq 0x1d848
leaq 0x138(%rsp), %rdi
callq 0x1d848
addq $0xb68, %rsp            # imm = 0xB68
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1233a
jmp 0x1233a
jmp 0x1233a
jmp 0x12307
jmp 0x1233a
jmp 0x12307
jmp 0x1233a
movq %rax, %rbx
movq %rsp, %rdi
callq 0x1d848
jmp 0x1230a
jmp 0x1233a
jmp 0x12307
jmp 0x12307
jmp 0x1233a
movq %rax, %rbx
movq %rsp, %rdi
callq 0x1d848
jmp 0x1230a
jmp 0x1233a
jmp 0x12307
jmp 0x1233a
movq %rax, %rbx
movq %rsp, %rdi
callq 0x1d848
jmp 0x1230a
jmp 0x1233a
jmp 0x122fd
jmp 0x12302
jmp 0x122c2
movq %rax, %rbx
movq %rsp, %rdi
callq 0x1d848
jmp 0x1230a
jmp 0x1233a
jmp 0x12307
jmp 0x122c2
jmp 0x12307
jmp 0x122c2
jmp 0x122c2
jmp 0x12307
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x1230a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x1230a
jmp 0x12307
jmp 0x122fd
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x12314
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x12314
movq %rax, %rbx
jmp 0x12314
movq %rax, %rbx
jmp 0x12321
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x1d848
leaq 0x1a0(%rsp), %rdi
callq 0x1d848
leaq 0x138(%rsp), %rdi
callq 0x1d848
movq %rbx, %rdi
callq 0x2300
jmp 0x1233a
jmp 0x1233a
movq %rax, %rdi
callq 0xc0a9