// File: kdungs[P]cpp-prelude/test_prelude.cc
// Function: test_concat()
auto test_concat() -> void {
  using Prelude::concat;
  auto expect = std::vector<int>{1, 2, 3, 4, 5, 6, 7, 8, 9};
  auto result = concat(
      std::array<std::vector<int>, 3>{{{1, 2, 3}, {4, 5}, {6, 7, 8, 9}}});
  assert(result == expect);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movups 0x1968a(%rip), %xmm0    # 0x1e0ac
movaps %xmm0, -0x40(%rbp)
movups 0x1966f(%rip), %xmm0    # 0x1e09c
movaps %xmm0, -0x50(%rbp)
movl $0x9, -0x30(%rbp)
leaq -0x50(%rbp), %rax
movq %rax, -0x28(%rbp)
movq $0x9, -0x20(%rbp)
leaq -0x51(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0xa900
movq -0x140(%rbp), %rcx
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq -0x18(%rbp), %rdi
callq 0xa920
jmp 0x4a72
leaq -0x51(%rbp), %rdi
callq 0xaa00
leaq -0xc8(%rbp), %rax
movq %rax, -0x150(%rbp)
movb $0x1, -0x132(%rbp)
movq %rax, -0xd0(%rbp)
movl $0x1, -0xec(%rbp)
movl $0x2, -0xe8(%rbp)
movl $0x3, -0xe4(%rbp)
leaq -0xec(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq $0x3, -0xd8(%rbp)
leaq -0xed(%rbp), %rdi
movq %rdi, -0x148(%rbp)
callq 0xa900
movq -0x150(%rbp), %rdi
movq -0x148(%rbp), %rcx
movq -0xe0(%rbp), %rsi
movq -0xd8(%rbp), %rdx
callq 0xa920
jmp 0x4b04
movq -0x150(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x160(%rbp)
movq %rax, -0xd0(%rbp)
movl $0x4, -0x108(%rbp)
movl $0x5, -0x104(%rbp)
leaq -0x108(%rbp), %rax
movq %rax, -0x100(%rbp)
movq $0x2, -0xf8(%rbp)
leaq -0x109(%rbp), %rdi
movq %rdi, -0x158(%rbp)
callq 0xa900
movq -0x160(%rbp), %rdi
movq -0x158(%rbp), %rcx
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdx
callq 0xa920
jmp 0x4b80
movq -0x150(%rbp), %rax
addq $0x30, %rax
movq %rax, -0x170(%rbp)
movq %rax, -0xd0(%rbp)
movl $0x6, -0x130(%rbp)
movl $0x7, -0x12c(%rbp)
movl $0x8, -0x128(%rbp)
movl $0x9, -0x124(%rbp)
leaq -0x130(%rbp), %rax
movq %rax, -0x120(%rbp)
movq $0x4, -0x118(%rbp)
leaq -0x131(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0xa900
movq -0x170(%rbp), %rdi
movq -0x168(%rbp), %rcx
movq -0x120(%rbp), %rsi
movq -0x118(%rbp), %rdx
callq 0xa920
jmp 0x4c10
movb $0x0, -0x132(%rbp)
leaq -0x80(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0xb200
jmp 0x4c29
leaq -0xc8(%rbp), %rdi
callq 0xb370
leaq -0x131(%rbp), %rdi
callq 0xaa00
leaq -0x109(%rbp), %rdi
callq 0xaa00
leaq -0xed(%rbp), %rdi
callq 0xaa00
leaq -0x80(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0xabe0
movb %al, -0x171(%rbp)
jmp 0x4c6e
movb -0x171(%rbp), %al
testb $0x1, %al
jne 0x4c7a
jmp 0x4c7f
jmp 0x4d8f
leaq 0x19626(%rip), %rdi     # 0x1e2ac
leaq 0x195ee(%rip), %rsi     # 0x1e27b
movl $0xac, %edx
leaq 0x19a3e(%rip), %rcx     # 0x1e6d7
callq 0x2110
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x51(%rbp), %rdi
callq 0xaa00
jmp 0x4db3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x4d12
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x4d06
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x4cfa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0xb370
leaq -0x131(%rbp), %rdi
callq 0xaa00
leaq -0x109(%rbp), %rdi
callq 0xaa00
leaq -0xed(%rbp), %rdi
callq 0xaa00
testb $0x1, -0x132(%rbp)
jne 0x4d29
jmp 0x4d76
movq -0x150(%rbp), %rcx
movq -0xd0(%rbp), %rax
cmpq %rax, %rcx
movq %rax, -0x180(%rbp)
je 0x4d74
movq -0x180(%rbp), %rdi
addq $-0x18, %rdi
movq %rdi, -0x188(%rbp)
callq 0xa9a0
movq -0x150(%rbp), %rcx
movq -0x188(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x180(%rbp)
jne 0x4d43
jmp 0x4d76
jmp 0x4daa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x80(%rbp), %rdi
callq 0xa9a0
jmp 0x4daa
leaq -0x80(%rbp), %rdi
callq 0xa9a0
leaq -0x18(%rbp), %rdi
callq 0xa9a0
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
leaq -0x18(%rbp), %rdi
callq 0xa9a0
movq -0x60(%rbp), %rdi
callq 0x22b0
nopl (%rax)