// File: /workspace/github_cpp_makefile_star2_O3/dsharlet[P]array/test/array.cpp
// Function: nda::test_array_assign_scalar_body()
TEST(array_assign_scalar) {
  dense_array<int, 0> a({}, 3);

  dense_array<int, 0> b = array_of_rank<int, 0>({}, 3);
  ASSERT(a == b);

  array_of_rank<int, 0> c;
  c = array_of_rank<int, 0>({}, 3);
  ASSERT(a == c);

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

  {
    array_of_rank<int, 0> d({}, 3);
    c = d;
  }
  ASSERT(a == c);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x880, %rsp            # imm = 0x880
movl $0x3, %ebp
leaq 0x88(%rsp), %rdx
movl %ebp, (%rdx)
leaq 0x60(%rsp), %rdi
leaq 0x30(%rsp), %rbx
movq %rbx, %rsi
callq 0x19a3a
movl %ebp, (%rbx)
leaq 0x88(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0x19a3a
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x1388d
movq 0xa0(%rsp), %rcx
testq %rcx, %rcx
je 0x1388d
movl (%rax), %ebx
movl (%rcx), %ebp
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x8fc5b(%rip), %rsi     # 0xa30d3
leaq 0x8fc5a(%rip), %rdx     # 0xa30d9
leaq 0x30(%rsp), %rdi
callq 0xd14c
xorl %esi, %esi
cmpl %ebp, %ebx
sete %sil
leaq 0x6f0(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0xbf80
leaq 0x6f0(%rsp), %rdi
callq 0xbfd8
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x134c7
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21f0
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xf3ec
leaq 0x5c(%rsp), %rdx
movl $0x3, (%rdx)
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rsi
callq 0x19a3a
movq 0x48(%rsp), %rcx
movq 0x20(%rsp), %rax
cmpq %rax, %rcx
je 0x13531
movups 0x38(%rsp), %xmm0
movups 0x10(%rsp), %xmm1
movups %xmm1, 0x38(%rsp)
movups %xmm0, 0x10(%rsp)
movq %rax, 0x48(%rsp)
movb 0x50(%rsp), %dl
movb 0x28(%rsp), %sil
movb %sil, 0x50(%rsp)
movb %dl, 0x28(%rsp)
testq %rcx, %rcx
jne 0x1353a
jmp 0x1355b
testq %rcx, %rcx
je 0x138ac
movq $0x0, 0x20(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
movq 0x48(%rsp), %rax
movq 0x78(%rsp), %rcx
testq %rcx, %rcx
je 0x1388d
testq %rax, %rax
je 0x1388d
movl (%rcx), %ebx
movl (%rax), %ebp
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x9190c(%rip), %rsi     # 0xa4e92
leaq 0x9190b(%rip), %rdx     # 0xa4e98
leaq 0x8(%rsp), %rdi
callq 0xd14c
xorl %esi, %esi
cmpl %ebp, %ebx
sete %sil
leaq 0x560(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xbf80
leaq 0x560(%rsp), %rdi
callq 0xbfd8
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x135d5
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
leaq 0x5c(%rsp), %rdx
movl $0x4, (%rdx)
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rsi
callq 0x19a3a
movq 0x48(%rsp), %rcx
movq 0x20(%rsp), %rax
cmpq %rax, %rcx
je 0x13630
movups 0x38(%rsp), %xmm0
movups 0x10(%rsp), %xmm1
movups %xmm1, 0x38(%rsp)
movups %xmm0, 0x10(%rsp)
movq %rax, 0x48(%rsp)
movb 0x50(%rsp), %dl
movb 0x28(%rsp), %sil
movb %sil, 0x50(%rsp)
movb %dl, 0x28(%rsp)
testq %rcx, %rcx
jne 0x13639
jmp 0x1365a
testq %rcx, %rcx
je 0x138ac
movq $0x0, 0x20(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
movq 0x48(%rsp), %rax
movq 0x78(%rsp), %rcx
testq %rcx, %rcx
je 0x1388d
testq %rax, %rax
je 0x1388d
movl (%rcx), %ebx
movl (%rax), %ebp
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x91815(%rip), %rsi     # 0xa4e99
leaq 0x91814(%rip), %rdx     # 0xa4e9f
callq 0xd14c
xorl %esi, %esi
cmpl %ebp, %ebx
setne %sil
leaq 0x3d0(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xbf80
leaq 0x3d0(%rsp), %rdi
callq 0xbfd8
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x136ce
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x48(%rsp), %rax
movl $0x3, (%rax)
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x1388d
movl (%rax), %ebx
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x9179a(%rip), %rsi     # 0xa4e92
leaq 0x91799(%rip), %rdx     # 0xa4e98
callq 0xd14c
xorl %esi, %esi
cmpl $0x3, %ebx
sete %sil
leaq 0x240(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xbf80
leaq 0x240(%rsp), %rdi
callq 0xbfd8
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x13743
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
leaq 0x5c(%rsp), %rdx
movl $0x3, (%rdx)
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rsi
callq 0x19a3a
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x19a82
cmpq $0x0, 0x20(%rsp)
je 0x13790
movq $0x0, 0x20(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x1388d
movq 0x48(%rsp), %rcx
testq %rcx, %rcx
je 0x1388d
movl (%rax), %ebx
movl (%rcx), %ebp
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x916d3(%rip), %rsi     # 0xa4e92
leaq 0x916d2(%rip), %rdx     # 0xa4e98
callq 0xd14c
xorl %esi, %esi
cmpl %ebp, %ebx
sete %sil
leaq 0xb0(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xbf80
leaq 0xb0(%rsp), %rdi
callq 0xbfd8
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x13809
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
cmpq $0x0, 0x48(%rsp)
je 0x1382d
movq $0x0, 0x48(%rsp)
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
cmpq $0x0, 0xa0(%rsp)
je 0x1385d
movq $0x0, 0xa0(%rsp)
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
cmpq $0x0, 0x78(%rsp)
je 0x13881
movq $0x0, 0x78(%rsp)
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
addq $0x880, %rsp            # imm = 0x880
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x8fa47(%rip), %rdi     # 0xa32db
leaq 0x8f882(%rip), %rsi     # 0xa311d
leaq 0x93548(%rip), %rcx     # 0xa6dea
movl $0x6b8, %edx            # imm = 0x6B8
callq 0x2100
movb 0x50(%rsp), %al
movb 0x28(%rsp), %cl
movb %cl, 0x50(%rsp)
movb %al, 0x28(%rsp)
leaq 0x8f93b(%rip), %rdi     # 0xa31fe
leaq 0x8f853(%rip), %rsi     # 0xa311d
leaq 0x9361c(%rip), %rcx     # 0xa6eed
movl $0x9a3, %edx            # imm = 0x9A3
callq 0x2100
jmp 0x13903
movq %rax, %rbx
cmpq $0x0, 0x20(%rsp)
je 0x13934
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2392
jmp 0x13934
jmp 0x13903
jmp 0x13903
jmp 0x13903
jmp 0x13903
jmp 0x13903
movq %rax, %rbx
jmp 0x13934
jmp 0x1390a
movq %rax, %rbx
jmp 0x13958
movq %rax, %rbx
jmp 0x13988
jmp 0x1391a
jmp 0x1391a
jmp 0x1391a
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x13934
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
cmpq $0x0, 0x48(%rsp)
je 0x13958
movq $0x0, 0x48(%rsp)
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
cmpq $0x0, 0xa0(%rsp)
je 0x13988
movq $0x0, 0xa0(%rsp)
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
cmpq $0x0, 0x78(%rsp)
je 0x139ac
movq $0x0, 0x78(%rsp)
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x2300
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x13958
movq 0x40(%rsp), %rsi
incq %rsi
jmp 0x13953