// File: /workspace/github_cpp_makefile_star2_O2/dsharlet[P]array/test/shape.cpp
// Function: void nda::test_all_unknown_strides<2ul>()
void test_all_unknown_strides() {
  std::array<dim<>, rank> a;
  std::array<dim<>, rank> b;
  index_t stride = 1;
  for (size_t d = 0; d < rank; d++) {
    a[d] = dim<>(d);
    b[d] = a[d];
    b[d].set_stride(stride);
    stride *= std::max(static_cast<index_t>(1), a[d].extent());
  }
  shape_of_rank<rank> s_all_unknown(internal::array_to_tuple(a));
  shape_of_rank<rank> s_all_unknown_resolved(internal::array_to_tuple(b));
  s_all_unknown.resolve();
  s_all_unknown_resolved.resolve();
  ASSERT_EQ(s_all_unknown, s_all_unknown_resolved);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x288, %rsp            # imm = 0x288
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
xorps %xmm0, %xmm0
leaq 0x28(%rsp), %rcx
movaps %xmm0, -0x18(%rcx)
movq %rdx, -0x8(%rcx)
movups %xmm0, (%rcx)
movq %rdx, 0x10(%rcx)
leaq 0x58(%rsp), %rax
movaps %xmm0, -0x18(%rax)
movq %rdx, -0x8(%rax)
movups %xmm0, (%rax)
movq %rdx, 0x10(%rax)
xorl %esi, %esi
xorl %edi, %edi
cmpq $0x2, %rdi
je 0x78f76
andq $0x0, 0x10(%rsp,%rsi)
movq %rdi, 0x18(%rsp,%rsi)
movq %rdx, 0x20(%rsp,%rsi)
movups 0x10(%rsp,%rsi), %xmm0
movups %xmm0, 0x40(%rsp,%rsi)
movq $0x1, 0x50(%rsp,%rsi)
incq %rdi
addq $0x18, %rsi
jmp 0x78f44
movq 0x10(%rcx), %rdx
leaq 0xf0(%rsp), %rbx
movq %rdx, 0x10(%rbx)
movups (%rcx), %xmm0
movaps 0x10(%rsp), %xmm1
movups %xmm1, 0x18(%rbx)
movq 0x20(%rsp), %rcx
movq %rcx, 0x28(%rbx)
leaq 0xc0(%rsp), %r14
movaps %xmm0, (%r14)
movq 0x10(%rbx), %rcx
movq %rcx, 0x10(%r14)
movq 0x18(%rbx), %rcx
movq %rcx, 0x18(%r14)
movq 0x20(%rbx), %rcx
movq %rcx, 0x20(%r14)
movq 0x28(%rbx), %rcx
movq %rcx, 0x28(%r14)
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rbx)
movups (%rax), %xmm0
movaps %xmm0, (%rbx)
movaps 0x40(%rsp), %xmm1
movups %xmm1, 0x18(%rbx)
movq 0x50(%rsp), %rax
movq %rax, 0x28(%rbx)
leaq 0x90(%rsp), %r15
movaps %xmm0, (%r15)
movq 0x10(%rbx), %rax
movq %rax, 0x10(%r15)
movq 0x18(%rbx), %rax
movq %rax, 0x18(%r15)
movq 0x20(%rbx), %rax
movq %rax, 0x20(%r15)
movq 0x28(%rbx), %rax
movq %rax, 0x28(%r15)
movq %r14, %rdi
callq 0x8e70
movq %r15, %rdi
callq 0x8e70
movq %r14, %rdi
movq %r15, %rsi
callq 0x15a78
movl %eax, %ebp
leaq 0x320b9(%rip), %rsi     # 0xab0f0
leaq 0x70(%rsp), %r14
leaq 0xf(%rsp), %rdx
movq %r14, %rdi
callq 0x66a0
movzbl %bpl, %esi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x6894
leaq 0x145e8(%rip), %rsi     # 0x8d647
leaq 0xf0(%rsp), %rdi
callq 0x106fe
leaq 0x320a5(%rip), %rsi     # 0xab118
movq %rax, %rdi
callq 0x1085e
leaq 0x18570(%rip), %rsi     # 0x915f2
movq %rax, %rdi
callq 0x106fe
leaq 0xc0(%rsp), %rsi
movq %rax, %rdi
callq 0x771be
leaq 0x145a6(%rip), %rsi     # 0x8d647
movq %rax, %rdi
callq 0x106fe
leaq 0x32051(%rip), %rsi     # 0xab101
movq %rax, %rdi
callq 0x11256
leaq 0x18533(%rip), %rsi     # 0x915f2
movq %rax, %rdi
callq 0x106fe
leaq 0x90(%rsp), %rsi
movq %rax, %rdi
callq 0x771be
leaq 0x2c1c4(%rip), %rsi     # 0xa52a2
movq %rax, %rdi
callq 0x106fe
leaq 0xf0(%rsp), %rdi
callq 0x68d4
leaq 0x70(%rsp), %rdi
callq 0x2090
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x79120
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x68d4
leaq 0x70(%rsp), %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x22f0
movq %rax, %rdi
callq 0x6bba