// File: /workspace/github_cpp_makefile_star2_O1/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 0x1a362
movq %r14, %rdi
callq 0x1a43a
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 0x1d4b4
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 0x1a362
leaq 0x1a0(%rsp), %rdi
callq 0x1a43a
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 0x1d4b4
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 0x1d5a2
movl %eax, %ebp
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x8f8a1(%rip), %rsi     # 0xa10a3
leaq 0x8f8a0(%rip), %rdx     # 0xa10a9
leaq 0x68(%rsp), %rdi
callq 0xd0b8
xorb $0x1, %bpl
movzbl %bpl, %esi
leaq 0x9d8(%rsp), %rdi
leaq 0x68(%rsp), %rdx
callq 0xbf0a
leaq 0x9d8(%rsp), %rdi
callq 0xbf62
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x11851
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 0x1a362
leaq 0x68(%rsp), %rdi
callq 0x1a43a
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 0x1a362
movq %rsp, %rdi
callq 0x1a43a
leaq 0x68(%rsp), %rdi
movq %rsp, %rsi
callq 0x18ee0
movq %rsp, %r15
movq %r15, %rdi
callq 0x1d3b4
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 0x1d4b4
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 0x1d5a2
movl %eax, %ebp
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x914b8(%rip), %rsi     # 0xa2e4a
leaq 0x914b7(%rip), %rdx     # 0xa2e50
movq %rsp, %rdi
callq 0xd0b8
xorb $0x1, %bpl
movzbl %bpl, %esi
leaq 0x848(%rsp), %rdi
movq %rsp, %rdx
callq 0xbf0a
leaq 0x848(%rsp), %rdi
callq 0xbf62
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x119dc
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 0x1a362
movq %rsp, %rdi
callq 0x1a43a
leaq 0x68(%rsp), %rdi
movq %rsp, %rsi
callq 0x18ee0
movq %rsp, %rdi
callq 0x1d3b4
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 0x1d5a2
movl %eax, %ebp
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x913bd(%rip), %rsi     # 0xa2e51
leaq 0x913bc(%rip), %rdx     # 0xa2e57
callq 0xd0b8
movzbl %bpl, %esi
leaq 0x6b8(%rsp), %rdi
movq %rsp, %r15
movq %r15, %rdx
callq 0xbf0a
leaq 0x6b8(%rsp), %rdi
callq 0xbf62
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x11ada
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 0x1d4b4
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 0x1d5a2
movl %eax, %ebp
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x912cd(%rip), %rsi     # 0xa2e4a
leaq 0x912cc(%rip), %rdx     # 0xa2e50
callq 0xd0b8
xorb $0x1, %bpl
movzbl %bpl, %esi
leaq 0x528(%rsp), %rdi
movq %rsp, %rdx
callq 0xbf0a
leaq 0x528(%rsp), %rdi
callq 0xbf62
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x11bc4
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 0x1a362
movq %rsp, %rdi
callq 0x1a43a
leaq 0x68(%rsp), %rdi
movq %rsp, %rsi
callq 0x18ee0
movq %rsp, %rdi
callq 0x1d3b4
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 0x1d5a2
movl %eax, %ebp
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x911d2(%rip), %rsi     # 0xa2e51
leaq 0x911d1(%rip), %rdx     # 0xa2e57
callq 0xd0b8
movzbl %bpl, %esi
leaq 0x398(%rsp), %rdi
movq %rsp, %rdx
callq 0xbf0a
leaq 0x398(%rsp), %rdi
callq 0xbf62
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x11cc2
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 0x1a362
movq %rsp, %rdi
callq 0x1a43a
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 0x1d4b4
leaq 0x68(%rsp), %rdi
movq %rsp, %rsi
callq 0x190d2
movq %rsp, %rdi
callq 0x1d3b4
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 0x1d5a2
movl %eax, %ebx
movq %rsp, %rdi
movq %r13, (%rdi)
leaq 0x9108b(%rip), %rsi     # 0xa2e4a
leaq 0x9108a(%rip), %rdx     # 0xa2e50
callq 0xd0b8
xorb $0x1, %bl
movzbl %bl, %esi
leaq 0x208(%rsp), %rdi
movq %rsp, %rdx
callq 0xbf0a
leaq 0x208(%rsp), %rdi
callq 0xbf62
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x11e04
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
leaq 0x68(%rsp), %rdi
callq 0x1d3b4
leaq 0x1a0(%rsp), %rdi
callq 0x1d3b4
leaq 0x138(%rsp), %rdi
callq 0x1d3b4
addq $0xb68, %rsp            # imm = 0xB68
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x11f4e
jmp 0x11f4e
jmp 0x11f4e
jmp 0x11f1b
jmp 0x11f4e
jmp 0x11f1b
jmp 0x11f4e
movq %rax, %rbx
movq %rsp, %rdi
callq 0x1d3b4
jmp 0x11f1e
jmp 0x11f4e
jmp 0x11f1b
jmp 0x11f1b
jmp 0x11f4e
movq %rax, %rbx
movq %rsp, %rdi
callq 0x1d3b4
jmp 0x11f1e
jmp 0x11f4e
jmp 0x11f1b
jmp 0x11f4e
movq %rax, %rbx
movq %rsp, %rdi
callq 0x1d3b4
jmp 0x11f1e
jmp 0x11f4e
jmp 0x11f11
jmp 0x11f16
jmp 0x11ed6
movq %rax, %rbx
movq %rsp, %rdi
callq 0x1d3b4
jmp 0x11f1e
jmp 0x11f4e
jmp 0x11f1b
jmp 0x11ed6
jmp 0x11f1b
jmp 0x11ed6
jmp 0x11ed6
jmp 0x11f1b
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x11f1e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x11f1e
jmp 0x11f1b
jmp 0x11f11
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x11f28
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x11f28
movq %rax, %rbx
jmp 0x11f28
movq %rax, %rbx
jmp 0x11f35
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x1d3b4
leaq 0x1a0(%rsp), %rdi
callq 0x1d3b4
leaq 0x138(%rsp), %rdi
callq 0x1d3b4
movq %rbx, %rdi
callq 0x2300
jmp 0x11f4e
jmp 0x11f4e
movq %rax, %rdi
callq 0xc036