// File: /workspace/github_cpp_makefile_star2_O3/dsharlet[P]array/test/split.cpp
// Function: nda::test_split_even_nonconstant_body()
TEST(split_even_nonconstant) {
  dense_array<int, 3> a({4, 8, 9});
  size_t total_size = 0;
  for (auto zo : split(a.z(), 3)) {
    for (auto yo : split(a.y(), 4)) {
      auto a_inner = a(_, yo, zo);
      total_size += a_inner.size();
      fill_pattern(a_inner);
    }
  }
  // The total number of items in the inner splits should be equal to the size
  // of the array (no overlap among inner splits).
  ASSERT_EQ(total_size, a.size());
  check_pattern(a);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp            # imm = 0x278
xorl %r14d, %r14d
leaq 0xe8(%rsp), %rsi
movq %r14, (%rsi)
movl $0x4, %r12d
movq %r12, 0x8(%rsi)
movabsq $-0x8000000000000000, %r15 # imm = 0x8000000000000000
movq %r15, 0x10(%rsi)
xorl %edi, %edi
callq 0xd133
pxor %xmm0, %xmm0
leaq 0x58(%rsp), %rbx
movdqu %xmm0, 0x8(%rbx)
movdqu %xmm0, 0x18(%rbx)
movq $0x9, 0x28(%rbx)
movq %r15, 0x30(%rbx)
movq %r14, 0x38(%rbx)
movq $0x8, 0x40(%rbx)
movq %r15, 0x48(%rbx)
movq %r14, 0x50(%rbx)
movq %r12, 0x58(%rbx)
movq %rbx, %rdi
callq 0xc30a
movq %rbx, %rdi
callq 0xc412
movq 0x28(%rbx), %rax
movl $0x0, %ebx
testq %rax, %rax
je 0x9edad
movq 0x78(%rsp), %rcx
leaq (%rax,%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, 0x20(%rsp)
addq %rax, %rcx
decq %rcx
movq %rcx, 0x28(%rsp)
cmpq $0x3, %rax
movl $0x3, %r12d
cmovlq %rax, %r12
xorl %ebx, %ebx
movq 0x98(%rsp), %r15
testq %r15, %r15
je 0x9ed75
movq 0x90(%rsp), %r14
leaq (%r15,%r14), %rax
movq %rax, 0x40(%rsp)
leaq (%r15,%r14), %rax
decq %rax
movq %rax, 0x38(%rsp)
cmpq $0x4, %r15
movl $0x4, %eax
cmovgeq %rax, %r15
movq 0xa8(%rsp), %rbp
movq 0xa0(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x70(%rsp), %r13
movq 0x88(%rsp), %rax
movq %rax, 0x48(%rsp)
movq %rbp, (%rsp)
movq $0x1, 0x10(%rsp)
movups 0xb0(%rsp), %xmm0
movaps %xmm0, 0xc0(%rsp)
movlps %xmm0, 0x8(%rsp)
xorl %edi, %edi
movq %rsp, %rsi
callq 0xd133
movq %r14, %rax
subq 0x90(%rsp), %rax
imulq 0xa0(%rsp), %rax
movq 0x20(%rsp), %rdx
movq %rdx, %rcx
subq 0x78(%rsp), %rcx
imulq 0x88(%rsp), %rcx
testq %r13, %r13
leaq (%r13,%rax,4), %rax
leaq (%rax,%rcx,4), %rax
cmoveq %r13, %rax
movq %rax, 0xe8(%rsp)
movq %rdx, 0xf0(%rsp)
movq %r12, 0xf8(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x100(%rsp)
movq %r14, 0x108(%rsp)
movq %r15, 0x110(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x118(%rsp)
movq %rbp, 0x120(%rsp)
movaps 0xc0(%rsp), %xmm0
movups %xmm0, 0x128(%rsp)
movl $0x0, 0xd8(%rsp)
leaq 0xd8(%rsp), %rax
movq %rax, (%rsp)
leaq 0xe8(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0xf0(%rsp), %rdi
movq %rsp, %rsi
callq 0x611a0
movdqa 0xc0(%rsp), %xmm0
movq %xmm0, %rax
movq %r15, %rcx
imulq %r12, %rcx
imulq %rax, %rcx
testq %rcx, %rcx
movl $0x0, %eax
cmovleq %rax, %rcx
addq %rcx, %rbx
addq %r15, %r14
addq %r14, %r15
decq %r15
movq 0x38(%rsp), %rax
cmpq %r15, %rax
cmovlq %rax, %r15
subq %r14, %r15
incq %r15
cmpq 0x40(%rsp), %r14
jne 0x9ec0c
movq 0x20(%rsp), %rax
addq %r12, %rax
addq %rax, %r12
decq %r12
movq 0x28(%rsp), %rcx
cmpq %r12, %rcx
cmovlq %rcx, %r12
subq %rax, %r12
incq %r12
movq %rax, 0x20(%rsp)
cmpq 0x30(%rsp), %rax
jne 0x9ebd1
movq 0x80(%rsp), %r14
movq 0x98(%rsp), %r15
movq 0xb0(%rsp), %r13
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x21ac7(%rip), %rsi     # 0xc0895
leaq 0x21ad6(%rip), %rdx     # 0xc08ab
movq %rsp, %rdi
callq 0xd14c
imulq %r13, %r15
imulq %r14, %r15
xorl %eax, %eax
testq %r15, %r15
cmovgq %r15, %rax
xorl %esi, %esi
cmpq %rax, %rbx
sete %sil
leaq 0xe8(%rsp), %rdi
movq %rsp, %r14
movq %r14, %rdx
callq 0xbf80
leaq 0x4873(%rip), %rsi      # 0xa3684
leaq 0xe8(%rsp), %rdi
callq 0x18fba
leaq 0x21e05(%rip), %rsi     # 0xc0c2a
movq %rax, %rdi
callq 0x19062
leaq 0x8422(%rip), %rsi      # 0xa7256
movq %rax, %rdi
callq 0x18fba
movq %rax, %r15
cmpb $0x1, 0x188(%rax)
jne 0x9ee57
movq %r15, %rdi
addq $0x10, %rdi
movq %rbx, %rsi
callq 0x2110
leaq 0x4826(%rip), %rsi      # 0xa3684
movq %r15, %rdi
callq 0x18fba
leaq 0x21a36(%rip), %rsi     # 0xc08a3
movq %rax, %rdi
callq 0x1a146
leaq 0x83da(%rip), %rsi      # 0xa7256
movq %rax, %rdi
callq 0x18fba
movq %rax, %rbx
cmpb $0x1, 0x188(%rax)
jne 0x9eebf
movq 0xb0(%rsp), %rax
imulq 0x98(%rsp), %rax
imulq 0x80(%rsp), %rax
xorl %esi, %esi
testq %rax, %rax
cmovgq %rax, %rsi
movq %rbx, %rdi
addq $0x10, %rdi
callq 0x2110
leaq 0x1b3d3(%rip), %rsi     # 0xba299
movq %rbx, %rdi
callq 0x18fba
leaq 0xe8(%rsp), %rbx
movq %rbx, %rdi
callq 0xbfd8
leaq 0x78(%rsp), %r15
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x9eef9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
pxor %xmm0, %xmm0
movdqa %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x70(%rsp), %rcx
leaq 0xf0(%rsp), %rax
movq %rcx, -0x8(%rax)
movl $0x9, %ecx
movq %rax, %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0xd8(%rsp), %rsi
movq %rbx, (%rsi)
movq %r14, 0x8(%rsi)
movq %rax, %rdi
callq 0x1f012
leaq 0x58(%rsp), %rdi
callq 0xd206
addq $0x278, %rsp            # imm = 0x278
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9efa9
jmp 0x9ef94
jmp 0x9ef94
jmp 0x9ef6a
movq %rax, %rbx
jmp 0x9ef7a
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0xbfd8
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x9ef97
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x9ef97
jmp 0x9efa9
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0xd206
movq %rbx, %rdi
callq 0x2300
movq %rax, %rdi
callq 0xc0a9