// File: /workspace/github_cpp_makefile_star2_O3/ericprud[P]sean-parent-concept-based-polymorphism/doc-user.cpp
// Function: main
int main ()
{
    history_t h;

    h.current().add(string("Hello"));
    h.current().add(0);
    h.current().add(my_class_t());

    draw(h, cout, 0);
    cout << "--------------------------" << endl;

    h.commit();

    h.current()[1] = string("World!");
    h.current().add(h);

    draw(h, cout, 0);
    cout << "--------------------------" << endl;

    h.undo();

    draw(h, cout, 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movl $0x18, %edi
callq 0x20f0
movq %rax, %rbx
movq %rax, -0x38(%rbp)
addq $0x18, %rax
movq %rax, -0x28(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq %rax, -0x30(%rbp)
leaq -0xa0(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x1cc7(%rip), %rsi      # 0x4020
leaq 0x1cc5(%rip), %rdx      # 0x4025
leaq -0xb0(%rbp), %rdi
callq 0x3236
leaq -0x48(%rbp), %rdi
movq $0x0, -0x8(%rdi)
leaq -0x50(%rbp), %rsi
leaq -0x19(%rbp), %rdx
leaq -0xb0(%rbp), %rcx
callq 0x32d4
movups -0x50(%rbp), %xmm0
leaq -0xf0(%rbp), %rsi
movups %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x2a12
movq -0xe8(%rbp), %rdi
testq %rdi, %rdi
je 0x23b3
callq 0x2bf4
movq -0xb0(%rbp), %rdi
cmpq %r14, %rdi
je 0x23ce
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2100
movq -0x30(%rbp), %rbx
cmpq -0x38(%rbp), %rbx
je 0x26c8
movl $0x20, %edi
callq 0x20f0
addq $-0x18, %rbx
movabsq $0x100000001, %r15      # imm = 0x100000001
movq %r15, 0x8(%rax)
leaq 0x4811(%rip), %rcx      # 0x6c10
movq %rcx, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x4850(%rip), %rdx      # 0x6c60
movq %rdx, 0x10(%rax)
movl $0x0, 0x18(%rax)
leaq -0xe0(%rbp), %rsi
movq %rcx, (%rsi)
movq %rax, 0x8(%rsi)
movq %rbx, %rdi
callq 0x2a12
movq -0xd8(%rbp), %rdi
testq %rdi, %rdi
je 0x2442
callq 0x2bf4
movq -0x30(%rbp), %rbx
cmpq -0x38(%rbp), %rbx
je 0x26c8
movl $0x20, %edi
callq 0x20f0
addq $-0x18, %rbx
movq %r15, 0x8(%rax)
leaq 0x4837(%rip), %rcx      # 0x6ca0
movq %rcx, (%rax)
movq %rax, %rcx
addq $0x10, %rcx
leaq 0x4876(%rip), %rdx      # 0x6cf0
movq %rdx, 0x10(%rax)
leaq -0xd0(%rbp), %rsi
movq %rcx, (%rsi)
movq %rax, 0x8(%rsi)
movq %rbx, %rdi
callq 0x2a12
movq -0xc8(%rbp), %rdi
testq %rdi, %rdi
je 0x24a5
callq 0x2bf4
movq 0x4b2c(%rip), %rsi      # 0x6fd8
leaq -0x38(%rbp), %rdi
xorl %edx, %edx
callq 0x2790
movq 0x4b1a(%rip), %rbx      # 0x6fd8
leaq 0x1b61(%rip), %rsi      # 0x4026
movl $0x1a, %edx
movq %rbx, %rdi
callq 0x2110
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x20e0
movsbl %al, %esi
movq 0x4ae8(%rip), %rdi      # 0x6fd8
callq 0x2030
movq %rax, %rdi
callq 0x2090
leaq -0x38(%rbp), %rdi
callq 0x290e
leaq -0x80(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x1b2c(%rip), %rsi      # 0x4041
leaq 0x1b2b(%rip), %rdx      # 0x4047
leaq -0x90(%rbp), %rdi
callq 0x3236
leaq -0x48(%rbp), %rdi
movq $0x0, -0x8(%rdi)
leaq -0x50(%rbp), %rsi
leaq -0x19(%rbp), %rdx
leaq -0x90(%rbp), %rcx
callq 0x32d4
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
je 0x26c8
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %rdx
movq -0x18(%rax), %rax
movq %rcx, 0x10(%rax)
movq 0x18(%rax), %rdi
movq %rdx, 0x18(%rax)
testq %rdi, %rdi
je 0x2578
callq 0x2bf4
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
je 0x2590
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2100
movq -0x30(%rbp), %rbx
cmpq -0x38(%rbp), %rbx
je 0x26c8
leaq -0x70(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x30b6
movl $0x30, %edi
callq 0x20f0
movq %rax, %r14
addq $-0x18, %rbx
movq %r15, 0x8(%rax)
leaq 0x4769(%rip), %rax      # 0x6d30
movq %rax, (%r14)
movq %r14, %r15
addq $0x10, %r15
movaps -0x70(%rbp), %xmm0
movq -0x60(%rbp), %rax
xorl %ecx, %ecx
movq %rcx, -0x60(%rbp)
xorps %xmm1, %xmm1
movaps %xmm1, -0x70(%rbp)
leaq 0x4793(%rip), %rdx      # 0x6d80
movq %rdx, 0x10(%r14)
movups %xmm0, 0x18(%r14)
movq %rax, 0x28(%r14)
leaq -0x50(%rbp), %rdi
movq %rcx, 0x10(%rdi)
movaps %xmm1, (%rdi)
callq 0x31e0
leaq -0xc0(%rbp), %rsi
movq %r15, (%rsi)
movq %r14, 0x8(%rsi)
movq %rbx, %rdi
callq 0x2a12
movq -0xb8(%rbp), %rdi
testq %rdi, %rdi
je 0x2631
callq 0x2bf4
leaq -0x70(%rbp), %rdi
callq 0x31e0
movq 0x4997(%rip), %rsi      # 0x6fd8
leaq -0x38(%rbp), %rdi
xorl %edx, %edx
callq 0x2790
movq 0x4985(%rip), %rbx      # 0x6fd8
leaq 0x19cc(%rip), %rsi      # 0x4026
movl $0x1a, %edx
movq %rbx, %rdi
callq 0x2110
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x20e0
movsbl %al, %esi
movq 0x4953(%rip), %rdi      # 0x6fd8
callq 0x2030
movq %rax, %rdi
callq 0x2090
leaq -0x38(%rbp), %rbx
movq %rbx, %rdi
callq 0x2944
movq 0x4933(%rip), %rsi      # 0x6fd8
movq %rbx, %rdi
xorl %edx, %edx
callq 0x2790
leaq -0x38(%rbp), %rdi
callq 0x31e0
xorl %eax, %eax
addq $0xd8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1979(%rip), %rdi      # 0x4048
leaq 0x1983(%rip), %rsi      # 0x4059
leaq 0x198d(%rip), %rcx      # 0x406a
movl $0x5b, %edx
callq 0x2080
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
testq %rdi, %rdi
je 0x2700
callq 0x2bf4
jmp 0x2700
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x31e0
jmp 0x277f
movq %rax, %rbx
movq -0x90(%rbp), %rdi
cmpq %r14, %rdi
je 0x277f
movq -0x80(%rbp), %rsi
jmp 0x2770
jmp 0x277c
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
jmp 0x2738
movq %rax, %rbx
movq -0xd8(%rbp), %rdi
testq %rdi, %rdi
je 0x277f
callq 0x2bf4
jmp 0x277f
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
testq %rdi, %rdi
je 0x275d
callq 0x2bf4
jmp 0x275d
movq %rax, %rbx
movq -0xb0(%rbp), %rdi
cmpq %r14, %rdi
je 0x277f
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x2100
jmp 0x277f
jmp 0x277c
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x31e0
movq %rbx, %rdi
callq 0x2180