// File: /workspace/github_cpp_makefile_star2_O1/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 0x194a0
movl %ebp, (%rbx)
leaq 0x88(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0x194a0
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x1348b
movq 0xa0(%rsp), %rcx
testq %rcx, %rcx
je 0x1348b
movl (%rax), %ebx
movl (%rcx), %ebp
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x8e04e(%rip), %rsi     # 0xa10a3
leaq 0x8e04d(%rip), %rdx     # 0xa10a9
leaq 0x30(%rsp), %rdi
callq 0xd0b8
xorl %esi, %esi
cmpl %ebp, %ebx
sete %sil
leaq 0x6f0(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0xbf0a
leaq 0x6f0(%rsp), %rdi
callq 0xbf62
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x130a4
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21f0
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xf09a
leaq 0x5c(%rsp), %rdx
movl $0x3, (%rdx)
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rsi
callq 0x194a0
movq 0x48(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq %rcx, %rax
je 0x1310c
movups 0x38(%rsp), %xmm0
movups 0x10(%rsp), %xmm1
movups %xmm1, 0x38(%rsp)
movups %xmm0, 0x10(%rsp)
movq %rcx, 0x48(%rsp)
movq %rax, 0x20(%rsp)
movb 0x50(%rsp), %al
movb 0x28(%rsp), %cl
movb %cl, 0x50(%rsp)
movb %al, 0x28(%rsp)
jmp 0x13115
testq %rax, %rax
je 0x134aa
cmpq $0x0, 0x20(%rsp)
je 0x1313c
xorl %ebx, %ebx
movq %rbx, 0x20(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
movq %rbx, 0x10(%rsp)
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x1348b
movq 0x48(%rsp), %rcx
testq %rcx, %rcx
je 0x1348b
movl (%rax), %ebx
movl (%rcx), %ebp
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x8fcde(%rip), %rsi     # 0xa2e4a
leaq 0x8fcdd(%rip), %rdx     # 0xa2e50
leaq 0x8(%rsp), %rdi
callq 0xd0b8
xorl %esi, %esi
cmpl %ebp, %ebx
sete %sil
leaq 0x560(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xbf0a
leaq 0x560(%rsp), %rdi
callq 0xbf62
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x131bb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
leaq 0x5c(%rsp), %rdx
movl $0x4, (%rdx)
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rsi
callq 0x194a0
movq 0x48(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq %rcx, %rax
je 0x13214
movups 0x38(%rsp), %xmm0
movups 0x10(%rsp), %xmm1
movups %xmm1, 0x38(%rsp)
movups %xmm0, 0x10(%rsp)
movq %rcx, 0x48(%rsp)
movq %rax, 0x20(%rsp)
movb 0x50(%rsp), %al
movb 0x28(%rsp), %cl
movb %cl, 0x50(%rsp)
movb %al, 0x28(%rsp)
jmp 0x1321d
testq %rax, %rax
je 0x134aa
cmpq $0x0, 0x20(%rsp)
je 0x13244
xorl %ebx, %ebx
movq %rbx, 0x20(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
movq %rbx, 0x10(%rsp)
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x1348b
movq 0x48(%rsp), %rcx
testq %rcx, %rcx
je 0x1348b
movl (%rax), %ebx
movl (%rcx), %ebp
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8fbde(%rip), %rsi     # 0xa2e51
leaq 0x8fbdd(%rip), %rdx     # 0xa2e57
callq 0xd0b8
xorl %esi, %esi
cmpl %ebp, %ebx
setne %sil
leaq 0x3d0(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xbf0a
leaq 0x3d0(%rsp), %rdi
callq 0xbf62
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x132bd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x48(%rsp), %rax
movl $0x3, (%rax)
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x1348b
movl (%rax), %ebx
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8fb63(%rip), %rsi     # 0xa2e4a
leaq 0x8fb62(%rip), %rdx     # 0xa2e50
callq 0xd0b8
xorl %esi, %esi
cmpl $0x3, %ebx
sete %sil
leaq 0x240(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xbf0a
leaq 0x240(%rsp), %rdi
callq 0xbf62
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x13332
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
leaq 0x5c(%rsp), %rdx
movl $0x3, (%rdx)
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rsi
callq 0x194a0
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x194da
cmpq $0x0, 0x20(%rsp)
je 0x13382
xorl %ebx, %ebx
movq %rbx, 0x20(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
movq %rbx, 0x10(%rsp)
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x1348b
movq 0x48(%rsp), %rcx
testq %rcx, %rcx
je 0x1348b
movl (%rax), %ebx
movl (%rcx), %ebp
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x8fa99(%rip), %rsi     # 0xa2e4a
leaq 0x8fa98(%rip), %rdx     # 0xa2e50
callq 0xd0b8
xorl %esi, %esi
cmpl %ebp, %ebx
sete %sil
leaq 0xb0(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0xbf0a
leaq 0xb0(%rsp), %rdi
callq 0xbf62
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x133fb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
cmpq $0x0, 0x48(%rsp)
je 0x13422
xorl %ebx, %ebx
movq %rbx, 0x48(%rsp)
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
movq %rbx, 0x38(%rsp)
cmpq $0x0, 0xa0(%rsp)
je 0x13458
xorl %ebx, %ebx
movq %rbx, 0xa0(%rsp)
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
movq %rbx, 0x90(%rsp)
cmpq $0x0, 0x78(%rsp)
je 0x1347f
xorl %ebx, %ebx
movq %rbx, 0x78(%rsp)
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
movq %rbx, 0x68(%rsp)
addq $0x880, %rsp            # imm = 0x880
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x8de19(%rip), %rdi     # 0xa12ab
leaq 0x8dc54(%rip), %rsi     # 0xa10ed
leaq 0x919a8(%rip), %rcx     # 0xa4e48
movl $0x6b8, %edx            # imm = 0x6B8
callq 0x2100
movb 0x50(%rsp), %al
movb 0x28(%rsp), %cl
movb %cl, 0x50(%rsp)
movb %al, 0x28(%rsp)
leaq 0x8dd0d(%rip), %rdi     # 0xa11ce
leaq 0x8dc25(%rip), %rsi     # 0xa10ed
leaq 0x91a7c(%rip), %rcx     # 0xa4f4b
movl $0x9a3, %edx            # imm = 0x9A3
callq 0x2100
jmp 0x13501
movq %rax, %rbx
cmpq $0x0, 0x20(%rsp)
je 0x13532
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2392
jmp 0x13532
jmp 0x13501
jmp 0x13501
jmp 0x13501
jmp 0x13501
jmp 0x13501
movq %rax, %rbx
jmp 0x13532
jmp 0x13508
movq %rax, %rbx
jmp 0x1355a
movq %rax, %rbx
jmp 0x13591
jmp 0x13518
jmp 0x13518
jmp 0x13518
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x13532
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
cmpq $0x0, 0x48(%rsp)
je 0x1355a
xorl %r14d, %r14d
movq %r14, 0x48(%rsp)
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
movq %r14, 0x38(%rsp)
cmpq $0x0, 0xa0(%rsp)
je 0x13591
xorl %r14d, %r14d
movq %r14, 0xa0(%rsp)
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
movq %r14, 0x90(%rsp)
cmpq $0x0, 0x78(%rsp)
je 0x135b9
xorl %r14d, %r14d
movq %r14, 0x78(%rsp)
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
shlq $0x2, %rsi
callq 0x21f0
movq %r14, 0x68(%rsp)
movq %rbx, %rdi
callq 0x2300
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x1355a
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x1355a