// File: halfflat[P]tinyopt/test/test_saved_options.cc
// Function: saved_options_serialize_Test::TestBody()
TEST(saved_options, serialize) {
    to::saved_options so;

    so.add("a b  c\t");
    so.add("\n");
    so.add("xyz");
    so.add("x'y'z");
    so.add("");

    std::stringstream s;
    s << so;
    EXPECT_EQ("'a b  c\t' '\n' xyz 'x'\\''y'\\''z' ''", s.str());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x300, %rsp            # imm = 0x300
movq %rdi, -0x8(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x611a0
leaq -0x41(%rbp), %rdi
movq %rdi, -0x2c8(%rbp)
callq 0x10e10
movq -0x2c8(%rbp), %rdx
leaq 0x6acca(%rip), %rsi     # 0xcb300
leaq -0x40(%rbp), %rdi
callq 0x1d070
jmp 0x60641
leaq -0x20(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x61220
jmp 0x60650
leaq -0x40(%rbp), %rdi
callq 0x10fc8
leaq -0x41(%rbp), %rdi
callq 0x10810
leaq -0x79(%rbp), %rdi
movq %rdi, -0x2d0(%rbp)
callq 0x10e10
movq -0x2d0(%rbp), %rdx
leaq 0x6ad76(%rip), %rsi     # 0xcb3f6
leaq -0x78(%rbp), %rdi
callq 0x1d070
jmp 0x6068b
leaq -0x20(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x61220
jmp 0x6069a
leaq -0x78(%rbp), %rdi
callq 0x10fc8
leaq -0x79(%rbp), %rdi
callq 0x10810
leaq -0xa1(%rbp), %rdi
movq %rdi, -0x2d8(%rbp)
callq 0x10e10
movq -0x2d8(%rbp), %rdx
leaq 0x6ac3b(%rip), %rsi     # 0xcb308
leaq -0xa0(%rbp), %rdi
callq 0x1d070
jmp 0x606db
leaq -0x20(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x61220
jmp 0x606ed
leaq -0xa0(%rbp), %rdi
callq 0x10fc8
leaq -0xa1(%rbp), %rdi
callq 0x10810
leaq -0xc9(%rbp), %rdi
movq %rdi, -0x2e0(%rbp)
callq 0x10e10
movq -0x2e0(%rbp), %rdx
leaq 0x6abe6(%rip), %rsi     # 0xcb30c
leaq -0xc8(%rbp), %rdi
callq 0x1d070
jmp 0x60734
leaq -0x20(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x61220
jmp 0x60746
leaq -0xc8(%rbp), %rdi
callq 0x10fc8
leaq -0xc9(%rbp), %rdi
callq 0x10810
leaq -0xf1(%rbp), %rdi
movq %rdi, -0x2e8(%rbp)
callq 0x10e10
movq -0x2e8(%rbp), %rdx
leaq 0x6ab88(%rip), %rsi     # 0xcb307
leaq -0xf0(%rbp), %rdi
callq 0x1d070
jmp 0x6078d
leaq -0x20(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x61220
jmp 0x6079f
leaq -0xf0(%rbp), %rdi
callq 0x10fc8
leaq -0xf1(%rbp), %rdi
callq 0x10810
leaq -0x280(%rbp), %rdi
callq 0x10500
jmp 0x607c5
leaq -0x270(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x615c0
jmp 0x607d7
leaq -0x2b0(%rbp), %rdi
leaq -0x280(%rbp), %rsi
callq 0x10710
jmp 0x607ec
leaq 0x6ab1f(%rip), %rsi     # 0xcb312
leaq 0x6ab41(%rip), %rdx     # 0xcb33b
leaq 0x6ab42(%rip), %rcx     # 0xcb343
leaq -0x290(%rbp), %rdi
leaq -0x2b0(%rbp), %r8
callq 0x616a0
jmp 0x60816
leaq -0x2b0(%rbp), %rdi
callq 0x10fc8
leaq -0x290(%rbp), %rdi
callq 0x1d4e0
movb %al, -0x2e9(%rbp)
jmp 0x60836
movb -0x2e9(%rbp), %al
testb $0x1, %al
jne 0x60845
jmp 0x609a1
jmp 0x60a4d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x6086d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x10fc8
leaq -0x41(%rbp), %rdi
callq 0x10810
jmp 0x60a8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x6089e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x10fc8
leaq -0x79(%rbp), %rdi
callq 0x10810
jmp 0x60a8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x608d2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x10fc8
leaq -0xa1(%rbp), %rdi
callq 0x10810
jmp 0x60a8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x60909
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x10fc8
leaq -0xc9(%rbp), %rdi
callq 0x10810
jmp 0x60a8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x60940
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x10fc8
leaq -0xf1(%rbp), %rdi
callq 0x10810
jmp 0x60a8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x60a8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x60a83
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x2b0(%rbp), %rdi
callq 0x10fc8
jmp 0x60a83
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x60a77
leaq -0x2b8(%rbp), %rdi
callq 0x84210
jmp 0x609af
leaq -0x290(%rbp), %rdi
callq 0x1d620
movq %rax, -0x2f8(%rbp)
jmp 0x609c4
movq -0x2f8(%rbp), %r8
leaq 0x6a7af(%rip), %rdx     # 0xcb181
leaq -0x2c0(%rbp), %rdi
movl $0x1, %esi
movl $0x2e, %ecx
callq 0x80580
jmp 0x609ea
leaq -0x2c0(%rbp), %rdi
leaq -0x2b8(%rbp), %rsi
callq 0x7d370
jmp 0x609ff
leaq -0x2c0(%rbp), %rdi
callq 0x80600
leaq -0x2b8(%rbp), %rdi
callq 0x1d500
jmp 0x60a4d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x60a3f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x2c0(%rbp), %rdi
callq 0x80600
leaq -0x2b8(%rbp), %rdi
callq 0x1d500
jmp 0x60a77
leaq -0x290(%rbp), %rdi
callq 0x1d520
leaq -0x280(%rbp), %rdi
callq 0x10570
leaq -0x20(%rbp), %rdi
callq 0x61330
addq $0x300, %rsp            # imm = 0x300
popq %rbp
retq
leaq -0x290(%rbp), %rdi
callq 0x1d520
leaq -0x280(%rbp), %rdi
callq 0x10570
leaq -0x20(%rbp), %rdi
callq 0x61330
movq -0x50(%rbp), %rdi
callq 0x10e00
nopw %cs:(%rax,%rax)