// File: /workspace/github_cpp_makefile_star2_O2/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 $0x258, %rsp            # imm = 0x258
leaq 0xc0(%rsp), %rbx
pushq $0x4
popq %rsi
pushq $0x8
popq %rdx
pushq $0x9
popq %rcx
movq %rbx, %rdi
callq 0x10810
leaq 0x58(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6750
andq $0x0, 0x10(%rsp)
movq 0x20(%r14), %rax
movq 0x28(%r14), %rsi
cmpq $0x3, %rsi
pushq $0x3
popq %rcx
cmovlq %rsi, %rcx
leaq (%rsi,%rax), %rdx
decq %rdx
addq %rax, %rsi
movq %rsi, 0x30(%rsp)
leaq 0x38(%rsp), %rsi
movq %rax, (%rsi)
movq %rcx, 0x8(%rsi)
movq %rdx, 0x10(%rsi)
xorl %r15d, %r15d
leaq 0x18(%rsp), %r12
movq 0x38(%rsp), %r13
cmpq 0x30(%rsp), %r13
je 0x88b13
movq 0x40(%rsp), %rbp
movq 0x90(%rsp), %rax
movq 0x98(%rsp), %r14
cmpq $0x4, %r14
pushq $0x4
popq %rcx
cmovlq %r14, %rcx
leaq (%r14,%rax), %rdx
decq %rdx
addq %rax, %r14
movq %rax, 0x18(%rsp)
movq %rcx, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x18(%rsp), %rdx
cmpq %r14, %rdx
je 0x88b04
movq 0x20(%rsp), %rcx
movq %rbx, %rdi
leaq 0x58(%rsp), %rsi
movq %r13, %r8
movq %rbp, %r9
callq 0x89874
movq 0xe8(%rsp), %rax
imulq 0x100(%rsp), %rax
imulq 0xd0(%rsp), %rax
testq %rax, %rax
jg 0x88ae8
xorl %eax, %eax
addq %rax, %r15
movq %r15, 0x10(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x516ef
movq %r12, %rdi
callq 0x6a816
jmp 0x88aa5
leaq 0x38(%rsp), %rdi
callq 0x6a816
jmp 0x88a5c
movq 0xb0(%rsp), %r12
movq 0x80(%rsp), %r14
movq 0x98(%rsp), %rbx
leaq 0x23548(%rip), %rsi     # 0xac07a
leaq 0x38(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x66a0
imulq %r12, %rbx
imulq %r14, %rbx
xorl %eax, %eax
testq %rbx, %rbx
cmovgq %rbx, %rax
xorl %esi, %esi
cmpq %rax, %r15
sete %sil
leaq 0xc0(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x6894
leaq 0x4ad3(%rip), %rsi      # 0x8d647
leaq 0xc0(%rsp), %rdi
callq 0x106fe
leaq 0x23951(%rip), %rsi     # 0xac4d9
movq %rax, %rdi
callq 0x107d8
leaq 0x8a5b(%rip), %rsi      # 0x915f2
movq %rax, %rdi
callq 0x106fe
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0x11052
leaq 0x4a94(%rip), %rsi      # 0x8d647
movq %rax, %rdi
callq 0x106fe
leaq 0x234c6(%rip), %rsi     # 0xac088
movq %rax, %rdi
callq 0x118ac
leaq 0x8a21(%rip), %rsi      # 0x915f2
movq %rax, %rdi
callq 0x106fe
movq 0x98(%rsp), %rcx
imulq 0xb0(%rsp), %rcx
imulq 0x80(%rsp), %rcx
xorl %edx, %edx
testq %rcx, %rcx
cmovgq %rcx, %rdx
leaq 0x18(%rsp), %rsi
movq %rdx, (%rsi)
movq %rax, %rdi
callq 0x11052
leaq 0x1c68f(%rip), %rsi     # 0xa52a2
movq %rax, %rdi
callq 0x106fe
leaq 0xc0(%rsp), %rdi
callq 0x68d4
leaq 0x38(%rsp), %rdi
callq 0x2090
xorps %xmm0, %xmm0
leaq 0xc0(%rsp), %rsi
movaps %xmm0, (%rsi)
andq $0x0, 0x10(%rsi)
leaq 0x58(%rsp), %rdi
callq 0x1132f
leaq 0x58(%rsp), %rdi
callq 0x69c2
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x88c9e
jmp 0x88c9e
jmp 0x88c76
movq %rax, %rbx
jmp 0x88c86
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x68d4
leaq 0x38(%rsp), %rdi
callq 0x2090
jmp 0x88ca1
movq %rax, %rdi
callq 0x6bba
jmp 0x88c9e
jmp 0x88c9e
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x69c2
movq %rbx, %rdi
callq 0x22f0