// File: /workspace/github_cpp_makefile_star2_O1/halfflat[P]tinyopt/test/test_sink.cc
// Function: sink_action_implicit_Test::TestBody()
TEST(sink, action_implicit) {
    int n = 0;
    auto setter = [&n](int y) { n = y; };

    auto a = to::action(setter);
    EXPECT_TRUE(a("17"));
    EXPECT_EQ(17, n);

    EXPECT_FALSE(a("fishsticks"));
    EXPECT_EQ(17, n);

    int y = 0;
    auto voidsetter = [&y]() { ++y; };

    auto b = to::action(voidsetter);
    EXPECT_TRUE(b(nullptr));
    EXPECT_EQ(1, y);
    EXPECT_TRUE(b("wizard"));
    EXPECT_EQ(2, y);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xa8, %rsp
leaq 0x6c(%rsp), %rax
movl $0x0, (%rax)
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x90(%rsp)
movq %rax, 0x80(%rsp)
leaq 0x1c05(%rip), %rax      # 0x15206
movq %rax, 0x98(%rsp)
leaq 0x1c2e(%rip), %rax      # 0x1523e
movq %rax, 0x90(%rsp)
leaq 0x5ab0a(%rip), %rdx     # 0x6e129
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1597c
movb 0x40(%rsp), %al
cmpb $0x1, %al
jne 0x13644
movl 0x44(%rsp), %ecx
movq 0x80(%rsp), %rdx
movl %ecx, (%rdx)
leaq 0x28(%rsp), %r14
movb %al, -0x8(%r14)
movq $0x0, (%r14)
testb %al, %al
jne 0x136ee
leaq 0x10(%rsp), %rdi
callq 0x4e2e8
leaq 0x5ab37(%rip), %rdx     # 0x6e1a4
leaq 0x5aa92(%rip), %rcx     # 0x6e106
leaq 0x5aa91(%rip), %r8      # 0x6e10c
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x48021
movq 0x40(%rsp), %r8
leaq 0x5aa1f(%rip), %rdx     # 0x6e0b5
leaq 0x8(%rsp), %rdi
movl $0x1, %esi
movl $0x4b, %ecx
callq 0x4a84c
leaq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x481aa
leaq 0x8(%rsp), %rdi
callq 0x4a8b8
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x136de
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x136ee
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0x13700
movq %r14, %rdi
callq 0x156d0
leaq 0x20(%rsp), %rcx
movl $0x11, (%rcx)
leaq 0x5aa17(%rip), %rsi     # 0x6e129
leaq 0x60ec8(%rip), %rdx     # 0x745e1
leaq 0x40(%rsp), %rdi
leaq 0x6c(%rsp), %r8
callq 0x15aba
cmpb $0x0, 0x40(%rsp)
jne 0x13793
leaq 0x20(%rsp), %rdi
callq 0x4e2e8
movq 0x48(%rsp), %rax
testq %rax, %rax
je 0x13748
movq (%rax), %r8
jmp 0x1374f
leaq 0x5d8a9(%rip), %r8      # 0x70ff8
leaq 0x5a95f(%rip), %rdx     # 0x6e0b5
leaq 0x10(%rsp), %rdi
movl $0x1, %esi
movl $0x4c, %ecx
callq 0x4a84c
leaq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x481aa
leaq 0x10(%rsp), %rdi
callq 0x4a8b8
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x13793
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x48(%rsp), %rsi
testq %rsi, %rsi
je 0x137a7
leaq 0x48(%rsp), %rdi
callq 0x156d0
leaq 0x5a9fe(%rip), %rax     # 0x6e1ac
movq %rax, 0x40(%rsp)
cmpq $0x0, 0x90(%rsp)
je 0x13be1
leaq 0x80(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq *0x18(%rdi)
movl %eax, %ecx
xorb $0x1, %cl
leaq 0x28(%rsp), %r14
movb %cl, -0x8(%r14)
movq $0x0, (%r14)
testb %al, %al
je 0x13881
leaq 0x10(%rsp), %rdi
callq 0x4e2e8
leaq 0x5a9b7(%rip), %rdx     # 0x6e1b7
leaq 0x5a905(%rip), %rcx     # 0x6e10c
leaq 0x5a8f8(%rip), %r8      # 0x6e106
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x48021
movq 0x40(%rsp), %r8
leaq 0x5a88c(%rip), %rdx     # 0x6e0b5
leaq 0x8(%rsp), %rdi
movl $0x1, %esi
movl $0x4e, %ecx
callq 0x4a84c
leaq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x481aa
leaq 0x8(%rsp), %rdi
callq 0x4a8b8
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13871
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x13881
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0x13893
movq %r14, %rdi
callq 0x156d0
leaq 0x20(%rsp), %rcx
movl $0x11, (%rcx)
leaq 0x5a884(%rip), %rsi     # 0x6e129
leaq 0x60d35(%rip), %rdx     # 0x745e1
leaq 0x40(%rsp), %rdi
leaq 0x6c(%rsp), %r8
callq 0x15aba
cmpb $0x0, 0x40(%rsp)
jne 0x13926
leaq 0x20(%rsp), %rdi
callq 0x4e2e8
movq 0x48(%rsp), %rax
testq %rax, %rax
je 0x138db
movq (%rax), %r8
jmp 0x138e2
leaq 0x5d716(%rip), %r8      # 0x70ff8
leaq 0x5a7cc(%rip), %rdx     # 0x6e0b5
leaq 0x10(%rsp), %rdi
movl $0x1, %esi
movl $0x4f, %ecx
callq 0x4a84c
leaq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x481aa
leaq 0x10(%rsp), %rdi
callq 0x4a8b8
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x13926
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x48(%rsp), %rsi
testq %rsi, %rsi
je 0x1393a
leaq 0x48(%rsp), %rdi
callq 0x156d0
leaq 0x7c(%rsp), %r8
movl $0x0, (%r8)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x50(%rsp)
movq %r8, 0x40(%rsp)
leaq 0x1905(%rip), %rax      # 0x15264
movq %rax, 0x58(%rsp)
leaq 0x1901(%rip), %rax      # 0x1526c
movq %rax, 0x50(%rsp)
movl $0x1, %eax
movl %eax, (%r8)
leaq 0x10(%rsp), %rcx
movl %eax, (%rcx)
leaq 0x5c649(%rip), %rsi     # 0x6ffcf
leaq 0x60596(%rip), %rdx     # 0x73f23
leaq 0x20(%rsp), %rdi
callq 0x15aba
cmpb $0x0, 0x20(%rsp)
jne 0x13a02
leaq 0x10(%rsp), %rdi
callq 0x4e2e8
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0x139b7
movq (%rax), %r8
jmp 0x139be
leaq 0x5d63a(%rip), %r8      # 0x70ff8
leaq 0x5a6f0(%rip), %rdx     # 0x6e0b5
leaq 0x8(%rsp), %rdi
movl $0x1, %esi
movl $0x56, %ecx
callq 0x4a84c
leaq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x481aa
leaq 0x8(%rsp), %rdi
callq 0x4a8b8
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x13a02
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0x13a16
leaq 0x28(%rsp), %rdi
callq 0x156d0
leaq 0x5a7aa(%rip), %rax     # 0x6e1c7
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x50(%rsp)
je 0x13be6
leaq 0x40(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq *0x18(%rdi)
leaq 0x18(%rsp), %r14
movb %al, -0x8(%r14)
movq $0x0, (%r14)
testb %al, %al
jne 0x13ae5
leaq 0x8(%rsp), %rdi
callq 0x4e2e8
leaq 0x5a76a(%rip), %rdx     # 0x6e1ce
leaq 0x5a69b(%rip), %rcx     # 0x6e106
leaq 0x5a69a(%rip), %r8      # 0x6e10c
leaq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x48021
movq 0x20(%rsp), %r8
leaq 0x5a628(%rip), %rdx     # 0x6e0b5
leaq 0x70(%rsp), %rdi
movl $0x1, %esi
movl $0x57, %ecx
callq 0x4a84c
leaq 0x70(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x481aa
leaq 0x70(%rsp), %rdi
callq 0x4a8b8
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13ad5
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x13ae5
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x18(%rsp), %rsi
testq %rsi, %rsi
je 0x13af7
movq %r14, %rdi
callq 0x156d0
leaq 0x10(%rsp), %rcx
movl $0x2, (%rcx)
leaq 0x5c4b6(%rip), %rsi     # 0x6ffbf
leaq 0x60413(%rip), %rdx     # 0x73f23
leaq 0x20(%rsp), %rdi
leaq 0x7c(%rsp), %r8
callq 0x15aba
cmpb $0x0, 0x20(%rsp)
jne 0x13b8a
leaq 0x10(%rsp), %rdi
callq 0x4e2e8
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0x13b3f
movq (%rax), %r8
jmp 0x13b46
leaq 0x5d4b2(%rip), %r8      # 0x70ff8
leaq 0x5a568(%rip), %rdx     # 0x6e0b5
leaq 0x8(%rsp), %rdi
movl $0x1, %esi
movl $0x58, %ecx
callq 0x4a84c
leaq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x481aa
leaq 0x8(%rsp), %rdi
callq 0x4a8b8
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x13b8a
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0x13b9e
leaq 0x28(%rsp), %rdi
callq 0x156d0
movq 0x50(%rsp), %rax
testq %rax, %rax
je 0x13bb7
leaq 0x40(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x90(%rsp), %rax
testq %rax, %rax
je 0x13bd6
leaq 0x80(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $0xa8, %rsp
popq %rbx
popq %r14
retq
callq 0xd1f0
callq 0xd1f0
jmp 0x13c67
jmp 0x13c76
jmp 0x13c94
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x4a8b8
jmp 0x13c09
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13c29
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x13c29
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x13c39
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
jmp 0x13c47
movq %rax, %rbx
movq 0x18(%rsp), %rsi
testq %rsi, %rsi
je 0x13c59
movq %r14, %rdi
callq 0x156d0
movq $0x0, 0x18(%rsp)
jmp 0x13d9d
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4a8b8
jmp 0x13c79
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x13c89
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x10(%rsp)
jmp 0x13c97
movq %rax, %rbx
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0x13cab
leaq 0x28(%rsp), %rdi
callq 0x156d0
movq $0x0, 0x28(%rsp)
jmp 0x13d9d
jmp 0x13ccd
jmp 0x13cdc
jmp 0x13cfa
jmp 0x13d1f
jmp 0x13d2e
jmp 0x13d4e
jmp 0x13d6c
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4a8b8
jmp 0x13cdf
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x13cef
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x20(%rsp)
jmp 0x13cfd
movq %rax, %rbx
movq 0x48(%rsp), %rsi
testq %rsi, %rsi
je 0x13d11
leaq 0x48(%rsp), %rdi
callq 0x156d0
movq $0x0, 0x48(%rsp)
jmp 0x13dbb
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4a8b8
jmp 0x13d31
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13d51
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x13d51
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x13d61
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x10(%rsp)
jmp 0x13d6f
movq %rax, %rbx
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0x13d81
movq %r14, %rdi
callq 0x156d0
movq $0x0, 0x28(%rsp)
jmp 0x13dbb
jmp 0x13de4
jmp 0x13de4
jmp 0x13d9a
jmp 0x13d9a
jmp 0x13db8
jmp 0x13db8
jmp 0x13db8
movq %rax, %rbx
movq 0x50(%rsp), %rax
testq %rax, %rax
je 0x13dbb
leaq 0x40(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x13dbb
movq %rax, %rbx
movq 0x90(%rsp), %rax
testq %rax, %rax
je 0x13dda
leaq 0x80(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0xda70
jmp 0x13de4
movq %rax, %rdi
callq 0x15674