// File: kdungs[P]cpp-prelude/test_prelude.cc
// Function: test_zipWith3()
auto test_zipWith3() -> void {
  using Prelude::zipWith3;
  auto expect = std::vector<std::string>{"aaa", "", "ccccc"};
  auto result =
      zipWith3([](int x, bool y, char z) { return y ? std::string(x, z) : ""; },
               std::vector<int>{3, 4, 5}, std::list<bool>{true, false, true},
               std::list<char>{'a', 'b', 'c'});
  assert(result == expect);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x200, %rsp            # imm = 0x200
movb $0x1, -0xa7(%rbp)
leaq -0x88(%rbp), %rax
movq %rax, -0x170(%rbp)
movq %rax, -0x90(%rbp)
leaq -0x91(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x22c0
movq -0x170(%rbp), %rdi
movq -0x168(%rbp), %rdx
leaq 0x16eee(%rip), %rsi     # 0x1e85d
callq 0xc0b0
jmp 0x7976
leaq -0x68(%rbp), %rax
movq %rax, -0x180(%rbp)
movq %rax, -0x90(%rbp)
leaq -0xa5(%rbp), %rdi
movq %rdi, -0x178(%rbp)
callq 0x22c0
movq -0x180(%rbp), %rdi
movq -0x178(%rbp), %rdx
leaq 0x16f12(%rip), %rsi     # 0x1e8c2
callq 0xc0b0
jmp 0x79b7
leaq -0x48(%rbp), %rax
movq %rax, -0x190(%rbp)
movq %rax, -0x90(%rbp)
leaq -0xa6(%rbp), %rdi
movq %rdi, -0x188(%rbp)
callq 0x22c0
movq -0x190(%rbp), %rdi
movq -0x188(%rbp), %rdx
leaq 0x16e70(%rip), %rsi     # 0x1e861
callq 0xc0b0
jmp 0x79f8
movb $0x0, -0xa7(%rbp)
leaq -0x88(%rbp), %rax
movq %rax, -0x28(%rbp)
movq $0x3, -0x20(%rbp)
leaq -0xa8(%rbp), %rdi
movq %rdi, -0x198(%rbp)
callq 0xc160
movq -0x198(%rbp), %rcx
movq -0x28(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq -0x18(%rbp), %rdi
callq 0xc180
jmp 0x7a3f
leaq -0xa8(%rbp), %rdi
callq 0xc200
leaq -0x88(%rbp), %rax
movq %rax, -0x1a8(%rbp)
addq $0x60, %rax
movq %rax, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x1b0(%rbp)
callq 0x2100
movq -0x1a8(%rbp), %rcx
movq -0x1b0(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x1a0(%rbp)
jne 0x7a64
leaq -0xa6(%rbp), %rdi
callq 0x21e0
leaq -0xa5(%rbp), %rdi
callq 0x21e0
leaq -0x91(%rbp), %rdi
callq 0x21e0
movl $0x3, -0xfc(%rbp)
movl $0x4, -0xf8(%rbp)
movl $0x5, -0xf4(%rbp)
leaq -0xfc(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq $0x3, -0xe8(%rbp)
leaq -0xfd(%rbp), %rdi
movq %rdi, -0x1b8(%rbp)
callq 0xa900
movq -0x1b8(%rbp), %rcx
movq -0xf0(%rbp), %rsi
movq -0xe8(%rbp), %rdx
leaq -0xe0(%rbp), %rdi
callq 0xa920
jmp 0x7b26
movb $0x1, -0x12b(%rbp)
movb $0x0, -0x12a(%rbp)
movb $0x1, -0x129(%rbp)
leaq -0x12b(%rbp), %rax
movq %rax, -0x128(%rbp)
movq $0x3, -0x120(%rbp)
leaq -0x12c(%rbp), %rdi
movq %rdi, -0x1c0(%rbp)
callq 0xa840
movq -0x1c0(%rbp), %rcx
movq -0x128(%rbp), %rsi
movq -0x120(%rbp), %rdx
leaq -0x118(%rbp), %rdi
callq 0xba90
jmp 0x7b8a
movb $0x61, -0x15b(%rbp)
movb $0x62, -0x15a(%rbp)
movb $0x63, -0x159(%rbp)
leaq -0x15b(%rbp), %rax
movq %rax, -0x158(%rbp)
movq $0x3, -0x150(%rbp)
leaq -0x15c(%rbp), %rdi
movq %rdi, -0x1c8(%rbp)
callq 0x22c0
movq -0x1c8(%rbp), %rcx
movq -0x158(%rbp), %rsi
movq -0x150(%rbp), %rdx
leaq -0x148(%rbp), %rdi
callq 0xc220
jmp 0x7bee
leaq -0xc0(%rbp), %rdi
leaq -0xc1(%rbp), %rsi
leaq -0xe0(%rbp), %rdx
leaq -0x118(%rbp), %rcx
leaq -0x148(%rbp), %r8
callq 0x7ec0
jmp 0x7c18
leaq -0x148(%rbp), %rdi
callq 0xc2d0
leaq -0x15c(%rbp), %rdi
callq 0x21e0
leaq -0x118(%rbp), %rdi
callq 0xbb40
leaq -0x12c(%rbp), %rdi
callq 0xa8e0
leaq -0xe0(%rbp), %rdi
callq 0xa9a0
leaq -0xfd(%rbp), %rdi
callq 0xaa00
leaq -0xc0(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0xc2f0
movb %al, -0x1c9(%rbp)
jmp 0x7c78
movb -0x1c9(%rbp), %al
testb $0x1, %al
jne 0x7c84
jmp 0x7c89
jmp 0x7e8d
leaq 0x1661c(%rip), %rdi     # 0x1e2ac
leaq 0x165e4(%rip), %rsi     # 0x1e27b
movl $0x13d, %edx            # imm = 0x13D
leaq 0x16bc4(%rip), %rcx     # 0x1e867
callq 0x2110
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x7d6c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x7d60
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x7d54
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0xc200
leaq -0x88(%rbp), %rax
movq %rax, -0x1e0(%rbp)
addq $0x60, %rax
movq %rax, -0x1d8(%rbp)
movq -0x1d8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x1e8(%rbp)
callq 0x2100
movq -0x1e0(%rbp), %rcx
movq -0x1e8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x1d8(%rbp)
jne 0x7d21
jmp 0x7d54
leaq -0xa6(%rbp), %rdi
callq 0x21e0
leaq -0xa5(%rbp), %rdi
callq 0x21e0
leaq -0x91(%rbp), %rdi
callq 0x21e0
testb $0x1, -0xa7(%rbp)
jne 0x7d83
jmp 0x7dd0
movq -0x90(%rbp), %rax
leaq -0x88(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x1f0(%rbp)
je 0x7dce
movq -0x1f0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x1f8(%rbp)
callq 0x2100
movq -0x1f8(%rbp), %rax
leaq -0x88(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x1f0(%rbp)
jne 0x7d9d
jmp 0x7dd0
jmp 0x7eb4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x7e5f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x7e47
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
jmp 0x7e2f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x148(%rbp), %rdi
callq 0xc2d0
leaq -0x15c(%rbp), %rdi
callq 0x21e0
leaq -0x118(%rbp), %rdi
callq 0xbb40
leaq -0x12c(%rbp), %rdi
callq 0xa8e0
leaq -0xe0(%rbp), %rdi
callq 0xa9a0
leaq -0xfd(%rbp), %rdi
callq 0xaa00
jmp 0x7eab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0xc370
jmp 0x7eab
leaq -0xc0(%rbp), %rdi
callq 0xc370
leaq -0x18(%rbp), %rdi
callq 0xc370
addq $0x200, %rsp            # imm = 0x200
popq %rbp
retq
leaq -0x18(%rbp), %rdi
callq 0xc370
movq -0xa0(%rbp), %rdi
callq 0x22b0