// File: /workspace/github_cpp_makefile_star2_O1/dsharlet[P]array/test/shape.cpp
// Function: void nda::test_one_dense_stride<2ul>()
void test_one_dense_stride() {
  for (size_t known = 0; known < rank; known++) {
    std::array<dim<>, rank> a;
    for (size_t d = 0; d < rank; d++) {
      a[d] = dim<>(d + 1);
      if (d == known) {
        // This is the dimension we know.
        a[d].set_stride(1);
      }
    }
    shape_of_rank<rank> s_one_dense(internal::array_to_tuple(a));
    s_one_dense.resolve();
    ASSERT_EQ(s_one_dense.size(), factorial(rank));
    ASSERT_EQ(s_one_dense.dim(known).stride(), 1);
    ASSERT(s_one_dense.is_compact());
    ASSERT(s_one_dense.is_one_to_one());
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x578, %rsp            # imm = 0x578
movabsq $-0x8000000000000000, %r15 # imm = 0x8000000000000000
leaq 0x50(%rsp), %r12
movl $0x1, %r14d
leaq 0x40(%rsp), %rbp
xorl %ebx, %ebx
movq $0x0, 0x38(%rsp)
movl $0x10, %eax
xorps %xmm0, %xmm0
movups %xmm0, 0x80(%rsp,%rax)
movq %r15, 0x90(%rsp,%rax)
addq $0x18, %rax
cmpq $0x40, %rax
jne 0x8be53
movl $0x1, %eax
xorl %ecx, %ecx
movq $0x0, 0x90(%rsp,%rcx)
movq %rax, 0x98(%rsp,%rcx)
cmpq %rcx, %rbx
movq %r15, %rdx
cmoveq %r14, %rdx
movq %rdx, 0xa0(%rsp,%rcx)
addq $0x18, %rcx
incq %rax
cmpq $0x18, %rcx
je 0x8be74
leaq 0xa8(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0xd0(%rsp)
movups (%rcx), %xmm0
movaps %xmm0, 0xc0(%rsp)
movq 0xa0(%rsp), %rax
leaq 0xd8(%rsp), %rcx
movq %rax, 0x10(%rcx)
movups 0x90(%rsp), %xmm0
movups %xmm0, (%rcx)
movaps 0xc0(%rsp), %xmm0
movq 0xd0(%rsp), %rax
movq 0xd8(%rsp), %rcx
movaps 0xe0(%rsp), %xmm1
movaps %xmm0, (%rsp)
movq %rax, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
movaps %xmm1, 0x20(%rsp)
movq %rsp, %rdi
leaq 0x18(%rsp), %rsi
movq %rdi, %rdx
callq 0xe0a6
movq 0x8(%rsp), %r14
movq 0x20(%rsp), %r13
movq %r12, 0x40(%rsp)
movq %rbp, %rdi
leaq 0x31f12(%rip), %rsi     # 0xbde53
leaq 0x31f30(%rip), %rdx     # 0xbde78
callq 0xd0b8
movl $0x2, %edi
callq 0x82d11
imulq %r13, %r14
testq %r14, %r14
movl $0x0, %ecx
cmovleq %rcx, %r14
xorl %esi, %esi
cmpq %rax, %r14
sete %sil
leaq 0xc0(%rsp), %r13
movq %r13, %rdi
movq %rbp, %rdx
callq 0xbf0a
leaq 0x156ca(%rip), %r15     # 0xa1654
movq %r13, %rdi
movq %r15, %rsi
callq 0x18a16
movq %rax, %rdi
leaq 0x31eda(%rip), %rsi     # 0xbde79
callq 0x18c46
movq %rax, %rdi
leaq 0x1937c(%rip), %rsi     # 0xa532a
callq 0x18a16
movq %rax, %r14
cmpb $0x1, 0x188(%rax)
jne 0x8bfe2
movq 0x20(%rsp), %rsi
imulq 0x8(%rsp), %rsi
testq %rsi, %rsi
movl $0x0, %eax
cmovleq %rax, %rsi
movq %r14, %rdi
addq $0x10, %rdi
callq 0x2110
movq %r14, %rdi
movq %r15, %rsi
callq 0x18a16
movq %rax, %rdi
leaq 0x31e72(%rip), %rsi     # 0xbde69
callq 0x4a1d8
movq %rax, %rdi
leaq 0x19324(%rip), %rsi     # 0xa532a
callq 0x18a16
movq %rax, %r14
cmpb $0x1, 0x188(%rax)
jne 0x8c030
movl $0x2, %edi
callq 0x82d11
movq %r14, %rdi
addq $0x10, %rdi
movq %rax, %rsi
callq 0x2110
movq %r14, %rdi
leaq 0x2c32f(%rip), %rsi     # 0xb8369
callq 0x18a16
movq %r13, %rdi
callq 0xbf62
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x8c05e
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21f0
leaq 0x18(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x50(%rsp)
movups (%rcx), %xmm0
movaps %xmm0, 0x40(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x18(%r12)
movaps (%rsp), %xmm0
movups %xmm0, 0x8(%r12)
movq 0x38(%rsp), %rax
leaq (%rax,%rax,2), %rbp
movq 0x50(%rsp,%rbp,8), %r14
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
leaq 0x70(%rsp), %r15
movq %r15, %rdi
leaq 0x31dda(%rip), %rsi     # 0xbde8c
leaq 0x31df7(%rip), %rdx     # 0xbdeb0
callq 0xd0b8
xorl %esi, %esi
cmpq $0x1, %r14
sete %sil
movq %r13, %rdi
movq %r15, %rdx
callq 0xbf0a
movq %r13, %rdi
leaq 0x15577(%rip), %r15     # 0xa1654
movq %r15, %rsi
callq 0x18a16
movq %rax, %rdi
leaq 0x31dc2(%rip), %rsi     # 0xbdeb1
callq 0x5fc44
movq %rax, %rdi
leaq 0x1922c(%rip), %rsi     # 0xa532a
callq 0x18a16
movq %rax, %r14
leaq 0x18(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x50(%rsp)
movups (%rcx), %xmm0
movaps %xmm0, 0x40(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x18(%r12)
movaps (%rsp), %xmm0
movups %xmm0, 0x8(%r12)
cmpb $0x1, 0x188(%r14)
jne 0x8c14b
movq 0x50(%rsp,%rbp,8), %rsi
movq %r14, %rdi
addq $0x10, %rdi
callq 0x21b0
movq %r14, %rdi
movq %r15, %rsi
callq 0x18a16
movq %rax, %rdi
leaq 0x1c7fc(%rip), %rsi     # 0xa895c
callq 0x18a16
movq %rax, %rdi
leaq 0x191bb(%rip), %rsi     # 0xa532a
callq 0x18a16
movq %rax, %r14
cmpb $0x1, 0x188(%rax)
jne 0x8c191
movq %r14, %rdi
addq $0x10, %rdi
movl $0x1, %esi
callq 0x22f0
movq %r14, %rdi
leaq 0x2c1ce(%rip), %rsi     # 0xb8369
callq 0x18a16
movq %r13, %rdi
callq 0xbf62
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x8c1ca
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x20(%rsp), %rbp
movq 0x28(%rsp), %r13
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %r12
leaq 0xd0(%rsp), %rax
movq %rax, 0xc0(%rsp)
leaq 0xc0(%rsp), %r15
movq %r15, %rdi
leaq 0x31cd1(%rip), %rsi     # 0xbded1
leaq 0x31ce2(%rip), %rdx     # 0xbdee9
callq 0xd0b8
movq %r12, %rax
negq %rax
cmovsq %r12, %rax
leaq -0x1(%r14), %rcx
imulq %rax, %rcx
movq %r13, %rax
negq %rax
cmovsq %r13, %rax
leaq -0x1(%rbp), %rdx
imulq %rax, %rdx
addq %rcx, %rdx
movq $-0x1, %rax
cmovsq %rax, %rdx
incq %rdx
imulq %rbp, %r14
testq %r14, %r14
movl $0x0, %eax
cmovleq %rax, %r14
xorl %esi, %esi
cmpq %r14, %rdx
setbe %sil
leaq 0x3e8(%rsp), %r14
movq %r14, %rdi
movq %r15, %rdx
callq 0xbf0a
movq %r14, %rdi
callq 0xbf62
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x8c29a
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x20(%rsp), %rbp
movq 0x28(%rsp), %r13
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %r12
leaq 0xd0(%rsp), %rax
movq %rax, 0xc0(%rsp)
leaq 0xc0(%rsp), %r15
movq %r15, %rdi
leaq 0x31c1a(%rip), %rsi     # 0xbdeea
leaq 0x31c2e(%rip), %rdx     # 0xbdf05
callq 0xd0b8
movq %r12, %rax
negq %rax
cmovsq %r12, %rax
leaq -0x1(%r14), %rcx
imulq %rax, %rcx
movq %r13, %rax
negq %rax
cmovsq %r13, %rax
leaq -0x1(%rbp), %rdx
imulq %rax, %rdx
addq %rcx, %rdx
movq $-0x1, %rax
cmovsq %rax, %rdx
incq %rdx
imulq %rbp, %r14
testq %r14, %r14
movl $0x0, %eax
cmovleq %rax, %r14
xorl %esi, %esi
cmpq %r14, %rdx
setae %sil
leaq 0x258(%rsp), %r14
movq %r14, %rdi
movq %r15, %rdx
callq 0xbf0a
movq %r14, %rdi
callq 0xbf62
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
leaq 0x50(%rsp), %r12
movl $0x1, %r14d
leaq 0x40(%rsp), %rbp
movabsq $-0x8000000000000000, %r15 # imm = 0x8000000000000000
je 0x8c384
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x38(%rsp), %rcx
leaq 0x1(%rcx), %rax
addq $0x18, %rbx
testq %rcx, %rcx
movq %rax, 0x38(%rsp)
je 0x8be4b
addq $0x578, %rsp            # imm = 0x578
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8c3b7
jmp 0x8c3b7
jmp 0x8c3b7
movq %rax, %rbx
jmp 0x8c448
jmp 0x8c3f5
jmp 0x8c421
jmp 0x8c3ca
movq %rax, %rbx
jmp 0x8c405
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x8c448
movq 0xd0(%rsp), %rsi
jmp 0x8c440
movq %rax, %rbx
jmp 0x8c431
jmp 0x8c3f5
jmp 0x8c421
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0xbf62
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x8c448
movq 0x80(%rsp), %rsi
jmp 0x8c440
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0xbf62
movq 0x40(%rsp), %rdi
cmpq %r12, %rdi
je 0x8c448
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x2300
movq %rax, %rdi
callq 0xc036