// File: /workspace/github_cpp_makefile_star2_O1/halfflat[P]tinyopt/test/test_sink.cc
// Function: sink_optionalrefctor_Test::TestBody()
TEST(sink, optionalrefctor) {
    std::optional<int> oa;
    to::sink soa(oa);

    ASSERT_FALSE(oa);
    EXPECT_FALSE(soa("foo"));
    EXPECT_FALSE(oa);

    EXPECT_TRUE(soa("312"));
    EXPECT_TRUE(oa);
    EXPECT_EQ(*oa, 312);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x78, %rsp
leaq 0x48(%rsp), %rax
movb $0x0, 0x4(%rax)
xorps %xmm0, %xmm0
leaq 0x58(%rsp), %rsi
movaps %xmm0, -0x8(%rsi)
movaps %xmm0, 0x8(%rsi)
movq %rax, -0x8(%rsi)
leaq 0x2ff7(%rip), %rax      # 0x15ca8
movq %rax, 0x10(%rsi)
leaq 0x2ff2(%rip), %rax      # 0x15cae
movq %rax, 0x8(%rsi)
leaq 0x5b43b(%rip), %rdx     # 0x6e102
leaq 0x28(%rsp), %rdi
callq 0x1597c
movb 0x28(%rsp), %al
cmpb $0x1, %al
jne 0x12cea
movl 0x2c(%rsp), %ecx
movq 0x50(%rsp), %rdx
btsq $0x20, %rcx
movq %rcx, (%rdx)
movl %eax, %ecx
xorb $0x1, %cl
leaq 0x20(%rsp), %r14
movb %cl, -0x8(%r14)
movq $0x0, (%r14)
testb %al, %al
je 0x12d99
leaq 0x8(%rsp), %rdi
callq 0x4e2e8
leaq 0x5b43e(%rip), %rdx     # 0x6e156
leaq 0x5b3ed(%rip), %rcx     # 0x6e10c
leaq 0x5b3e0(%rip), %r8      # 0x6e106
leaq 0x28(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x48021
movq 0x28(%rsp), %r8
leaq 0x5b374(%rip), %rdx     # 0x6e0b5
leaq 0x10(%rsp), %rdi
movl $0x1, %esi
movl $0x30, %ecx
callq 0x4a84c
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x481aa
leaq 0x10(%rsp), %rdi
callq 0x4a8b8
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12d89
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x12d99
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x20(%rsp), %rsi
testq %rsi, %rsi
je 0x12dab
movq %r14, %rdi
callq 0x156d0
movb 0x4c(%rsp), %al
movl %eax, %ecx
xorb $0x1, %cl
leaq 0x20(%rsp), %r14
movb %cl, -0x8(%r14)
movq $0x0, (%r14)
testb %al, %al
je 0x12e5e
leaq 0x8(%rsp), %rdi
callq 0x4e2e8
leaq 0x5b390(%rip), %rdx     # 0x6e16d
leaq 0x5b328(%rip), %rcx     # 0x6e10c
leaq 0x5b31b(%rip), %r8      # 0x6e106
leaq 0x28(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x48021
movq 0x28(%rsp), %r8
leaq 0x5b2af(%rip), %rdx     # 0x6e0b5
leaq 0x10(%rsp), %rdi
movl $0x1, %esi
movl $0x31, %ecx
callq 0x4a84c
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x481aa
leaq 0x10(%rsp), %rdi
callq 0x4a8b8
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12e4e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x12e5e
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x20(%rsp), %rsi
testq %rsi, %rsi
je 0x12e70
movq %r14, %rdi
callq 0x156d0
leaq 0x5b29a(%rip), %rax     # 0x6e111
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x130da
leaq 0x50(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq *0x18(%rdi)
leaq 0x20(%rsp), %r14
movb %al, -0x8(%r14)
movq $0x0, (%r14)
testb %al, %al
jne 0x12f3f
leaq 0x8(%rsp), %rdi
callq 0x4e2e8
leaq 0x5b2a3(%rip), %rdx     # 0x6e161
leaq 0x5b241(%rip), %rcx     # 0x6e106
leaq 0x5b240(%rip), %r8      # 0x6e10c
leaq 0x28(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x48021
movq 0x28(%rsp), %r8
leaq 0x5b1ce(%rip), %rdx     # 0x6e0b5
leaq 0x10(%rsp), %rdi
movl $0x1, %esi
movl $0x33, %ecx
callq 0x4a84c
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x481aa
leaq 0x10(%rsp), %rdi
callq 0x4a8b8
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12f2f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x12f3f
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x20(%rsp), %rsi
testq %rsi, %rsi
je 0x12f51
movq %r14, %rdi
callq 0x156d0
movb 0x4c(%rsp), %al
leaq 0x20(%rsp), %r14
movb %al, -0x8(%r14)
movq $0x0, (%r14)
testb %al, %al
jne 0x12fff
leaq 0x8(%rsp), %rdi
callq 0x4e2e8
leaq 0x5b1ef(%rip), %rdx     # 0x6e16d
leaq 0x5b181(%rip), %rcx     # 0x6e106
leaq 0x5b180(%rip), %r8      # 0x6e10c
leaq 0x28(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x48021
movq 0x28(%rsp), %r8
leaq 0x5b10e(%rip), %rdx     # 0x6e0b5
leaq 0x10(%rsp), %rdi
movl $0x1, %esi
movl $0x34, %ecx
callq 0x4a84c
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x481aa
leaq 0x10(%rsp), %rdi
callq 0x4a8b8
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12fef
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xd530
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x12fff
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x20(%rsp), %rsi
testq %rsi, %rsi
je 0x13011
movq %r14, %rdi
callq 0x156d0
leaq 0x18(%rsp), %r8
movl $0x138, (%r8)           # imm = 0x138
leaq 0x5b148(%rip), %rsi     # 0x6e16c
leaq 0x5b0e6(%rip), %rdx     # 0x6e111
leaq 0x28(%rsp), %rdi
leaq 0x48(%rsp), %rcx
callq 0x15aba
cmpb $0x0, 0x28(%rsp)
jne 0x130a5
leaq 0x18(%rsp), %rdi
callq 0x4e2e8
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0x1305a
movq (%rax), %r8
jmp 0x13061
leaq 0x5df97(%rip), %r8      # 0x70ff8
leaq 0x5b04d(%rip), %rdx     # 0x6e0b5
leaq 0x8(%rsp), %rdi
movl $0x1, %esi
movl $0x35, %ecx
callq 0x4a84c
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x481aa
leaq 0x8(%rsp), %rdi
callq 0x4a8b8
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x130a5
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x30(%rsp), %rsi
testq %rsi, %rsi
je 0x130b9
leaq 0x30(%rsp), %rdi
callq 0x156d0
movq 0x60(%rsp), %rax
testq %rax, %rax
je 0x130d2
leaq 0x50(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $0x78, %rsp
popq %rbx
popq %r14
retq
callq 0xd1f0
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4a8b8
jmp 0x130f1
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x13101
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x18(%rsp)
jmp 0x1310f
movq %rax, %rbx
movq 0x30(%rsp), %rsi
testq %rsi, %rsi
je 0x13123
leaq 0x30(%rsp), %rdi
callq 0x156d0
movq $0x0, 0x30(%rsp)
jmp 0x13221
jmp 0x13147
jmp 0x13156
jmp 0x13176
jmp 0x13194
jmp 0x131a3
jmp 0x131ba
jmp 0x131da
jmp 0x131f8
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4a8b8
jmp 0x13159
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13179
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x13179
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x13189
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
jmp 0x131a6
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x4a8b8
jmp 0x131bd
movq %rax, %rbx
movq 0x20(%rsp), %rsi
testq %rsi, %rsi
je 0x13221
movq %r14, %rdi
callq 0x156d0
jmp 0x13221
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x131dd
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xd530
jmp 0x131dd
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x131ed
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x8(%rsp)
jmp 0x131fb
movq %rax, %rbx
movq 0x20(%rsp), %rsi
testq %rsi, %rsi
je 0x1320d
movq %r14, %rdi
callq 0x156d0
movq $0x0, 0x20(%rsp)
jmp 0x13221
jmp 0x13242
jmp 0x1321e
jmp 0x1321e
movq %rax, %rbx
movq 0x60(%rsp), %rax
testq %rax, %rax
je 0x1323a
leaq 0x50(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0xda70
movq %rax, %rdi
callq 0x15674