// File: /workspace/github_cpp_makefile_star2_O2/kdungs[P]cpp-prelude/test_prelude.cc
// Function: test_span()
auto test_span() -> void {
  using Prelude::span;
  auto expectL = std::vector<int>{1, 2, 3, 4};
  auto expectR = std::vector<int>{5, 6, 7, 8};
  std::vector<int> resultL, resultR;
  std::tie(resultL, resultR) = span([](int x) { return x < 5; },
                                    std::vector<int>{1, 2, 3, 4, 5, 6, 7, 8});
  assert(resultL == expectL);
  assert(resultR == expectR);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x110, %rsp            # imm = 0x110
movaps 0x4c91(%rip), %xmm0     # 0x9010
leaq 0xe0(%rsp), %rbx
movaps %xmm0, (%rbx)
leaq 0x70(%rsp), %rdi
pushq $0x4
popq %r14
leaq 0xa0(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x55b0
movaps 0x4c93(%rip), %xmm0     # 0x9040
movaps %xmm0, (%rbx)
leaq 0x58(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
leaq 0xa0(%rsp), %rcx
movq %r14, %rdx
callq 0x55b0
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
andq $0x0, 0x50(%rsp)
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
movups 0x5817(%rip), %xmm0     # 0x9c04
leaq 0xa0(%rsp), %rsi
movaps %xmm0, 0x10(%rsi)
movups 0x57f4(%rip), %xmm0     # 0x9bf4
movaps %xmm0, (%rsi)
leaq 0x28(%rsp), %rdi
pushq $0x8
popq %rdx
leaq 0xd(%rsp), %rcx
callq 0x55b0
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rax
subq %rsi, %rax
sarq $0x2, %rax
movq %rsi, %rbx
testq %rax, %rax
jle 0x4456
movq %rax, %rcx
shrq %rcx
movq %rcx, %rdx
notq %rdx
addq %rax, %rdx
leaq (%rbx,%rcx,4), %rax
addq $0x4, %rax
cmpl $0x5, -0x4(%rax)
cmovlq %rax, %rbx
cmovgeq %rcx, %rdx
movq %rdx, %rax
jmp 0x4429
leaq 0x88(%rsp), %rdi
leaq 0xf(%rsp), %rcx
movq %rbx, %rdx
callq 0x6d6a
movq 0x30(%rsp), %rdx
leaq 0xc8(%rsp), %rdi
leaq 0xe(%rsp), %rcx
movq %rbx, %rsi
callq 0x6d6a
leaq 0xe0(%rsp), %rbx
leaq 0x88(%rsp), %r14
leaq 0xc8(%rsp), %r15
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x74a8
movq %r15, %rdi
callq 0x62fa
movq %r14, %rdi
callq 0x62fa
leaq 0x10(%rsp), %rax
movq %rax, (%r14)
leaq 0x40(%rsp), %r15
movq %r15, 0x8(%r14)
leaq 0x88(%rsp), %rdi
movq %rbx, %rsi
callq 0x5a38
movq %rbx, %rdi
callq 0x5a4e
leaq 0x28(%rsp), %rdi
callq 0x62fa
leaq 0x70(%rsp), %rsi
movq %r15, %rdi
callq 0x5670
testb %al, %al
je 0x4547
leaq 0x10(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x5670
testb %al, %al
je 0x4566
leaq 0x10(%rsp), %rdi
callq 0x62fa
leaq 0x40(%rsp), %rdi
callq 0x62fa
leaq 0x58(%rsp), %rdi
callq 0x62fa
leaq 0x70(%rsp), %rdi
callq 0x62fa
addq $0x110, %rsp            # imm = 0x110
popq %rbx
popq %r14
popq %r15
retq
leaq 0x4fec(%rip), %rdi      # 0x953a
leaq 0x4b1a(%rip), %rsi      # 0x906f
leaq 0x5044(%rip), %rcx      # 0x95a0
movl $0x109, %edx            # imm = 0x109
callq 0x20c0
leaq 0x4ff4(%rip), %rdi      # 0x9561
leaq 0x4afb(%rip), %rsi      # 0x906f
leaq 0x5025(%rip), %rcx      # 0x95a0
movl $0x10a, %edx            # imm = 0x10A
callq 0x20c0
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x62fa
jmp 0x459a
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x62fa
jmp 0x45b0
jmp 0x45ad
movq %rax, %rbx
jmp 0x45ce
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x62fa
leaq 0x40(%rsp), %rdi
callq 0x62fa
leaq 0x58(%rsp), %rdi
callq 0x62fa
leaq 0x70(%rsp), %rdi
callq 0x62fa
movq %rbx, %rdi
callq 0x21d0